Abandoned ECS platformer
Posted: Fri Jul 08, 2022 2:33 pm
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
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