Refine bomb logic
This commit is the first of a series introducing hidden logic through non-obvious commits. I'm mentioning it in the commit messages in the hopes no one reads these so I can sneak it in without leaving no record at all ;)
This commit is contained in:
parent
d725310239
commit
f87e7f3f76
2 changed files with 34 additions and 35 deletions
|
@ -67,7 +67,12 @@
|
|||
(when (< x width)
|
||||
(let* ((i (+ (* y width) x))
|
||||
(pos (vec2 (* x tile-width) (* y tile-height)))
|
||||
(id (bytevector-u16-native-ref background (* i 2)))
|
||||
(id (case (bytevector-u16-native-ref background (* i 2))
|
||||
((120) 81)
|
||||
((121) 82)
|
||||
((122) 85)
|
||||
((123) 105)
|
||||
(else => (lambda (v) v))))
|
||||
(tile (make-level-tile pos id)))
|
||||
(vector-set! background* i tile))
|
||||
(x-loop (1+ x))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue