The VG Resource

Full Version: GameDev Event 1: February 2012
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(02-02-2012, 05:42 PM)Kakashifan Wrote: [ -> ]Just an idea, can we do something w/ physics next?
Because magnetism totally isn't physics at all.
I think he means physics-based. Like, realistic kinetics and such.

It would be cool to do, but everyone would probably just use some port of Box2D.
Still applies to magnetism. Noone said you couldn't make the movement realistic.
Yeah, I know. But stuff like dynamic objects, boxes, wheels, etc, I don't think anyone's expecting that right now.
Better to walk before you run. Rigid/soft body physics are hell of a lot more complicated than this.
Nah, I just mean like collisions and stuff. idk what's its really called, so I just used physics.
Seems like a neat exercise and it might give me some cool ideas for some of my other projects.
Hey gays.

I failed.

You can take a look at my quick attempt here. Took me way longer than it should have, but I had to figure out a lot of very basic things as I've never made a Java window application before.
Source code is included, though there really isn't much to see. I didn't really bother optimizing anything.

[Image: bUums.png]
The cyan rectangle is movable, all others are fixed. You can add magnets everywhere and the movable one can move through them. Red magnets attract the cyan one, blue magnets repel it.
Clicking the left or middle button places/removes magnets, right mouse button changes the polarity of the movable one. I actually mixed up left and right in the comments and ReadMefix'd Ouch!
Uhm yeah. Nothing to be proud of, but I really should be learning for my exams.
Pages: 1 2