A rouge-like rpg, heavily inspired on the binding of isaac. Running on a FRDM-K64F Mbed board. C++.

Dependencies:   mbed MotionSensor

main.cpp

Committer:
el17sm
Date:
2019-04-15
Revision:
5:75b6cb06372a
Parent:
4:d1aeb131e533
Child:
6:104c2506237e

File content as of revision 5:75b6cb06372a:

/*
ELEC2645 Embedded Systems Project
School of Electronic & Electrical Engineering
University of Leeds
Name: Steven Mahasin
Username: el17sm
Student ID Number: 201192939
Date: 11/04/2019
*/

#include "main.h"

int main()
{
    lcd.init();
    lcd.setContrast(0.45);
    gamepad.init();

    while(1){
        
        move_player();
        
        lcd.clear();
        lcd.drawSprite(0,0,48,84,(int *)level_map[1]);
        lcd.drawSpriteTransparent(player_pos[0],player_pos[1]-7,12,6,(int *)player[face][(int)(moving*(counter/10)%4)]);
        lcd.refresh();
        wait_ms(1000/60);
        counter++;
        
    }
}