[game] Some notes on dimensions

This commit is contained in:
John Doty 2023-07-07 07:53:42 -07:00
parent 9d04541875
commit d5684b7da9
2 changed files with 219 additions and 251 deletions

View file

@ -6,6 +6,10 @@ import { new_v2, vadd, vmul, vnorm } from "./vector";
let bot_sprite: number | undefined = undefined;
// Note zelda overworld is 16x8 screens
// zelda screen is 16x11 tiles
// from a feeling point of view this is sufficient, apparently :D
export function init() {
print("Hello world!");
@ -56,7 +60,7 @@ export function draw() {
// ...it gets resolved here?
use_texture(bot_sprite);
spr(robo_pos.x, robo_pos.y, 32, 32, 0, 0);
spr(robo_pos.x, robo_pos.y, 32, 32, 0, 0, 32, 32);
}
// print("FRAME TIME:", since_last_frame());
}