Balloon Adventure

Show off your games, demos and other (playable) creations.
User avatar
BoonyBuny
Prole
Posts: 31
Joined: Mon Jun 13, 2022 1:24 am
Location: France
Contact:

Balloon Adventure

Post by BoonyBuny »

image_2022-07-02_025850640.png
image_2022-07-02_025850640.png (369.36 KiB) Viewed 3325 times
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)

here's all the links:
Source Code Balloon Adventure.zip
Source code
(3.68 MiB) Downloaded 117 times
Balloon Adventure.zip
compiled .exe file
(7.8 MiB) Downloaded 105 times
A coding begginer that is migrating from 8 years of Scratch... yea yikes. :emo:
Andlac028
Party member
Posts: 174
Joined: Fri Dec 14, 2018 2:27 pm
Location: Slovakia

Re: Balloon Adventure

Post by Andlac028 »

BoonyBuny wrote: Sat Jul 02, 2022 1:00 am 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
User avatar
ReFreezed
Party member
Posts: 612
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

Re: Balloon Adventure

Post by ReFreezed »

Cute. I like the speedy bird. :P
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
User avatar
BoonyBuny
Prole
Posts: 31
Joined: Mon Jun 13, 2022 1:24 am
Location: France
Contact:

Re: Balloon Adventure

Post by BoonyBuny »

Andlac028 wrote: Sat Jul 02, 2022 8:20 am
BoonyBuny wrote: Sat Jul 02, 2022 1:00 am 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 crashes at launch
A coding begginer that is migrating from 8 years of Scratch... yea yikes. :emo:
User avatar
BoonyBuny
Prole
Posts: 31
Joined: Mon Jun 13, 2022 1:24 am
Location: France
Contact:

Re: Balloon Adventure

Post by BoonyBuny »

ReFreezed wrote: Sat Jul 02, 2022 12:23 pm Cute. I like the speedy bird. :P
Ey thanks! don't hesitate to send feedbacks :p
A coding begginer that is migrating from 8 years of Scratch... yea yikes. :emo:
User avatar
pgimeno
Party member
Posts: 3548
Joined: Sun Oct 18, 2015 2:58 pm

Re: Balloon Adventure

Post by pgimeno »

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:
  • make fullscreen an option, disabled by default;
  • manage resolutions;
  • allow ESC to close the intro screen
The deprecation warning can be disabled with love.setDeprecationOutput, by the way.
User avatar
BoonyBuny
Prole
Posts: 31
Joined: Mon Jun 13, 2022 1:24 am
Location: France
Contact:

Re: Balloon Adventure

Post by BoonyBuny »

pgimeno 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:
  • make fullscreen an option, disabled by default;
  • manage resolutions;
  • allow ESC to close the intro screen
The deprecation warning can be disabled with love.setDeprecationOutput, by the way.
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 learn

default resolution is 1920x1080

and thanks for that love.setDeprecationOutput code!
A coding begginer that is migrating from 8 years of Scratch... yea yikes. :emo:
User avatar
GVovkiv
Party member
Posts: 668
Joined: Fri Jan 15, 2021 7:29 am

Re: Balloon Adventure

Post by GVovkiv »

make auto-managing screen resolutions
Someone say SCREEN RESOLUTION? :awesome:
check my signature, might help with that, hah.
User avatar
BoonyBuny
Prole
Posts: 31
Joined: Mon Jun 13, 2022 1:24 am
Location: France
Contact:

Re: Balloon Adventure

Post by BoonyBuny »

GVovkiv wrote: Sat Jul 02, 2022 4:51 pm
make auto-managing screen resolutions
Someone say SCREEN RESOLUTION? :awesome:
check my signature, might help with that, hah.
I will check them out, noted
A coding begginer that is migrating from 8 years of Scratch... yea yikes. :emo:
User avatar
pgimeno
Party member
Posts: 3548
Joined: Sun Oct 18, 2015 2:58 pm

Re: Balloon Adventure

Post by pgimeno »

Well, a quick and dirty solution that worked for me was to add this at the beginning of love.draw():

Code: Select all

  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 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)
    ...
At least I could play. It's quite difficult, I could only collect 1 coin :)
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests