canhnd58 / duosnake Goto Github PK
View Code? Open in Web Editor NEWGame of one snake is too easy. How about game of two snakes?
Home Page: https://canhnd58.github.io/duosnake/
Game of one snake is too easy. How about game of two snakes?
Home Page: https://canhnd58.github.io/duosnake/
The snakes die when they hit their body.
Should not be annoying
I have no idea how SEO works. :'(
Add Google Analytics (?)
Food can affect oneself or the other with various effects. Some ideas:
Don't need to synchronize game state now
Love value indicates who the snake can bite. The value should be displayed for players to adjust his playstyle
Allow at least two drawing modes:
Also add pause and unpause methods to class Game
Currently the game start automatically. To restart, these commands can be run in the console
game.reset()
game.start()
Create a class or functions to add visual effects to an area in canvas when called.
For example: heart drawing animation
It's too boring when the snake head and body are only static squares
What affects the visibility of one project for github users?
Currently game mode can only be changed by typing in the console
game.mode = GAME_MODE_*
game.reset()
game.start()
An idea: the board displays a placeholder which the two snakes must fill to win
Automatically build and deploy to github pages after pushing a commit to master branch.
Cell state is updated by methods of both Board and Snake. Should only be managed by Board.
Allow other developers to draw their own images for snakes in their own style
Perhaps a snake trying to eat everything on the board (ignoring the player)
The default key mappings are a
, s
, d
, w
for player 1 and k
, l
, ;
, o
for player 2 but the user never knows.
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.