Author Topic: Cadan v2 - Progress Thread  (Read 40844 times)

0 Members and 1 Guest are viewing this topic.

Offline Geekboy1011

  • The Oneironaut
  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2031
  • Rating: +119/-2
  • Dream that Awakening dream
    • View Profile
Cadan v2 - Progress Thread
« on: April 29, 2013, 10:00:38 pm »
Ok here we go. This is the new thread for progress on Cadan v2

Current Revision:v0.004a
Stable Download:N/A
Beta Download:N/A
Repository:https://bitbucket.org/CFD_LLC/cadan

Progress Summary:
    Pre-2013-03-28 The year or so up to this point Cadan got its internal overhaul and was brought up to the 3 page app it is now.
    2013-03-29 Cadan Got a repo on bitbuket managed by geekboy
    2013-04-01 Debugging toggles added to make our lifes easier.
    2013-04-01 Rearanged the player files for my sanity
    2013-04-07 Got a completily new playershot handler mych saner and easier to work with
    2013-04-08 Started importing player routines. New setup is nice :D
    2013-12-14 Started working on this again. Another restructure. Might actually move some where this time



This title post will only be edited with major updates from here on out. The information at the top will always be to the latest available versions.
Want to help ask! want to comment and say its awesome go for it! want to lurk and be boring NO CHERRIES FOR YOU >:F
« Last Edit: December 14, 2013, 09:24:23 pm by Geekboy1011 »

Offline Link

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 152
  • Rating: +7/-3
  • Well excuse me princess!
    • View Profile
Re: Cadan v2 - Progress Thread
« Reply #1 on: April 29, 2013, 10:34:22 pm »
Well, for Iambian's arrival stuff like slowing down; I found these for the project:

http://www.red3d.com/cwr/steer/
http://www.red3d.com/cwr/steer/Arrival.html
http://www.red3d.com/cwr/steer/gdc99/

Offline Iambian

  • Coder Of Tomorrow
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 739
  • Rating: +216/-3
  • Cherry Flavoured Nommer of Fishies
    • View Profile
Re: Cadan v2 - Progress Thread
« Reply #2 on: April 30, 2013, 11:41:23 pm »
Post indicating my appoval of this thread or something like that. Not entirely sure but I was asked to post something.


Right. Edit: Need info on fast algorithm for finding distance of a line given two coordinate pairs x,y

EDIT: Modification to this post has absolutely nothing to do with the topic. In fact, I was just looking for an old post that no one (should) notice to slip this file in as an attachment. Because other file hosting services suck. Shh... (NOTE: This file is source for an interrupt-based audio driver)
« Last Edit: December 20, 2013, 07:06:30 pm by Iambian »
A Cherry-Flavored Iambian draws near... what do you do? ...

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Cadan v2 - Progress Thread
« Reply #3 on: May 01, 2013, 02:23:29 am »
Edit: Need info on fast algorithm for finding distance of a line given two coordinate pairs x,y

What's the range of x,y? 0-63?
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Geekboy1011

  • The Oneironaut
  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2031
  • Rating: +119/-2
  • Dream that Awakening dream
    • View Profile
Re: Cadan v2 - Progress Thread
« Reply #4 on: May 01, 2013, 09:57:47 am »
I believe so Calc.  Assume yes I'll text him later to confirm 

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Cadan v2 - Progress Thread
« Reply #5 on: May 01, 2013, 01:53:25 pm »
Isn't the squared distance (X-Xyou)^2+(Y-Yyou)^2 ? I actually use that in IkarugaX, it's pretty fast and accurate.

Offline Link

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 152
  • Rating: +7/-3
  • Well excuse me princess!
    • View Profile
Re: Cadan v2 - Progress Thread
« Reply #6 on: May 01, 2013, 05:44:29 pm »
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.

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Cadan v2 - Progress Thread
« Reply #7 on: July 10, 2013, 09:06:58 pm »
I expect Cadan v2 to support the bullet patterns and quantities detailed in the attached gif.

* Runer112 runs
« Last Edit: July 10, 2013, 10:04:49 pm by Runer112 »

Offline Geekboy1011

  • The Oneironaut
  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2031
  • Rating: +119/-2
  • Dream that Awakening dream
    • View Profile
Re: Cadan v2 - Progress Thread
« Reply #8 on: July 10, 2013, 10:04:01 pm »
uhhhmmmm in theory it does >.> <.<

Offline Geekboy1011

  • The Oneironaut
  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2031
  • Rating: +119/-2
  • Dream that Awakening dream
    • View Profile
Re: Cadan v2 - Progress Thread
« Reply #9 on: December 14, 2013, 09:23:07 pm »
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
« Last Edit: December 14, 2013, 09:57:01 pm by Geekboy1011 »

Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1953
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
Re: Cadan v2 - Progress Thread
« Reply #10 on: December 15, 2013, 03:25:17 am »
Erm WTF, that makes my mouth drool. -.-
Looking amazing tho
« Last Edit: December 15, 2013, 03:25:35 am by annoyingcalc »
This used to contain a signature.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Cadan v2 - Progress Thread
« Reply #11 on: December 15, 2013, 05:23:49 am »
Now this is what you call awesome-looking! :D

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Cadan v2 - Progress Thread
« Reply #12 on: December 15, 2013, 05:43:43 am »
O.O progress ! Looks so amazing :w00t:

Offline TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: Cadan v2 - Progress Thread
« Reply #13 on: December 15, 2013, 05:45:53 am »
yay  :D  these routines look very cool
AXE/asm programmer - unleash the power of z80 //C++//C

epic 3D things http://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_BasicsTheory.html

Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: Cadan v2 - Progress Thread
« Reply #14 on: December 15, 2013, 01:03:07 pm »
Geekboy: Thanks for letting me sit in on that coding session the other day and thanks for helping me understand flags!

(ya know, I'm actually quite interested in helping with this project now ;))
I am Bach.