Tarek Bessalah 201344887

Dependencies:   mbed

Objective The objective of the game is to reach the end goals located at the top of the screen, as well as avoiding the snakes, vehicles, turtles when they are underground, and the water. As the levels progress, things get harder! So You need to avoid enemy objects. Make sure to get on logs when you want to cross the water.

Intro Screen

Play - You need to pass Level 1 in order to progress to the following level Tutorial- This informs you how to play the game Bonus - This is a bonus level, this is a very challenging so play with precautions! You cannot hit the objects, and go into the void background frogger_logo_owner.png 404 x 152 px 14.0 KB May 27, 2020 1 Item Image: 1 Document: 0

To control the menu use the X button to go up, and the B button to go down. Use A to select. To skip through the tutorial pages, use A. At the endhttps://os.mbed.com/media/uploads/el19tb/frogger_logo_owner.png of the tutorial you will play the game.

Controls

Use A, X, B, Y to move right, Up, Down, and Left respectively, this controls the frog object

Committer:
el19tb
Date:
Sat May 16 00:33:51 2020 +0000
Revision:
29:2151cd327a36
Parent:
20:077f845f09f2
Child:
37:65c9e5a65738
changed the name of the game, cleaned out files, made the level object and graphic objects be made in the int main() and passed accordingly.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
eencae 0:b7f1f47bb26a 1 /*
eencae 0:b7f1f47bb26a 2 ELEC2645 Embedded Systems Project
eencae 0:b7f1f47bb26a 3 School of Electronic & Electrical Engineering
eencae 0:b7f1f47bb26a 4 University of Leeds
eencae 0:b7f1f47bb26a 5 2019/20
eencae 0:b7f1f47bb26a 6
el19tb 1:6afa6a6a8131 7 Name: Tarek Bessalah
el19tb 1:6afa6a6a8131 8 Username: el19tb
el19tb 1:6afa6a6a8131 9 Student ID Number: 201344887
el19tb 1:6afa6a6a8131 10 Date:
eencae 0:b7f1f47bb26a 11 */
eencae 0:b7f1f47bb26a 12
eencae 0:b7f1f47bb26a 13 #include "mbed.h"
eencae 0:b7f1f47bb26a 14 #include "Gamepad.h"
eencae 0:b7f1f47bb26a 15 #include "N5110.h"
el19tb 2:86cef2afa648 16 #include "Menu.h"
el19tb 29:2151cd327a36 17 #include "Frogger.h"
eencae 0:b7f1f47bb26a 18
eencae 0:b7f1f47bb26a 19 int main()
eencae 0:b7f1f47bb26a 20 {
el19tb 29:2151cd327a36 21 int size = 4; // grid size
el19tb 11:cc5861abfca5 22
el19tb 29:2151cd327a36 23 Frog frog((84/2)-size/2, 48-size, size); // start at the bottom centre
el19tb 29:2151cd327a36 24 Frog *frogptr= &frog; // user will have control over this
el19tb 29:2151cd327a36 25
el19tb 29:2151cd327a36 26 GraphicEngine graphics(frogptr); // create a graphics object (for rendering)
el19tb 29:2151cd327a36 27 GraphicEngine *graphicptr; // set up a pointer
el19tb 29:2151cd327a36 28 graphicptr = &graphics; // set up a reference
eencae 0:b7f1f47bb26a 29
el19tb 29:2151cd327a36 30 Level levels(graphicptr); // has the ability to render
el19tb 29:2151cd327a36 31 Level *levelptr; // set up a pointer
el19tb 29:2151cd327a36 32 levelptr = &levels; // set up a reference
el19tb 29:2151cd327a36 33
el19tb 29:2151cd327a36 34 Frogger game(graphicptr,levelptr, frogptr); // accepts the level (obstacles) and graphics
el19tb 29:2151cd327a36 35 game.start(); // start the game loop
eencae 0:b7f1f47bb26a 36 }
eencae 0:b7f1f47bb26a 37