HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Code Improvements?

01-29-2009, 06:34 PM#1
TriggerHappy
This is my jumping system, i'm not submitting it because i'm afraid it's not going to be worthy for the database, and probably isn't. Anyways code improvements!

Expand JASS:

download
01-29-2009, 10:02 PM#2
Anitarf
Your math is very confusing, I'm sure there are better ways to do the unit movement. You don't account for varying terrain heights either at the start and end of the jump or inbetween. The way you loop through the structs is kinda ugly (not to mention oyu're doing it wrong so instances can increase more and more as the game goes on), you should maintain an array of active structs instead. things like the height of the jump aren't calibratable when they should be.
01-29-2009, 10:08 PM#3
TriggerHappy
Sorry updated my code to version 1.3, i'll work on those suggestions.

Also any reason why adding exitwhen i > instances and d.active == true to the loop makes it lag incredibly?

EDIT:

Quote:
Also any reason why adding exitwhen i > instances and d.active == true to the loop makes it lag incredibly?

Doesn't matter, if d.u == null does the same thing as d.active.
01-29-2009, 10:46 PM#4
Bobo_The_Kodo
I already posted the improvements on the thread at clan mapz >>