GithubHelp home page GithubHelp logo

adaframe / snail Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 311.8 MB

License: Apache License 2.0

ApacheConf 0.01% JavaScript 91.88% CSS 6.54% HTML 0.75% Python 0.18% CoffeeScript 0.43% ActionScript 0.21% Smarty 0.01% Nginx 0.01% Shell 0.01%

snail's People

Contributors

adaframe avatar aec1140 avatar afmachado avatar alanjas avatar awmusic12635 avatar bzg avatar christophderndorfer avatar codefrau avatar davelab6 avatar francocorreasosa avatar i5o avatar j-shubh avatar jrg96 avatar llaske avatar lp1tek avatar matiasmartineeez avatar mikklfr avatar naofum avatar samswag avatar surajgillespie avatar tchx84 avatar tradzik avatar

Watchers

 avatar  avatar

snail's Issues

Pull in sugarizer repo

Easiest way to work is to pull in the sugarizer repo due to the activities having dependencies throughout the project

Score System

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.

Boomshine-D.pdf

Adding Circles together

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.

Game Ideas

Post Here Example of what gameplay you feel we should have? I feel we should stick with math

Create array of inverse colors

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

Create Fraction Visualizer

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

    • create an attribute in circles this.backColor= rgba(${this.colors[...]`,0.5)
    • in the draw circle function, draw another circle first with the fillstyle set to this new back color
  • Draw normal circle but change arc

    • In the draw circle function in utilities, make sure the second circle has it's fillstyle set to this.color
    • change the arc function for this circle to ctx.arc(.........,0, this.fraction * 2 * Math.PI) this creates a pie chart like effect

create per-team-member issues

Good 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).

Highlighting of Selected index

  • Create an attribute for circle called strokeColor and initialize it to the color value
  • When the circle is selected in doMouseDown set the circles strokeColor to the textColor
  • In the drawCircle function in utilities, set the stroke colorctx.strokeStyle = this.strokeColor after the circle is filled and call ctx.stroke() to stroke the circle.

3 or More in a Row Delete

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

Max amount of moves

A max amount of moves should be in place and the game should stop when you run out of moves. 30 moves sounds good.

  • Create a GAME_STATE enum with....
    • BEGIN, DEFAULT, ROUND_OVER, END
  • In init, set this.gameState to this.GAME_STATE.DEFAULT
  • when max amount of moves has been reached, set gameState to this.GAME_STATE.END
  • in mouseDown, if gameState == this.GAME_STATE.END you should return, as game is over

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.