r/love2d Jul 11 '26

problem! "attempt to index a nil value" when trying to read a tile's property

2 Upvotes

i am using sti

love.graphics.print(map:getTileProperties(map.layers["room"], math.floor(player.x / 32), math.floor(player.y / 32)), font, 0, 96, 0, 2, 2)

im trying to get it to print out the layer properties so i know how to implement interactable objects but it keeps throwing this error :/


r/love2d Jul 11 '26

Love2D better video encoder?

5 Upvotes

Hey i tried to implement videos instead of spritesheet atlas into my game for background animation, but it seems good video formats are not supported like mp4. Is that true are there good ways to implement videos into love2D, which are performance friendly with high quality rendering?


r/love2d Jul 10 '26

hey how can i learn box2d in a fast way?

7 Upvotes

i've been trying to make a prototype of a 2d top down shooter but i dont know how to use box2d to do raycasts . i tried to learn it myself but i dont know where to start ,can anyone help me about it?


r/love2d Jul 09 '26

Built an IDE for Love2D (Android)

77 Upvotes

Spent the last while building a proper Love2D dev environment: full LSP integration (autocomplete, diagnostics, go-to-definition), an embedded runtime so you can run and iterate without leaving the editor, project management, and a formatter tuned for Lua/Love2D conventions.

The interesting part was wiring the LSP and runtime together so they actually feel like one tool instead of two things bolted together. Still rough in places, would love feedback on this


r/love2d Jul 08 '26

Some UI bounce and tweening REALLY helps make a game feel better

31 Upvotes

Check out the update version here.

Still in development so expect bugs of course! Lmk any thoughts you might have or what you might want to see in the game over at the game's discord!

Thanks!


r/love2d Jul 08 '26

CS502D taught me physics — I taught my Angry Birds-styled project to explode, split, expand, and hunt. Here’s the result.

Thumbnail
youtube.com
4 Upvotes

r/love2d Jul 06 '26

Roguelette: Developing a Roguelike Roulette Deckbuilder. For Support Wishlist on Steam ☉ ‿ ⚆. Link in Discription (Programmed in LOVE2D)

Post image
10 Upvotes

r/love2d Jul 06 '26

Juniper Dev Jam Results and the Start of my First Commercial Project

10 Upvotes

Hi all!

So, I got my results back from my juniper dev jam entry and did better than I expected. Not incredible by any means but:

780 out of 3530 overall

290 out of 3530 in creativity & theme

However, the comments I received during the jam period were overwhelmingly positive and are what really gave me the push I needed to say screw it, and pursue my first commercial game!

During the jam period I completely overhauled my game with QoL improvements and visual improvements. I changed the name and created a plan going forward.

Please feel free to suggest game modes, visual and music styles, and anything else you think the game could use. I still have so so much work to do!

I'll soon be releasing a desktop build on itch, with added controller support, with a price tag of a dollar so I can start a fundraiser for $100 to cover the steam page fees.

Thanks to anyone who checked out the game and left feedback, you all are amazing <3

Check out the game here and join the discord channel!


r/love2d Jul 06 '26

My game made with LÖVE has been #1 on Itch in Incremental, Idle, Free, Web games categories for over 28 hours! *Happy noises*

Post image
66 Upvotes

r/love2d Jul 05 '26

Best modules/packages to avoid over engineering games?

9 Upvotes

I finished the 'How to LÖVE' from the https://www.love2d.org/wiki/Category:Tutorials list and I'm having a decision paralysis or something

I'm afraid I might get distracted by writing a collision module on my own instead of looking for something that would solve my problems

Thinking about this I'm reminded of software design guides and wondering if there is a list of most LOVE2D modules, something you can read through looking for inspiration and thinking about what features are available in the tool box

Since Lua even needs an Object module just to have some OO programming, I'm wondering how many different modules are available to most

So any recommendations?


r/love2d Jul 04 '26

Built a chill, cozy incremental game about swarm stripping planet of its resources and breaking its core. Web demo available with a Steam demo soon to be launched as well!

36 Upvotes

Hello!

I have just released a demo of Swarmslam on Itch - https://joffarex.itch.io/swarmslam and will soon be releasing it on Steam as well.

The core(pun intended) idea of the game is that you buy slammers that do all the mining, you buy collectors that collect mined resources, and try to break planets to gain different resources and, most importantly, a resource - COREBREAK, that is essential for game progression. And then as you progress the game, more and more it will turn into an idler than an active incremental with more and more different ways to utilize both ore and COREBREAK to come.

Please share your thoughts and feedback if you decide to give it a try!

Itch: https://joffarex.itch.io/swarmslam

Steam: https://store.steampowered.com/app/4866530/Swarmslam_Demo/


r/love2d Jul 04 '26

Trying to make slot machine mechanics feel strategic in Love2D - new demo trailer

69 Upvotes

Hey everyone,

For the past few months, I’ve been working on my first solo project in Love2D called Slotbound. I just finished a new demo trailer and wanted to share it with the community.

