mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-12-26 04:32:05 +00:00
Hacked high-bits on tree sprite graphic.
This commit is contained in:
parent
e07b7ac078
commit
fa1bb0bd3c
@ -95,17 +95,15 @@ class PackPartitions
|
|||||||
def result = rows[0..63].collect { it[0..31] }
|
def result = rows[0..63].collect { it[0..31] }
|
||||||
|
|
||||||
// Kludge alert! strip high bits in Building6.
|
// Kludge alert! strip high bits in Building6.
|
||||||
if (imgEl.@name == "Building6") {
|
if (imgEl.@name == "Forestville building 1 - 3d") {
|
||||||
println "hacking high bits in Building6"
|
println "hacking high bits in texture 'Forestville building 1 - 3d'"
|
||||||
def rowNum = 0
|
def rowNum = 0
|
||||||
result = result.collect { row ->
|
result = result.collect { row ->
|
||||||
rowNum++
|
rowNum++
|
||||||
row.collect { pix ->
|
row.collect { pix ->
|
||||||
(rowNum <= 25 && pix == 3) ? 7 :
|
(rowNum <= 48 && pix >= 4) ? pix-4 :
|
||||||
(rowNum <= 25 && pix == 0) ? 4 :
|
(pix == 4) ? 0 :
|
||||||
(rowNum > 25 && pix == 4) ? 0 :
|
(pix == 5) ? 1 :
|
||||||
(rowNum > 25 && pix == 7) ? 3 :
|
|
||||||
(rowNum > 25 && pix == 5) ? 0 :
|
|
||||||
pix
|
pix
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,13 +30,13 @@ MAX_SPRITES = 16 ; max # sprites visible at once
|
|||||||
NUM_COLS = 63
|
NUM_COLS = 63
|
||||||
|
|
||||||
; Starting position and dir. Eventually this will come from the map
|
; Starting position and dir. Eventually this will come from the map
|
||||||
;PLAYER_START_X = $180 ; 1.5
|
PLAYER_START_X = $280 ; 1.5
|
||||||
;PLAYER_START_Y = $380 ; 3.5
|
PLAYER_START_Y = $380 ; 3.5
|
||||||
;PLAYER_START_DIR = 4
|
PLAYER_START_DIR = 4
|
||||||
|
|
||||||
PLAYER_START_X = $53E ; special pos for debugging
|
;PLAYER_START_X = $53E ; special pos for debugging
|
||||||
PLAYER_START_Y = $67A
|
;PLAYER_START_Y = $67A
|
||||||
PLAYER_START_DIR = $A
|
;PLAYER_START_DIR = $A
|
||||||
|
|
||||||
; Useful constants
|
; Useful constants
|
||||||
W_LOG_256 = $0800
|
W_LOG_256 = $0800
|
||||||
|
Loading…
Reference in New Issue
Block a user