Had not occured to me that this was possible, but I suppose it would be (at the time I did the fix I didn't know about _G).
Search found 160 matches
- Mon Jan 01, 2024 3:31 pm
- Forum: General
- Topic: [Just for fun] Roast my code.
- Replies: 14
- Views: 297906
- Sun Dec 31, 2023 3:31 pm
- Forum: General
- Topic: [COMING SOON] Love2D Community Art
- Replies: 5
- Views: 67995
- Sun Dec 31, 2023 1:32 pm
- Forum: General
- Topic: I am using LOVE to make an Animated Youtube Cartoon
- Replies: 4
- Views: 36815
Re: I am using LOVE to make an Animated Youtube Cartoon
Seems pretty charming so far! I've been meaning to add functionality for cutscenes in my own game, maybe I should research how it's done. This is just my own opinion, but since the style of it is still very clearly an RPG, maybe it might be worth leaning into it a bit more? Of what I've seen so far,...
- Sun Dec 31, 2023 1:06 pm
- Forum: General
- Topic: [Just for fun] Roast my code.
- Replies: 14
- Views: 297906
Re: [Just for fun] Roast my code.
Also, namespace pollution is a thing, and one may inadvertently use the same name for two different things, and have one overwrite the other, causing a bug. I did this myself at one point - for some unknown reason, I have one module that uses a local variable named, and a global for the rest of the...
- Sat Dec 30, 2023 3:39 pm
- Forum: General
- Topic: New User / Game Idea Help
- Replies: 5
- Views: 29810
Re: New User / Game Idea Help
This is just my opinion, but I personally wouldn't recommend doing anything with a text input as your first project with Love2D - I'm sure you can probably use libraries to make them, but love itself doesn't offer much in terms of text input. I think this kind of project would also need some well th...
- Fri Dec 29, 2023 5:40 pm
- Forum: Games and Creations
- Topic: In the Heavens - Demo 0.1.12
- Replies: 54
- Views: 1063989
In the Heavens - Demo 0.1.10
Hello again! I'm back with a 'new' update for people to try out! I've been sitting on this one for a while now, since I've both been busy with new assignments (which aren't done), and am easily distracted by other programming projects. I expected this to be a fairly minor change, but I'm looking at ...
- Fri Dec 29, 2023 12:49 pm
- Forum: General
- Topic: I used ChatGPT
- Replies: 16
- Views: 263830
Re: I used ChatGPT
Please remember that ChatGPT (etc) is not an AI at all Tbh AI has always been a bit of a vague term anyway, probably because intelligence is also poorly defined. I'll try to avoid getting philosophical, though I would like to point out that much stupider programs have been considered as AI (e.i. np...
- Fri Dec 29, 2023 12:22 pm
- Forum: General
- Topic: [Just for fun] Roast my code.
- Replies: 14
- Views: 297906
Re: [Just for fun] Roast my code.
Also, love.graphics.printf has text wrapping built in, you might want to consider using it instead.
- Thu Dec 28, 2023 7:28 pm
- Forum: General
- Topic: [COMING SOON] Love2D Community Art
- Replies: 5
- Views: 67995
Re: [COMING SOON] Love2D Community Art
Sounds like an interesting project! I've seen a bit of your past work so I'm interested to see what you do here. Maybe I should update my avatar... though then again, I haven't been obeying for a while now so why start now?
- Thu Dec 28, 2023 1:37 pm
- Forum: Games and Creations
- Topic: Started My Very First Love2d Game
- Replies: 25
- Views: 360809
Re: Started My Very First Love2d Game
I make a variable global if it is used in more than one function. What I guess I'm forgetting to do because I'm new to Lua is to use the local keyword everywhere I should. I'll need to spiff it up a bit. It does have a nice feel to it and I think I'm doing a decent job organizing the code and keepi...