Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
How to Create a 2D Game in Your Phone with Godot (No PC)
Rating: 4.7 out of 5(7 ratings)
1,055 students

How to Create a 2D Game in Your Phone with Godot (No PC)

Create games from start to finish without a PC!
Created byMarco Paoletta
Last updated 1/2025
English

What you'll learn

  • Create a project from start to finish
  • Develop 100% using a phone
  • Code in GDScript
  • Add different game mechanics

Course content

1 section10 lectures1h 25m total length
  • Setting Up The Project2:52

    install Godot editor four from the play store, create a new tutorial 2d project, import fonts and art, and set the display window dimensions and stretch mode to canvas items.

  • Creating The Player Scene4:33

    Create a new Area2D scene and name it player. Add an animated sprite with sprite frames, establish walk animation, set scale to 0.5, attach a capsule collision shape, and save.

  • Player UI7:22

    This lecture shows how to code a player in a 2d game, adding movement, animation, and collision detection with a custom script and a mobile four-direction UI.

  • Coding The Player Movement9:58

    Learn to implement player movement in Godot by connecting up, down, left, and right button signals to the player script, controlling velocity, and moving the player based on directional inputs.

  • Animating And Rotating The Player9:18

    Drive player animation and rotation in a Godot 2D game by using velocity to play walk animations, flip the sprite for direction, and clamp the position to screen bounds.

  • Preparing For Collisions3:06

    Prepare the player to detect collisions with Godot signals, creating a hit signal and connecting body entered to emit it; disable the collision shape and implement a start function.

  • Creating The Enemy10:04

    Create simple enemy mobs that spawn at screen edges, move straight, and disappear off screen, using a rigid body 2d, animated sprite with fly, swim, and walk animations.

  • The Main Game Scene16:06

    Create the main game scene in Godot with timers to spawn mobs, increment score, and a move path with grid snap for edge spawns.

  • Heads Up Display17:50

    Create a heads up display overlay with a canvas layer in Godot, including a score label, message label, start button, timer, for get ready and game over states.

  • Finishing Up4:29

    Configure a color rect background, add two audio stream players for music and game over, loop the music, and trigger play/stop on new game and game over for mobile play.

Requirements

  • None, just a mobile phone able to run Godot

Description

It's a comprehensive tutorial designed to guide aspiring game developers through the process of creating a 2D mobile game using the Godot Engine. This course is tailored for beginners who are eager to delve into mobile game development without prior extensive experience.

Throughout the course, participants will gain hands-on experience in building a complete 2D game from the ground up. The curriculum covers essential aspects of game development, including:

  • Understanding the Godot Interface: Familiarizing oneself with the Godot editor and its powerful tools, laying a solid foundation for efficient game development.

  • Project Structuring: Learning how to organize and manage game projects effectively, ensuring scalability and ease of maintenance.

  • Player Character Development: Implementing player movement, sprite animations, and controls tailored for mobile devices.

  • Enemy Design and Behavior: Creating enemy characters with defined behaviors, including random spawning and movement patterns.

  • Game Mechanics Implementation: Developing core gameplay elements such as scoring systems, collision detection, and game-over conditions.

  • User Interface (UI) Design: Constructing intuitive and responsive interfaces suitable for mobile gaming, enhancing user experience.

By the end of the course, students will have developed a fully functional 2D mobile game, equipped with the knowledge to tackle more complex projects in the future. The course emphasizes practical application, encouraging learners to apply the concepts taught to create unique and engaging games.

Who this course is for:

  • People wanting to create games without a PC