Games programming with Defold

£39.00 + VAT (if applicable)

Many of our students choose to create a computer game for their programming project at A’Level. We use the Defold IDE with Lua code because it is perfectly pitched for A level. We provide step-by-step tutorials so assuming students have some programming experience with sequence, selection and iteration commands they will have no problem accessing and learning Lua.

Even if you don’t plan to use our Defold resources for Computer Science programming projects at A level, they are ideal for an extra-curricular club at Key Stage 4 or even BTEC courses.

This single product download is for our Defold tutorials and associated resources, it includes:

  • 5 complete tutorials with step by step instructions in order to build the following games
    • Incoming
    • Landers
    • Pong
    • Spotter
    • Worm
  • Multiple extension challenges for each tutorial
  • Complete solutions for each tutorial
  • Additional help and support material for Defold
  • Links to copyright free assets for use in your own projects

Please see the full description below for more details.

Note: You do not need to purchase this product if you are are a premium subscriber, it is already included in your member download area.


SKU: prog-python-1-2 Categories: ,



Most of the students we teach have already studied GCSE Computer Science, although some have not. Therefore, we do an accelerated course in Console Basic programming between September and Christmas of year 12 and in the new year introduce students to Defold. By Easter they are making their own small games, and this gives them plenty of ideas for starting their own project in the summer term of year 12.


Making computer games can either be really trivial if you use visual editors such as Kodu or just not advanced enough, for example with Construct or GameMaker. Although it is acceptable for students to write raw C++ or Java code this is often too complex. Students at A level need an IDE that is pitched somewhere in between. They need to write real code because this is what they get credit for, but at the same time they don’t need to tackle more difficult aspects such as working directly with the graphics card. Indeed, this is how many modern games are developed with engines such as Unreal, CryEngine, Lumberyard, LibGDX, Urho3D etc. There are several engines that are more suited to students beginning their learning in the field such as Unity, GoDot and Defold. They require students to write real code but also have libraries to speed up development.


Code in Defold is written in Lua which is on the list of approved languages for most exam boards. They do not specify which IDE’s are acceptable, they all are, including Defold! We shared a space invaders game we made in Defold with the examination board to check they would be happy that the game had enough complexity for A level and that the implementation of Lua was acceptable. They agreed it was with just a cautionary note that students will need to make plenty of their own code.


Used by professional and indie studios, it’s a proven tool for developing games of all genres. Defold is built and used by “King”, the studio famous for Candy Crush Saga. A game that earned the studio over $3.9 billion, being one of the most popular games of all time. Defold is used by more than 40,000 developers worldwide and is a great steppingstone to other industry standard game development tools including Unreal and Unity.


To develop games in Defold, all you need is the IDE. You can download it free from

It is a simple installation and no trouble for a school. We have included a help sheet on potential installation issues on a locked down network! Then use our tutorials to get started.


The Defold IDE gives you a solid framework for games development but leaves you plenty of room to create your own algorithms too. With Defold you are able to create a highly polished game using industry standard techniques. It’s real coding, not drag and drop or menu-driven programming, but many of the more complex aspects of games development such as collision detection, physics, cameras and particle effects are made easy. Lua is not truly object-oriented, but it has so many properties of OOP it practically is:

  • Game objects are classes. You use a “factory” to create instances (objects) of a class.
  • The .self associative array structure provides for encapsulated class attributes.
  • Every game object has methods for init (construction), update, final etc.
  • It uses message passing which is a very strong feature of OOP. You have to use this because all objects are encapsulated.


We have produced step-by-step tutorials for making games with Defold and Lua. Each tutorial starts from a blank canvas, provides the graphics, sounds and code you need. Detailed explanations tell you how the code works. At the end of each tutorial there are extension activities where you can extend the games yourself independently using the skills you learned in the tutorial.


You don’t need to be experienced in Defold or Lua at all yourself. We have done the heavy lifting and your students will learn for themselves. Just provide them with the resources and let them go! If their code doesn’t work, they will have made a mistake somewhere in following the tutorial. Just back-track with them methodically. We know the tutorials work and are error-free because our own students have made working games with no help from us!

You will be amazed at how much they enjoy these activities and what they can produce with a bit of enthusiasm and determination.


Not only do we provide full in-depth tutorials, but we have a growing library of help sheets and assets that students can use in their own projects. Defold is so well supported in the community you are never far away from additional help and inspiration either.


Terms and conditions

This one off-purchase includes a life-time site licence to use these resources within a single institution providing they are not made available to the public, are not hosted on other commercial learning platforms for which students or schools make payment to access, or students studying in schools other than your own.



Your Cart