Skip to main content

Lua and Love2D tutorial

Downloaded: 656

Last edit: 14 July 2022

Resource Type Worksheets and Activities, Teaching Resources, Example Programs and Live Lessons
English Key Stage 5-7 year (KS1), 7-11 year (KS2), 11-14 year (KS3), 14-16 years (KS4), 16-18 Years (KS5)
Curriculum Topic Creating Media, Design & Development, Effective use of tools, Programming

[The images I have tried to upload are a complete failure, so all you have is a trimmed and distorted screenshot of the ZreoBrane studio IDE. Another result of the new hosting/format of CAS website.]

Works well to introduce text based programming at yr 6 primary as Lua's syntax is very simple and only has one complex datatype.

The Love2D engine is very easy to use, and teaches the key principles of all 2D graphics games:

  1. Load content such as images and sounds
  2. Update image positions and animations 60fps
  3. Draw the graphics.

The first 3 files are designed to be used by the only most able yr 6 students and above usually in a coding club scenario, and allows them to write a simple 'Pong' type game.

The 4th is much more advanced, using OOP and based around my Youtube series https://www.youtube.com/playlist?list=PLE8GQEkUWuwGPi2WDiiQihG5nIZMecLHP which compares and contrasts Love2D, Pygame and Monogame for a full Shoot-em-up experience.

Edit history

Graham Bridge | 14.07.22

Added tutorial files for Lua and Love2D

Graham Bridge | 13.07.22

Removed 2 images as they were completely blank and unable to show even with reduced resolution

Graham Bridge | 13.07.22

Still trying to get images to display: tried limiting height to 400px

Graham Bridge | 13.07.22

Images resized. Giving filesize limit is NOT helpful. Give max dimensions instead

Graham Bridge | 13.07.22

Initial creation

Unlock