Git Product home page Git Product logo

t-rex-run's Introduction

T-Rex Run

Overview

This game was created by Michael Chen and Ishan Shah for EE 319H: Introduction to Embedded Systems. The course was taught during Spring 2020 by Dr. Jon Valvano. The purpose of the project is to put multiple modules together to create a working embedded system. The modules were worked on in smaller projects through the semester like the DAC piano, breating LED, and slide potentiometer ruler.

How to Play

T-Rex Run is based on Google's scroller game that appears when you don't have wifi. In this version, you play as a dinosaur that has to get as far as possible while avoiding obstacles like cacti and pterodactyls. Help the dinosaur move by sliding the slide potentiometer left to jump and right to duck. The game also gets progressively faster the longer you play.

Features

  • Buttons: two buttons, one to navigate menus and one to pause
  • LEDs: onboard LED is used to indicate the status of the player where green is running, blue is jumping, and red is ducking
  • Slide Potentiometer: used to make the dinosaur run, jump, or duck
  • Sounds: most game events have corresponding sounds
  • Display: shows the menus and displays moving sprites and score during gameplay
  • Interrupts: SysTick, Timer0A, and Timer1A are used for managing various game threads
  • Languages: player can choose between English and Spanish on the title screen

Hardware

  • Slide pot pin 1 connected to ground
  • Slide pot pin 2 connected to PD2
  • Slide pot pin 3 connected to 3.3V
  • Start button connected to PD0
  • Pause button connected to PD1
  • 12 kΩ DAC bit 0 connected to PB0
  • 6 kΩ DAC bit 1 connected to PB1
  • 3 kΩ DAC bit 2 connected to PB2
  • 1.5 kΩ DAC bit 3 connected to PB3
  • LEDs on PF1-PF3

Demonstration and Visuals

Here is a link to a video demonstration of how the game is played and a picture of the completed game.

Hardware Setup

t-rex-run's People

Contributors

ishan0102 avatar mxchen2001 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.