@@ -56,9 +56,9 @@ Type TAppOutput
56
56
Global boneLength:Float [BONES]
57
57
'Precalc for drawing
58
58
Global TILESIZE:Int = 24
59
- Global angle:Int [BONES,FRAMES ]
60
- Global xBone:Int [BONES,FRAMES ]
61
- Global yBone:Int [BONES,FRAMES ]
59
+ Global angle:Int [BONES,20 ]
60
+ Global xBone:Int [BONES,20 ]
61
+ Global yBone:Int [BONES,20 ]
62
62
'Variables
63
63
Global angA:Float
64
64
Global angB:Float
@@ -94,7 +94,7 @@ Type TAppOutput
94
94
'Flip(1)
95
95
doDraw = True
96
96
EndFunction
97
-
97
+
98
98
'Sprite rotation
99
99
Function FLawOfCosines (ab:Float ,bc:Float ,ca:Float )
100
100
angA = ACos((ca^ 2 + ab^ 2 - bc^ 2 )/(2 *ca*ab))
@@ -121,7 +121,7 @@ Type TAppOutput
121
121
yBone[ b,f] = y
122
122
x:- Sin(angle[ b,f] )*upperLength 'Position of knee
123
123
y:+ Cos(angle[ b,f] )*upperLength 'Could just use another angle of the triangle though, but I (arne) didn't
124
- angle[ b+ 1 ,f] = angC + angB + 180 'It looks correct on screen so I'm just gonna leave it at that!
124
+ angle[ b+ 1 ,f] = angC + angB + 180 'It looks correct on screen so i'm (arne) just gonna leave it at that!
125
125
xBone[ b+ 1 ,f] = x
126
126
yBone[ b+ 1 ,f] = y
127
127
Next
@@ -397,8 +397,8 @@ While True
397
397
Case TAppGUI.editSettingsFramesTextbox
398
398
Local userInputValue:Int = GadgetText(TAppGUI.editSettingsFramesTextbox).ToInt()
399
399
'Foolproofing
400
- If userInputValue > 7 Then
401
- TAppOutput.FRAMES = 7
400
+ If userInputValue > 20 Then
401
+ TAppOutput.FRAMES = 20
402
402
ElseIf userInputValue <= 0 Then
403
403
TAppOutput.FRAMES = 1
404
404
Else
0 commit comments