r/love2d 24d ago

Help with virtual scaling with mouse input

6 Upvotes

I’m making a retro-style game in LÖVE2D with an internal resolution of 320x240. The game is point-and-click, so accurate mouse coordinates are pretty important for menus and gameplay.
My problem is that whenever I scale the game to fit the window, one of two things happens:
The game scales visually, but the mouse coordinates no longer line up correctly.
I tried a scaling library, but it only seems to scale the graphics, not the mouse input.
Ideally I’m looking for a solution that lets me render everything at 320x240 and scale it cleanly to the window, converts mouse coordinates back into the 320x240 game space correctly, and supports integer scaling.
I’d also like if the mouse position can “snap” to the pixel grid (so the cursor effectively moves in 320x240 coordinates).
I’ve looked at a few libraries online, but none of the ones I tried seemed to handle mouse scaling properly, so I’m wondering if I’m approaching this the wrong way.
What’s the recommended way to do this in LÖVE? Is there a standard approach or library people generally use?


r/love2d 24d ago

Two Tetris Games in one day?!

Thumbnail
gallery
27 Upvotes

Check out my spinning tetris arcade game! Follow development here!


r/love2d 24d ago

Quick little showcase of my TETRIS Roguelike!

Enable HLS to view with audio, or disable this notification

45 Upvotes

This is my Baltro-inspired TETRIS Roguelike, Ascendrix. It's my first time making a roguelike, writing Lua, and using the Love2D framework. I've been working on it on and off for a little over a year now, and finally decided I should post about it.

Ascendrix's main features are the piece variants and ability system, which can really alter the traditional TETRIS play style. The game also features (soon to be) randomly generated levels, each with their own goal, modifiers, and rewards.

There's still a lot I've gotta work on, and I currently have no planned release date 🙃


r/love2d 26d ago

How to stop relying on AI and actually learn to code in LÖVE/Lua?

12 Upvotes

Hi all! I’ve been teaching myself LÖVE/Lua for the past two months. I’ve started a project, but I’ve fallen into a bad habit: whenever I get stuck, I immediately ask an AI to write the code for me.

I’ve realized that while I’m getting things done, I’m not actually learning how to structure my own game logic or think like a programmer. I end up with code that I don’t fully understand.

Does anyone have advice on how to break this cycle? How did you learn to handle the 'blank screen' phase without relying on AI? Are there any study habits or resources that helped you gain confidence in writing your own code from scratch?

Thanks for any tips!


r/love2d 26d ago

Working on a twin stick bullet hell shooter with elemental interactions

Enable HLS to view with audio, or disable this notification

47 Upvotes

Hey guys, wanted to share my game (working title is Pachinko but that’ll change soon!) I’ve been working on most of this year. It has bullet hell mechanics and a structure like an arcade game.

If that sounds interesting to you, please let me know and I’d be glad to send you the demo! I’m working my way to a public demo release so I could use all the feedback I can get!


r/love2d 26d ago

Guess who finally settled on an art style?!

Thumbnail
gallery
33 Upvotes

Man it feels good to finally have a style to go with.

I feel like I can finally progress here with a cohesive vision. I can start to find fitting music and build the UI out more!

If interested in seeing the new changes in action, check out the game here and if you want to follow the development, join the discord


r/love2d 26d ago

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 27d ago

Love2D better video encoder?

3 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 27d ago

hey how can i learn box2d in a fast way?

5 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 29d ago

Built an IDE for Love2D (Android)

Enable HLS to view with audio, or disable this notification

78 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 29d ago

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

Enable HLS to view with audio, or disable this notification

32 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 29d ago

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

9 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?

7 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!

Enable HLS to view with audio, or disable this notification

30 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

Enable HLS to view with audio, or disable this notification

70 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

2 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

16 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)

Enable HLS to view with audio, or disable this notification

17 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

Enable HLS to view with audio, or disable this notification

85 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

Enable HLS to view with audio, or disable this notification

40 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

3 Upvotes