Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Simple 2D snippet [w/ possible updates =)]

Author
Message
EFX
20
Years of Service
User Offline
Joined: 27th May 2004
Location: Fort Walton Beach
Posted: 12th Feb 2005 13:02 Edited at: 12th Feb 2005 13:17
I felt like going the route of 2D for a little while, see if my progess is better than in the 3D realm... well, it sure comes to me quicker [probably from my days programming stupid little graphical programs on my TI-83 ]. Well, here is what I've come up with so far, but this will definantly progress into new variants as I work [you will need to download the .png image file in the DL below =) ]:



You can use the "w,a,s" keys to turn and push foreward, and the Tab button will reset you to the begining position. Tell me what you think...

-
Ignore the avatar...

Attachments

Login to view attachments
DEANO
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United States
Posted: 13th Feb 2005 00:18
Thats pretty cool!

"When I examine myself and my methods of thought, I come to the conclusion that the gift of fantasy has meant more than my talent for absorbing positive knowledge."
-ALBERT EINSTEIN
EFX
20
Years of Service
User Offline
Joined: 27th May 2004
Location: Fort Walton Beach
Posted: 16th Feb 2005 14:00 Edited at: 16th Feb 2005 14:05
Here's the next incarnation of my 2d work.



You can use the arrowkeys to move the whole limbset, and here are the keys for rotation:
first limb = q,w
second limb = a,s
third limb = z,x

And I didn't end up using any remarks in this code, so if you have any question as to what some code is doing, just ask. And comments always welcome. You also need to DL the image file, sorry.

-
Ignore the avatar...

Attachments

Login to view attachments
EFX
20
Years of Service
User Offline
Joined: 27th May 2004
Location: Fort Walton Beach
Posted: 16th Feb 2005 14:04
I'm also starting to work on a little editor, so you can make limbsets and bodys with rotation and movement control so that limbs and bodys rotate and move together like in this snippit. =)

-
Ignore the avatar...
dj chainz
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: England
Posted: 4th Mar 2005 03:56
Its nice for what it does, but why not create variables for each limb - in future you may be able to add better ways of using these simple limbs, eg inverse kinematics.

I am the lead programmer at red spark studios
I also have a blog on how to make a game enginehttp://dbgame.blogspot.com
http://www.brazilianhotties.tk

Login to post a reply

Server time is: 2024-11-23 14:07:24
Your offset time is: 2024-11-23 14:07:24