Hehe. Well this is my first post and first thing I actually got into playable condition. Mostly just trying to get into the physics of the whole love engine.
Simply put, the following is first tech demo where you controll ball in two dimensional map.
Controls are:
Up key = Jump/wall jump and sticking on celling
Right and Left keys = tap (you'll be doing that alot) to add torgue (right is clock wise)
You can also add blocks by dragging them with mouse.
If anyone knows if there is showcase for doing buttons (for mouse click) then link please.
Ninja Ball!!
Re: Ninja Ball!!
The tapping is kind of annoying, but it's cool.
Re: Ninja Ball!!
I like it. You seem to have solved my difficulty in getting it to STOP jumping after the the up arrow key was pressed. Good stuff. I shall now look into your source code for the magic answers...
We don't borrow, we don't read, we don't rent, we don't lease, we take the minds!
Re: Ninja Ball!!
Kinda reminds my self of those old arcade runing games.Kaze wrote:The tapping is kind of annoying, but it's cool.
The stopping after jumping was foolishly done and could have been done better. basicly it just makes the table of mine go 1 when ever collision happens then make it zero when ever up is pressed. If it is 1 then the program will progress with the jumping.
Re: Ninja Ball!!
I saw that, yeah. Hmm... I'll have to think on that for awhile longer.
We don't borrow, we don't read, we don't rent, we don't lease, we take the minds!
Re: Ninja Ball!!
The answers aren't that magic. Try getting the ball underneath a platform and jumping up into it. Now keep hitting the jump button. You can fly! Obviously the code considers "landing" to have occurred if it collides with any static body, but this isn't really accurate!Xcmd wrote:I like it. You seem to have solved my difficulty in getting it to STOP jumping after the the up arrow key was pressed. Good stuff. I shall now look into your source code for the magic answers...
Also worth noting is an error Box2D throws whenever I click anywhere on the screen:
This LOVE 0.5 binary built with g++-3.3 (GCC) 3.3.6 (Debian 1:3.3.6-15)LOVE wrote:love: box2d/Source/Collision/Shapes/b2PolygonShape.cpp:161: b2PolygonShape::b2PolygonShape(const b2ShapeDef*): Assertion `edge.LengthSquared() > 1.19209290e-7F * 1.19209290e-7F' failed.
Who is online
Users browsing this forum: Amazon [Bot], Semrush [Bot] and 7 guests