Está atualmente a visualizar o Portugal versão do sítio.
Gostaria de mudar para o seu sítio local?
15 TEMPO DE LEITURA MIN

Develop video games with the Godot engine

Calvin Robinson explores game development engine Godot, and reveals how to script a user interface for a 2D video game.

OUR EXPERT

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

Godot is a free (as in beer) and open source video game engine. It’s an impressive toolset provided at no cost and with liberal licencing that enables people to create their own video games without spending months first creating the engine.

The idea is very similar to PyGame, a Python module we’ve used often in games programming tutorials in this magazine, in that an advanced toolset is compiled that includes most of the groundwork one would need to create a game. Things like sprites and physics are taken care of, so the programmer can get straight onto designing their video game.

Godot uses an MIT or Expat licence that grants programmers the permission to use Godot for any purpose: study how the engine works; change the engine itself; and redistribute versions of Godot with or without changes. Programmers are even free to commercialise custom versions of Godot under a different license, provided a notice of the original Godot is distributed in the documentation. That’s a very free (as in speech) licencing scheme.

Of course, any game or software created with the Godot engine is the sole copyright of you, the developer. While it’s important to include a copyright notice of the engine used in your documentation, anything you create in Godot belongs to you to do with as you please. These are fair and incredibly permissive terms.

Being FOSS, Godot is cross-platform, with versions for Linux, Windows, Mac OS X and BSD. Additionally, it’s also multi-platform, working on iOS and Android devices, as well being able to deploy games for the Nintendo Switch, PlayStation4, Xbox One and HTML5.

The easiest way to download and update Godot is via Steam.

QUICK TIP

Don’t forget to comment that code! As we progress in Godot we’ll end up with multiple scenes with dozens of attached scripts, so it’s important to comment to remind ourselves what does what.

How to Godot started

First of all, Godot supports both 2D and 3D visual rendering, making it easy to design games for either perspective. The interface itself is user-friendly enough for projects of scale, and ease of use seems to have been a contributing factor to the design of this engine.

While Python support in Godot isn’t ‘official’, there is community support available for it. Officially endorsed options are C# or C++ for the more advanced programmers. For those just starting out, or with limited programming experience, Godot offers a high-level scripting language called GDScript, which is pretty similar in syntax to Python, with influences from Java. And if coding isn’t your forte, there’s also a visual scripting interface built in. The visual editor is context-sensitive and WYSIWYG (what you see is what you get).

Desbloqueie este artigo e muito mais com
Pode desfrutar:
Desfrute desta edição na íntegra
Acesso instantâneo a mais de 600 títulos
Milhares de edições anteriores
Sem contrato ou compromisso
INSCREVA-SE AGORA
30 dias de teste, depois apenas €11,99 / mês. Cancelar em qualquer altura. Apenas para novos subscritores.


Saiba mais
Pocketmags Plus
Pocketmags Plus

Este artigo é de...


View Issues
Linux Format
Summer 2020
VER NA LOJA

Outros artigos desta edição


In This Issue
Soft Mints, no Snap
“Won’t people think it’s 20 years old?” management asked when
REVIEWS
Robolinux 11
RoboLinux is a project that we’ve been meaning to look
Calculate Linux 20.6
Back in Elizabethan times, “calculating” used to be a crime,
Besiege
Besiege is notionally a game about engineering medieval siege weapons
Waveshare Game HAT
We heard you like playing games from yesteryear, so how
ROUNDUP
Integrated Development Environments
Mats Tage Axelsson is happiest when writing how to make
MINT 20
Summer is well upon us and what better way to
INTERVIEW
MAINFRAME MAGE
John Mertic is director of program management for the Linux
OPEN SOURCE UNDERGROUND
Those of you who want to exercise your mind and
Pi USER
UBUNTU Pi
The official Canonical-supported desktop flavour of Ubuntu for the Pi
OpenVX lands on Raspberry Pi
This Raspberry Pi thing is all getting very serious. Clearly,
Magnify via Pi
The High Quality Camera for the Pi has been available
Aging Vulkans
We’ve reported that the Pi 4 will be gaining an
Learn how to program the 50 pence chip
Mike Bedford discovered PICs many years ago and felt an
CODING ACADEMY
Revisit the arcade classic Pong in Python
Calvin Robinson is a subject matter expert at the National
REGULARS AT A GLANCE
A new generation of Linux-only PCs
Something unusual is happening in the world of computing: companies
Maintain the maintainers
The Linux Foundation has had its annual shindig at Open
Microsoft Linux Defender
Microsoft is hoping to boost its security protection for Android
BETTER CALL MATT
Matt Yonkovit is Percona’s chief experience officer and a member
SKY HIGH
Keith Edmunds is Tiger Computing Ltd’s MD, which provides support
NEWSDESK
Google is getting a taste of the education market and
Distro watch
A 64-bit live system designed for USB flash drives and
VIRTUAL PLUMBING
2020 has been, and continues to be, a redefining year
LINUX ON APPLE’S ARM
Jon Masters has been involved with Linux for over 22
Kernel Watch
Linus Torvalds has announced the release of Linux 5.8. He’s
ONGOING DEVELOPMENT
Peter Oskolkov posted patches titled Introduce FUTEX_SWAP, which attempts to
Your free downloads
To replace our regular covermounted DVD we’re offering five top
Answers
In looking at the new printers from HP and Epson,
Mailserver
Your “Unpeeling the Onion Browser” article (LXF264, June issue) was
Intel Core i9-10900K
We’re long past the days of monolithic chip designs. Now
Audacity
Shortly after Mike Bedford’s excellent hands-on Audacity tutorial in LXF264,
Ksnip
Three years ago, we said that Ksnip was a promising
PDF Quirk
Modern Linux desktops are mostly a pleasure to use, yet
Apostrophe
There are at least a dozen various text editors for
Pidgin
The usual path for Linux and Windows users that need
QEMU
Virtualisation software is a dream come true for distro-hoppers, because
Bauh
We’re living in a world where traditional package managers (such
Blobby 2
Blobby Volley 2 is a great head-to-head beach volleyball game
JFDuke3D
There are many theories why Duke Nukem 3D has become
Parachute
The cornerstone of desktop productivity is being able to work
Wihotspot
How do you share a Wi-Fi connection in Linux? Well,
TUTORIALS
Record video using motion detection
Jonni Bidwell is fairly contrary. His garden grows with silver
Find your files in Broot
Shashank Sharma is a trial lawyer Delhi. He’s been participating
Multi-user task and project management
Nick Peers has spent most of the past few months
Configure Proton for enhanced gaming
John Knight When he’s not running away from Australian snakes
Conversa
X
Suporte Pocketmags