Platformer Skeleton in LOVE

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
andrew.207
Prole
Posts: 19
Joined: Sat Jun 08, 2013 7:27 am
Location: Melbourne, Australia

Platformer Skeleton in LOVE

Post by andrew.207 »

Hey guys, I made a fairly simple platformer skeleton.

I did this tutorial a while when I was learning love, this is based loosely on that code (that's why the colours are the same).

I rewrote most of it, now it handles collisions, has a nice smooth camera and plays and feels nicer.

It's basic, but it is a good skeleton for anyone who wants to whip up a very quick 2D platformer who might not want to use ATL.

There's one bug I've seen in the state machine, but it doesn't affect gameplay AT ALL so ceebs.

Image

Controls:
  1. ARROW KEYS to move
    X to jump
    ` to toggle debug mode
    TAB to toggle gravity
    (once debug is on)
    WASD to force-movements (will go through walls, funny stuff might happen)
    HOLD Z + WASD (will force-move you ONE unit upon key release)
Attachments
Custom Platformer.love
(14.38 KiB) Downloaded 237 times
http://www.atunnecliffe.com/
Bitcoins? 1LHn9yaErCakYD2iGwCyLungiC7ACxRUW8
User avatar
micha
Inner party member
Posts: 1083
Joined: Wed Sep 26, 2012 5:13 pm

Re: Platformer Skeleton in LOVE

Post by micha »

Looks very solid. Good work.

When I hold down the jump button, the player keeps bouncing. I would expect the player to jump only once, when the jump button is pressed. You can change that by using the love.keypressed callback instead of love.keyboard.isDown.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests