Examples

A collection of examples that demonstrate the commands within AGK.

General

  • Core commands and general program layout
  • Mathematical commands
  • General control commands
  • Splash screen
  • Sprites

  • Sprites using the virtual resolution
  • Sprites using the percentage system
  • Moving sprites using the virtual resolution
  • Moving sprites using the percentage system
  • Properties of sprites
  • Collision between two sprites
  • Animating sprites - part 1
  • Animating sprites - part 2
  • Moving sprites
  • Scrolling sprites
  • Star field
  • Collision with zones
  • Ray casting
  • Cloning sprites
  • Sprite depth
  • Visibility
  • Text

  • Creating text
  • Custom text
  • Properties of text
  • Basic print commands
  • Timers

  • Using timers
  • Timer based movement
  • Sound

  • Play a sound
  • Playing music
  • Input

  • Getting started
  • The accelerometer
  • Joysticks
  • Moving a player
  • Text input
  • Hitting a sprite
  • Hitting sprite groups
  • File access

  • Writing to a file
  • Reading from a file
  • Physics

  • Getting started with physics
  • Static and dynamic sprites
  • Debugging physics
  • Simple physics example
  • Gravity
  • Restitution
  • Joints - part 1
  • Joints - part 2
  • Collision walls
  • Physics shapes
  • Convex shapes
  • Joint motors
  • Compound shapes
  • Particles

  • Creating particles
  • A simple emitter
  • Creating an explosion
  • Gas cloud
  • Multiplayer

  • Getting started with multiplayer
  • Benchmarking

  • Using the benchmarking commands
  • Games

  • Space game
  • Smack It