2016-08-18 14:14:48 +10:00
|
|
|
http://www.w3schools.com/games/tryit.asp?filename=trygame_default_gravity
|
|
|
|
|
|
|
|
cat game ???
|
|
|
|
gems
|
|
|
|
diff kinds of cats, and food
|
|
|
|
|
|
|
|
swap cat with food = cat chomps food. minor points for food vanish.
|
|
|
|
food: dry food
|
|
|
|
food: wet food
|
|
|
|
food: cheese
|
|
|
|
food: ham
|
|
|
|
|
|
|
|
cat gets fatter ?
|
|
|
|
|
|
|
|
line of diff cats = cat parade. medium points.
|
|
|
|
line of same cats = big points!
|
|
|
|
line of cats with goat at the end = get rid of lots!
|
|
|
|
|
|
|
|
any parade gives you more moves.
|
|
|
|
|
|
|
|
|
|
|
|
game params:
|
|
|
|
# of moves limit
|
|
|
|
score
|
|
|
|
|
|
|
|
----------------------------
|
|
|
|
|
2016-08-20 11:17:22 +10:00
|
|
|
*animate parades
|
|
|
|
*animate chomps
|
|
|
|
*offset entire grid downwards to allow space for a header
|
|
|
|
*add images
|
|
|
|
*award points for stuff
|
|
|
|
*show score up the top
|
|
|
|
*animated points gaining (text fading out)
|
|
|
|
*touch events:
|
|
|
|
* touchstart: a finger is placed on a DOM element.
|
|
|
|
* touchmove: a finger is dragged along a DOM element.
|
|
|
|
* touchend: a finger is removed from a DOM element.
|
2016-08-18 14:14:48 +10:00
|
|
|
|
2016-08-20 11:17:22 +10:00
|
|
|
phone fixes as per http://www.html5rocks.com/en/mobile/touch/
|
2016-08-19 17:46:39 +10:00
|
|
|
|
|
|
|
|
|
|
|
make path part of game object
|
|
|
|
make things part of game object
|
|
|
|
|
|
|
|
ideas:
|
|
|
|
llamas don't appear after the start, you just have to get rid of them all?
|
|
|
|
|
|
|
|
ensure that start of game has at least one valid move!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end if no valid moves
|
|
|
|
after each move:
|
|
|
|
|
|
|
|
are all cats locked? if so, game over.
|
|
|
|
|
|
|
|
for each cell,
|
|
|
|
for each dir,
|
|
|
|
check paths for all lengths
|
|
|
|
if none found, game over
|
2016-08-18 14:14:48 +10:00
|
|
|
|