[Community] Loading screen and menu screen and pause screen
Currently the menu background is not tilled and the single player button once clicked the game freezes then the world loads. Buttons do not work properly if window scaled Still execute main.py to run it
The world saving is defiantly quicker than the loading
There is no joystick support for the buttons yet :(
Cool! I'll check it out in a bit.
The world saving is defiantly quicker than the loading
That makes sense, all saving does is save block ID's of modified chunks, whereas loading has to load every chunk & generate their meshes, which is the most computationally expensive part.
There is no joystick support for the buttons yet :(
@drakeerv
Thank you, will try do them :)
how do i merge them into my branch?
Pardon, how do you merge what into your branch?
your sugesstions
There is no joystick support for the buttons yet :(
There should be? Idk it works for me
@drakeerv but no support for my GUI clickable buttons yet
Ah I will try to get it working if I have free time
your sugesstions
Ah well you can't "merge" those. You can address them by simply committing to your branch though.
I recommend adding the "Loading world" text just when clicking on "singleplayer" to prevent people getting confused why the game is suddendly freezing
@Jukitsu I will do that once I've done the other stuff
on_resize is missing on the main window
"refresh rate" is unnecessary
and toggle fullscreen needs "window.set_fullscreen" isntead of self.set_fullscreen
@Jukitsu quick tip: you can make a review for that kinda stuff instead of putting everything into individual comments
Most things are done now
Will take a look later today. Could you tell me which changes you made to the world save? There seem to be some conflicts.
Just added a hidden jukebox somewhere to find. it's quite easy to find tho
Right. I'll have to see if there's a way/write a program to easily merge Minecraft worlds because obviously git can't do that on its own 😄
Still don't have a working on_resize implementation for the menus/buttons but the main game sill rezies
here's a good font: https://www.dafont.com/grand9k-pixel.font (click download btn there)
then use font in pyglet
Looking good!
A couple other things I wanted to note:
- When the game starts loading, it should be paused by default.
- Resizing doesn't work properly anymore (
on_resizeremoved?).Overall nice work!
In Minecraft, that's not how it works (as far as I know). It is not paused by default (when I say paused, I mean the pause menu is on screen).
Just added a hidden jukebox somewhere to find. it's quite easy to find tho
wdym? easter egg? noice
In Minecraft, that's not how it works (as far as I know). It is not paused by default (when I say paused, I mean the pause menu is on screen).
If the world is still loading, then I do think it should be paused for better user experience.
The code is not proper. It crashes the whole computer, windows 11, python v 3.9
@aniketm32012 The last time I tried it, it did work. But that was ages ago and pyglet may of changed somethings. Does the normal version (from obiwac) work?
Closing in favour for #104