How to make the puzzle game

Get started with Godot by building a 2D puzzle game.

In this series, we’ll learn how to make simple 2d puzzle game, called as Watermelon game

https://github.com/liyupi/daxigua

合成大西瓜

Here’s a screenshot of the finished game

K-011.png

In each part of the series, we’ll build a piece of the game, adding features and explaining the process along the way.

Project settings

Untitled

Next, we need to set up some project-wide settings. Open Project Settings and check the “Advanced Settings” toggle in the upper-right

CREATING THE BALL SCENE

Untitled

Setting up the ball scene

A common part of the Godot workflow is creating scenes. As discussed earlier, a scene in Godot is nothing more than a collection of nodes. In most Godot projects, each game object is configured as a scene, with nodes that provide it with the desired functionality, and optionally some code to customize its behavior.

Choosing nodes

The first step is to decide what kind of node to start with. The first node you add to the scene is called the root node. A scene’s root node should generally be the one that primarily defines the game object’s behavior. Then you attach child nodes to add additional functionality.

So what should our game’s ball be? Let’s break down the requirements, and look at what nodes might be useful to meet them.

The ball needs to: