Skip to content

susanwalker/allie_cat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Allie Cat

A simple pacman type game with cats chasing cat treats. This game is a learning exercise in learning Ruby outside of Rails (no current score keeping or levels).

Architecture

Entities

  • Cat: an icon that has mutable x and y position
  • Treat: an icon that has fixed x ad y position and is cleared when overlapping Cat
  • Wall: a fixed barrier representation that blocks Cat movement
  • Maze: a composite of Wall and Treat components that form the environment that the Cat moves in

Components

  • User Input Processor: processes user input using arrow keys, responsible for updating cat position, update treats, and detecting collisions between cat and walls

Interfaces

  • Responsible for rendering entities in the game (within the terminal)

TODO

  • entities
    • Cat Class
    • Maze Class
    • Treat Class
    • Wall Class
  • interfaces
  • user_input_processor
  • RSpec

About

A pacman style game with cats chasing cat treats.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages