<LEARN/>
← /paths/gamedev

<project · beginner>

Pong or Snake

Recreate a classic with a score and a game-over screen.

Build pong or snake one manageable milestone at a time. Keep your decisions, tests and finished work together so your portfolio shows what you learned, not only the final result.

Build it step by step

  1. Choose one small game

    Pick Pong or Snake and define its controls, scoring and ending rules. Use Godot or an HTML Canvas project with a free game library such as Phaser.

  2. Build the playing field

    Create a fixed logical play area and scale it to the screen. Use simple original shapes and keep game state separate from the rendering code.

  3. Implement movement

    For Pong, use elapsed-time movement and paddle bounds; for Snake, use a fixed grid tick and reject immediate reverse turns. Support keyboard controls without scrolling the page.

  4. Add collisions and scores

    Detect walls, goals or snake self-collisions using the chosen engine. Define start, playing and game-over states and make restart reset the entire game.

  5. Test the rules

    Check every loss condition, score update and restart. For Pong compare motion at different frame rates; for Snake confirm consistent tick speed and legal turns.

  6. Share your finished work

    Commit your source and a README explaining setup, decisions, tests and limitations. Remove secrets and personal data, credit dependencies and assets, then add the public repository or portfolio link and an optional working demo to LEARN Showcase. Hosting is optional; a clear repository or design case study is enough.

// done when

  • Scoring follows the stated rules
  • Collision ends or updates play correctly
  • Restart clears the old state
  • Controls work without moving the page
  • README includes setup, credits and limitations; shared links are safe and accessible

// stretch goals

  • Add touch controls
  • Add a pause state

Finished? Show it off

Add your project to the LEARN showcase so other learners and employers can see it.

Sign in to add your finished project to the showcase.