Skip to content

Simple game to learn open frameworks and programming basics

Notifications You must be signed in to change notification settings

oorahmi/WhackAMan

Repository files navigation

Getting Started

  • Download & install open frameworks for your system

  • go to apps/

  • Open a git bash here and run: git clone https://github.com/oorahmi/WhackAMan

Important Concepts to Learn for Writing Software

  • git / simple source control
  • Common programming concepts (looping, conditionals, operators,)
  • Data Structures When, Why, and How they work(Array, Linked List, Queue, Trees, Heaps, HashMaps)
  • polymorphism vs component-based design
  • simple algorithms (sorting, recursion)
  • File I/O
  • Debugging/Patience
  • Threading
  • How Computers run programs (function stack)
  • Cache and Memory behaviour
  • Dynamic Programming
  • Testing effectively no TDD
  • Functional programming
  • Vim or Emacs / Which editor to use

Requirements

Implement a whack-a-mole style game where a man pops up and you have to click on him to whack him

Game Management

  • spacebar to start the game/ gui button to start game

    • bonus points - gui elements to exit game or options?
  • Game lasts 1 minute. Display this using bitmap text

  • Display points earned for whacking moles using bitmap text

  • Record points where player clicked, store them in a data structure

Game Elements

  • Implement a mole/man spawner.

    • Can spawn multiple types of moles
      • One Mole has more health and time spent above ground(need to click multiple times)
        • bonus points if you can think of more interesting mole types, (ie mole that moves, mole that shields)
    • Spawns in random locations. bonus points - use data analysis to pick harder spots to place moles for the player to reach
    • Can only have a maximum of 5 moles spawned at any time
  • Implement Moles

    • take damage on mouse click
    • have hp
    • alive/dead?
  • Implement a binary search tree

File Input/Output (I/O)

  • Record Persistent statistics to a file and load them when the game starts
    • Highest score
    • Total mouse clicks
    • Total hits
    • Moles Killed

Good Resources to keep in mind

About

Simple game to learn open frameworks and programming basics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published