Lua Space is a tiny solar system of classic-inspired video games built in Lua. Each planet hosts a different game you can play with a friend in a cooperative experience.
Currently, the system includes three games:
- πΈ Space Invaders
- π Thanks
- π Pong
- LΓVE2D
Clone the repository and launch it with LΓVE2D:
git clone <repo>
love lua-spaceπ Project Structure
lua-space/
βββ assets/ # Fonts and other reusable resources
βββ images/ # All image files (sprites, textures, backgrounds, etc.)
βββ shaders/ # GLSL shader code
βββ minigames/ # Each minigame is a Lua table with update(dt) and draw()
βββ main_hub.lua # The hub world where you choose planets (minigames)
βββ planets.lua # Planet creation logic
βββ particles.lua # Particle system code
βββ player.lua # Player logic for the hub
βββ shader.lua # Core shader handling
βββ controls.lua # Drawing and handling controls
βββ conf.lua # LΓVE2D configuration file
βββ main.lua # Main entry point- Main Hub: The starting area where you control your player and choose planets.
- Planets: Each planet represents a different minigame.
- Minigames: Implemented as Lua tables exposing two functions:
- update(dt) β updates game logic
- draw() β renders the game
The hub calls these functions to run the selected minigame seamlessly.
Add more planets (minigames)
Expand shaders and visual effects
New assets (fonts, music, etc.)