Skip to main content

Questions tagged [love2d]

LÖVE is a framework for making 2D games using Lua programming language.

Filter by
Sorted by
Tagged with
1 vote
0 answers
70 views

I'm making a bullet hell and I want to handle a variety of movement types for my bullets (waves, flying in circles, spirals, etc). I'm currently using the following to handle linear movement at a ...
Alphatron's user avatar
  • 111
0 votes
1 answer
204 views

I'm trying to figure out how to express parabolic motion (for example: \$y = x^2\$) using delta time. I thought about deriving it using a differential like \$y' = \frac{1}{2}x\$ but that results in a ...
shingo.nakanishi's user avatar
0 votes
1 answer
230 views

What does the phrase "Kinematic bodies do not react to forces and only collide with dynamic bodies" mean? Related: I'm always confused by game engine physics explanations I found this ...
shingo.nakanishi's user avatar
0 votes
3 answers
353 views

I'm implementing friction into my game, and I'd like it to be framerate-independent. Here's my first solution, in Lua style pseudo-code: ...
Yolwoocle's user avatar
0 votes
1 answer
182 views

I watched https://www.youtube.com/watch?v=F86edI_EF3s. I believe the following code is the complete code https://github.com/games50/breakout/tree/master/breakout13 And https://github.com/games50/...
shingo.nakanishi's user avatar
0 votes
0 answers
199 views

I'm trying to figure out what the most basic approach would be to effectively (or at least more effectively than what I have) create and manage objects. I know I could store them in a table when I ...
Konjointed's user avatar
0 votes
2 answers
372 views

I'm using this program called Quadtastic which is a sprite sheet management tool that lets you define quads on a sprite sheet, name them, etc, and export to metadata with those names (+ position, size,...
Garflington's user avatar
-1 votes
1 answer
155 views

Why is it common in the 2D game frameworks for the clear function to have the option of clearing the entire screen with a color? Why is this option available to us? Are there any practical ...
Đạt Phạm's user avatar
2 votes
1 answer
220 views

I'm working on a game in LOVE2D using Lua, where you pilot a drilling vehicle. The idea is that as you drill into different surfaces, you speed up/slow down depending on how dense that surface is. I'...
Adam L.'s user avatar
  • 41
0 votes
1 answer
79 views

how can I join lines to draw rectangles, I get this artifact like this, here's my code: ...
eguneys's user avatar
  • 247
0 votes
1 answer
880 views

Problem i want to implement a pause state and with a simple conditional inside the update of PlayState is very very simple. However i think that the pause has to be another state in the StateMachine ...
WhySoBizarreCode's user avatar
3 votes
1 answer
4k views

So, for the past couple of weeks, I've been working on a falling sand simulation inspired by games such as The Powder Toy, Noita, and Sandspiel. I've been making it in Love2D and I'm please with what ...
Garflington's user avatar
2 votes
1 answer
205 views

To learn LOVE2D I am creating a simple project. Player moves the square with arrows keys until it hits the goal square, at which point the game is won. ...
shinkarom's user avatar
1 vote
2 answers
242 views

I know I can use shader:send() to change variables, but is there a way to set/change a #define?
IanLarson's user avatar
  • 811
0 votes
1 answer
3k views

I just got started programming games and decided to try out love2d since I'm learning lua. I was wondering if anyone knows how I can create just a simple 2-3 button menu when you start up the game. ...
bouracine's user avatar
1 vote
1 answer
171 views

I'm making a Love2D board game video game, which has multiple different components which need to be run and displayed on the screen at the same time. For example, I need to display the board, the ...
132ikl's user avatar
  • 11
6 votes
1 answer
609 views

I'm building an engine in Love2D and I need to build an editor who will create scenes with game objects I wrote in lua. The thing is that there's this guy in my team who said : "Don't include the ...
Antoine Thiry's user avatar
0 votes
1 answer
793 views

I'm trying to use a pretty standard map with the Simple Tiled Implementation module for Love2D, but no matter what I try, I can't get it to display anything but a black screen. Here's my current code (...
Alexis Purslane's user avatar
0 votes
1 answer
630 views

I've set up a basic map with Tiled, imported it with STI library (https://github.com/karai17/Simple-Tiled-Implementation) and everything looks in place. How can i get a zoom-out feature now? I can ...
brazorf's user avatar
  • 111
1 vote
1 answer
1k views

I would like to know how to take a defined image (e.g. a tile) in the LOVE game engine and draw it with a transparency that may vary per-frame. Stencils seem to only work for completely hiding parts ...
Vivian's user avatar
  • 123
1 vote
0 answers
528 views

