Skip to content

Namroutii/snake-game-lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Snake Game in Lua using Love2D

This is a simple Snake game implemented in Lua using the Love2D framework.
The project demonstrates core game programming concepts such as:

  • Game State Management (Menu & Playing states)
  • Entity-Component Pattern
  • Modern Lua features (like file handling for high score)
  • Custom Vector2 class with metamethods for vector math
  • Input handling using Command Pattern
  • Event system implementing Observer Pattern (bonus)

Features

  • Continuous snake movement with directional controls
  • Randomly spawning food that increases score
  • Collision detection with walls and self
  • Saving and loading high score to file
  • Clean and modular project structure

How to Run

  • Requires Love2D installed

  • Run with command: love . inside project directory

    Video Demo

You can watch a short video demonstration of the project here:
Snake Game Demo Video

About

Snake Game in Lua using Love2D

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages