maximforever / bossfight Goto Github PK
View Code? Open in Web Editor NEWA PHP-backend game I built with James Mayr
A PHP-backend game I built with James Mayr
The back-end currently does not have a mechanism for changing the weather, and it currently does nothing to affect the game. Various weather states should have an impact on lots of things!
We need to pass parameters from the front-end (such as url parameters, like the game id) to the back-end (to determine which game to display for observers). A very important example is button-presses; right now, pressing the attack/dodge/rest buttons does nothing, but it needs to send a value to the server, which executes the player's move.
For game balance, I think heal is a better option than rest (and makes dodge much more important). Heal would mean increasing the health, strength, and speed of teammates only, instead of rest, which increases those stats only for that player.
In a game that includes rest, it is always better to rest than to dodge - one can increase your stats, while the other can only slow the decrease. However, a game with heal means you can never directly increase your stats, and must depend on others to cooperate, so dodging is a viable strategy if your health is low enough that you need to be healed.
tl;dr: heal adds a little more depth of strategy.
Currently, when you win or lose, your screen would just display "0 health" for you or the boss, depending on the scenario. I need to create a redirect to the win and lose screens when this is the case.
On the index.html page, we need form validation to ensure the "Join" and "Create" buttons cannot submit a form unless the "name" field is filled in with a string of text - letters & numbers only, and perhaps 4-16 characters. Similarly, hitting the "Join" button should not be an option unless the "game-id" text box contains a number.
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.