Some documentation
|
@ -0,0 +1,53 @@
|
||||||
|
Here's the player jumping, at 30fps.
|
||||||
|
I wanna replicate the arc pretty closely, so here's the numbers I got from the pictures (roughly
|
||||||
|
counted pixels, I didn't measure scientifically):
|
||||||
|
|
||||||
|
FRAME Y
|
||||||
|
0 6
|
||||||
|
1 7
|
||||||
|
2 2
|
||||||
|
3 6
|
||||||
|
4 3
|
||||||
|
5 2
|
||||||
|
6 3
|
||||||
|
7 1
|
||||||
|
8 0
|
||||||
|
9 0
|
||||||
|
10 -2
|
||||||
|
11 0
|
||||||
|
12 -2
|
||||||
|
13 -2
|
||||||
|
14 -2
|
||||||
|
15 -4
|
||||||
|
16 -4
|
||||||
|
17 -3
|
||||||
|
18 -4
|
||||||
|
|
||||||
|
so the jump total raises the player up by ~30px.
|
||||||
|
based on this guesswork I'm gonna smooth it out to:
|
||||||
|
|
||||||
|
FRAME Y
|
||||||
|
0 6
|
||||||
|
1 6
|
||||||
|
2 2
|
||||||
|
3 6
|
||||||
|
4 3
|
||||||
|
5 3
|
||||||
|
6 3
|
||||||
|
7 1
|
||||||
|
8 0
|
||||||
|
9 0
|
||||||
|
10 -2
|
||||||
|
11 0
|
||||||
|
12 -2
|
||||||
|
13 -2
|
||||||
|
14 -2
|
||||||
|
15 -4
|
||||||
|
16 -4
|
||||||
|
17 -4
|
||||||
|
18 -4
|
||||||
|
|
||||||
|
same value, raises up player by 30px
|
||||||
|
SAM_FALLSPEED is 4, so after frame 16 the jump is officially done.
|
||||||
|
honestly I'm pretty confident in the fact that my counting was off (and maybe bad framerate), but
|
||||||
|
oh well. maybe this'll feel natural enough.
|
After Width: | Height: | Size: 242 KiB |
After Width: | Height: | Size: 248 KiB |
After Width: | Height: | Size: 249 KiB |
After Width: | Height: | Size: 248 KiB |
After Width: | Height: | Size: 248 KiB |
After Width: | Height: | Size: 249 KiB |
After Width: | Height: | Size: 257 KiB |
After Width: | Height: | Size: 258 KiB |
After Width: | Height: | Size: 258 KiB |
After Width: | Height: | Size: 259 KiB |
After Width: | Height: | Size: 260 KiB |
After Width: | Height: | Size: 244 KiB |
After Width: | Height: | Size: 257 KiB |
After Width: | Height: | Size: 254 KiB |
After Width: | Height: | Size: 256 KiB |
After Width: | Height: | Size: 256 KiB |
After Width: | Height: | Size: 255 KiB |
After Width: | Height: | Size: 255 KiB |
After Width: | Height: | Size: 252 KiB |
After Width: | Height: | Size: 252 KiB |
After Width: | Height: | Size: 246 KiB |
After Width: | Height: | Size: 248 KiB |
After Width: | Height: | Size: 244 KiB |
After Width: | Height: | Size: 242 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 248 KiB |
After Width: | Height: | Size: 249 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 128 KiB |
After Width: | Height: | Size: 7.4 KiB |
After Width: | Height: | Size: 6.7 KiB |