2048 mbed Game using uVGAII

Overview

For our project we made a clone of the 2048 game on mbed LPC1768 using a UVGAII serial connection. The program starts with the game ready to play. Player uses 4 push buttons to direct the tiles in the desired direction: UP, DOWN, LEFT or RIGHT. The goal is to combine the numbers and get to the 2048 tile! The game ends when the player is either stuck (no possible moves in any direction) or if the 2048 tile is reached. To restart the game, player must press the reset button on the mbed.

by Reinaldo Cruz and Douglas Sigelbaum

/media/uploads/reinaldo422/img_1097.jpg /media/uploads/reinaldo422/img_1094.jpg /media/uploads/reinaldo422/img_1102.jpg

Components

Circuit

mbeduVGA II
5V=VU5V
GndGnd
TX=P9RX
RX=P10TX
P11Reset
mbedPBs
P21LEFT
P22DOWN
P23UP
P24RIGHT

Program

This program has a modified version of the 4DGL library (renamed to 4DGLtest).

Import programmbed_2048game

2048 game on mbed LPC1768 using a UVGAII serial connection. The program starts with the game ready to play. Player uses 4 push buttons to direct the tiles in the desired direction: UP, DOWN, LEFT or RIGHT. The goal is to combine the numbers and get to the 2048 tile! The game ends when the player is either stuck (no possible moves in any direction) or if the 2048 tile is reached. To restart the game, player must press the reset button on the mbed.


Please log in to post comments.