Search found 115 matches
- Tue Apr 20, 2021 9:04 pm
- Forum: Support and Development
- Topic: Trouble with screenshots
- Replies: 1
- Views: 37
Trouble with screenshots
Hi all, I was working on a sample state machine / crappy game demo as a followup to this post of mine. I decided to use a screenshot for fun to make some transition effects, and it seems like Love is refusing to make more than 1 screenshot. It either crashes (if I release the old screenshot) or it s...
- Mon Apr 19, 2021 8:27 pm
- Forum: Support and Development
- Topic: Efficiently drawing a grid map
- Replies: 19
- Views: 521
Re: Efficiently drawing a grid map
I thought sprite batching became automatic in Love a few versions ago? Am I mistaken about what that meant? I mention that later on. https://love2d.org/forums/viewtopic.php?p=240186#p240186 Manual batching is still available. As I mention in that post, I'm not sure whether it improves performance o...
- Mon Apr 19, 2021 6:50 pm
- Forum: Support and Development
- Topic: Efficiently drawing a grid map
- Replies: 19
- Views: 521
- Mon Apr 19, 2021 6:22 pm
- Forum: Support and Development
- Topic: If statement and Goto
- Replies: 30
- Views: 1351
Re: If statement and Goto
If I have three states: LevelOne, LevelTwo and Pause, then I need to return from pause to first and second level, isn't that? Or Menu with submenues. Each level shouldn't need it's own state. The states should be more like MainMenu & PlayingGame, and maybe LevelLoad too. Anything that functions...
- Thu Apr 15, 2021 2:54 pm
- Forum: Support and Development
- Topic: about Lua and games
- Replies: 1
- Views: 151
Re: about Lua and games
See the Games & Creations thread: https://love2d.org/forums/viewforum.php?f=14 Look for anything with an attachment or a link. You'll find code snipets, full games (.love files), etc. Keep in mind that a .love file is just a renamed .zip file - you can unzip it to see all the files & code. A...
- Tue Apr 13, 2021 2:59 pm
- Forum: Support and Development
- Topic: If statement and Goto
- Replies: 30
- Views: 1351
Re: If statement and Goto
Here's a sample game state system I just whipped up. I've not done this before, so I don't promise it's correct, but I think it's solid. The only thing I don't like about is all the string repetition. It would be better to define the strings in one table and then set player.string to that. (Which wo...
- Tue Apr 13, 2021 1:10 pm
- Forum: Support and Development
- Topic: REQUESTING HELP - Posting Rules
- Replies: 36
- Views: 293075
Re: REQUESTING HELP - Posting Rules
Love2D isn't a game itself. It's framework for games. You still have to supply the .love game file. Once you have that, don't run Love2D itself - run the .love instead.
- Tue Apr 13, 2021 12:57 pm
- Forum: Support and Development
- Topic: Multidimentional arrays/Tables
- Replies: 14
- Views: 564
Re: Multidimentional arrays/Tables
You can also use the # prefix to get the size of a table Note though that it only counts the elements from index 1 up until the first nil. Not on my system. local test = {1, 2, 3, 4, 5} print(#test) -- 5 test[3] = nil print(#test) -- 5 print() for i = 1, #test do print(i, test[i]) end The output of...
- Mon Apr 12, 2021 9:10 pm
- Forum: General
- Topic: Camera Tutorial Link Expired
- Replies: 2
- Views: 370
- Mon Apr 12, 2021 8:12 pm
- Forum: Support and Development
- Topic: my love2d is broken
- Replies: 6
- Views: 326
Re: my love2d is broken
Sounds like you've got a bad install or something corrupted in your OS. Try this: 1. Uninstall Love2D 2. Reboot 3. Download a fresh installer and re-install Love2D Let us know if that doesn't work. EDIT - What's changed since the last time it worked properly? Or is this a new install? Could also be ...