*restrict catparades on level 1

*help text for all existing levels
*Store level progress and hiscores using localstorage
*new thing type:  goats
*goat help text.
*level select screen needs "back to title"
*mechanism to force at least one of a given thing type on a level.
*better level complete animation - zoom in random cat picture.
*only redraw screen if dirty!
*switch to "star" system for unlocking levels
*fix bug when calculating whether there are any valid moves left
*fix bug in random thing selection
This commit is contained in:
Rob Pearce 2016-08-22 19:52:15 +10:00
parent 2e1198c7dc
commit 34ee0d34f3
15 changed files with 1610 additions and 256 deletions

1779
cat.html

File diff suppressed because it is too large Load Diff

BIN
images/door.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
images/door.xcf Normal file

Binary file not shown.

BIN
images/goat.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

BIN
images/lock.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
images/sunlight.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
images/win0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 KiB

BIN
images/win1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 KiB

BIN
images/win2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

BIN
images/win3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 KiB

BIN
images/win4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB

BIN
images/win5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 KiB

BIN
images/win6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB

BIN
images/win7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

87
todo
View File

@ -27,60 +27,38 @@ phone fixes as per http://www.html5rocks.com/en/mobile/touch/
----------------------------
https://www.smashingmagazine.com/2012/10/design-your-own-mobile-game/
*custom thing chance ratios for each level
*make llamas only start appearing a few levels in
*restrict catparades on level 1
*make help text for llamas come later
*(keep orig help around for reference)
*lv1 help: just how to eat cheese
*lv2 help: just how to make cat parades
*lv3 help: llamas scaring cats, parades can have one llama
*lv4 help: (preview of features)
*Level selection screen
restrict catparades on level 1 -
cat can only go to cheese!
make help text for llamas come later
(keep orig help around for reference)
lv1 help: just how to eat cheese
lv2 help: just how to make cat parades
lv3 help:
llamas scaring cats
parades can have one llama
*Store level progress and hiscores using localstorage
*goats
* cats and goats can gang up on on llamas.
* parades with a goat can have multiple llamas
* goats can't start parades (only cats)
* 50 points
*goat help text.
*level select screen needs "back to title"
*mechanism to force at least one of a given thing type on a level.
*better level complete animation - zoom in random cat picture.
*only redraw screen if dirty!
*switch to "star" system for unlocking levels
*fix bug when calculating whether there are any valid moves left
*fix bug in random thing selection
Level selection screen
grid of numbers for each level
1 2 3 4 5
6 7 8 9 10
...etc
scrolling background of cat paws ?
Store level progress using localstorage
https://www.smashingmagazine.com/2010/10/local-storage-and-how-to-use-it/
localStorage.setItem('favoriteflavor','vanilla');
var taste = localStorage.getItem('favoriteflavor');
// -> "vanilla"
localStorage.removeItem('favoriteflavor');
var taste = localStorage.getItem('favoriteflavor');
// -> null
You can also use sessionStorage instead of localStorage if you want the data to be maintained only until the browser window closes.
better level complete animation
zoom in random cat picture?
title screen -> level select -> help -> startgame
certain levels have help screens (ie. lev 1 is initial help)
remember which level you're up to
complex goal: form x parades of length y
more goals:
form x parades of length y
survive x moves
sounds:
chomp
@ -91,6 +69,19 @@ sounds:
doors -
appear on the EDGE of the map ?
PARADE INTO DOOR = triple points (and door vanishes)
sunlight - makes nerby cats sleepy
doona - hide under it in the cold ?
mouse toy - match 3 to explode everything ?
make path part of game object
make things part of game object