Skip to content

Commit

Permalink
Started bringing level 2 content in. When zone level is changed, make…
Browse files Browse the repository at this point in the history
… sure the level bounding boxes are immediately refreshed.
  • Loading branch information
cadaver committed Jul 22, 2015
1 parent 8a02442 commit 4a39d77
Show file tree
Hide file tree
Showing 21 changed files with 42 additions and 9 deletions.
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ clean:
hessian.d64: loader.prg main.pak options.bin emptysave.bin savelist.bin logo.pak \
music00.pak music01.pak music02.pak music03.pak music04.pak music05.pak music06.pak music07.pak \
music08.pak music09.pak music10.pak music11.pak music12.pak script00.pak \
charset00.pak charset01.pak level00.pak level01.pak \
charset00.pak charset01.pak charset02.pak level00.pak level01.pak level02.pak \
common.pak item.pak weapon.pak playert.pak playerb.pak playerta.pak playerba.pak
makedisk hessian.d64 hessian.seq HESSIAN___________HE_2A 12

Expand Down Expand Up @@ -253,6 +253,12 @@ charset01.pak: charset01.s memory.s bg/world01.blk bg/world01.bli bg/world01.chi
pchunk2 bg/world01.blk charset01_2.pak
filejoin charset01_1.pak+charset01_2.pak charset01.pak

charset02.pak: charset02.s memory.s bg/world02.blk bg/world02.bli bg/world02.chi bg/world02.chc bg/world02.chr
dasm charset02.s -ocharset02_1.bin -f3
pack2 charset02_1.bin charset02_1.pak
pchunk2 bg/world02.blk charset02_2.pak
filejoin charset02_1.pak+charset02_2.pak charset02.pak

level00.pak: bg/world00.map bg/world00.lvo bg/world00.lva
pack2 bg/world00.lvo level00_1.pak
pack2 bg/world00.lva level00_2.pak
Expand All @@ -265,6 +271,12 @@ level01.pak: bg/world01.map bg/world01.lvo bg/world01.lva
pchunk2 bg/world01.map level01_3.pak
filejoin level01_1.pak+level01_2.pak+level01_3.pak level01.pak

level02.pak: bg/world02.map bg/world02.lvo bg/world02.lva
pack2 bg/world02.lvo level02_1.pak
pack2 bg/world02.lva level02_2.pak
pchunk2 bg/world02.map level02_3.pak
filejoin level02_1.pak+level02_2.pak+level02_3.pak level02.pak

common.pak: spr/common.spr
pchunk2 spr/common.spr common.pak

Expand Down
Binary file modified bg/world.lvo
Binary file not shown.
Binary file modified bg/world.lvz
Binary file not shown.
Binary file modified bg/world.map
Binary file not shown.
20 changes: 14 additions & 6 deletions bg/world.s
Original file line number Diff line number Diff line change
@@ -1,34 +1,42 @@
NUMLEVELS = 2
NUMLEVELS = 3

WORLDSIZEBLOCKS = 3130
WORLDSIZEBLOCKS = 3330

WORLDSIZESCREENS = 52
WORLDSIZESCREENS = 56

LVLDATAACTTOTALSIZE = 2
LVLDATAACTTOTALSIZE = 3

LVLOBJTOTALSIZE = 2
LVLOBJTOTALSIZE = 3

lvlDataActBitsStart:
dc.b 0
dc.b 1
dc.b 2
lvlDataActBitsLen:
dc.b 1
dc.b 1
dc.b 1
lvlObjBitsStart:
dc.b 0
dc.b 1
dc.b 2
lvlObjBitsLen:
dc.b 1
dc.b 1
dc.b 1
lvlLimitL:
dc.b 0
dc.b 18
dc.b 18
lvlLimitR:
dc.b 18
dc.b 29
dc.b 34
dc.b 24
lvlLimitU:
dc.b 17
dc.b 20
dc.b 12
lvlLimitD:
dc.b 34
dc.b 30
dc.b 18
Binary file modified bg/world01.blk
Binary file not shown.
Binary file modified bg/world01.lvo
Binary file not shown.
Binary file modified bg/world01.map
Binary file not shown.
Binary file added bg/world02.bli
Binary file not shown.
Binary file added bg/world02.blk
Binary file not shown.
2 changes: 2 additions & 0 deletions bg/world02.chc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
         
        OOOI  
Expand Down
Binary file added bg/world02.chi
Binary file not shown.
Binary file added bg/world02.chr
Binary file not shown.
Binary file added bg/world02.ctm
Binary file not shown.
Binary file modified bg/world02.lvo
Binary file not shown.
Binary file added bg/world02.lvr
Binary file not shown.
Binary file modified bg/world02.map
Binary file not shown.
2 changes: 2 additions & 0 deletions hessian.seq
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ playerb.pak 07
playerba.pak 08
level00.pak 10
level01.pak 11
level02.pak 12
charset00.pak 18
charset01.pak 19
charset02.pak 1a
music00.pak 20
music01.pak 21
music02.pak 22
Expand Down
2 changes: 2 additions & 0 deletions hessiand81.seq
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ write 05 @8:
write 06 @8:
write 10 @8:
write 11 @8:
write 12 @8:
write 18 @8:
write 19 @8:
write 1a @8:
write 20 @8:
write 21 @8:
write 22 @8:
Expand Down
9 changes: 7 additions & 2 deletions script00.s
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@ logoScreen = chars+608
logoColors = chars+608+168
titleTexts = chars+608+168*2

START_LEVEL = $00 ;Warehouse
START_X = $6780
;START_LEVEL = $00 ;Warehouse
;START_X = $6780
;START_Y = $1d00

START_LEVEL = $01 ;Courtyard
START_X = $0280
START_Y = $1d00


org scriptCodeStart

dc.w TitleScreen
Expand Down
2 changes: 2 additions & 0 deletions tools/worlded.c
Original file line number Diff line number Diff line change
Expand Up @@ -875,11 +875,13 @@ void zone_mainloop(void)
{
zonelevel[zonenum]++;
zonelevel[zonenum] &= NUMLEVELS-1;
calculatelevelorigins();
}
if (k == KEY_K)
{
zonelevel[zonenum]--;
zonelevel[zonenum] &= NUMLEVELS-1;
calculatelevelorigins();
}
if (k == KEY_U)
{
Expand Down

0 comments on commit 4a39d77

Please sign in to comment.