Calculator Community > CaDan SHMUP

Cadan v2 - Progress Thread

<< < (2/8) > >>

Matrefeytontias:
Isn't the squared distance (X-Xyou)^2+(Y-Yyou)^2 ? I actually use that in IkarugaX, it's pretty fast and accurate.

Link:
As for Iambian's idea to quickly slow down and stop, I think I found the solution.

You start off with the 3 physics equations:
1) v^2 = u^2 + 2*a*d
2) v = u + a*t
3) d = u*t + .5*a*(t^2)

Where u = starting velocity (px per cycle)
v = final velocity (px per cycle)
d = distance from target
a = acceleration (- is deceleration)
t = time (so # of cycles??)

For your case you know u, v and d, and need to know a, so use formula (1), rearranged into:
a = (v^2 - u^2) / (2 d).

Then you can use (2) and (3) can then be used to calculate v and d at each time until arrival.

Runer112:
I expect Cadan v2 to support the bullet patterns and quantities detailed in the attached gif.

* Runer112 runs

Geekboy1011:
uhhhmmmm in theory it does >.> <.<

Geekboy1011:
So a little update some eye candy with some routines Iambian developed for me.








all of these are functional because Iambian developed a routine that moves a players bullet based on a given angle. This routine will be used rather extensively among other characters this will be used for the dragons fire which needs to be re-coded as we made some structural changes that fixed some issues we were having but broke some old code

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version