- Comencem a treballar en les habitacions
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "jinput.h"
|
||||
#include <SDL2/SDL.h>
|
||||
#include "actor.h"
|
||||
#include "room.h"
|
||||
|
||||
draw::surface *surf;
|
||||
actor::actor_t *box;
|
||||
@@ -15,6 +16,8 @@ void game::init()
|
||||
draw::loadPalette("test.gif");
|
||||
game::setUpdateTicks(64);
|
||||
|
||||
room::load(0,3);
|
||||
|
||||
box = actor::create({16,16,0}, {8,8,4}, {64,0,32,24}, {0,24});
|
||||
box->flags = FLAG_MOVING;
|
||||
box->movement = MOV_Z;
|
||||
@@ -43,13 +46,7 @@ bool game::loop()
|
||||
actor::reorder();
|
||||
|
||||
draw::cls(8);
|
||||
for (int y=0;y<8;++y)
|
||||
{
|
||||
for (int x=0;x<8;++x)
|
||||
{
|
||||
draw::draw(148+x*16-y*16,76+x*8+y*8,32,15,0,1);
|
||||
}
|
||||
}
|
||||
room::draw();
|
||||
actor::draw(actor::getFirst());
|
||||
//draw::draw(148+sx*2-sy*2, 67+sx+sy,24,24,24,0);
|
||||
draw::render();
|
||||
|
||||
Reference in New Issue
Block a user