Page 1 of 1

Abandoned ECS platformer

Posted: Fri Jul 08, 2022 2:33 pm
by marclurr
A few months ago I started working on a platformer that I was planning to have done and dusted in about 40 hours of work. Long story short I procrastinated by spending too much time on minutiae, including rewriting the entities system using Tiny ECS, until I eventually got bored and stopped working on it about a month ago.

It seems a shame for it to completely go to waste so I thought it might be a useful resource, especially for anybody interested in using ECS. While it's by no means a beautiful example, most of the resources I found on the subject were so contrived they didn't help, so hopefully this might give someone some inspiration on their own projects.

Source code (and a bit more background) is available on Github: https://github.com/marclurr/love2d-platformer

I've attached a build of it in case anyone is interested, I'd be interested to hear feedback if anybody has a go. The controls might seem slightly odd but are:

Keyboard:

Menus:
W and S to move up and down
J to accept
Esc to go back

Game:
A and D to move
J to jump (hold S to "jump down" through certain platforms)
K to attack
Esc to pause

Xbox style controller:

Menus:
Up/Down on D-pad to move up and down
A to accept
B to go back

Game:
Left/Right on D-pad to move
A to jump
X to attack
Start to pause

abandoned.love
(86.66 KiB) Downloaded 189 times

Re: Abandoned ECS platformer

Posted: Sat Jul 09, 2022 8:13 am
by KayleMaster
Looks great, movement is natural, plays very smooth, I'd say you have a solid base here. The art looks great too.

Re: Abandoned ECS platformer

Posted: Tue Jul 12, 2022 1:24 pm
by marclurr
KayleMaster wrote: Sat Jul 09, 2022 8:13 am Looks great, movement is natural, plays very smooth, I'd say you have a solid base here. The art looks great too.
Thanks for the feedback. I am quite happy with how the player movement came out, though there are a few minor bugs (which I know how to fix, I just didn't bother). The 'engine' is pretty much at the point where I just need to churn out some levels and enemies. I'll probably pick it back up at some point and make something with it but for now I'm pretty burnt out on the project. I've started messing around with Pico-8 as it gives me less room to waste time on bloat.

It's also worth mentioning the lovely art is by o_lobster on itch.io

Re: Abandoned ECS platformer

Posted: Tue Jul 12, 2022 3:20 pm
by Gunroar:Cannon()
Ah, you should add some screenshots :3

Re: Abandoned ECS platformer

Posted: Tue Jul 12, 2022 3:52 pm
by marclurr
Ah, you should add some screenshots :3
I made a short video of some gameplay footage


Re: Abandoned ECS platformer

Posted: Tue Jul 12, 2022 7:15 pm
by Gunroar:Cannon()
Wow, even better :awesome: . Though screenshots can still help for quick glances while scrolling through.