2 player Tron with uLCD-144-G2 and 5-way tactile switch

Overview

The classic arcade game Tron recreated on an mbed using the Serial Miniature LCD module from 4D Systems as the visual interface, the 2 joysticks as the player input, and the SD card reader with a speaker for the game sound! Battle your friends to see who is superior program!

Tron is a 2 player game where each player moves in a straight line and leaves behind a trail or a "wall". Each player is able to control which direction where they turn and try to block the opponents path. If any player crashes into the outer wall or into a wall that either player has created, then that player loses.

By Martin Yeh and BumJun Park

Setup

/media/uploads/myeh/12165712_10153709927659993_1927841236_n.jpg

Components

Pin Out

uLCD

mbeduLCD
VU5V
GndGnd
P8Reset
P9RX
P10TX

SD Card Reader

mbedSD Card Reader
P5DI
P6DO
P7SCK
VoutVcc
GndGnd
P27CS

Player 1 Joystick

mbedJoystick
Vout+
P11U
P12C
P13L
P14D
P15R
Gnd-

Player 2 Joystick

mbedJoystick
Vout+
P16U
P17C
P19L
P20D
P21R
Gnd-

Speaker

/media/uploads/myeh/speaker_connection.jpg /media/uploads/myeh/amplifier_schematic.jpg

mbed2N3904Speaker
P18B
GndE
CBlack Speaker Wire
VuRed Speaker Wire

Micro SD Card

Download both of these .wav files by click on the links, right-click the media player, and click "Save as..." After you download these, copy them to the Micro SD Card under the file directory wavfiles/*filename*.wav.

Gameplay

Code

Import program2PlayerTron

2 Player Tron


Please log in to post comments.