You are currently viewing the European Union version of the site.
Would you like to switch to your local site?
13 MIN READ TIME

GODOT

Create a video game in the Godot engine

Following on from last issue’s introduction to the development engine Godot, Calvin Robinson shows you how to develop your own game.

Godot is an open source video game development engine. In last issue we looked at the engine platform and produced our first application: a 2D interface that displayed Hello World. This issue we’re going to use Godot to develop our first video game.

We’re going to start off with a dodge ‘em game, reminiscent of Asteroids, with enemies swarming a two-dimensional environment and the player having to avoid them. However, we won’t have a weapon to begin with, so to score any points we’ll have to survive for the longest amount of time possible, without colliding with any enemies.

Two-dimensional games are simpler to create, so we’ll start there, before jumping in to a three-dimensional environment.

Let’s begin with a brand new project in Godot. Assuming that you followed along from last issue, launch Godot. Otherwise, make sure you have everything installed.

OUR EXPERT

Calvin Robinson is a subject matter expert at the National Centre for Computing Education, and a computer science teacher.

Full Steam for Godot

The easiest way of getting Godot downloaded, installed and kept up to date is by using Steam. A simple sudo apt-get update && sudo apt-get install steam should get Steam sorted on a Debian-based distro. There’s also a .deb installer available at SteamPowered.com. Run Steam for the first time, accept the terms and conditions and then install the font packages. Sign up and sign in, and you’re ready to go.

On the Steam store page, search for Godot, install it for free and it’ll appear in your library. Depending on your Steam settings, Godot should now stay up to date at all times. Use the library to launch Godot. You can add a desktop and/or start menu shortcut by right-clicking and going to Properties.

Godot editing suite is incredibly intuitive by design.

In the Godot Project Manager create a new Project, setting the window resolution to 480x720 by going to Project Settings>Display, Window. We’ll also want to set the Stretch option to 2D Mode and tick Keep on the aspect ratio to ensure nothing goes off-kilt and the aspect ratio remains in place at all times. We’re developing a game in portrait mode, and we don’t want things to be shifted too much at any point.

We’ll need the dodge assets from Godot’s wiki page (https://docs.godotengine.org): download them from https://bit.ly/38RFPgS. This package includes all the sprites and sound effects we’ll need, so that we can focus on building the game itself, rather than spending time creating such assets. Of course, if you want to edit these or create your own assets from scratch to give your version of the game a personal touch to it, feel free to do so. Everything is open source.

Unlock this article and much more with
You can enjoy:
Enjoy this edition in full
Instant access to 600+ titles
Thousands of back issues
No contract or commitment
Try for €1.09
SUBSCRIBE NOW
30 day trial, then just €11,99 / month. Cancel anytime. New subscribers only.


Learn more
Pocketmags Plus
Pocketmags Plus

This article is from...


View Issues
Linux Format
September 2020
VIEW IN STORE

Other Articles in this Issue


In This Issue
Backups are dead, long live backups!
No one needs to back up any more. Yes, after
REVIEWS
AMD Ryzen 3 3300X
We always enjoy looking back at the past with processors,
Crucial P2 500GB
On the hunt for a new SSD for your system?
EndeavourOS 7.15.2020
An intermediate, rolling release, distro for anyone wanting a taste
BunsenLabs Lithium
A lightweight Debian-based distribution that leverages OpenBox, Tint2 and Compton
Tropico 6
Tropico 6 is a great game for people watching. It’s
ROUNDUP
Privacy distributions
Specialist distributions such as the ones featured in this Roundup
BACK UP LIKE CLOCKWORK!
There are two types of people in this world: those
INTERVIEW
PRESSURE VESSEL
Simon McVittie is a Debian developer and a consultant for
IN-DEPTH
LibreOffice 7
These very words have been written with LibreOffice 7.0 and
Pi USER
KEEPING ALL CHANNELS OPEN
Cerys Lock is the organiser of the Stafford Raspberry Jam
Self-hosting Raspberry Pi cluster of Pis
We get the feeling that large sections of the population
Radio PiPi
Part of the Pi’s appeal is the physical interaction necessary
Pi in Space
We’ve mentioned multiple times over the past year the various
4tronix Picon Plus
An advanced motor controller for the Raspberry Pi that provides
How to run Arch Linux on the Pi
Jonni Bidwell thinks he can hear the unmistakable sound of
CODING ACADEMY
Recreate the Game of Life simulator
Each issue we’re building a retro video game. In this
REGULARS AT A GLANCE
LibreOffice looks to protect long-term viability
There was a brief internet drama back in July when
Tor Project under threat
You may never have heard of the US Open Technology
Encrypted Data Act
Conspiracy theorists often say governments love spying on their citizens
RING THE PLUMBER!
A key improvement that PipeWire brings over PulseAudio is that
THAT’S NO WOLF
You may think of MongoDB as a wolf hiding in
Linux Foundation to track and trace Covid-19
Ireland’s Health Service Executive (HSE) has announced that it’s donating
Proton 5.0
It’s a regular theme that we cover the latest milestone
Manjaro changes
The Treasurer of the Manjaro project has stepped down over
Distro watch
Lovers of reptile-based distros will love the latest spin of
WANTS AND NEEDS
We’ve just had an email from a client who wants
LINUX IS THE TOPS
Linux turned 29 shortly after we went to press. The
Kernel Watch
Linus Torvalds announced the release of Linux 5.8, which has
ONGOING DEVELOPMENT
Steven Price (Arm) posted a patch enabling MTE (memory tagging
Answers
Got a burning question about open source or the kernel?
Mailserver
Write to us at Linux Format, Future Publishing, Quay House, The
Symphonium
Alexander Tolstoy has an open source app for everything, not
Cadmus
Few people want background noise in their audio recordings, and
E4head
This article was written when Fedora developers were discussing the
Gromit-MPX
During a presentation in front of an audience, it’s common
Fsmon
Sometimes there’s a good reason to know a bit more
Qt-SESAM
Every once in a while there’s a study on network
Video-trimmer
Normally, few people would reach for a heavyweight video-editing application
Pillar Valley
The Pillar Valley author declares on its Github front page
Caveexpress
Most platform-style arcade games have so much in common that
Flatpak
The two main rivals in application sandboxing are Snap and
Viper Browser
Browsing the web is one computing task that’s well served
TUTORIALS
Assemble basic touch and motor controls
Les Pounder is associate editor at Tom’s Hardware and a
Scheduling tasks
Shashank Sharma is a trial lawyer in Delhi. He collects
Databases made quick and easy
Nick Peers built his first database for his computer science
Build a streaming video web service
The (fictional) Brixton Youth Sports Association (BYSA) needs a place
BASIC and demos on the Commodore 64
The Personal Computer with Professional Power was how the Commodore
Chat
X
Pocketmags Support