- Redistribució de gràfics en diferents GIFs
This commit is contained in:
@@ -13,7 +13,7 @@ int room_xp = -1;
|
||||
int room_xn = -1;
|
||||
int room_yp = -1;
|
||||
int room_yn = -1;
|
||||
int room_color = 5;
|
||||
int room_color = 9;
|
||||
|
||||
void restart()
|
||||
{
|
||||
@@ -44,6 +44,8 @@ void restart()
|
||||
void game::init()
|
||||
{
|
||||
draw::init("The Pool", 420, 240, 3);
|
||||
|
||||
room::init();
|
||||
surf = draw::loadSurface("test.gif");
|
||||
draw::setSource(surf);
|
||||
draw::loadPalette("test.gif");
|
||||
@@ -95,7 +97,7 @@ bool game::loop()
|
||||
actor::update(actor::getFirst());
|
||||
actor::reorder();
|
||||
|
||||
draw::cls(8);
|
||||
draw::cls(2);
|
||||
room::draw();
|
||||
actor::draw(actor::getFirst());
|
||||
room::draw2();
|
||||
@@ -114,7 +116,7 @@ bool game::loop()
|
||||
btn("DOOR XN:", 330, 65, room_xn, -1, 5);
|
||||
btn("DOOR YP:", 330, 80, room_yp, -1, 5);
|
||||
btn("DOOR YN:", 330, 95, room_yn, -1, 5);
|
||||
btn("COLOR:", 330, 110, room_color, 3, 7);
|
||||
btn("COLOR:", 330, 110, room_color, 5, 11);
|
||||
|
||||
draw::render();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user