New Zealand Story Level Format investigation

Started by Hungry Horace, December 19, 2009, 04:12:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hungry Horace

#30
errr...


     If LEVEL>0 and LEVEL<5 : Rem -- 1,2,3,4
     LEVELDATA=$18C80+((LEVEL-1)*$1600)

  Else If LEVEL>4 and LEVEL<9 : Rem -- 5,6,7,8
     LEVELDATA=$18C80+((LEVEL-1)*$1600)+$4200

  Else If LEVEL>8 and LEVEL<12 : Rem -- 9,10,11,12  
     LEVELDATA=$18C80+((LEVEL-1)*$1600)+($1E400)

  Else If LEVEL>11 and LEVEL<16 : Rem -- 13,14,15  
     LEVELDATA=$18C80+((LEVEL-1)*$1600)+($23C00)

  Else If LEVEL>15 and LEVEL<18 : Rem -- 16,17
     LEVELDATA=$18C80+((LEVEL-1)*$1600)+($30200)

  Else If LEVEL>17 and LEVEL<20 : Rem -- 18,19,20,21
     LEVELDATA=$18C80+((LEVEL-1)*$1600)+($3C800)

  Else If LEVEL>19 and LEVEL<22 : Rem -- 18,19,20,21
     LEVELDATA=$18C80+((LEVEL-1)*$1600)+($46200)

End If



you do the maths!  ;)
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


BooBoo


Hungry Horace

* Hungry Horace prods BooBoo

any progress mate?
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


BooBoo

Hi - Hopefuly ill have some time to look I was just going to say before the MAP data there 2 figures that change the dimensions of the level - length,height.
Im using Disk.1 as a ADF now - zeroed all data that isnt Level 1_1 -Map tiles etc witch has clearded a lot of data, If you were makeing a game wouldnt you place enemies @ X,Y? but I guess thats not the point just have to keep looking :)

Hungry Horace

Quote from: BooBoo on March 07, 2010, 01:01:26 PM
Hi - Hopefuly ill have some time to look I was just going to say before the MAP data there 2 figures that change the dimensions of the level - length,height.
<snip>
If you were makeing a game wouldnt you place enemies @ X,Y? but I guess thats not the point just have to keep looking :)

if you change the width/height the exit/start points move, so clearly they are placed as 'offsets' from some point rather than fixed X/Y values based on the maximum level-size, i suspect the same will be true of the enemies
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


Hungry Horace

editor, source and a whole host of other crap attached for BooBoo!
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


BooBoo

Thankyou Horace hopefuly I wont confuse my self to much :)

Hungry Horace

i cant rememebr how much i commented the source tbh
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff