Arcade
latest
  • Example Code
    • Drawing
    • Animation
    • Drawing with Loops
    • User Control
      • User control: Mouse
      • User control: Keyboard
      • User control: Joystick
      • Full Joystick Example
    • Sprites
      • Player Movement
      • Sprite Movement
      • Levels
        • Different Levels
      • Bullets
      • Platformers
    • Other
      • Classes: Starting Template
      • Examples to-do list
  • Installation Instructions
  • Arcade Package API
  • How to Contribute
  • Directory Structure
  • How to Compile
  • How to Submit Changes
  • Pygame Comparison
  • Suggested Curriculum
Arcade
  • Docs »
  • Example Code
  • Edit on GitHub

Example Code¶

Drawing¶

examples/thumbs/drawing_primitives.png

Drawing Primitives

examples/thumbs/drawing_with_functions.png

Drawing with Functions

examples/thumbs/drawing_text.png

Drawing Text

examples/thumbs/array_backed_grid.png

Array-Backed Grid

Animation¶

examples/thumbs/bouncing_rectangle.png

Bouncing Rectangle

examples/thumbs/bouncing_ball.png

Bouncing Ball with Gravity

examples/thumbs/bouncing_balls.png

Multiple Bouncing Balls

examples/thumbs/radar_sweep.png

Radar Sweep

Drawing with Loops¶

examples/thumbs/drawing_with_loops.png

Drawing with Loops

examples/thumbs/nested_loops_box.png

Draw a Box with Nested Loops

examples/thumbs/nested_loops_bottom_left_triangle.png

Bottom Left Triangle

examples/thumbs/nested_loops_top_right_triangle.png

Top Right Triangle

examples/thumbs/nested_loops_top_left_triangle.png

Bottom Left Triangle

examples/thumbs/nested_loops_top_right_triangle.png

Top Right Triangle

examples/thumbs/shapes.png

Drawing Shapes with Classes

examples/thumbs/snow.png

Falling Snow

User Control¶

  • User control: Mouse
  • User control: Keyboard
  • User control: Joystick
  • Full Joystick Example

Sprites¶

Player Movement¶

examples/thumbs/sprite_collect_coins.png

Collect Coins - Mouse

examples/thumbs/sprite_collect_coins.png

Collect Coins - Keyboard

examples/thumbs/sprite_face_left_or_right.png

Sprite: Face Left or Right

examples/thumbs/sprite_collect_coins.png

Collect Coins - Joystick

Sprite Movement¶

examples/thumbs/sprite_collect_coins_move_down.png

Collect Coins Moving Down

examples/thumbs/sprite_collect_coins_move_bouncing.png

Collect Coins that are Bouncing

examples/thumbs/sprite_collect_coins_move_circle.png

Collect Coins that are Moving in a Circle

Levels¶

  • Different Levels

Bullets¶

examples/thumbs/sprite_bullets.png

Shoot Bullets Upwards

examples/thumbs/sprite_bullets_aimed.png

Aim and Shoot Bullets

examples/thumbs/sprite_bullets_periodic.png

Have Enemies Periodically Shoot

examples/thumbs/sprite_bullets_random.png

Have Enemies Randomly Shoot

examples/thumbs/sprite_bullets_enemy_aims.png

Have Enemies Aim at Player

Platformers¶

examples/thumbs/sprite_move_walls.png

Move with Walls

examples/thumbs/sprite_move_scrolling.png

Move with a Scrolling Screen

examples/thumbs/sprite_move_animation.png

Move with a Sprite Animation

examples/thumbs/sprite_tiled_map.png

Work with a tiled map

examples/thumbs/sprite_ramps.png

Ramps

examples/thumbs/sprite_moving_platforms.png

Moving Platforms

Other¶

examples/thumbs/sprite_collect_coins_background.png

Using a Background Image

examples/thumbs/timer.png

On-Screen Timer

examples/thumbs/sprite_change_coins.png

Change coins

examples/thumbs/instruction_and_game_over_screens.png

Instruction and Game Over Screens

examples/thumbs/asteroid_smasher.png

Full example: Asteroid Smasher

examples/thumbs/instruction_and_game_over_screens.png

Instruction and Game Over Screens

  • Classes: Starting Template
  • Examples to-do list
Next Previous

© Copyright 2017, Paul Vincent Craven. Revision 9b624da7.

Built with Sphinx using a theme provided by Read the Docs.