Search found 31 matches
- Sat Jul 02, 2022 8:12 pm
- Forum: Games and Creations
- Topic: Balloon Adventure
- Replies: 10
- Views: 4713
Re: Balloon Adventure
Well, a quick and dirty solution that worked for me was to add this at the beginning of love.draw(): local scale = math.min(love.graphics.getWidth()/1920, love.graphics.getHeight()/1080) love.graphics.scale(scale) Also, making the window resizeable should be no problem. I've taken a quick look into...
- Sat Jul 02, 2022 5:32 pm
- Forum: Games and Creations
- Topic: Balloon Adventure
- Replies: 10
- Views: 4713
- Sat Jul 02, 2022 3:57 pm
- Forum: Games and Creations
- Topic: Balloon Adventure
- Replies: 10
- Views: 4713
Re: Balloon Adventure
I have a few problems. I couldn't even start. My screen is 1280x1024; it starts in fullscreen with a wider resolution, and part of the text goes off the screen. There's also no obvious key to exit: ESC, Ctrl+Q and Ctrl+C didn't do anything. Fortunately I've configured my window manager to add a key...
- Sat Jul 02, 2022 1:35 pm
- Forum: Games and Creations
- Topic: Balloon Adventure
- Replies: 10
- Views: 4713
- Sat Jul 02, 2022 1:34 pm
- Forum: Games and Creations
- Topic: Balloon Adventure
- Replies: 10
- Views: 4713
Re: Balloon Adventure
I used the old love.filesystem.exists() tho It seems like it will be re-added in Love 12.0, as it is faster then getInfo if you only want to know, if it exists. See this commit neat! I just used it in my love.load() that just checks if data.txt exists, if not, write 0 to all scores just to prevent ...
- Sat Jul 02, 2022 1:00 am
- Forum: Games and Creations
- Topic: Balloon Adventure
- Replies: 10
- Views: 4713
Balloon Adventure
image_2022-07-02_025850640.png I'm glad to announce my first semi-serious game, still very silly. It's a silly quick project I made in about a week, the goal was to learn different ways to make gameplay, backgrounds and of course the dreaded filesystem (I used the old love.filesystem.exists() tho) ...
- Tue Jun 28, 2022 11:15 am
- Forum: Support and Development
- Topic: How To Save Data In Love2d
- Replies: 9
- Views: 5850
- Mon Jun 27, 2022 6:49 pm
- Forum: Support and Development
- Topic: Anotther difficulty
- Replies: 25
- Views: 7904
Re: Anotther difficulty
]Thanks to all of you, my saving and loading system works perfectly. codes: loads the save in love.load() local highscores={} for line in love.filesystem.lines("data.txt") do table.insert(highscores, tonumber(line)) end bestscore=highscores[1] coins=highscores[2] saves the game function sa...
- Mon Jun 27, 2022 6:04 pm
- Forum: Support and Development
- Topic: Anotther difficulty
- Replies: 25
- Views: 7904
Re: Anotther difficulty
local highscores={} for line in love.filesystem.lines("data.txt") do table.insert(highscores, line) end bestscore=highscores[1] coins=highscores[2] works fine, it' sin my love.load() function, the UI shows perfectly the best score and the coins collected in that best run, but there's one ...
- Mon Jun 27, 2022 4:54 pm
- Forum: Support and Development
- Topic: Anotther difficulty
- Replies: 25
- Views: 7904
Re: Anotther difficulty
Oh thanks! and yes I used your method without any libraries, im gonna tinker things around and if it works I'm gonna post my solution here, so other people that may have my problem have the solution