Coder Social home page Coder Social logo

cs120b-project's Introduction

CS120B Final Project Fall 2019

Cops and Robbers is a game where you dodge randomly spawned obstacles while you are being chased by the police (which will be printed on the screen as + symbol). Dodging obstacles gives you 100 points and picking up randomly spawned dollar sign tokens, $, grants you an extra 200 points. If you hit an obstacle, you do not gain any points but you take a point of damage, a max of 3 per game, and the police get that much closer to you. As you progress through the game, every 20 seconds the game speeds up by double. Though technically this game has no end, the difficulty ramps up pretty quickly where the user will reduce their health to 0 in some finite amount of time. At the end, the score is printed to the LCD screen waiting for input to go back to the title screen, where the high score is printed.

User Guide

SNES Button Description
LEFT Moves the player left during the game
RIGHT Move the player right during the game
A Confirms to the next page in the menu
START Reset EEPROM at title screen

The purpose of the game is to last as long as you can while dodging obstacles and collecting $ tokens.

Components/Technologies

The components and technologies used for this project were:
ATMEGA1284
SNES Controller
Nokia 5110 LCD Screen
LEDs and Resistors
1602A LCD Screen
AVRdude

Complexities

Nokia 5110 LCD
SNES Controller
Game Logic
EEPROM
Special Character on 1602A LCD Screen

Links To Source

Nokia 5110:

Sourced from https://github.com/LittleBuster/avr-nokia5110 Creates an interface for using the Nokia 5110 LCD Screen.

Nokia 5110 Charset:

Source from https://github.com/LittleBuster/avr-nokia5110/blob/master/nokia5110_chars.h This creates the data to write to the Nokia 5110 in order to create characters. (a-z, A-Z, !@#$%^&*()~-=+)

SNES Controller:

Sourced from https://github.com/MCoyne1234/CS120B_Labs/blob/master/CS120B_final/CS120B_final/headers/SNES.c Creates an interface for using the SNES Controller.

Game Logic and State Machines:

This is where all the game logic and state machines are implemented. Also the timer and EEPROM was implemented in this file.

Link To YouTube Video

https://www.youtube.com/watch?v=vnJQltac0Xc&feature=youtu.be

cs120b-project's People

Contributors

louieegarcia avatar

Watchers

James Cloos avatar  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.