r/love2d • u/CrazyPerson2er • May 20 '26
r/love2d • u/Inesh23 • Aug 17 '26
How to Obfuscate and Protect Source Code of My Love2D game?
I don't want people to steal the code and republish my game because I put a lot of work into it and I want to protect my own hardwork/intellectual property.
I can't find any good lua obfuscators online, does anyone know any good methods to obfuscate source code. I want to be able to remove comments, have random variable names and remove whitespaces
Another day, another game: Beach Volley Remake
This time I remade another favourite one: volleyball game from Gameboy Color - Power Spike: Pro Beach Volleyball from 2000.
The game mechanics and modes should be as close as possible to the original game.
You can get the full version for free here: https://maltize.itch.io/beach-volley-remake
r/love2d • u/sam_likes_beagles • Jul 16 '20
Seeking additional developers for a LOVE2D game I am making where Ted Cruz(protagonist) fights prominent socialists like Robin Hood, Jesus and Santa Claus
And just to be certain, this is a game making fun of Ted Cruz, we are not fans of Ted Cruz and the game somewhat portrays socialism in a good light
Sorry for the political post. I'm not looking to debate anything, just seeking developers.
This game isn't intended to make profit.
LOVE2D(game engine with Lua) is SUPER easy if you don't already know it, I taught it to 12 year olds.
So far the number of developers is 2 including me
___
I can explain more about the game if you message me, but basically it's a satirical game where you play as Ted Cruz, who is the hero, and you must stop the socialists(Robin Hood, Jesus and Santa Claus) from boosting the social state and draining the economy. Ted will have some super powers. And in case this worries you, Jesus will not fight back, he will only turn the other cheek.
I've created a UML diagram and have a pretty good idea of what I want the levels and bosses to be like, although I'm open to changing things. Right now I'm thinking about 3-4 levels, and 2 bosses.
I have my computer science degree, and predominantly have done web design but taught game design with Love2D to children age 12-14 one summer(basically a boot camp), so I got pretty good at it. I still have the manual and could send it to you if you want some help learning game design.
Let me know if you're interested!
And if you don't want to put in a huge commitment that's fine. If all you feel you can contribute is adding some attacks to one of the bosses that'd still be awesome and a huge help!
r/love2d • u/[deleted] • Jun 06 '16
Why is Love2d slow to draw? (Bunnymark)
I tried this bunnymark benchmark with the newest version of Love2d, however it seems to run quite slowly. It seems Pixi.JS bunnymark actually renders over 5x as fast even using a web-browser. Would this be an issue with Love2d, the bunnymark code, or Lua?
r/love2d • u/sceppz • Jul 18 '26
More elegant solution for var = var + 1
Back in godot you could just do var += 1 and that felt way more elegant and was quicker. This has been my only annoyance with löve so far.
Is there a better way to write this and if not maybe a unoficial solution?
Sorry if i missed something obvious but I really havent found anyone doing it different in the tutorials i've watched and searching it up also doesnt help.
r/love2d • u/JulioHadouken • Aug 01 '25
I Make Steam Capsule Art That Pops! DM me if interested
r/love2d • u/adnzzzzZ • Dec 18 '14
I made a framework/engine on top of LÖVE: fuccboiGDX
Hi, over the past few months I've been trying to make a few more complete games with Lua + LÖVE and I just decided to take all the common code between them, abstract them nicely, document it and release it as an engine/framework. LÖVE is really great but often times you have to do too much work to get stuff done, so I just decided to do some of that work myself and make it possible for other people to use.
r/love2d • u/[deleted] • Apr 29 '21
Hello Guys
How are you creating sprites and assets for your game?
Please reply
r/love2d • u/[deleted] • Apr 20 '20
How do I fix a syntrax error?
when i load my game up I get this syntrax error:
I am following this tutorial and I did everything just like the guy said
Error
Syntax error: main.lua:9: '<name>' expected near 'function'
Traceback
[C]: at 0x7ff8f53d28f0
[C]: in function 'require'
[C]: in function 'xpcall'
[C]: in function 'xpcall'
r/love2d • u/WebRevolutionary6234 • Aug 26 '23
Early announcement for Undying survival 1.2
Undying survival 1.2 isnt coming out yet but there is some announcement im gonna tell you early
Undying survival is no longer free source due to the fact that its leaving alpha stage
and donations will be open so expect some big changes in 1.2
r/love2d • u/WebRevolutionary6234 • Sep 17 '23
leak on my newest game (ITS MADE IN LOVE 2D)
r/love2d • u/Tal20081 • Sep 07 '20
Just found out about this program.
Can someone recommend me good tutorials please?
r/love2d • u/ConsciousHamster6470 • Jan 05 '26
Help making 2D map
I am new to game development and I am really struggling with making a simple map for my game. If someone could make a 40x40 or even 40x20 map on Tiled using the linked tileset I would be extremeley grateful. Post-Apocalypse Pixel Art - Asset Pack by TheLazyStone
r/love2d • u/Lovingsoul1337 • Apr 30 '20
If statements check 2 conditions or even more !
Hey for some reason this dont work can you may help me ? I need to check if a table has 2 fields if not throw an error.
\``lua`
function love.draw(entity)
if entity.sprite == and entity.position == nil then
return "entity not drawable !"
end
love.graphics.draw(entity.sprite, entity.position.x, entity.position.y)
end
Thanks in advance !
```
r/love2d • u/don8669 • Feb 01 '12
Can some explain how shooting bullets work?
I know they involve tables but I can't wrap my head around it thanks.
r/love2d • u/InstructionSad5248 • Jun 30 '24
Alguém pode me ensinar como fazer um joystick
r/love2d • u/Beginning-Baby-1103 • Dec 30 '24
Besoin d'aide pour le networking de mon jeu (french)
bonjour a tous, j'aimerais creer un jeu multijoueur avec un systeme d'hebergement de parties, un joueur créer une partie et partage son ip et le numéro de port a l'invité qui les rentres manuellement pour se connecter a la partie, mon code fais precisément ce que je vient de vous decrire, sauf que ca ne marche pas, savez vous pourquoi ? et si oui pouvez vous m'aider a regler le probleme ? merci d'avance.
voici un google drive de mon projet
https://drive.google.com/drive/folders/1ihth5ZEPwG7mLV6efeTv3DBi625tq-IW?usp=sharing
r/love2d • u/QwertyDragon83 • May 19 '16
Drawing images with tables
I made a program to render the mandelbrot set, and it returns a table with data contaning a color value for each pixel. What I am currently doing is drawing each pixel in love.graphics.points(), but it goes very slow. Is there a better way to do this? If not, is there a way to stop love2d from clearing the screen every frame so it can load it in over a number of frames? Here is the basic idea of my code
function reset()
pixels = {}
-- computer then generates color value for each pixel
end
reset()
function love.draw()
for x = 1, 100 do
for y = 1, 100 do
love.graphics.setColor(table[x+y*100])
love.graphics.pixels(x, y)
end
end
endr/love2d • u/dodgamesdev • Aug 09 '20
how do i make these 3 buttons all work
hello so i am coding a main menu and i have been stuck on this for 3 days and i am still learning lua. right now i am close to finishing it and i found out a script that makes the buttons work, but currently right now there is a problem and only one of the 3 buttons on the menu screen work, which is the controls button. i was wondering why only that one worked and the code i used is right here:
love.load code:
myButton = {
x = 100, y = 350, image = love.graphics.newImage("playbutton.png"), clicked = false
}
credit = {
b = 450, d = 350, image = love.graphics.newImage("creditsbutton.png"), clicked = false
}
ctrolled = {
l = 800, p = 350, image = love.graphics.newImage("TROLL.png"), clicked = false
}the love.mouse.pressed:
function love.mousepressed(x, y, button)
if button == 1 then -- start button
if x >= myButton.x and x <= myButton.x+myButton.image:getWidth() and y >= myButton.y and y <= myButton.y+myButton.image:getHeight() then
print("start pressed")
end
end
end
function love.mousepressed(b, d, button)
if button == 1 then -- credit button
if b >= credit.b and b <= credit.b+credit.image:getWidth() and d >= credit.d and d <= credit.d+credit.image:getHeight() then
print("credits pressed")
end
end
end
function love.mousepressed(l, p, button)
if button == 1 then -- start button
if l >= ctrolled.l and l <= ctrolled.l+ctrolled.image:getWidth() and p >= ctrolled.p and p <= ctrolled.p+ctrolled.image:getHeight() then
print("controlls pressed")
end
end
endplease help, thank you
- dodgamedev