Skip to content

Latest commit

 

History

History
748 lines (447 loc) · 13.1 KB

index.rst

File metadata and controls

748 lines (447 loc) · 13.1 KB

How-To Example Code

Starting Templates

starting_template

starting_template

template_platformer

template_platformer

Drawing

Drawing Primitives

happy_face

happy_face

drawing_primitives

drawing_primitives

drawing_with_functions

drawing_with_functions

drawing_text

drawing_text

drawing_text_objects

drawing_text_objects

Drawing with Loops

drawing_with_loops

drawing_with_loops

nested_loops_box

nested_loops_box

nested_loops_bottom_left_triangle

nested_loops_bottom_left_triangle

Animating Drawing Primitives

bouncing_rectangle

bouncing_rectangle

shapes-slow

shapes-slow

radar_sweep

radar_sweep

snow

snow

Faster Drawing with ShapeElementLists

shape_list_demo

shape_list_demo

lines_buffered

lines_buffered

shape_list_demo_skylines

shape_list_demo_skylines

gradients

gradients

Sprites

Sprite Player Movement

sprite_collect_coins

sprite_collect_coins

sprite_move_keyboard

sprite_move_keyboard

sprite_move_keyboard_better

sprite_move_keyboard_better

sprite_move_keyboard_accel

sprite_move_keyboard_accel

sprite_face_left_or_right

sprite_face_left_or_right

sprite_move_joystick

sprite_move_joystick

sprite_move_angle

sprite_move_angle

dual_stick_shooter

dual_stick_shooter

turn_and_move

turn_and_move

easing_example_1

easing_example_1

easing_example_2

easing_example_2

sprite_rotate_around_tank

sprite_rotate_around_tank

Sprite Non-Player Movement

sprite_collect_coins_move_down

sprite_collect_coins_move_down

sprite_collect_coins_move_bouncing

sprite_collect_coins_move_bouncing

sprite_bouncing_coins

sprite_bouncing_coins

sprite_collect_coins_move_circle

sprite_collect_coins_move_circle

sprite_collect_rotating

sprite_collect_rotating

sprite_rotate_around_point

sprite_rotate_around_point

Sprite Pathing

follow_path

follow_path

sprite_follow_simple

sprite_follow_simple

sprite_follow_simple_2

sprite_follow_simple_2

line_of_sight

line_of_sight

astar_pathfinding

astar_pathfinding

Sprite Properties

sprite_health

sprite_health

sprite_properties

sprite_properties

sprite_change_coins

sprite_change_coins

Games with Levels

example-sprite-collect-coins-diff-levels

example-sprite-collect-coins-diff-levels

sprite_rooms

sprite_rooms

Shooting with Sprites

sprite_bullets

sprite_bullets

sprite_bullets_aimed

sprite_bullets_aimed

sprite_bullets_periodic

sprite_bullets_periodic

sprite_bullets_random

sprite_bullets_random

sprite_bullets_enemy_aims

sprite_bullets_enemy_aims

sprite_explosion_bitmapped

sprite_explosion_bitmapped

sprite_explosion_particles

sprite_explosion_particles

Sound

sound_demo

sound_demo

sound_speed_demo

sound_speed_demo

music_control_demo

music_control_demo

Camera Use

sprite_move_scrolling

sprite_move_scrolling

sprite_move_scrolling_box

sprite_move_scrolling_box

sprite_move_scrolling_shake

sprite_move_scrolling_shake

camera_platform

camera_platform

Platformers

Basic Platformers

sprite_move_walls

sprite_move_walls

sprite_no_coins_on_walls

sprite_no_coins_on_walls

sprite_move_animation

sprite_move_animation

sprite_moving_platforms

sprite_moving_platforms

sprite_enemies_in_platformer

sprite_enemies_in_platformer

platformer_tutorial

platformer_tutorial

Using Tiled Map Editor to Create Maps

sprite_tiled_map

sprite_tiled_map

sprite_tiled_map_with_levels

sprite_tiled_map_with_levels

Procedural Generation

maze_recursive

maze_recursive

maze_depth_first

maze_depth_first

procedural_caves_cellular

procedural_caves_cellular

procedural_caves_bsp

procedural_caves_bsp

View Management

Instruction Screens and Game Over Screens

view_screens_minimal

view_screens_minimal

view_instructions_and_game_over

view_instructions_and_game_over

view_pause_screen

view_pause_screen

transitions

transitions

Resizable Window and Fullscreen Games

resizable_window

resizable_window

full_screen_example

full_screen_example

Dividing a View Into Sections

sections_demo_1

sections_demo_1

sections_demo_2

sections_demo_2

sections_demo_3

sections_demo_3

Graphical User Interface

gui_flat_button

gui_flat_button

gui_flat_button_styled

gui_flat_button_styled

gui_widgets

gui_widgets

gui_ok_messagebox

gui_ok_messagebox

gui_scrollable_text

gui_scrollable_text

gui_slider

gui_slider

Grid-Based Games

array_backed_grid

array_backed_grid

array_backed_grid_buffered

array_backed_grid_buffered

array_backed_grid_sprites_1

array_backed_grid_sprites_1

array_backed_grid_sprites_2

array_backed_grid_sprites_2

tetris

tetris

conway_alpha

conway_alpha

Advanced

Using PyMunk for Physics

pymunk_box_stacks

pymunk_box_stacks

pymunk_pegboard

pymunk_pegboard

pymunk_demo_top_down

pymunk_demo_top_down

pymunk_joint_builder

pymunk_joint_builder

pymunk_platformer_tutorial

pymunk_platformer_tutorial

Frame Buffers

minimap

minimap

light_demo

light_demo

transform_feedback

transform_feedback

game_of_life_fbo

game_of_life_fbo

perspective

perspective

Concept Games

asteroid_smasher

asteroid_smasher

Asteroids with Shaders

Asteroids with Shaders

slime_invaders

slime_invaders

Community RPG

Community RPG

2048

2048

Rogue-Like

Rogue-Like

Odds and Ends

sprite_collect_coins_background

sprite_collect_coins_background

parallax

parallax

timer

timer

performance_statistics_example

performance_statistics_example

text_loc_example

text_loc_example

Tutorials

platformer_tutorial

platformer_tutorial

solitaire_tutorial

solitaire_tutorial

crt_filter

crt_filter

raycasting_tutorial

raycasting_tutorial

pymunk_platformer_tutorial

pymunk_platformer_tutorial

shader_toy_tutorial_glow

shader_toy_tutorial_glow

Particle System

particle_fireworks

particle_fireworks

particle_systems

particle_systems

Stress Tests

stress_test_draw_moving

stress_test_draw_moving

stress_test_collision

stress_test_collision