CodeCafeOpenShiftGame / PodEscape

Endless runner of a pod trying to escape from a project being deleted.
https://podescape.io
Apache License 2.0
29 stars 16 forks source link

Adding basic menus logic and gamemanager #20

Closed dudash closed 4 years ago

dudash commented 4 years ago

Some really basic menus and game manager integration (currently just score tracking)

Still needs a prettier theme, still needs more options (thinking - config settings and game over).

Addresses #16 and #7

dudash commented 4 years ago

@rluders it should be already

rluders commented 4 years ago

lgtm

RoddieKieley commented 4 years ago

Tested locally both a regular macOS build and a HTML5 build. Works good as a regular app, both to start the game and Quit. In the html5 build if you hit Quit it doesn't appear to do anything but then when you go to Play PodEscape you simply get a blank screen. I'm guessing some resources have been released that would be required.

Not sure if the correct action in a html5 build when 'Quit' is clicked is to close the tab, which is potentially not possible, or to detect that you are in a html5 build and disable the button.

@rluders @dudash What do you think?

rluders commented 4 years ago

@RoddieKieley nice catch about the quit button when the project is exported to HTML. It would be really nice if we could detect if the game was exported to HTML and remove the button in this case. But I have no idea how to do it, or even if its possible.

Maybe this could help: https://docs.godotengine.org/en/3.2/classes/class_os.html

dudash commented 4 years ago

Yeah, looks like we could use OS.get_name(). Or just pull the Quit button out completely. Is our target platform going to be HTML?

dudash commented 4 years ago

@RoddieKieley OK, Quit button is now hidden in HTML5 mode - that was easy. :)