So I'm using Love2D which uses SDL2* as far as I'm aware and I have a question about texture atlases & spritebatching. I have an isometric chunk, with 2 layers, terrain and objects (trees, ...
KayleMaster's user avatar
1 vote
1 answer
348 views

I have already some code but i can't solved this. How can i select one object with mouse if the objects are overlap? It's looks like solitaire game. I wish you can understand me... For example my ...
012rev3's user avatar
  • 11
5 votes
2 answers
2k views

I started making my simple 2D runner game with a splash of physics (particularly, rope physics). It's in Love2d, project is targeting mobile platforms. Development goes fine, though I meant to ask one ...
metamorphling's user avatar
0 votes
1 answer
801 views

I created a 50x50 tile map with 32x32 tiles in Tiled and exported it as a Lua file so I can use it in Love2D. I have a player you can move around the world but I'm attempting to convert the player's x ...
freemann098's user avatar
1 vote
0 answers
466 views

I'm learning about steering behaviors and watched this nice explanation tutorial - https://www.youtube.com/watch?v=g1jo_qsO5c4&feature=youtu.be with the source code available at https://github.com/...
Kosmetika's user avatar
  • 121
1 vote
1 answer
1k views

Since Love2D doesn't support SVG, I'm looking for other ways to create solid, compound shapes. Anything that has straight edges can be drawn using a polygon, but I haven't yet found a way to mask an ...
undefined's user avatar
  • 130
0 votes
1 answer
1k views

I recently started making a Terraria clone using the LÖVE library, which is based in OpenGL. In Terraria, for each tile, there is a large texture with all possible combinations for merging with ...
Franz Wexler's user avatar
1 vote
2 answers
1k views

I have a small .PNG file. I load it with: picSmiley = love.graphics.newImage("salamander.png"); and I draw it with: ...
ZirconCode's user avatar
2 votes
2 answers
765 views

Considering I have four variables event binded to each arrow key, that can be 0 or ...
Mojimi's user avatar
  • 121
0 votes
1 answer
202 views

I was just messing around with perlin noise and got this. Wondering if anyone knows what it is or has seen it before. Here is the code(LUA with love2d engine): ...
digitalsoldier0's user avatar
0 votes
1 answer
279 views

I can't figure out what is causing the line between my two chunks. They are completely aligned. It must be something to do with the algorithm. I am using lua with the love2d game engine. Here is a ...
digitalsoldier0's user avatar
0 votes
2 answers
2k views

I am using lua with the love2d engine to make infinite 2d tiled terrain with perlin noise. This is just the first step and I want to fix the bugs early. The problem is that there is no gradient ...
digitalsoldier0's user avatar
1 vote
1 answer
305 views

Instead of having a file with load, update,and draw can i say have a table called player, then put love.update and love.draw in that table to handle the drawing and updating of that particular player?
Marcus Little's user avatar
0 votes
2 answers
215 views

What could I've done wrong to get the following error message when trying to create a GLSL shader in Löve2D? I'm sincerely clueless of what the mistake could be, though I suspect the error being a ...
user6245072's user avatar
0 votes
1 answer
577 views

Okay so i have two files one named Player.lua and one named Main.lua Main: function love.load() end function love.update() end function love.draw() end Player: function player.load() end function ...
Ras. M's user avatar
  • 3
0 votes
1 answer
168 views

I want to be able to divide the window of the game in, lets say, 3 places, and when the mouse (or touch) click one of those places, execute some code. Do I have to make each portion a button-like ...
Kudefe's user avatar
  • 17
2 votes
2 answers
571 views

I'm using the Jumper library for Love2D to do grid-based pathfinding, which worked fine until I wanted to make larger enemies (with larger collision boxes). How do i do that? My initial idea was to ...
Julian's user avatar
  • 133
1 vote
2 answers
303 views

I want to add collision detection mechanism to my game, which is written in love2d. As i do not want to implement my own algorithm, i have found a HardonCollider library to do the heavy lifting for me....
Alexander's user avatar
  • 131
10 votes
1 answer
2k views

In a physics engine I'm developing (for learning) using love-2d, I implemented collision resolutions in this way: ...
dnk drone.vs.drones's user avatar
2 votes
2 answers
441 views

At the moment, I'm working on a small game project using LUA and the love2d framework. Using this framework, I've made my own assets (i.e. button images, form images, etc), and using these assets I've ...
Bilfred's user avatar
  • 123
0 votes
1 answer
3k views

If i use this code ...
frosty's user avatar
  • 111
0 votes
3 answers
2k views

So I'm making a game using love2d where the player will find himself in an zombie infested city but I don't want the city/map to be just the same all the time, so I want to create a random map/city ...
Louie's user avatar
  • 117
1 vote
1 answer
416 views

After asking a similar question yesterday I've come across another problem with using joints in box2D / LOVE and trying to create a weighted chain. Everything is set up as follows, I've tried to ...
user3510227's user avatar
1 vote
1 answer
981 views

Wasn't sure whether to post here or on SO so please move if needed. I've been having a look into the box2D physics API provided by LOVE to try and create a swinging flail or weighted rope but I'm ...
user3510227's user avatar
1 vote
1 answer
149 views

I'm developing my first game using Löve, the game is a basic Asteroids clone. Everything is going well so far, until I decided to actually add asteroids. I'm trying to make a basic hit-detection that ...
Smgweat's user avatar
  • 13
2 votes
3 answers
224 views

To clarify, by overlapping I do not mean overlapping between said components, but rather, let's say I have: My entity contains components, and a parent-children system. Call it a mandatory ...
Llamageddon's user avatar
0 votes
1 answer
696 views

I'm using Love2D and my own physics engine to create a 2D platformer. Y collision works fine, but X collision... well, it's a bit buggy. When I move off of a small platform I've created, I fall but it ...
Blahgory's user avatar
1 vote
1 answer
5k views

I have a game developed in lua using love 2d, and now i want to run it in ios/android. Is there any porting or way available to do that. Thanks.
user654987's user avatar
1 vote
1 answer
735 views

I'm reading the Love2D Development book, which i think i will stop reading because is outdated and very instable, sometimes i got a lot of troubles. Backing to the question, i made a tileset map with ...
RebeloX's user avatar
  • 113
2 votes
1 answer
1k views

and apologies in advance for this fairly random question. I'm using Love2D 0.9.1 and Box2D to create two bodies joined by a revolute joint. A simplified representation of the two bodies is a Sphere ...
Danhoo's user avatar
  • 23