mirror of https://git.sr.ht/~kikoodx/momento
New level (breach) and minor changes
This commit is contained in:
parent
db8ce73f53
commit
d27c73cf38
Binary file not shown.
|
@ -1,5 +1,6 @@
|
|||
#!/bin/sh
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Copyright (C) 2021 KikooDX
|
||||
|
||||
printf '/* SPDX-License-Identifier: GPL-3.0-or-later */\n'
|
||||
printf '#pragma once\n'
|
||||
|
|
|
@ -16,10 +16,10 @@ void level_draw(void)
|
|||
|
||||
y = level.height;
|
||||
while (y-- > 0) {
|
||||
const int draw_y = y * TILE_HEIGHT;
|
||||
x = level.width;
|
||||
while (x-- > 0) {
|
||||
const int draw_x = x * TILE_WIDTH;
|
||||
const int draw_y = y * TILE_HEIGHT;
|
||||
const Tile tile =
|
||||
level.data[x + y * level.width];
|
||||
img_render_vram(
|
||||
|
|
Loading…
Reference in New Issue