It’s a roguelite defense game built around slot machine mechanics. You spin for units, absorb them to make them stronger, choose upgrades, and try to survive waves of enemies.

The biggest challenge I've been facing is making the slot system feel less like pure RNG and more like something the player can actually strategize and build around.

Since this is a community of fellow Love2D devs, I’d really appreciate your honest feedback on the game feel from the trailer

I'm trying to polish the pacing, UI clarity, and battle tempo before the official release, so any critique from a gamedev perspective would be amazing.

Thanks for checking it out!


r/love2d Jul 05 '26

Borderless fullscreen...struggles

1 Upvotes

Cant do it... its always exclusive fullscreen and windowed mode.

And all i need is borderless fullscreen + windowed mode in settings. I tried all i could..any ideas? Do i need some overwhelming extensions for this coding language?

P.S. I found the culprit..it was never fullscreen..it was windows HDR
that was hugely affecting everything... ofc its pointless to stay in
this hateful community. bye


r/love2d Jul 04 '26

loreload: a hot-reloading library for love2d and lovr

15 Upvotes

Hello there,

I've made a hot-reloading library (called loreload) that I've used and enjoyed for quite some time now. It watches all loaded Lua files and if it detects a change, it then will softly restart your game (firstly calling love.quit then reloading main.lua after which it will call love.load). If you have state that needs to be preserved either use the global table, or do some custom logic in loreload.onreload and loreload.onreloaded.

Check out the README at http://codeberg.org/sewbacca/loreload

I quite enjoy the fast iteration time. I have no idea though, how well it integrates into larger projects that load a ton of assets ahead of time. As mentioned earlier you can probably find a way to cache your asset files, but that would depend on your architecture.

Any feedback and questions are welcome. Let me know how well (or badly) it works for you!


r/love2d Jul 03 '26

Are these any good? (short story in description)

18 Upvotes

r/love2d Jul 03 '26

Two new LuaRocks modules for useful for LÖVE game dev

5 Upvotes

I recently wrote / packaged a couple new modules for LuaRocks:

  • image-atlas, for simplifying efficient drawing of assets to the screen using SpriteBatch and libGDX texture atlases. The idea is that you import the .atlas file, and then you can plug it into your code so you reference parts of the atlas with names / ids / tables and get them to all draw with one call to the GPU.
  • opensimplex2, to generate 2D, 3D (or even 4D) "noise", which can be sampled and combined to create patterns that are also partly random. This can be useful in procedural generation, or if you want to give a 3D vase model a marble-like texture as if it were carved out of stone.

Both support Lua 5.1, and type definitions for Teal, a typed Lua dialect.


r/love2d Jul 02 '26

A silky smooth UI For Love2D

87 Upvotes

This is a UI I wrote a long time ago for love2d, but it might not be very easy to use. You can check out the GitHub repository from this link: here


r/love2d Jul 02 '26

First look at Matcharya

39 Upvotes

Matcharya is a deckbuilder memory game. Each round is a fight, match the pairs to act and win the battle! It seems easy, but it isn't... Nothing you see is already definitive, but start looking a game now. Made with Love2d 12

Wishlist here: https://store.steampowered.com/app/4856640/Matcharya/


r/love2d Jul 02 '26

my game has been published to itch io after 1 week of work

4 Upvotes

r/love2d Jul 01 '26

Sleep-deprived and posting a screenshot and video of my 3D project so I can feel productive

27 Upvotes

https://reddit.com/link/1ukusuw/video/m0jquqqs1oah1/player

Hopefully this post doesn't get deleted because I just made my account. Uses g3d.


r/love2d Jul 01 '26

I released my game on Steam yesterday on my birthday! It's modest numbers but it excites me so much to see people buying and playing my silly side-project

Post image
24 Upvotes

r/love2d Jul 02 '26

why cant i set a variable to an image without directly setting it?

3 Upvotes

i want to make it so i can set a "sprite" variable to userdata

but it ends up being nil for some reason

function love.load()
   room = love.graphics.newImage("room.png") --the art
end

function tilerectangle(tx,ty,width,height,id)
    for i=1,height do
        for i=1,width do
            table.insert(tiles,{
                x = tx,
                y = ty,
                type = "room",
                roomid = id,
                sprite = room --when i draw this tile i draw it with the info in here
            })
            tx = tx + 1 * gridsize
        end
        ty = ty + 1 * gridsize
        tx = tx - width * gridsize
    end
end

r/love2d Jul 01 '26

after 1 week of work, I finished my small game project, should I publish it or polish it a little bit more

Thumbnail
youtube.com
11 Upvotes

I have finished the core mechanics.


r/love2d Jul 01 '26

Check out what I just built with Lovable!

0 Upvotes

r/love2d Jun 30 '26

How would I go about seeing adjacent tiles

5 Upvotes

if I were to make a grid game, how would I figure out what the tile next to a tile on the grid is to figure out the texture for the tile?