Wading into Godot - Episode 1
To recap - I am taking some time in-between gigs to learn about Godot, a 2D/3D game engine. My eventual intention is to use Godot to create some gamification of some coaching and operational practices to help people learn how to execute and improve planning engagement and collaboration.
I have some pretty big plans, but I think it will be wise to keep my ambitions low. I decided a good way to learn the tool and get familiar with the scripting language was to start with a 2D idea and to keep it single player. I decided to go with a 'jeopardy'-style game where a player can try to answer some trivia questions. The questions will be laid out in a grid with categories running horizontally and question values vertically.
Requirements for the game
Here is a quick synopsis of my game's minimal requirements:
Getting a 'head start'
I went to the Godot community and found a 'tile matching' game that seems quite similar to how I imagine the board will look. Here are the links to the asset library and the YouTube tutorial prepared by the author, ThinksWithGames.
This seemed like a great place to start! I thought I would pay particular attention to the following things:
Creating the initial board
Like the example program, I will use TileSet and TileMap to create the content of the gameboard. TileMap is a basic 2D component that we will use to create the game board. TileMap can render a few different styles of map, but we will be using a rectangular one. Each category will map to a column in the TileMap and each row will be a row of the board, including the category headers. TileSet is a factory that produces the images that can appear in the TileMap from an image file. We will create an icon set image in GIMP. I use the Filters>Map>Tile... feature of GIMP to create regular areas for each tile:
We will create eight different cells. One will be used for the logo, one each for the question score cards, one for a 'correct' answer indicator and one for an 'incorrect'. For our first try, we are going to get all the tiles in the TileMap to show the logo.
After a few minutes in GIMP, the tile set image is complete:
So, I need to create a 2D root and put a TileMap on it. I will also create a camera and align it with the TileMap using the same techniques as in the Tile matching game tutorial. Then, create a TileSet that will give us the graphics we will paint onto our TileMap when we add the new graphic. I will set it up to show the pristine board and call that an accomplishment.
There are still some things I have yet to figure out. I will leave these to the next episode:
This was a great read!