
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 end
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
main.cpp
- Committer:
- el19tb
- Date:
- 2020-05-27
- Revision:
- 61:3714af9caab6
- Parent:
- 56:2797166656e0
File content as of revision 61:3714af9caab6:
/* * ELEC2645 Embedded Systems Project * School of Electronic & Electrical Engineering * University of Leeds * 2019/20 * * Name: Tarek Bessalah * Username: el19tb * Student ID Number: 201344887 * Date: May, 2020 */ #include "mbed.h" #include "Gamepad.h" #include "N5110.h" #include "Frogger.h" #include "Test.h" void conduct_test(); int main() { int size = 4; // game grid size int lcd_x = 84; int lcd_y = 48; int frog_width = 6; // width of frog, slightly fatter than width //conduct_test(); // run the tests of the program Frog frog((lcd_x/2)-frog_width/2, lcd_y-size, frog_width); // start at the bottom centre Frog *frogptr= &frog; // user will have control over this //printf("FROG POSITION, x: %d, y: %d", frog->x, frog->y) Frogger game(frogptr, size, lcd_x, lcd_y); // accepts the frogptr and graphics classes game.displayIntro(); // display the intro screen on boot up game.start(); // start the game loop } void conduct_test() { #ifdef LOGGER_MODE run_progression(); run_collision_detection(); run_row_func(); run_rect_params(); run_frog_test(); #endif }