hiddentoad / pi-in-the-sky-rs Goto Github PK
View Code? Open in Web Editor NEWA simple game based on both spellings of pie.
A simple game based on both spellings of pie.
Write brief instructions on how to play the game
For now just writing the number is sufficient
Later on we might consider that as the user is able to get more and more number, there is gonna be a line break, and eventually the text area might be full so it will need to automatically scroll down
And add a clickable link on that page so the user could learn more about pi https://www.piday.org/learn-about-pi/
Instead of having the digits of pi hardcoded into the code, I'd like for you to load this information before the game starts from and external source.
This website actually has a rest api that can give you the digits of pi (they actually calculated 100 trillion digits - but we don't need all that ha!) https://pi.delivery/
Take into consideration that you don't have to spawn new pie at every new frame
Spawning more pies at the same time will clutter the screen and make it harder to "catch" the correct one that we want, se we could play with this later on if we want to add different stages that increase difficulty
You can start just drawing the number on top of the circle, but afterwards we can create a different issue to polish this visual representation and actually draw the correct number of slices on top of the ellipsis
If the user catches the wrong digit the game is over
We could change this later by giving the user a health bar and decreasing it for every wrong 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.