mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
improved mountains heights #86
This commit is contained in:
@@ -23,6 +23,7 @@ RoundsTable .by 10,20,30,40,50
|
||||
flyDelayTable .by 255,150,75,35,1
|
||||
seppukuTable .by 255, 45,25,15,9
|
||||
mountainsDeltaTableH .by 0,1,3,5,7
|
||||
mountainsDeltaTableL .by $1f, $7f, $ff, $7f, $ff
|
||||
;------------------------------------------------
|
||||
LevelNameBeginL ; begins of level names
|
||||
.by <NamesOfLevels,<(NamesOfLevels+10),<(NamesOfLevels+20)
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
screenheight = 200
|
||||
screenBytes = 40
|
||||
screenwidth = screenBytes*8 ; Max screenwidth = 512!!!
|
||||
margin = 48 ;mountain drawing Y variable margin
|
||||
margin = 40 ;mountain drawing Y variable margin
|
||||
display = $1010 ;screen takes $2K due to clearing routine
|
||||
MaxPlayers = 6
|
||||
maxOptions = 8 ;number of all options
|
||||
|
||||
+4
-1
@@ -1028,6 +1028,8 @@ getrandomY ;getting random Y coordinate
|
||||
sta ydraw
|
||||
sta yfloat+1
|
||||
mva #0 yfloat ;yfloat equals to e.g. 140.0
|
||||
mva #screenheight-margin-5 yfloat+1
|
||||
sta ydraw
|
||||
|
||||
; how to make nice looking mountains?
|
||||
; randomize points and join them with lines
|
||||
@@ -1036,9 +1038,10 @@ getrandomY ;getting random Y coordinate
|
||||
|
||||
NextPart
|
||||
lda random
|
||||
and mountainDeltaL
|
||||
sta delta ; it is after the dot (xxx.delta)
|
||||
lda random
|
||||
and mountainDelta ;(max delta)
|
||||
and mountainDeltaH ;(max delta)
|
||||
sta delta+1 ; before the dot (delta+1.delta)
|
||||
|
||||
lda random
|
||||
|
||||
BIN
Binary file not shown.
+4
-1
@@ -127,7 +127,10 @@ OptionsFinished
|
||||
;8th option (how aggressive are mountains)
|
||||
ldy OptionsTable+7
|
||||
lda mountainsDeltaTableH,y
|
||||
sta mountainDelta
|
||||
sta mountainDeltaH
|
||||
lda mountainsDeltaTableL,y
|
||||
sta mountainDeltaL
|
||||
|
||||
|
||||
rts
|
||||
;--------
|
||||
|
||||
+2
-1
@@ -15,7 +15,8 @@ TanksNames ; DO NOT ZERO - ticket #24
|
||||
OptionsTable .by 0,1,2,2,0,1,3,2
|
||||
RoundsInTheGame .by 10 ;how many rounds in the current game
|
||||
seppukuVal .by 75
|
||||
mountainDelta .by 3
|
||||
mountainDeltaH .by 3
|
||||
mountainDeltaL .by $ff
|
||||
;----------------------------------------------------
|
||||
skilltable ; computer controlled players' skills (1-8), 0 - human (no cleaning, ticket #30)
|
||||
.DS [MaxPlayers]
|
||||
|
||||
Reference in New Issue
Block a user