2022-12-31 12:14:57 +01:00
|
|
|
#include <gsa.h>
|
|
|
|
|
|
|
|
void init() {
|
|
|
|
sprites[0].tile = 2;
|
|
|
|
sprites[0].x = 10;
|
|
|
|
sprites[0].y = 10;
|
|
|
|
|
|
|
|
sprites[1].tile = 3;
|
|
|
|
sprites[1].x = 10;
|
|
|
|
sprites[1].y = 100;
|
2023-01-07 14:22:22 +01:00
|
|
|
|
2023-01-08 10:58:57 +01:00
|
|
|
maps[0].tiles[20][1] = 1;
|
2022-12-31 12:14:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void tick() {
|
|
|
|
sprites[0].x += 1;
|
|
|
|
sprites[1].x += 2;
|
2023-01-07 14:22:22 +01:00
|
|
|
maps[0].scrollx += 1;
|
2022-12-31 12:14:57 +01:00
|
|
|
}
|