Code Monkey home page Code Monkey logo

pygame-learning's Introduction

Same Again!

Goal

I wanted to practice Python in an unfamiliar domain. I chose PyGame since I've never done any game development before.

Learnings:

  • Coding in Python
  • OOP in Python (see scratchpad for notes)
  • Using Github Copilot: first time I've used the AI-assistant extensively for a project, and I had to learn how to prompt it effectively. This exercise ended up being a great way to learn about the tool and Python at the same time.
  • Basic game design: PyGame library (see tutorials folder), the game loop, drawing, events, game states, thinking in terms of single frames, etc.

The Game: Same Again!

Same Again! is a matching and language skills game for my toddler. When she loves something, she'll keep asking for it, 'same again! same again!', hence the name :)

Each puzzle in the game asks the kiddo to match an item against four options. The puzzle is preceded by a spoken word in a target language (English, Portuguese, or Arabic) in order to teach her new words and reinforce the matching skills. The items to match can be images or colored shapes as the levels progress. The game is designed to be played with a parent, who can help the kiddo learn the new words.

See the demo below (note that the frames are janky and the sound quality low only due to recording on my machine. Be sure to unmute the audio):

same-again-demo.mp4

Game Play

  • Mouse left button selects the correct answer
  • Escape key opens a menu where a player can:
    • set their name
    • set the target language
    • start a new game
    • quit the game

Attributions

Icons

Music

Sound Effects

pygame-learning's People

Contributors

ihouwat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.