Gwenhael Le Moine
|
fb35f9a22c
|
store dom container name into state
|
2011-07-13 22:55:43 +02:00 |
|
Gwenhael Le Moine
|
240233cc0e
|
move sprites into state.board_infos + load_sprites()
|
2011-07-13 22:42:48 +02:00 |
|
Gwenhael Le Moine
|
6323fb94ad
|
move board_infos into state ; remove options
|
2011-07-13 22:36:20 +02:00 |
|
Gwenhael Le Moine
|
3019da895d
|
increase timeout before drawing first level
|
2011-07-13 22:21:45 +02:00 |
|
Gwenhael Le Moine
|
1ffabde472
|
cosmetics
|
2011-07-13 22:19:35 +02:00 |
|
Gwenhael Le Moine
|
e4dfeb8cec
|
canvas adjustements :
. only draw full board when loading level
. draw only part of the bord each move
. or when switching actors
. + various tweaks
|
2011-07-13 22:17:50 +02:00 |
|
Gwenhael Le Moine
|
cc452edb3e
|
no need of dummy value
|
2011-07-13 21:37:57 +02:00 |
|
Gwenhael Le Moine
|
e1d41ce2b2
|
useless
|
2011-07-13 21:29:40 +02:00 |
|
Gwenhael Le Moine
|
dca98fdee3
|
comment
|
2011-07-13 20:53:52 +02:00 |
|
Gwenhael Le Moine
|
55e6404fae
|
use jQuery instead of getElementById
|
2011-07-13 20:52:59 +02:00 |
|
Gwenhael Le Moine
|
cf20b6eab4
|
beau
|
2011-07-13 20:51:27 +02:00 |
|
Gwenhael Le Moine
|
cea58a9e5b
|
remove debugging stuff
|
2011-07-13 20:50:32 +02:00 |
|
Gwenhael Le Moine
|
f643329db4
|
remove unused css classes
|
2011-07-13 20:48:37 +02:00 |
|
Gwenhael Le Moine
|
e85db4362f
|
refactorign
|
2011-07-13 20:27:10 +02:00 |
|
Gwenhael Le Moine
|
68aa4c8849
|
if html skeleton hasn't been pushed in the DOM it's rather difficult to operate on #facepalm
|
2011-07-13 20:18:39 +02:00 |
|
Gwenhael Le Moine
|
8581b817d3
|
FIXME: don't display board until the first move is played
|
2011-07-13 18:38:28 +02:00 |
|
Gwenhael Le Moine
|
ea9ba295b6
|
now using canvas
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
|
2011-07-13 18:34:03 +02:00 |
|
Gwenhael Le Moine
|
4053fcee3a
|
canvas work in progress
|
2011-07-13 18:17:38 +02:00 |
|
Gwenhael Le Moine
|
1323c934ba
|
pre-canvas, board_infos is global
|
2011-07-13 18:10:16 +02:00 |
|
Gwenhael Le Moine
|
ee96e8f271
|
refactor display code, only refresh changed elements
|
2011-07-13 16:49:47 +02:00 |
|
Gwenhael Le Moine
|
aa465179f8
|
one function initialize_a_star as the entry point
|
2011-07-13 16:45:02 +02:00 |
|
Gwenhael Le Moine
|
c2f5154137
|
emphasis on level's state
|
2011-07-13 16:31:47 +02:00 |
|
Gwenhael Le Moine
|
84133b8ec4
|
check if level is over when playing by mouse
|
2011-07-12 19:05:21 +02:00 |
|
Gwenhael Le Moine
|
7aa6186c68
|
unalign
|
2011-07-12 18:17:13 +02:00 |
|
Gwenhael Le Moine
|
7b017fb2c8
|
refactor the code to make it a bit more readable
|
2011-07-12 18:16:42 +02:00 |
|
Gwenhael Le Moine
|
c4965fca1e
|
simplify on-click if{}
|
2011-07-12 18:05:52 +02:00 |
|
Gwenhael Le Moine
|
e106f42fc3
|
control the actor by mouse-clicks
|
2011-07-12 17:31:09 +02:00 |
|
Gwenhael Le Moine
|
7b77ed6a09
|
give focus in star.js
|
2011-07-12 16:46:04 +02:00 |
|
Gwenhael Le Moine
|
e31b3466e8
|
emphasis keys in help
|
2011-07-07 14:31:09 +02:00 |
|
Gwenhael Le Moine
|
9ef10bf62e
|
help on the left, board centered
|
2011-07-07 14:26:29 +02:00 |
|
Gwenhael Le Moine
|
9172550416
|
make this more readable
|
2011-07-07 14:23:35 +02:00 |
|
Gwenhael Le Moine
|
4de6c90c71
|
add help
|
2011-07-07 09:16:32 +02:00 |
|
Gwenhael Le Moine
|
834591a9d5
|
add 'r' key to reload the level
|
2011-07-07 09:10:00 +02:00 |
|
Gwenhael Le Moine
|
9d060fd25f
|
store the dom element where star will be displayed
|
2011-07-07 09:09:07 +02:00 |
|
Gwenhael Le Moine
|
99900da161
|
alignment
|
2011-07-06 23:42:40 +02:00 |
|
Gwenhael Le Moine
|
e939026242
|
add info panel displaying game's state
|
2011-07-06 23:28:36 +02:00 |
|
Gwenhael Le Moine
|
5a24e218d1
|
put star in a div
|
2011-07-06 23:13:25 +02:00 |
|
Gwenhael Le Moine
|
9ff67413b5
|
display_level builds a self-contained html part
|
2011-07-06 23:08:41 +02:00 |
|
Gwenhael Le Moine
|
aad2f4a3e0
|
displaying characters is optional and off by default
|
2011-07-06 23:04:46 +02:00 |
|
Gwenhael Le Moine
|
3c79be7be4
|
OMG graphics!!
|
2011-07-06 22:47:58 +02:00 |
|
Gwenhael Le Moine
|
b0651c3261
|
same, moves -> distance_travelled
|
2011-07-06 13:46:01 +02:00 |
|
Gwenhael Le Moine
|
f77ff767c9
|
alignment
|
2011-07-05 13:46:17 +02:00 |
|
Gwenhael Le Moine
|
8eb840bb4c
|
indentation
|
2011-07-05 13:45:13 +02:00 |
|
Gwenhael Le Moine
|
a5e70504df
|
Chrom{e,ium} doesn't know for each -.-
|
2011-07-05 11:37:15 +02:00 |
|
Gwenhael Le Moine
|
975cf4f6e1
|
fixed some jslint complaints
|
2011-07-05 11:12:30 +02:00 |
|
Gwenhael Le Moine
|
98f5851b47
|
replace if by string.replace
|
2011-07-05 10:39:56 +02:00 |
|
Gwenhael Le Moine
|
c0d82707cc
|
format_level using regexp replace (a bit over-the-top maybe)
|
2011-07-05 10:14:15 +02:00 |
|
Gwenhael Le Moine
|
59108f4491
|
let's declare our variables
|
2011-07-05 09:54:13 +02:00 |
|
Gwenhael Le Moine
|
f5b2f1300d
|
use for each
|
2011-07-05 09:47:40 +02:00 |
|
Gwenhael Le Moine
|
f3fce15101
|
[ "", "" ].join( '' ) is faster than "" + ""
http://code.google.com/p/jslibs/wiki/JavascriptTips#Multiple_string_concatenation
|
2011-07-05 09:45:14 +02:00 |
|