Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
81 views

Follow-up to this question My current project folder includes the main.lua file, a .db file, , a sqlite.lua file from this somewhat old page, and a lsqlite3.so file copied from my homebrew folder. ...
Sirin's user avatar
  • 95
1 vote
0 answers
94 views

Important edit: it think that the issue might come from the fact that I'm using a Mac that uses an Arm64 processor. However, I'm not entirely sure since I don't know what that means. I'm trying to use ...
Sirin's user avatar
  • 95
3 votes
3 answers
152 views

I understand the difference between the scope of local and global variables, but I am confused about the difference and effects of declaring a variable OUTSIDE of Lua functions (or LOVE2D core ...
Garth Elliott's user avatar
4 votes
2 answers
138 views

I'm running into some confusion in trying to make a button that executes a function from another class I have. Firstly, i have a "button" class that i made, in which one of the parameters is ...
Sirin's user avatar
  • 95
0 votes
0 answers
79 views

So I just hosted my first game in web using love.js but the text area where one can paste or copy from only works if the in game text is copied, meaning I cannot paste text copied text from another ...
Aye Veska's user avatar
3 votes
1 answer
101 views

I created a simple code using Love2d that display a map created with Tiled (pixel art style), and draw a square as a player who can freely move across the map. However there is some jitter or ...
Brandonn's user avatar
4 votes
1 answer
124 views

I'm making a project in Love2d and, on top of a simple movement system, I tried to implement something where the player will "teleport" in the direction they are moving when the "e"...
Sirin's user avatar
  • 95
0 votes
1 answer
90 views

I'm actually developping a simple serious game and wanted to do it with isometric tilemaps on love2d but i couldn't find a way to handle its different layers (this is my first time with ua and love2d),...
Katia Bel's user avatar
0 votes
1 answer
119 views

I am experiencing a very strange error in Lua/Love2D code where for-loop index exceeds the maximum limit. The initial problem arose from Geom.segmentSegmentIntersection() having passed nil as argument ...
rostok's user avatar
  • 2,145
1 vote
1 answer
103 views

I'm currently working on a small 2D game using the LÖVE2D engine. I created a background with Tiled and exported it as a .lua file. However, I'm facing two issues with this background: Problem number ...
Embart's user avatar
  • 11
2 votes
1 answer
182 views

Source code used here: https://github.com/omrilevia/lua-iso I've been playing around mapping screen coordinates to isometric coordinates and vice versa, following this tutorial: https://pikuma.com/...
omri's user avatar
  • 425
1 vote
1 answer
72 views

I have a polyline (white) with coordinates {x1, y1, x2, y2, x3, y3 ...} polyline = {100,300,160,257,220,242,280,250,340,271,400,300,460,329,520,350,580,358,640,343,700,300} How can I get the ...
darkfrei's user avatar
  • 638
1 vote
1 answer
79 views

Why is my OSM map rendering squished in Love2D? I'm trying to render an OpenStreetMap (.osm) file in Love2D without using external libraries. The issue is that the displayed map appears vertically ...
darkfrei's user avatar
  • 638
2 votes
1 answer
256 views

I am using the LOVE2d framework, and I am not sure how to use the newImageFont() function. I checked the online documentation, but it wasn't very clear on what variable did what. Also, some letters ...
nico penguino's user avatar
1 vote
1 answer
66 views

below is where the error may occur Here is my main.lua and I note the place where I think the error is. What I can't figure out is why this sentence will return a number value? I'm learning Downwell's ...
Russellwhatever Yang's user avatar
0 votes
0 answers
116 views

I'm working on a simulation in Lua where I need to randomly assign cars to a set of slots based on probabilities. Specifically, I want the probability for each slot to be adjusted dynamically as the ...
darkfrei's user avatar
  • 638
2 votes
1 answer
265 views

I'm trying to learn love2d and I am having an issue with fullscreen. no matter how I try to set the resolution, it always ends up setting itself to 1536x864. My native resolution is 1920x1080, and I ...
Clinton J's user avatar
  • 2,133
1 vote
1 answer
51 views

Here's where I set the callbacks: GameWorld = love.physics.newWorld(0, 0, true) GameWorld:setCallbacks(self.contact) Here's the contact method: function thisScene:contact(a, b, coll) print(a, b, ...
Jackson Kidwell's user avatar
1 vote
1 answer
243 views

I installed Love2D and the Love2D Support extension for VS Code. I can run Love2D from the command line ($ love). In addition, $ which love provides the app's path (usr/bin/love). Typing $ usr/bin/...
Al C's user avatar
  • 5,427
1 vote
0 answers
65 views

Im making a Raycaster style engine in Love2D, I'm using this function function AngToVec(angle) local one = math.cos(math.rad(angle)) local two = math.sin(math.rad(angle)) local vec = { two,...
Thin Mint's user avatar
1 vote
1 answer
105 views

main.lua:147: stack overflow Traceback [love "callbacks.lua"]:228: in function 'handler' main.lua:94: in function 'matches' main.lua:80: in function 'checkforNil' main.lua:89: in function '...
user25690029's user avatar
0 votes
2 answers
107 views

I'm working through the CS50 intro to game dev course and I'm having a syntax error I've been beating my head against. I'm trying to write a function using the knife timer library that will be called ...
Matthew Klassen's user avatar
0 votes
2 answers
2k views

so i downloaded love2d and its in program files and added it to the environment variables and opened vs code and downloaded the extension of love2d support and i did everything like the video on ...
Predatorgame's user avatar
0 votes
0 answers
109 views

I have a love2d project where I am trying to bind midi controllers with rust and mlua rust library, I have this file configuration : . ├── conf.lua ├── data/ ├── fonts/ ├── icon.png ├── images/ ├── ...
CorentinVaillant's user avatar
1 vote
1 answer
46 views

I am making a tetris clone in love2d (lua) for practice. And what I am trying to do is to make the collins with the walls. Note:the tetris pieces are made out of tiles that each one has a relative ...
Snibo's user avatar
  • 13
1 vote
0 answers
99 views

I'm trying to run code that spawn 2 squares affected by gravity. When they hit each other, they just get destroyed using setuserdata and getuserdata. When I try to getuserdata, I get a nil value. What ...
AA-SLF's user avatar
  • 11
1 vote
0 answers
67 views

I am trying to make a chess game in love2D, and I am presently trying to generate 8 black pawns in the 7th row, but they all end up in at the last spot of the row. A picture of (seemingly) 1 pawn in ...
reno's user avatar
  • 11
0 votes
1 answer
334 views

I have an object moving "freely" with body:applyForce( x, y ). I want to track it's previous position. I set a timer and with every second that goes by i get the position of the moving ...
jon's user avatar
  • 1
1 vote
1 answer
636 views

I installed LOVE2D into the program files path, I added it to the environment variables, and I installed LOVE2D Support into Visual studio code. Why are the variable still showing up with the error &...
user18137465's user avatar
1 vote
1 answer
891 views

When I move diagonally, the movement becomes faster, I know why this happens I just dont know how to fix it. function love.update(dt) if love.keyboard.isDown("w") then player.y = player....
k3ytel's user avatar
  • 13
2 votes
1 answer
77 views

I am trying to create a pause function in my CS50G fifty-bird problem set. However, the image I have to come up is behind the pipes and bird when it is rendered. I am new to using Love2d and Lua but I ...
Mrs.mewis's user avatar
1 vote
1 answer
47 views

I am attempting to insert a series of tables that have values generated by a function. I have noticed that the generated tables all have the same address and thusly only the most recently generated ...
niju's user avatar
  • 15
0 votes
1 answer
99 views

So I zipped my Love2D project and it works when I launch it in the same folder, but elsewhere my io.open doesn't work. Here's my file system: ... utils |json.lua <-- library I use for encoding ...
Capnsockless's user avatar
0 votes
1 answer
102 views

So I am instancing a quad a bunch of times in an area in love2d, which seems to be going fine, but when I add some shader code to billboard them they render at an odd spot and look like they are all ...
James Washington's user avatar
0 votes
1 answer
564 views

I just started learning Lua and LOVE2D, I'm trying to make text input boxes, I've got 4 instances within an array and I'm trying to call their draw function within the love.draw() TextBox = { x = ...
Capnsockless's user avatar
0 votes
0 answers
81 views

So everything in my code is fine and everything was going as expected. But then I realized 2 things, 1, my paddle doesn't go past size 3 despite having self.paddle.size = math.min(4, self.paddle.size +...
Faith's user avatar
  • 21
0 votes
1 answer
100 views

I can't compile a minimalist Löve project in order to make an app for Android. I'm stuck at the "licence stage". In Debian 10, sdkmanager seems not to be installable separately (all sources ...
Daniel Bandeira's user avatar
2 votes
0 answers
106 views

I have my powerup class and I've done all the code in playstate.lua to inact the powerup once it hits the paddle by generating a new ball. The problem is in my actual game, balls spawn even before the ...
Faith's user avatar
  • 21
0 votes
0 answers
50 views

The collision of river is not working, its just an if statement where i've written the coordinates of river when the frog collides with those coordinates it should change the state. When frog collides ...
Lizi's user avatar
  • 1
0 votes
1 answer
876 views

i plan on comercially releasing games soon, so i would like to find out a way to compile to bytecode and then fuse it into an executable. I have been searching for a way for literal months, but i ...
MielLand's user avatar
0 votes
1 answer
275 views

I'm asking this here because even though there is another board dealing specifically with the course this game is from, hardly anyone ever responds to questions on that board. I'm hoping that those of ...
apex2022's user avatar
  • 877
0 votes
1 answer
142 views

I'm trying to simplify my code by putting everything through functions, but I don't think that the variables and tables are passing through the arguments in my code, or nodeNumber isn't working ...
James Hood's user avatar
0 votes
1 answer
169 views

I'm desperately trying to open a game using Love2d and the following error occurs when I insert love /path/to/my/proyect/on my Chromebook terminal. Error boot.lua:577: Cannot load game at path '/home/...
Oliver Molina Mayor's user avatar
1 vote
0 answers
103 views

Im trying to give the player for a game im working on gravity when its not climbing a ladder, but every time i try to implement this feature, something climbing ladders breaks, and when i try to fix ...
TriggerFox Games's user avatar
1 vote
1 answer
903 views

I'm working on a top-down zombie survival game, and I had everything for the prototype working, but the moment I add images, everything breaks and I get this error: Error main.lua:46: attempt to ...
TriggerFox Games's user avatar
4 votes
3 answers
340 views

So I just started learning Lua and Love2D and am using global variables when I need callback functions to communicate with eachother. For example: enter_pressed = false function love.update(dt) if ...
Francisco's user avatar
0 votes
0 answers
70 views

Player nor circle is appearing. The player and circle are being drawn but not now showing up on the screen. When the player presses a key the player moves that way, the player stops on the grid and ...
Flote's user avatar
  • 1
0 votes
1 answer
170 views

I am doing the CS50 Intro to Game Development course, which uses Lua and LOVE2D for its games. I've discovered a bug in the assignment code, but I am unsure how to fix it. The assignment is a Flappy ...
apex2022's user avatar
  • 877
0 votes
2 answers
91 views

So basically I am trying to make a game where you can drag tiles into a spot onto the screen, but when I drag the tile and release the mouse, the last tile placed move randomly for no reason. It just ...
robert Vincent's user avatar
0 votes
0 answers
194 views

so for every character that I add a sprite, they end up like this. I've tried with different images, all png. only one seems to work fine and not have a background square but can't figure out why. ...
ømen's user avatar
  • 1

1
2 3 4 5
14