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.

Work in Progress / Scribble - Box2D Physics Game - Engine Test

Author
Message
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 28th May 2009 16:05 Edited at: 28th May 2009 16:45
Scribble is a physics game i am creating using the Box2D Plugin (thanks to Erin Catto and Diggsey). The main concept will resolve around the player drawing shapes using the mouse that will interact with the world. Here is a demo of the drawing system. I would like you to test it and let me know if it is easy to use. Are there any changes you would like? (Support for drawing circles for instance) And are there any bugs you have found? Could you also let me know your FPS with varying amounts of shapes on screen.

If you get a crash just after drawing a shape. Please go to the exe folder before reloading the game and upload the text file "debug.txt" found in the text folder. This will enable to fix any bugs. Thank you.

Done:
Polygon shapes
Polylines
Convex decomposition
Line simplification
Disallowed self intersecting polygons

To Do / Known Bugs (Working on the bold one at the moment):
Disallow creation of a shape being drawn on an existing shape. (Any ideas for an elegant solution to this other then simply not creating the shape)
Merge vertices on polyline corners.
Line simplification can produce a self intersecting polygon, which will result in a crash.

Screenie: (Pretty boring i'm afraid)


Thank you, i look forward to hearing your views and criticisms

Exe attached to this post.

Attachments

Login to view attachments
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 28th May 2009 16:06
Screenie Post

Attachments

Login to view attachments
Deathead
18
Years of Service
User Offline
Joined: 14th Oct 2006
Location:
Posted: 28th May 2009 16:11
Reminds me of LittleBigPlanets level creator.



Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 28th May 2009 16:46
Thanks for the compliment! Little big planet was one of my inspirations behind this although i have never actually played it
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 28th May 2009 17:22
Nice to see box2d being put to good use

Would like to see what kind of a game this turns into

zzz
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: Sweden
Posted: 28th May 2009 19:02
It looks great, I like these kind of sandboxes!

Roxas
19
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 28th May 2009 19:14 Edited at: 30th May 2009 16:34
I had fun with this =)
I'd love to see how you did the drawing and mesh creation.

http://forum.thegamecreators.com/xt/xt_apollo_pic.php?i=1766195
Linky to avoid stretching

My FPS was fine until i started going mad with the shapes. But its accetable for Dark Basic Rendering engine.

Attachments

Login to view attachments
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 29th May 2009 00:10
Thanks for the comments, glad you enjoyed it

I'm reluctant to release code at the moment as some bits are messy to say the least! Going to give it a much of a rewrite when i fix the bugs before starting on the main game.

Here is the mesh creation code though, the polygons are all convex so they can be easily constructed out of triangles:

About this code: Are limbs efficient? Or should I aim for a single mesh (just one limb)

What would you like to see about the drawing code?
prasoc
16
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 29th May 2009 01:39
I have a good idea for if you make an object on another one: it could cut that shape into the object. It'd be quite hard to code but would be really cool once implemented!


Website coming soon!!
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 29th May 2009 12:58 Edited at: 29th May 2009 12:58
Hmm, that may be possible, could you elaborate? I assume you mean when you draw a line across an already formed polygon it splits the polygon into two (or more)?

What would happen if you drew two overlapping polygons?

P.S Roxas could you shrink your image, it stretches the thread for us with lower resolutions
Valle
18
Years of Service
User Offline
Joined: 10th Mar 2006
Location: in your girlfriends bed
Posted: 29th May 2009 14:16
wow, this rocks!


Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 30th May 2009 01:46
@Xlaydos
You could use the inbuild CSG commands for that, they should work fine for this kind of thing.

Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 31st May 2009 00:23
Ah, so you mean merge the polygon with the other one. That sounds like quite a good idea. I'll look into it!

Some news! I have mostly got the character controlling system working for the game. Look for a new post in the next couple of days outlining the game and maybe a new demo.
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 13th Jun 2009 21:01 Edited at: 13th Jun 2009 22:33
Okay, i have struggled to figure out any game concepts i could turn this in to, so i'm opening it up to you, any ideas?

P.S No crayon physics clones! Its been way overdone already!

Update: I have had an idea!

Basic Concept: You have to control your character to climb as high as possible by building towers and walkways. There will be static objects to help you, clouds, rocks. And monsters to hinder you.

Other ideas still very welcome!
djmaster
User Banned
Posted: 14th Jun 2009 10:13
Maybe implent global warming so u have to build a tornado resisting tower to climb to finish,or big flood that you have to run away from.

A.K.A. chargerbandit
[href]http://chargedstudios.ultimatefpsc.com/[href]
Serial Velocity
16
Years of Service
User Offline
Joined: 24th Aug 2008
Location:
Posted: 14th Jun 2009 15:09
How about a scenario where you have to create a vehicle that can transport a certain amount of lets say coconuts to the finish, the fastest vehicle that transports the most wins. You will need to create some form of propulsion and bolts to screw on the wheels.

AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 14th Jun 2009 16:15
Quote: "Disallow creation of a shape being drawn on an existing shape. (Any ideas for an elegant solution to this other then simply not creating the shape)"


I say you have two modes: add, and subtract. If 'add' mode is enabled any geometry that is drawn is added to the simulation. If you draw geometry that overlaps another shape, then that shape is merged/added to the other. If 'subtract' mode is enabled, then any geometry you draw is subtracted from the simulation. If you draw a shape that overlaps another then that shape is subtracted from the other. Hope that makes sense.

About a story, your concept sounds pretty fun (the one about climbing).

i like orange

Login to post a reply

Server time is: 2024-11-24 09:16:21
Your offset time is: 2024-11-24 09:16:21