-
Godot: Single Level 2D Platformer (Part 10) Publishing the Game
Finally we want to publish our game. Godot supports a wide range of platforms. See here for a guide for how to build an Android APK. Windows Export First we need to configure the tools to build the project. Go to Editor > Manage Export Templates… Select Download and Install This will download Export Templates […]
-
Creating a project on itch.io
First make sure that you have created an account on itch.io Click on your username and then Upload New Project Fill in the details. Note if you have an HTML5 export make sure that you have an index.html file and zip the folder up. This will mean that you can play the game in the […]
-
Godot: Single Level 2D Platformer (Part 9) Scoring
This guide will update a score (+2) if the player destroys an obstacle. If the player gets more than five points they have won / completed the level. In this example when the player completes the level the game will pause and a pop up will appear with the score and a button to return […]
-
Godot: Single Level 2D Platformer (Part 8) Main Menu
We will create a main menu scene to allow the user to start the game and see other details. There is a guide here to create a title screen that has been produced by Godot. Laying out the UI Create a new User Interface scene. Save the scene as MainMenu Add a CenterContainer node to […]
-
Godot: Single Level 2D Platformer (Part 7) Improving Graphics with Tilesets and Tilemaps
We have used basic placeholder graphics to incorporate some key features into our first level. However this is not very efficient and has resulted in an inconsistent art style (note art style is different to graphics). This continues on from part 6 but can be carried out earlier. We will use the an art pack […]
-
Godot: Single Level 2D Platformer (Part 6) Moving an obstacle between points
This continues on from part 5. Make sure that you have an obstacle or object that you wish to move. added to a scene. In this example there is a node / scene called Obstacle which we will use. Note you can only have one script attached to each node. Open the script called Obstacle.gd […]
-
Godot Style Guide
Godot uses a style guide based on Python. Generally snake_case should be used, except for classes and nodes where PascalCase should be used. Finally constant values should use CONSTANT_CASE Most important is that you are consistent with how you set out your code. Godot Style Guide Examples
-
Godot: Single Level 2D Platformer (Part 5) Jumping on the obstacle and destroying it (Mario style)
This tutorial continues form part 4 where we created an obstacle that kills a player. Layers and Masks In order to manage multiple collisions we need to customise the layers and masks. In Godot a Layer is used to group similar items together. We use masks to determine what layers each object / node can […]
-
Godot: Single Level 2D Platformer (Part 4) Obstacles and Enemies
This is part 4 of the Godot 2D Platformer series. This continues on from part 3. The focus of this part of the tutorial is to create a moving obstacle or enemy that will kill the player if the player touches the object. An extension to this will be to add a mechanic where if […]
-
Godot: Single Level 2D Platformer (Part 3) Player Death
This continues from Part 2 but can be completed using Part 1. We are going to add a Area 2D and sprite to the bottom of the Level1 scene that will be used to detect contact with the player. If the player touches the Area2D sprite the player will respawn. Open Level1. Add an Area2D […]