HOME | DD

axcho — Engine Prototype 03

Published: 2009-09-04 02:02:14 +0000 UTC; Views: 9489; Favourites: 39; Downloads: 2305
Redirect to original
Description Engine Prototype 03 - by axcho on September 3, 2009

This is my third prototype of the Dejeweled physics engine . Now the engine supports rod, pin, and door constraints, in two flavors: rigid and springy. And believe me, those springy door constraints weren't easy to make.

This ragdoll is just like the one from Engine Prototype 02 , with a staff instead of a sword. The new door constraints let the ragdoll hold the staff at a certain angle, instead of just spinning freely.

Click the window to start. Then use the arrow keys to move the stick figure around.

left - rotate left
right - rotate right
up - raise arms
down - spread legs

For slow motion, hold down the space bar. Click the meters to adjust the physics settings.

Let me know if you find anything interesting.

Dejeweled Development Blog

Physics Prototypes by axcho
Related content
Comments: 32

lolmakerofdoomlol [2019-09-11 06:39:57 +0000 UTC]

mid air dance- max everything but put gravity at 0, and then mash the buttons

👍: 0 ⏩: 0

StarBlazer2155 [2013-07-03 11:55:24 +0000 UTC]

Im donnatello! :TMNT 4:

👍: 0 ⏩: 1

Applebloom5555 In reply to StarBlazer2155 [2013-07-19 22:30:12 +0000 UTC]

Dont you mean ?

👍: 0 ⏩: 1

StarBlazer2155 In reply to Applebloom5555 [2013-07-20 06:34:19 +0000 UTC]

yes i meant  

 

 

 

 

 

👍: 0 ⏩: 0

SuperNeko64 [2010-03-28 22:03:55 +0000 UTC]

If you set up everything to the max and press the arrow keys randomly, he starts dancing the get down meme. xD

👍: 0 ⏩: 0

devgem [2009-09-14 13:32:39 +0000 UTC]

i just thought of something u could do 4 no 4!, u could do two swords,one in each hand! if u dont like it then cool but plz think about it!

👍: 0 ⏩: 1

axcho In reply to devgem [2009-09-17 07:31:49 +0000 UTC]

Heh, I like it 'cause it's easy, but I think there are a lot of people who want something new. For the next one I'm going to try making a tool for making your own structures.

👍: 0 ⏩: 0

devgem [2009-09-14 13:27:55 +0000 UTC]

yay!
no.3
i played all of these!
they cool!

👍: 0 ⏩: 1

axcho In reply to devgem [2009-09-17 07:30:51 +0000 UTC]

👍: 0 ⏩: 0

Nomisluck [2009-09-14 06:05:37 +0000 UTC]

dude, whatever your doing, its awesome! Coding takes some serious skill.

👍: 0 ⏩: 1

axcho In reply to Nomisluck [2009-09-17 07:34:11 +0000 UTC]

Thanks, I'll try to keep doing it.

👍: 0 ⏩: 0

TylerelyT [2009-09-07 03:40:24 +0000 UTC]

When you press the left key to spin him left he spins left but if you let go and the stick becomes inverted so do the controls.

👍: 0 ⏩: 1

axcho In reply to TylerelyT [2009-09-09 21:05:14 +0000 UTC]

Yeah, to spin you have to switch between left and right. I could have made it spin just by holding down one arrow, but the movement looks really unnatural that way.

Thanks for the feedback!

👍: 0 ⏩: 0

N3XUZ [2009-09-07 03:06:11 +0000 UTC]

Okay, this is officially the COOLEST THING EVER.

👍: 0 ⏩: 1

axcho In reply to N3XUZ [2009-09-09 21:06:57 +0000 UTC]

Haha, thanks! I hope my next release will be able to top that achievement.

Did you try the other ones yet?

👍: 0 ⏩: 1

N3XUZ In reply to axcho [2009-09-10 16:30:11 +0000 UTC]

I did after finding this one, but I think I still like this one best

👍: 0 ⏩: 1

axcho In reply to N3XUZ [2009-09-10 16:56:48 +0000 UTC]

Ah, cool. Glad you like it then.

👍: 0 ⏩: 1

N3XUZ In reply to axcho [2009-09-10 17:01:14 +0000 UTC]

I assume it's all done in AS3, correct?

👍: 0 ⏩: 1

axcho In reply to N3XUZ [2009-09-10 21:29:38 +0000 UTC]

Heh, it's in AS2, actually. The full game will be AS3 though.

👍: 0 ⏩: 1

N3XUZ In reply to axcho [2009-09-11 17:49:51 +0000 UTC]

AWESOME! Hey, major props to you, I only know AS2 and thought I was the only person who hadn't swapped to AS3 yet. Question, how did you achieve the mirrored effect? I'd normally just learn by ripping apart your code, but you strike me as being cool enough to actually help a guy out (Yes, I have no shame.)

👍: 0 ⏩: 1

axcho In reply to N3XUZ [2009-09-11 20:37:48 +0000 UTC]

Ha, well I've been using both now. I just started playing with the flixel engine for AS3 and I think it will work great, at least for pixel-y games: [link]

For physics-based games I'll eventually port my own Dejeweled Engine over to AS3.

The mirror effect is really simple, actually. Every frame I draw the stick figure into a movie clip with LineTo commands. Then I draw the stick figure upside-down with more LineTo commands in another movie clip, which has its _yscale set to 0.5 so it's squished. That's it!

👍: 0 ⏩: 1

N3XUZ In reply to axcho [2009-09-12 05:36:31 +0000 UTC]

Ahhh, I should have realized it was just lineTo commands. Useful, but if you were to apply custom graphics overtop I imagine it would be rather difficult to have them work the same way

👍: 0 ⏩: 1

axcho In reply to N3XUZ [2009-09-12 21:03:48 +0000 UTC]

Not necessarily. If you're placing movie clips you could just have two copies of each movie clip. Or if you can't do it any other way, you could always copy the bitmap data and color it gray...

👍: 0 ⏩: 1

N3XUZ In reply to axcho [2009-09-12 22:23:55 +0000 UTC]

Which would be difficult to do in AS2.

👍: 0 ⏩: 1

axcho In reply to N3XUZ [2009-09-12 23:35:23 +0000 UTC]

No more so than AS3 - you can access bitmap data in Flash 8 or higher.

👍: 0 ⏩: 1

N3XUZ In reply to axcho [2009-09-12 23:37:41 +0000 UTC]

AS3 has shiny custom functions and stuff for it though! At least, a cleaner format to access them. I dunno if there is or not in AS2 lol

👍: 0 ⏩: 1

axcho In reply to N3XUZ [2009-09-13 05:36:59 +0000 UTC]

Yeah, probably. Well, let me know if you try it out yourself! I'd be glad to help if you run into any problems.

👍: 0 ⏩: 0

TomPField [2009-09-04 07:56:52 +0000 UTC]

nice

👍: 0 ⏩: 1

axcho In reply to TomPField [2009-09-04 09:04:36 +0000 UTC]

thanks

👍: 0 ⏩: 0

Unrated-Hearts [2009-09-04 02:07:39 +0000 UTC]

You gotta LOVE it to beleive it !!! This Prototype is Awsome .

👍: 0 ⏩: 1

axcho In reply to Unrated-Hearts [2009-09-04 02:10:34 +0000 UTC]

Haha, thank you!

Did you try the other ones yet? [link]

👍: 0 ⏩: 1

Unrated-Hearts In reply to axcho [2009-09-04 02:12:31 +0000 UTC]

Not yet, but I love theM

👍: 0 ⏩: 0