38 lines
717 B
C
38 lines
717 B
C
#include "gamepad.h"
|
|
#include "gsa_map.h"
|
|
#include "gsa_text.h"
|
|
#include <gsa.h>
|
|
|
|
void init() {
|
|
|
|
i32 x, y;
|
|
|
|
for(y = 0; y < 11; ++y) {
|
|
for(x = 0; x < 19; ++x) {
|
|
maps[0].tiles[x][y] = 0x1000;
|
|
}
|
|
}
|
|
|
|
for(y = 0; y < 11; y += 2) {
|
|
maps[0].tiles[0][y] = 0x1101;
|
|
maps[0].tiles[1][y] = 0x1102;
|
|
maps[0].tiles[0][y + 1] = 0x1201;
|
|
maps[0].tiles[1][y + 1] = 0x1202;
|
|
|
|
maps[0].tiles[17][y] = 0x1101;
|
|
maps[0].tiles[18][y] = 0x1102;
|
|
maps[0].tiles[17][y + 1] = 0x1201;
|
|
maps[0].tiles[18][y + 1] = 0x1202;
|
|
}
|
|
|
|
maps[1].half_tile = true;
|
|
font = 0x1010;
|
|
gsa_write_text(1, 7, 3, "Game Skunk Advance!!! <3");
|
|
gsa_map_clear(0);
|
|
}
|
|
|
|
void tick() {
|
|
maps[0].scrollx -= input.x_dir;
|
|
maps[0].scrolly -= input.y_dir;
|
|
}
|