projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fc2d7b
)
defs: changed y viewport to 6 tiles
master
origin/HEAD
origin/master
author
Lukas Krickl
<lukas@krickl.dev>
Mon, 30 Jun 2025 15:32:21 +0000
(17:32 +0200)
committer
Lukas Krickl
<lukas@krickl.dev>
Mon, 30 Jun 2025 15:32:21 +0000
(17:32 +0200)
src/defs.s
patch
|
blob
|
history
src/unit.s
patch
|
blob
|
history
diff --git
a/src/defs.s
b/src/defs.s
index 5ae90af1fc8d98c3a45a95b7093de1e5abb303cf..807ac3a8266f924f1971acc7065125a89648cb13 100644
(file)
--- a/
src/defs.s
+++ b/
src/defs.s
@@
-22,7
+22,7
@@
#define MAP_SIZE (MAP_W * MAP_H)
#define VIEW_PORT_TILES_W 6
-#define VIEW_PORT_TILES_H
5
+#define VIEW_PORT_TILES_H
6
; seed for the rng
; 8 bit signed int
diff --git
a/src/unit.s
b/src/unit.s
index 1989f290e1ea71ebeabb91e7a9b8ecdbed6b69c8..bb1152560e33a192a4fecf692f5ec4793cb69dbb 100644
(file)
--- a/
src/unit.s
+++ b/
src/unit.s
@@
-556,7
+556,7
@@
unit_scroll_center:
ld a, 0x05
@not_min_x:
- sub a, (MAP_W - VIEW_PORT_TILES_W
) / 2
+ sub a, (MAP_W - VIEW_PORT_TILES_W) / 2
mul16 a
ld [scroll_x], a