A platformer of sorts

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
Jimanzium
Party member
Posts: 103
Joined: Sun Jun 03, 2012 2:39 pm
Contact:

A platformer of sorts

Post by Jimanzium »

I've been working on a platformer that loads levels off of an image. So far everything works fine but I'm not sure what to actually do with it. If anyone has any ideas please do tell.

If you want to try it out the green blocks are spawn points, spikes are spikes. Press 'r' to respawn, arrow keys or a + d to move and space to jump.
Attachments
Platform.love
(3.61 KiB) Downloaded 188 times
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: A platformer of sorts

Post by Davidobot »

Wow, that's actually really useful for a lot of things actually. Do you mind if I modify this code? :awesome:
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
Jimanzium
Party member
Posts: 103
Joined: Sun Jun 03, 2012 2:39 pm
Contact:

Re: A platformer of sorts

Post by Jimanzium »

Feel free, as long as you re-upload so I can take a look ;)
User avatar
veethree
Inner party member
Posts: 877
Joined: Sat Dec 10, 2011 7:18 pm

Re: A platformer of sorts

Post by veethree »

Huh, I've played around with loading levels based off images in the past too, Used it in my snake clone.

You could use elseif in your load_map function instead of all the if's, Don't think it'll make any huge differences, But it'll look cleaner.
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: A platformer of sorts

Post by Davidobot »

Jimanzium wrote:Feel free, as long as you re-upload so I can take a look ;)
Thanks! I'll be sure to credit you!
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
Jimanzium
Party member
Posts: 103
Joined: Sun Jun 03, 2012 2:39 pm
Contact:

Re: A platformer of sorts

Post by Jimanzium »

I think there are worse parts that could be cleaner :)
Post Reply

Who is online

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