Let's program! Get into programming writing a simple game.
Latest commit f0b636f Apr 4, 2014 @mchakravarty Update README.md


Let's program!

Here I'm collecting some notes and the code from introducing a group of children to programming by writing a simple game in Haskell. We are using gloss-game, a simple wrapper around the Gloss 2D library, to simplify the code. To draw sprites, we are using the pixel art editor BigPixel. An iPad version of BigPixel is available from the App Store. In addition, there is also a less polished, but free cross-platform version of BigPixel.

So far, we had three coding sessions:

  1. Step1: Draw a simple character and move it around.
  2. Step2: Add gravity and bound character movement by window edges.
  3. Step3: Add a key binding to jump and let the character bounce when it hits the ground.
  4. Step4: Properly define constants, such as the window size, and implement continous moving when a movement key keeps being pressed.
  5. Step5: Use scenes to describe levels, and add an animation to the character when it jumps.
  6. Step6: Add a power up coin and let it super-charge the character.
  7. Step7: Use record syntax throughout for the game state and add a low platform.