Godot 2D action adventure platformer demo

Source code available here https://github.com/Levrault/godot-2d-action-adventure-platformer-demo

Godot 2D action adventure platformer demo will be a "complete" tiny demo that should contains a lot of useful stuffs for people that want to learn Godot Engine and creating their own platformer. 

I hope it should answer the common question : Damn, how can I code that ? by only reading through code instead.


Features

Engine

  • A basic retro physic engine
  • Momentum hitting management (slow time with an ease-in-out effect)
  • Tilemap system
  • Music and sound management

Player


A pretty basic but complete character moveset

  •   Jump
  •  Double jump
  • Getting hit
  • Dying
  • Grounded combo attack
  • Air combo attack

GUI

  •   Cooldown bar between combo
  •    Healtbar
  •   Pause screen

Enemies

Slime: A vicious little creature that will follow you if you get to close to him  

  •   Will try to bite you if your too close  
  •  Multiples behaviours (idle, move, attack, getting hit, dying)

  
Eagle: A flying enemy that mind his own business, if you don't get in his path (simple movement path)

Interfaces


  • Main menu
  • Loading screen 
  • Credits Screen
  • Game Over screen

Keys

Move - wasd, arrow keys

Jump  - Space bar

Attack  - F, left mouse click

Pause - Escape

*Game is also playable with a game controller*

Credits

This demo was made by using those amazing assets (thanks to their author, that share their works like that). To use those assets, I recommend to directly download it from their official page and follow the license terms. 

Sprites

Animated Pixel Adventurer

Free Pixelart Platformer Tileset 

Sunny Land 2D Pixel Art Pack

Slime

Pixel health bar asset pack 

Fonts

pixelmix font

Arcade Classic Font

Sounds and musics

The Essential Retro Video Game Sound Effects Collection [512 sounds] By Juhani Junkala

Star Commander1 [music]

Obviously if an asset is not credited, contact me, I always try to credits the asset I use, but something I can just forget to do it.

Install instructions

Download zip files

Unzip

Play

Download

Download
sidescroller-demo-alpha-v092-linux.zip 42 MB
Download
sidescroller-demo-alpha-v092-window.zip 39 MB
Download
sidescroller-demo-alpha-v092-source.zip 28 MB

Development log

Comments

Log in with itch.io to leave a comment.

This is a really cool starting template I expect it to be very helpful thank you!

Notice there hasn't been any activity on the github for a while you still working on it at all or have you entirely moved over to other projects?

If you're still working on it and open to requests it would be awesome to see:

- Charge attack by holding the attack button.

&

- Ledge grab.




Hi, thanks for the replie :) but yes, I'm currently working on a new project and I don't have too much time to re-work on this project.

But if you want to add a charge attack, it should be pretty easy (if everything I done work like it suppose to). Create a new state, make it inehrit from Attack. With a timer and a new class variable on player.gd, you should be able create a charged attack. Edit attack-light, play with input event is_action_pressed and is_action_released to decide when you need to charge for the medium attack or the charge one. Like when action is pressed is activated, start the timer, if the player release before the end of the timer, transit to light attack, if not, transit to you new charge attack.

For the ledge grad, I created one a another project but wasn't happy about it, But if I remember right, I created an scene with all the ledge tile and added a area 2D on it. When the player collide with, I checked is current state (like in air or falling) and make it switch the the ledge crab state. Here a pretty easefull script (I took it for tetraforce, but he doesn't use it anymore so here a link from one of my project https://github.com/Levrault/godot-maximilien-adventure/blob/d44f80256bb92bde325ff4d91e67c8cbc0d1f092/factories/Factory.gd) that could help you add you new "ledge" scene without placing them by add but by keeping it in your tilemap.

I hope it help you.

The main character is flying forever when you jump!

Also, very beautiful and amazing game! Congrats!

it's seems that physic broke on certain linux version. Can you tell what is your hardware and if it happen everytime you'r jumping ? I didn't have time to check the issue but I will try to fix it if I can reproduce it :P

(1 edit)

I'm using Windows 10 (1803).

I can't tell if it happens everytime because once you jump the character flies out and you can't jump again... It seems like a simple boolean issue...

(+1)

Thanks, I was able to reproduce. I will fix it as soon has possible.

(+1)

I re-export the project on windows and the issue seems to be fix... maybe an export problem. I will do the same for the linux and mac version but I can't test them for the moment. Tell me if it's better now. Thanks.

It's fixed now... Very beautiful and amazing game! Congratulations!!!

I found another bug... It seems that an unnamed scene is trying to be loaded when you click on Retry after dying in the second stage

(+1)

Thanks you again for your feedbacks. I will made a fix in the next few days.

(1 edit)

Can we reach all Project Sources (codes)?

Yop juste right there https://github.com/Levrault/godot-2d-action-adventure-platformer-demo

Thanks!

I added the source code on the page, I think it will be more convenien

the jump and gravity on the linux version is broken.

Can you tell me which version of Linux did you use ? I test it on Linux Mint and pop is and everything looks fine. With more details I will be able to find a fix.

linux mint 19.1 Cinnamon.

Everything seems to work as intended on linux mint 18.2. I will try to create a virtual machine to test on 19.1. Can you tell me if you use the nvidia drivers, intel or amd ?

I think I fix the issue, it seems to been an export issue. I not able to test it on linux right now, but I think the jump physics will now work. Don't hesite to give me your feedback.