adaframe / snail Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
When adding and fraction >= 1 explode 3x3 square
Easiest way to work is to pull in the sugarizer repo due to the activities having dependencies throughout the project
A score system needs to be put into place. A global score property should be stored and should be incremented when circles are deleted.
See attached document, look for the part where drawHud is created, something similar should be done.
If two fractions do not match but are selected next to each other, add them together.
Left to right ends up on the right. Right to left ends up on the left.
Check to see if the fractions are matching and delete if they are
Post Here Example of what gameplay you feel we should have? I feel we should stick with math
For the array of colors currently, create another array called textColors
where textColors[0]
is the inverse of colors[0]
. Inverse should be the the colors value with each component -255 and %'d
Auto Generate Circles with Fractions Inside
Add some basic gravity and auto generation for circles so we can keep getting more
Currently in the draw function, only one circle is drawn and and fraction is written over it.
Draw a circle first with a lower opacity
this.backColor=
rgba(${this.colors[...]`,0.5)Draw normal circle but change arc
ctx.arc(.........,0, this.fraction * 2 * Math.PI)
this creates a pie chart like effectGood to see you already starting to use issues for this project.
Future additions/changes to this repository should be discussed via issues. The commit messages for those changes should then include closure of the corresponding issue(s).
currently you can click any two circles and they will be added. Need to check if the two circles are next to each other in the array.
strokeColor
and initialize it to the color
valuedoMouseDown
set the circles strokeColor
to the textColor
ctx.strokeStyle = this.strokeColor
after the circle is filled and call ctx.stroke()
to stroke the circle.Like typical candy crush, 3 or more in a row delete for now, in the future, if 4 or more we could add a powerup or something
A max amount of moves should be in place and the game should stop when you run out of moves. 30 moves sounds good.
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.