Ninja Ball!!

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
whitebear
Citizen
Posts: 86
Joined: Sun Mar 15, 2009 1:50 am

Ninja Ball!!

Post by whitebear »

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.
ninball.love
Ninja Ball Tech Demo 1
(9.85 KiB) Downloaded 353 times
If anyone knows if there is showcase for doing buttons (for mouse click) then link please.
User avatar
Kaze
Party member
Posts: 189
Joined: Sat Jul 19, 2008 4:39 pm
Location: Dublin, Ireland

Re: Ninja Ball!!

Post by Kaze »

The tapping is kind of annoying, but it's cool.
User avatar
Xcmd
Party member
Posts: 211
Joined: Fri Feb 13, 2009 10:45 pm

Re: Ninja Ball!!

Post by Xcmd »

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!
User avatar
whitebear
Citizen
Posts: 86
Joined: Sun Mar 15, 2009 1:50 am

Re: Ninja Ball!!

Post by whitebear »

Kaze wrote:The tapping is kind of annoying, but it's cool.
Kinda reminds my self of those old arcade runing games.

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.
User avatar
Xcmd
Party member
Posts: 211
Joined: Fri Feb 13, 2009 10:45 pm

Re: Ninja Ball!!

Post by Xcmd »

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!
User avatar
hdon
Prole
Posts: 36
Joined: Tue Mar 17, 2009 10:54 pm
Location: Pittsburgh, PA, USA
Contact:

Re: Ninja Ball!!

Post by hdon »

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...
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!

Also worth noting is an error Box2D throws whenever I click anywhere on the screen:
LOVE wrote:love: box2d/Source/Collision/Shapes/b2PolygonShape.cpp:161: b2PolygonShape::b2PolygonShape(const b2ShapeDef*): Assertion `edge.LengthSquared() > 1.19209290e-7F * 1.19209290e-7F' failed.
This LOVE 0.5 binary built with g++-3.3 (GCC) 3.3.6 (Debian 1:3.3.6-15)
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 3 guests