Welcome to Giraffe Game! This game is built with Lua and LÖVE 2D. Jump, avoid obstacles, and gather collectibles to reach the highest score!
This game is a work in progress. It started a few years ago and is now actively maintained and improved. Expect regular updates as new features are added, bugs are fixed, and gameplay is refined!
- Characters and Enemies: Control a customizable avatar, and encounter butterflies, birds, and worms.
- Sound and Animation: Engaging music and sound effects, with sprite-based animations.
To play this game, you’ll need:
- Lua: The scripting language used to build the game logic.
- LÖVE 2D: A framework for 2D game development in Lua.
-
Download and Install LÖVE 2D
Get LÖVE from the official LÖVE website, and follow installation instructions for your operating system. -
Clone the Repository
-
Run the Game with LÖVE
Use the following command to launch the game:love .
Enjoy!
Since Lua does not have a built-in "class" construct, object-oriented programming concepts such as inheritance are achieved through metatables. For example, the Butterfly
class is defined as follows:
Butterfly = {}
Butterfly.__index = Butterfly
setmetatable(Butterfly, {
__index = Still,
__call = function(cls, ...)
local self = setmetatable({}, cls)
self:init(...)
return self
end,
})
Everyone is free to report bugs, suggest fixes, and share ideas for improvements. Your feedback is invaluable in making this game better. Please open an issue on GitHub for any bugs or suggestions.
- Starting music: Music by Omar Faruque from Pixabay
- backround music: Music by TurtleBeats from Pixabay
- Ending music: Music by MarshallB from Pixabay