pedropsi / game-bar-source Goto Github PK
View Code? Open in Web Editor NEWPedro PSI game bar
Pedro PSI game bar
Why
These features are essentially settings which do not need to be readily accessible all the time.
Settings: mute, autosave on/off, clear saves, disable animations and whatever comes up.
What
Move all settings to a submenu.
How
Balloon similar to level select.
Why
Players new to the game bar might not know the function of each button. It might be nice if the game bar would diplay the function in text while the game is in main menu before switching to the icons.
This has accessibility benefits. It will also make it much easier to introduce new icons in the future.
What
While in main menu, display the game bar like
| hints | undo | restart | level select | music | fullscreen |
How
need a function to determine if in main menu, also bar item width needs to be constant which might be difficult.
Why
Useful in most cases, can still be manually adjusted.
What
Whenever fullscreen is selected on mobile, the screen orientation switches to landscape.
How
itch fullscreen does this
Describe the bug
the bookmarklet does not seem to work on itch.io games anymore.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
game bar opening
Why
after the player is finished playing your game, they are likely to just close the tab and move on with their life. since we want to prevent this and eternally keep them in the grips of our webpage we need to provide them with an alternate option. when embedding games on external sites it would be nice to have a feature that draws some traffic in.
What
after the player has finished a game and registered for the hall of fame, show them 3 other games. these could be either hand-picked (for game series like BK and SB...) or picked from a list. List always shows most recent game and 2 random games.
Why
May be motivating for perfectionist players.
What
Display an optional "Perfect Clear" or "Minimal Move" star ⍟ instead of the default star when certain "merit" conditions are met.
How
Now to record this type of information extra info must be supplied to the game, such as which tiles to eliminate, how many moves are minimal, etc...
Why
Users with mobile devices have specific controls
What
Change the instructions text (among other things) when a mobile device is detected
How
Check how people have solved this before
Currently the ★ is added as a unicode char. This increases the width of the flex item and breaks the alignment of the buttons.
Instead of adding the star, an image of the star could be placed in the background of the item. This would allow for further customization since the star image can be replaced.
Adding an optional image for unsolved levels and the currently selected level in a similar fashion would be a fancy addition.
Why
Creators might want to embed their games on external sites. Both the credits function and the how to play function currently link to external parts of the page.
Since this won't work for embedded games, the instructions and credits need to work from within the game bar.
What
A generic overlay function that is able to display formatted text and image. Would find use for embedding play instructions and credits.
It might make sense to spread the instructions over multiple pages with controls like in hints.
Hotkey ? could be referenced on the title screen and open an instruction/credit selector.
This bigger overlay could be reused for a potential settings menu.
How
Maybe the content can be somehow appended to the main game html? Otherwise separate files? Are there good markdown to html converters in .js? I imagine markdown support would be quite cool for hint formatting as well..
What
When locked levels are shown in level select, there should be a way for the user to get feedback about the unlock conditions. For linear+X, such a message could be 'Solve X more levels to unlock Level 12'. A boss level could be announced like 'Solve all previous levels to unlock level 12'. Levels >bosslevel+X would announce 'Solve all levels up to 12 and then X more to unlock level 16.'
Why
To resolve intransparencies in progression logic. Later on there could be other kinds of (more visual) feedback.
How
Console message?
What is the Problem / bug
turning to landscape mode on a mobile device crops the left and right border
System information:
Describe the bug
"Checkpoints currently overwrite level select & there is no way to return to it except for beating the level."
Expected behavior
Should be possible to select both the level and the checkpoint
Why
players should be able to see how many hints they have used
What
an ascii representation of hints used in a level/total hints !
How
image
Describe the bug
Taping the game bar lvl select menu to open, causes a doubletap, closing the menu immediately
Smartphone (please complete the following information):
Chrome & Kiwi browser
Which feature could be better documented?
The game bar page
What info is missing or would be nice to have?
Why
Undo and Restart are closely related, but have a lot of space between the icons. Seeing them both together should also help with quickly determiting which is which.
The same could be true for other related buttons, and with a somewhat low number of those, there is room for moving icons and buttons closer together while keeping them big enough to click.
What
Less wide undo and restart buttons (potentially with "Undo" and "Restart" text or "U" and "R", further removing space without making the clickable area smaller, but keeping the distinction between them). Remaining space could be between unrelated buttons instead. Grouping level saving and loading features together on one side and buttons like undo and music could also work, or even centering a smaller gamebar on bigger screens so that buttons keep a maximum width.
What is the Problem / bug
The problem occurs on games with action (see Multiban). Mobile version has tap to trigger action, but action also gets triggered when tapping on undo, restart or when opening/closing level select.
Think it might relate to refocusing gameCanvas, which can be disabled on mobile I suppose since a swipe should refocus.
Video
see PN
Why
What
Replare the main menu with a generic title screen. Should be able to load the game title and creator from the game if no menu code provided. If there is custom menu code it loads the custom menu from .html file (this would allow for game logos and image buttons).
Shows the new game and continue buttons as usual, but also has 'how to play', and 'credits' buttons. Mobile layout has bigger buttons and scrolling, desktop displays some keyboard shortcuts.
Why
To free space for the game bar
What
Force hide Android Chrome Menu
How
window.scrollTo(0,1); after detecting the appropriate browser version
Additional context
This hack does NOT work on Chrome 49 when the content height is less than the viewport.
Why
It would be nice to have a way of defining level categories, so that levels can be grouped by mechanic/complexity.
What
Levels are divided into categories in the level select menu.
Each category is shown as 'Category name 00/XX' where XX is the amount of levels in that category and 00 is the amount of solved levels in that category.
Ideally categories can be collapsed and expanded.
How
One array gives the category titles, another array the # of levels for each of the categories.
catName = [Intro, Beginner, Advanced, Expert]
catAmt = [4, 7, 11, 9]
What
When opening the level select with L, players that play with WASD should be able to control the bar. Similarly, X as an additional confirm option seems reasonable.
How
I hope your rewrite of the hotkey system makes this an easy change.
Why
What
How
Possibly: https://fireship.io/lessons/pwa-to-play-store/
What
Add a toggleable feature for displaying locked levels, give visual feedback for boss levels by displaying them in an alternate style (even when solved). Alternate style could be a thicker outline and/or underlined text. Later on there could be a boss level icon.
Why
To add a way for visually distinguishing between regular and boss levels.
NB: if you think you can fix it yourself, please submit a pull request instead of an issue!
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
Describe the bug
After the autosync, customising the bar is no longer possible without some effort.
Why
Some players will prefer not having the gamebar visible at all times, especially in fullscreen mode.
What
Add a small 'collapse' button ⥥ ⥣ in the left of the game bar. When collapsed, show an expand button together with undo in the bottom left (undo should remain easily accessible).
Why
Mostly convenience, but also accident prevention.
How
copy undo stack before level change, then merge with newly loaded level
Why
The game bar is a bit slim and going for the undo button sometimes results in a miss, especially on smaller devices. Inputing a big amount of undos can become tedious.
What
On mobile devices, replace the undo element in the game bar with a floating action button. Press and hold should repeat undo, just like it does with keyboard input.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.