Added new victory images.
4
cat.html
|
@ -160,7 +160,7 @@ var MAXDIRS = 4;
|
||||||
var DIRXMOD = [ 0, 1, 0, -1 ];
|
var DIRXMOD = [ 0, 1, 0, -1 ];
|
||||||
var DIRYMOD = [ -1, 0, 1, 0 ];
|
var DIRYMOD = [ -1, 0, 1, 0 ];
|
||||||
|
|
||||||
var MAXWINIMAGES = 8;
|
var NUMWINIMAGES = 12;
|
||||||
var WINIMGZOOMSPEED = 0.1;
|
var WINIMGZOOMSPEED = 0.1;
|
||||||
|
|
||||||
var SCREENW = 480;
|
var SCREENW = 480;
|
||||||
|
@ -3483,7 +3483,7 @@ console.log("lev " + lev + " newwid " + newwid + " ratio " + ratio);
|
||||||
// get a new cat picture for if we win
|
// get a new cat picture for if we win
|
||||||
if (winimg != undefined) delete winimg;
|
if (winimg != undefined) delete winimg;
|
||||||
winimg = new Image();
|
winimg = new Image();
|
||||||
var n = rnd(MAXWINIMAGES);
|
var n = rnd(NUMWINIMAGES);
|
||||||
winimg.src = "images/win" + n + ".png";
|
winimg.src = "images/win" + n + ".png";
|
||||||
this.winimgsize = 0.1;
|
this.winimgsize = 0.1;
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 230 KiB |
Before Width: | Height: | Size: 147 KiB |
Before Width: | Height: | Size: 221 KiB |
Before Width: | Height: | Size: 197 KiB |
Before Width: | Height: | Size: 171 KiB |
Before Width: | Height: | Size: 234 KiB |
Before Width: | Height: | Size: 164 KiB |
After Width: | Height: | Size: 280 KiB |
After Width: | Height: | Size: 242 KiB |
After Width: | Height: | Size: 230 KiB |
After Width: | Height: | Size: 193 KiB |
14
todo
|
@ -8,16 +8,12 @@ https://www.smashingmagazine.com/2012/10/design-your-own-mobile-game/
|
||||||
|
|
||||||
----------
|
----------
|
||||||
|
|
||||||
images for star goals.
|
new title images
|
||||||
On level init:
|
resize to correct
|
||||||
make temp topbuffer - SCREENW x hight
|
rename to correct
|
||||||
3 x
|
git remove old
|
||||||
make temp buffer - starwid + textwid(" = 6,000");
|
|
||||||
blit to temp topbuffer
|
|
||||||
|
|
||||||
In drawtop(){
|
|
||||||
blit topbuffer to screen
|
|
||||||
|
|
||||||
|
.. then git remove new/
|
||||||
|
|
||||||
white outline ?
|
white outline ?
|
||||||
|
|
||||||
|
|