LÖVE is a framework for making 2D games using Lua programming language.
1
vote
0answers
150 views
Love2D : How can I keep up with lots of small sprites' collision data?
So I'm using a SpriteBatch to keep up with lots of small pieces for a falling-piece puzzle game. I have an array of Quads (for different color blocks), and they are randomly added to the ...
0
votes
1answer
84 views
Love2D : Problem rotating image in a SpriteBatch
I'm working on a falling blocks type of game with triangular pieces. I'm using a SpriteBatch to accumulate and remember the pieces and their locations.
The problem is that when I rotate a scaled ...
3
votes
1answer
133 views
Make image follow path
I made an animated main menu introducing my game. In the menu there is snow and fog to create a more alive feel to it. Now I want to add a hawk that randomly spawns and flies across the screen in the ...
2
votes
1answer
74 views
Getting an images rgb value at click
I'm not sure if this is at all possible, but maybe it will spark up an interesting conversation. (Sidenote: working on a small game in Löve).
I'm making an archery shooting kind of game, and I was ...
1
vote
1answer
237 views
Automatically triggering standard spaceship controls to stop its motion
I have been working on a 2D top-down space strategy/shooting game. Right now it is only in the prototyping stage (I have gotten basic movement) but now I am trying to write a function that will stop ...
2
votes
1answer
72 views
Is it possible to have the main callback functions in different files with love2d?
Is it possible to have love.load(), love.draw() and love.update() in different files? and if so how would I go about doing that?
1
vote
1answer
262 views
How should I share variables between instances/classes?
I'm making a game using LOVE, so everything is programmed in Lua. I've been experimenting with using classes and object orientation recently. I've found out that a nice system to use is having most of ...
0
votes
2answers
500 views
How to use batch rendering with an entity component system?
I have an entity component system and a 2D rendering engine. Because I have a lot of repeating sprites (the entities are non-animated, the background is tile based) I would really like to use batch ...
5
votes
5answers
616 views
Game state management (Game, Menu, Titlescreen, etc)
Basically, in every single game I've made so far, I always have a variable like "current_state", which can be "game", "titlescreen", "gameoverscreen", etc.
And then on my Update function I have a ...
1
vote
1answer
204 views
Where in code to for collision? In object class? Mainline code?
Making a simple game in Love 2D framework where if I click on an object then it disappears.
Do I check to see if I've clicked the enemy inside a function in the enemy object? Or just in my main.lua? ...
5
votes
1answer
168 views
Change Game Icon
Is there a way to change the default LÖVE2D icon to another one?
I merge my game.love file and the love.exe with the cmd (copy /b love.exe+app.love game.exe).
But after this the executable has the ...
4
votes
3answers
559 views
How can i run my .LÖVE game directly from the lua interpreter?
I've just started with LOVE and LUA , i'm interested in LOVE because i want to play around with something different from my dayjob(i'm a webdeveloper) and since it uses LUA and is interpreted , i ...
2
votes
1answer
477 views
Box2D + Love2D (Lua) - Assertion fail with polygon meshes
When I try to create a triangle collider for my game it sometimes leads to an assertion fail. I use the physics engine that comes with love2d (Box2D). That's the error message that appears when the ...
2
votes
2answers
218 views
Alerting enemies to my presence when I make a sound in a Wolfenstein/DOOM style game engine
I am working on a raycast-based 3D game and things are going well, but I am now currently working on the AI of an enemy. I want to make it like how DOOM did it but don't know how to handle how and ...
1
vote
0answers
131 views
How would the GPL apply to these generated source files? [closed]
I am currently using Love2D as my game engine of choice and have come across the situation where I have had to retype out similar code over and over. In particular, if I want to add a new color to a ...