Tank War Game

Overview

This Tank War Game was made for Lab 4 of 4180. With the use of EthernetInterface, two players can connect and play together.

Gameplay

In this game, the goal is to use your tank to destroy the other tank on the opposite side of the screen. When the game begins, you can select day mode or night mode, which changes the background color. The pushbuttons can be used to select the menu options and player options. Once in the game, the IMU is used to move the tank and the barrel position. The 'Up' pushbutton is used for powerups (you get two per round). The 'Down' pushbutton is used to fire your weapon. Once one tank is hit and destroyed, the score will be updated and a new round can be started with the 'Up' pushbutton.

Components

NameImageLink
mbed/media/uploads/ychen644/mbed.jpghttps://developer.mbed.org/handbook/Homepage
uLCD/media/uploads/ychen644/ulcd.pnghttp://developer.mbed.org/users/4180_1/notebook/ulcd-144-g2-128-by-128-color-lcd/
IMU/media/uploads/ychen644/imu.jpghttps://www.sparkfun.com/products/12756
Pushbuttons/media/uploads/ychen644/pushbutton.jpghttp://developer.mbed.org/users/4180_1/notebook/pushbuttons/
SD Card/media/uploads/ychen644/sd.jpghttps://developer.mbed.org/cookbook/SD-Card-File-System
Class D audio amp/media/uploads/ychen644/classd.jpghttps://www.sparkfun.com/products/11044
Speaker/media/uploads/ychen644/speaker.jpghttp://developer.mbed.org/users/4180_1/notebook/using-a-speaker-for-audio-output/

Connections

MbedSDIMUClass DPushbuttonsuLCD
GNDGNDGNDPWR-U-, R-, D-, L-GND
P5DI
P6DO
P7SCK
P8CS
P9SDA
P10SCL
P18IN+
P21U+
P22R+
P23D+
P24L+
P27RX
P28TX
P29RESET
Vu5V
VoutVCC3.3V
5V extPWR+
Class DSpeaker
OUT++
OUT--

Program Files

Import program4180_lab4_tank_war_game

Game for 4180 Lab4

Import libraryEthernetInterface

Code and Libraries for Lab 4

Video


Please log in to post comments.