-
Notifications
You must be signed in to change notification settings - Fork 9
Main menu #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Main menu #61
Conversation
Health bar (wrazik#53)
deleted tank_shot.flac. It should be added via git-lfs
added workflow_dispatch
restored to previous state
tank shout sound (wrazik#57)
added .editorconfig to gitignore
synchronization
- created class GameManager - created class MainMenu - created Notes about SFML
- created classes Button, MenuLevel - modified class MainMenu - modified class Board
- added Text_fonts notes - added Graphics module - Shapes - notes
- added MenuItem base class for Button class - added MenuItem.cpp to CMakeLists
Delete Notes directory
|
Great work! I need some time to analyze this PR (especially callback-design, raw pointers etc...). I will check it this week! |
|
I can't do anything in main menu. How to start a new game? |
|
Changing options with UP, DOWN.
To enter specified menu, press ENTER.
It should work correctly. Let me know if it is not ok.
…On Mon, Nov 13, 2023, 07:41 Wojciech Razik ***@***.***> wrote:
I can't do anything in main menu. How to start a new game?
—
Reply to this email directly, view it on GitHub
<#61 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZRO6ZOKEIDHIPSUGZL7CB3YEG6I3AVCNFSM6AAAAAA7HFHDIGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBXGU2TGNBVHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
It doesn't work on my computer... I tried the version 5fd491a, nothing happens after pressing |
|
It looks like after typing "enter" i receive sf::Event::TextEntered & sf::Keyboard::N (actually I think it should be carriage return) which is super weird. After fixing the code, I'm unable to control the tank... I think I need to spend some time on this (propably week or two), please be patient! |
|
Ok. Thank you for info. What is your OS?
…On Mon, Nov 13, 2023, 08:31 Wojciech Razik ***@***.***> wrote:
It looks like after typing "enter" i receive sf::Event::TextEntered &
sf::Keyboard::N which is super weird. After fixing the code, I'm unable to
control the tank... I think I need to spend some time on this (propably
week or two), please be patient!
—
Reply to this email directly, view it on GitHub
<#61 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZRO6ZPCJGMAITJ43AIG6VTYEHEFXAVCNFSM6AAAAAA7HFHDIGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBXGU4TQNRSGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
Arch Linux unfortunately... :( |
|
In MenuLevel.cpp I use sf::Keyboard::Enter but I googled that it can be
changed to sf::Keyboard::Return.
|
|
sf::Keyboard::Return is the same as sf::Keyboard::Enter. I suspect that this is SFML bug (probably SFML/SFML#2291 ) & it would be simpler to change sf::Keyboard::Enter to sf::Keyboard::Space: To remind:
|
Created skeleton of menu with different levels (e.g. main menu, options).
At this moment it allows to start the game, go to Options menu (which is empty for now) and exit the game.