chocolateloverraj / banana-games Goto Github PK
View Code? Open in Web Editor NEWA cool gaming website
Home Page: https://chocolateloverraj.github.io/Banana-Games/
A cool gaming website
Home Page: https://chocolateloverraj.github.io/Banana-Games/
This would be especially nice for the turret game, when we can use a joystick.
https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API
This is a new game. It is like flame jump. It will use tensorflow hand pose detection model. You stand in front of camera and point a finger gun. Then it knows where you're pointing so you can aim in the screen. To fire you pretend that you fired and quickly angle your gun up to pretend there was recoil.
Steps to reproduce:
Current settings are messy. There are plans to have many different input options, like on screen buttons, keyboard, mouse, gamepad, and camera, and there needs to be a way for a game to use any of those inputs.
Presets are the containers which all settings are stored in.
Games will come with default presets.
For example, in the lane runner game, there will be these default presets:
Camera - jump irl to jump, duck irl to duck, irl x position is current lane.
Keyboard - wasd / arrows to move left, right, jump, and duck
Mouse - Mouse x will switch lanes. Left click to jump, Right click to duck.
Gamepad - Plus pad could be used similar to keyboard arrow keys. A
could be another way to jump, and B
could be for ducking.
Swipe - Swipe left / right to switch lanes, swipe up to jump, swipe down to duck.
Presets can be edited.
New presets can be created.
Presets can be activated manually or automatically. Automatic activation:
A validation error will be shown if two presets have the same activation.
Each game has a specific amount of settings. The user cannot add or remove settings, they can only customize the settings.
To keep inputs flexible, a setting cannot say, "keyboard or on-screen-button, those are your only options". Instead, settings will say something like "I want to know if the input is on or off". Different inputs can be used for different input types.
Other settings are not device specific. For example, adjusting music and sound effect volume, graphics settings.
An action input is like listening for an onClick
event.
A boolean input is either on or off. It's like listening for onMouseDown
and onMouseUp
events. Not every input can be a boolean input. For example, jumping in real life is not a boolean input. Once you jump you will automatically land because of gravity.
There will be a special input just for the lane-runner game (more game could use it but for now it's just the lane-runner game).
Basically getting the angle, and optionally the radius as a fraction (0 is in center of circle, 1 is max radius).
Used for multiplayer. The array can have a minimum and maximum number of items. The array can have multiple sub-settings with their own type. There will be a special input for array input type.
Inputs can be customized / calibrated. Examples:
Inputs can give warnings like "Key A is already being used". Settings can still be saved and the game can be played with warnings.
To fix #20, settings can specify that the input type needs at least one input. Settings will not be saved with errors like this. The game cannot be played with errors.
You can add, edit, remove presets
Each preset is a customization of settings. Settings can be input settings.
You can set 0+ inputs for input settings.
You can customize inputs. Some inputs can be made up of other inputs.
Inputs this:
Settings is an array of settings. Not a map.
false
if there are errors that cannot be ignored)An enum of input types. Input types written in UI section.
Any input is a helper function which returns a setting which can use any input, based on the input type.
Inputs: Name, input type
Output: Setting functions
An array of all inputs in Banana Games. To add an input in the future (for example, an input which let's you use another device with a browser as an input), just include it in this array.
TODO
In this mode two people stand side by side. The last person standing wins.
This would show the time of the last commit that changed files specific to a game
This link in https://chocolateloverraj.github.io/Banana-Games/#/service-worker doesn't work:
X, Y, Z is measured in blocks. One lane width is one block wide.
The player can jump 1 block. So player can jump over short obstacles but not tall obstacles.
Actually move left, right, jump, and duck.
Use plus pad < and > to switch lanes. Use A to jump and B to duck.
Use a, d, left arrow, right arrow to switch lanes. Use up / down arrows, w / d to jump / duck.
Swipe left / right to switch lanes. Swipe up to jump. Swipe down to duck.
I don't want to downgrade back to v5, or find an alternative. I will wait for them to add Prompt
back to v6.
Development will be way easier and better with Vite because of little to no waiting between saving a file and seeing changes.
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.