Forest Belton
ce2337d732
Partition tile data and add font
2 years ago
Forest Belton
e9b3a49054
Spawn player at map spawn
2 years ago
Forest Belton
de55992b18
Finish simplifying map API
2 years ago
Forest Belton
9a8394122f
Begin simplifying map API
2 years ago
Forest Belton
fd5911f42e
Complete map scrolling algorithm
2 years ago
Forest Belton
cb700c6b5d
Simplify map scrolling and break it further
2 years ago
Forest Belton
40479b0795
Generalize Y coordinate computation for wrapping
2 years ago
Forest Belton
9a45e20e8a
Remove unused LAST_SC* variables
2 years ago
Forest Belton
35dd130e5a
Fix map row computation when viewport wraps
2 years ago
Forest Belton
a3b48045c1
Begin trying to fix map
2 years ago
Forest Belton
7f2f61f062
Optimize scroll-up/down routines
In order to calculate the VRAM destination for these routines, we
need to compute the row pointer into map RAM:
```
HL = _SCRN0 + 32 * (SCY/8 - 2)
```
The obvious approach of shifting `SCY/8 - 2` right 5 times won't work
since overflow is possible. The first implementation worked by adding
`SCY/8-2` to `_SCRN0` 32 times in a loop.
Now, `SCY/8 - 2` is loaded into a 16-bit register and a 16-bit shift
macro is expanded 5 times before being added to HL.
The first approach took 802 * 4 cycles. This has been reduced to 25 * 4
cycles.
2 years ago
Forest Belton
b7a69f2fb0
Implement scrolling left
2 years ago
Forest Belton
12604b6d65
Implement scrolling right
2 years ago
Forest Belton
7efc3881cf
Write pending column data
2 years ago
Forest Belton
162c8cd88b
Small cleanup
2 years ago
Forest Belton
cf038bd0dd
Deduplicate code to write map rows
2 years ago
Forest Belton
fb6721f9cf
Finish implementing vertical scrolling
2 years ago
Forest Belton
f497fecbc9
Begin adding scroll-down support
2 years ago
Forest Belton
1c8f23b82f
Add old map copying routine back for map initialization
2 years ago
Forest Belton
77468702bc
Enqueue map row updates instead of writing immediately
2 years ago
Forest Belton
26abbfc32d
Fix vertical scrolling controls
2 years ago
Forest Belton
adc9cfa632
Almost have scrolling up working
2 years ago
Forest Belton
0e5cd549d3
Stub out scrolling implementation
2 years ago
Forest Belton
44b9b0fe99
Update VRAM pointer when copying row of zeros to map
2 years ago
Forest Belton
bcb1609897
Add support for loading 127x127 maps
2 years ago