react-puzzle-games / 15-puzzle Goto Github PK
View Code? Open in Web Editor NEW15 puzzle game built with ReactJS & Material-UI
Home Page: https://15-puzzle.ovidiu.dev/
License: MIT License
15 puzzle game built with ReactJS & Material-UI
Home Page: https://15-puzzle.ovidiu.dev/
License: MIT License
This is a nice way to prevent accidentally losing your progress, just have an alert on page reload only if a game is currently underway.
Not sure how it'll look on mobile, though, need to try it out and see how it feels.
The buttons and messages could do with a Material UI overhaul. The nice part about using it is it's already great on mobile devices so no need to spend a lot of effort on that front.
Will need a mockup though before starting work.
Unlike the Reset button, the New game button should start the game with a new random order of the tiles.
It would be nice to also see how much time has elapsed since you started the game.
On huge displays the tiles are quite small. Introduce a few breakpoints once we have a newer material-ui version.
Hello,
I'm creating a race car game and researching different ways in which the timers are implemented in the games created in react so I wanted to know what made you use setInterval vs requestAnimationFrame?
The method of updating CSS top
and left
is not sufficiently performant, translateX
and translateY
will lead to a much smoother animation.
We need a quick way to win the game as debugging and testing out the game is getting tricky ๐
Ideally a keyboard combination should be used to instantly trigger the win game state, and it should be something obscure so it doesn't get accidentally triggered by users.
WIP
Reasons:
Steps:
yarn eject
It would be nice to have the same footer like in the other games.
eslint src/* --ext js,jsx
lint-staged
field just after prettier runsI'm thinking the arrow keys and wasd
should be used.
How I see it:
Still wondering if there are more edge cases here...
Define Game states as Symbols and check the game status. Implement "grid lock" after game ended.
[ [0,'r'], [1, 'l'], [3, 'u'], [2, 'd'] ]
should be used (tile index 0 to 14 and direction 'r' = 'right', etc...There should be some way to start a new game, canceling any progress that you may have.
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.