codi-hacks / space-race

Love2D-based Spaceship Racing Game
Other
3 stars 0 forks source link
game love2d lua

Luacheck Unit Tests Coverage Status License: GPL v3

Spaceship Game!

Use w/a/s/d to move laterally via velocity. Press shift and arrow keys to "teleport" laterally.

Use a/d to spin the ship left/right and w/s to boost forward/backward. Press space to brake.

Press b for debug information.

Press p to pause.

Running

Install love2D and run love . in the main directory. That's it!

Of course, this game is still in development, so please expect bugs.

Development

Architecture

This project is loosely based on the Entity-Component-System (ECS) architecture. Here is some of the jargon we use in the context of this project:

Linting

You can check your changes against the linter in realtime by installing a luacheck plugin for your editor or running luacheck . command (assuming you have luacheck installed).

Docker

Alternatively, you can run the linter as well as the (busted) unit tests if you have Docker installed. Once docker is installed and running, simply invoke one of the make commands:

make test  # Run linter and unit tests
make test-lint  # Just luacheck
make test-unit  # Just busted