Balloon Adventure
Balloon Adventure
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)
here's all the links:
A coding begginer that is migrating from 8 years of Scratch... yea yikes.
Re: Balloon Adventure
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
Re: Balloon Adventure
Cute. I like the speedy bird.
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
"If each mistake being made is a new one, then progress is being made."
Re: Balloon Adventure
neat! I just used it in my love.load() that just checks if data.txt exists, if not, write 0 to all scoresAndlac028 wrote: ↑Sat Jul 02, 2022 8:20 amIt 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
just to prevent crashes at launch
A coding begginer that is migrating from 8 years of Scratch... yea yikes.
Re: Balloon Adventure
Ey thanks! don't hesitate to send feedbacks :p
A coding begginer that is migrating from 8 years of Scratch... yea yikes.
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 to close the window, but many Linux users won't have that, and might be forced to restart the machine.
So I'd suggest to:
Fortunately I've configured my window manager to add a key to close the window, but many Linux users won't have that, and might be forced to restart the machine.
So I'd suggest to:
- make fullscreen an option, disabled by default;
- manage resolutions;
- allow ESC to close the intro screen
Re: Balloon Adventure
fullscreen is on by default but F11 disables it ! sry, i dont know how to make auto-managing screen resolutions yet, it's still a test game to learnpgimeno wrote: ↑Sat Jul 02, 2022 2:17 pm 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 to close the window, but many Linux users won't have that, and might be forced to restart the machine.
So I'd suggest to:The deprecation warning can be disabled with love.setDeprecationOutput, by the way.
- make fullscreen an option, disabled by default;
- manage resolutions;
- allow ESC to close the intro screen
default resolution is 1920x1080
and thanks for that love.setDeprecationOutput code!
A coding begginer that is migrating from 8 years of Scratch... yea yikes.
Re: Balloon Adventure
Someone say SCREEN RESOLUTION?make auto-managing screen resolutions
check my signature, might help with that, hah.
Re: Balloon Adventure
I will check them out, noted
A coding begginer that is migrating from 8 years of Scratch... yea yikes.
Re: Balloon Adventure
Well, a quick and dirty solution that worked for me was to add this at the beginning of love.draw():
Also, making the window resizeable should be no problem.
I've taken a quick look into the code because the first time I press F11 it does nothing. That's because of a problem with the scope of a variable. You declare fullscreen as local inside love.load(), and then use it in love.keypressed, but since it's local to love.load, what love.keypressed actually accesses is the global variable fullscreen, which defaults to nil which is equivalent to false when negated. The fix is to move it from love.load to the top of the file:
At least I could play. It's quite difficult, I could only collect 1 coin
Code: Select all
local scale = math.min(love.graphics.getWidth()/1920, love.graphics.getHeight()/1080)
love.graphics.scale(scale)
I've taken a quick look into the code because the first time I press F11 it does nothing. That's because of a problem with the scope of a variable. You declare fullscreen as local inside love.load(), and then use it in love.keypressed, but since it's local to love.load, what love.keypressed actually accesses is the global variable fullscreen, which defaults to nil which is equivalent to false when negated. The fix is to move it from love.load to the top of the file:
Code: Select all
local fullscreen, fstype = true, "desktop"
function love.load()
love.window.setFullscreen(fullscreen, fstype)
...
Who is online
Users browsing this forum: No registered users and 2 guests