-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInsScreen.cpp
More file actions
55 lines (48 loc) · 1.71 KB
/
InsScreen.cpp
File metadata and controls
55 lines (48 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**
* Copyright (C) Kevin J. Estevez (kenystev) and Luis C. Isaula (lisaula)
*
* GNU GENERAL PUBLIC LICENSE Version 2
* The licenses for most software are designed to take away your
* freedom to share and change it. By contrast, the GNU General Public
* License is intended to guarantee your freedom to share and change free
* software--to make sure the software is free for all its users. This
* General Public License applies to most of the Free Software
* Foundation's software and to any other program whose authors commit to
* using it.
*/
#include "InsScreen.h"
#include "RaceGear.h"
InsScreen::InsScreen(Game * game)
{
this->game = game;
}
void InsScreen::show(){
fondo = game->rosalila_graphics->getTexture(assets_directory+"Instrucciones.png");
bu = game->rosalila_graphics->getTexture(assets_directory+"BACK_UP.png");
bd = game->rosalila_graphics->getTexture(assets_directory+"BACK_DWN.png");
back_button = new BackButton(130,40,bu,bd,game->rosalila_graphics,game);
}
void InsScreen::render(RosalilaGraphics * painter){
game->rosalila_graphics->draw2DImage(fondo,fondo->getWidth(),fondo->getHeight(),0,0,1,0,false,0,0,Color(255,255,255,255),0,0,false);
if(back_button->clicked(game->receiver->getMouse_X(),game->receiver->getMouse_Y(),game->receiver->isLeftClickDown()))
game->setScreen(((RaceGear*)game)->MENU);
back_button->draw(game->receiver->getMouse_X(),game->receiver->getMouse_Y(),game->receiver->isLeftClickDown());
}
void InsScreen::pause (){
}
void InsScreen::resume (){
}
void InsScreen::hide (){
delete fondo;
delete bd;
delete bu;
}
void InsScreen::dispose (){
}
InsScreen::~InsScreen()
{
delete fondo;
delete bd;
delete bu;
delete back_button;
}