mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-10-11 03:23:38 +00:00
Increment random seed in my keyboard loop.
This commit is contained in:
parent
50a7123381
commit
9eb99c4dc5
@ -6,6 +6,7 @@ const NULL = 0
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Fixed memory locations
|
// Fixed memory locations
|
||||||
|
const seed = $4E // Incremented continuously by montitor's rdkey routine
|
||||||
const displayEngine = $6000 // main mem (raycaster and tile engine at same location)
|
const displayEngine = $6000 // main mem (raycaster and tile engine at same location)
|
||||||
const expandVec = $2000 // aux mem (only for raycaster)
|
const expandVec = $2000 // aux mem (only for raycaster)
|
||||||
const fontEngine = $E000 // main mem
|
const fontEngine = $E000 // main mem
|
||||||
@ -749,6 +750,7 @@ end
|
|||||||
def getUpperKey()
|
def getUpperKey()
|
||||||
byte key
|
byte key
|
||||||
while ^keyboard < 128
|
while ^keyboard < 128
|
||||||
|
seed = seed+1
|
||||||
loop
|
loop
|
||||||
key = ^keyboard & $7F
|
key = ^keyboard & $7F
|
||||||
^keystrobe
|
^keystrobe
|
||||||
|
Loading…
Reference in New Issue
Block a user