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:
+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
|
||||
|
||||
Reference in New Issue
Block a user