Join for FREE | Take the Tour Lost Password?
[x]

deviantART

 
About Me Member Deviously Deviant theNEHZMale/Netherlands Recent Activity Deviant for 2 Years
Needs Premium Membership
Statistics 2 Deviations
10 Comments
224 Pageviews

Why do you do this flash? WHY!?

Mon Nov 2, 2009, 6:36 AM
Got to love flash. As if working with angles can't be disorientating enough already:
Flash works with the y-axis downwards and with the angles clockwise positive. Alright, that goes well together, provided you don't get lost along the way.
Flash works with the y-axis as orientation for angles: 0 degrees and you look downwards. Fine, everything just turned 90 degrees. (clockwise)
Flash works with angles in degrees, but it's math functions work in radians.
Flash stores it's sprite's orientation from -179 to 180, something I didn't figure out untill I noticed a (face == 270) boolean always returned false.

This is addition to the problems I brought onto myself:
The player object has a weapon as child. The child of a sprite uses the rotation of that sprite as it's y-axis.
The weapon has a varying distance and rotation from it's own centerpoint (what it sees as x=0,y=0)

I'm trying to determine the position from a ball bouncing through the level in comparison to the position of the player's weapon. This means cross-class calculations and somewhere I made a mistake that causes my calculations to get slightly different awnsers when looking into a specific direction.
YOY

I could upload the game and tell you to never face right, but that kind of beats the purpose of this excersize. I know I won't finish this today.


Good habits?
I have the habit to set up objects in such a way that it allows easy expansion later on. That game I uploaded? It's really easy to add new levels. Just make a new class extending a specific other class and add it to the levellist array, it will automaticly read it.
I doubt I'll ever work on that program again.
The game I'm currently working on? I made it so that I can add other weapons than the sword. Will I ever do that? I doubt it.
Still, working according to this method, while more time consuming, allows easier tracking of some bugs. And if I do decide to revisit an older project, at least I won't be completely without clue. (just mostly)
The big advantage of this habit probably won't show till I get to work on larger projects, or projects worked on by multiple people. That reminds me that I've underdocumented the game I'm currently working on...

  • Mood: Confused

deviantID

No deviantID yet.

Devious Info

  • Current Residence: Zaanstad, top van de randstad
  • Interests: Game Development and writing (even if I suck at writing)
  • Favourite genre of music: Game music, quick classical and anything that's not rap/blues/too whiny.
  • Favourite poet or writer: Zhan and Pratchett
  • Operating System: Windows
  • MP3 player of choice: Cheap
  • Favourite game: Secret of Mana, zelda series, blizzard games
  • Favourite gaming platform: pc and Wii
  • Tools of the Trade: Editors, I love them

deviantART Community Board

[x]

Comments


:iconnamyi:
Thanks for adding me to your Watcher list! :iconblushingplz:

Wolverines for the win XD

--
Turn your sadness into kindness and your uniqueness into strength!

:clone: :manhug:
:iconthenehz:
Wolverines for the win :D

Perhaps we need a symbol for that.
:iconnamyi:
Yeah Wolverines are pwnage :lmao:

We definitely need a symbol! Our own logo :eager:

--
Turn your sadness into kindness and your uniqueness into strength!

:clone: :manhug:
:iconcrystalfishltd:
Thanks very much, a pleasure to have you watching my gallery.

:iconalohagirl1::iconalohagirl2:
:iconalohagirl3::iconalohagirl4:

--
Stu B Doo.

Wanna help Annyseed? Vote for her up to once a day in the ongoing race to the top, at Top Webcomics! Big thanks to those that do. VOTE FOR ANNY!
:iconthenehz:
Thanks for providing the content to watch :)
:iconcrystalfishltd:
lol, no problem. :)

--
Stu B Doo.

Wanna help Annyseed? Vote for her up to once a day in the ongoing race to the top, at Top Webcomics! Big thanks to those that do. VOTE FOR ANNY!
:iconraodaozao:
NEEEEEEEEEEEEEEEEEEEEEEEEEHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHZZZZZZZZZZZZZZZZZZZZZZZZZZZ
:iconthenehz:
Looks like me adding you hasn't gone unnoticed o.o
You even added me to your watch, I'm not producing anythign though :P

I've been following your blogging for a while, only myspace doesn't always allow me to respond. Now I can just respond on your deviant page!
:iconraodaozao:
I see all. :paranoid:

Yeah, Boyd said he had trouble making comments too... MySpace has been turning itself into Facebook lately and it's not very nice.

Site Map