Commit graph

76 commits

Author SHA1 Message Date
Gwenhael Le Moine
af2c04d08c move board_infos into state ; remove options 2011-07-13 22:36:20 +02:00
Gwenhael Le Moine
1bb267f698 increase timeout before drawing first level 2011-07-13 22:21:45 +02:00
Gwenhael Le Moine
6e485e4b50 cosmetics 2011-07-13 22:19:35 +02:00
Gwenhael Le Moine
3b1a365518 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
1733b5c531 no need of dummy value 2011-07-13 21:37:57 +02:00
Gwenhael Le Moine
fa413b05ec useless 2011-07-13 21:29:40 +02:00
Gwenhael Le Moine
0a449ca776 comment 2011-07-13 20:53:52 +02:00
Gwenhael Le Moine
ec1a87eb06 use jQuery instead of getElementById 2011-07-13 20:52:59 +02:00
Gwenhael Le Moine
540e7d1c02 beau 2011-07-13 20:51:27 +02:00
Gwenhael Le Moine
355f66b8a1 remove debugging stuff 2011-07-13 20:50:32 +02:00
Gwenhael Le Moine
27eadd30c8 remove unused css classes 2011-07-13 20:48:37 +02:00
Gwenhael Le Moine
131c836aeb refactorign 2011-07-13 20:27:10 +02:00
Gwenhael Le Moine
6b803219ca load star when document's ready 2011-07-13 20:26:33 +02:00
Gwenhael Le Moine
bbffd9444a 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
e27392d803 FIXME: don't display board until the first move is played 2011-07-13 18:38:28 +02:00
Gwenhael Le Moine
02cb44a000 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
976b6a1f40 canvas work in progress 2011-07-13 18:17:38 +02:00
Gwenhael Le Moine
e8999bd386 pre-canvas, board_infos is global 2011-07-13 18:10:16 +02:00
Gwenhael Le Moine
9f739c7f04 refactor display code, only refresh changed elements 2011-07-13 16:49:47 +02:00
Gwenhael Le Moine
bf7f37a683 one function initialize_a_star as the entry point 2011-07-13 16:45:02 +02:00
Gwenhael Le Moine
1ce575bdeb emphasis on level's state 2011-07-13 16:31:47 +02:00
Gwenhael Le Moine
2d4e27737c add style for index.html proper 2011-07-13 16:25:31 +02:00
Gwenhael Le Moine
10694b3c5c head and foot 2011-07-13 16:25:15 +02:00
Gwenhael Le Moine
e85b06ccc0 increase width of panels 2011-07-13 16:17:24 +02:00
Gwenhael Le Moine
2e49cb0cf2 height known too 2011-07-13 16:15:08 +02:00
Gwenhael Le Moine
9fd9f0498b it's a div already 2011-07-13 16:11:23 +02:00
Gwenhael Le Moine
f9378153f2 the exact width is know 2011-07-13 15:45:27 +02:00
Gwenhael Le Moine
d98f692218 check if level is over when playing by mouse 2011-07-12 19:05:21 +02:00
Gwenhael Le Moine
0415c35176 unalign 2011-07-12 18:17:13 +02:00
Gwenhael Le Moine
cf14f8fa8c refactor the code to make it a bit more readable 2011-07-12 18:16:42 +02:00
Gwenhael Le Moine
ce217fc216 simplify on-click if{} 2011-07-12 18:05:52 +02:00
Gwenhael Le Moine
542eb3fcc4 control the actor by mouse-clicks 2011-07-12 17:31:09 +02:00
Gwenhael Le Moine
ed71c19619 give focus in star.js 2011-07-12 16:46:04 +02:00
Gwenhael Le Moine
07b26c8e57 emphasis keys in help 2011-07-07 14:31:09 +02:00
Gwenhael Le Moine
748a724b15 help on the left, board centered 2011-07-07 14:26:29 +02:00
Gwenhael Le Moine
62e1b4c184 make this more readable 2011-07-07 14:23:35 +02:00
Gwenhael Le Moine
c398f18c38 add help 2011-07-07 09:16:32 +02:00
Gwenhael Le Moine
c5da8b640c add 'r' key to reload the level 2011-07-07 09:10:00 +02:00
Gwenhael Le Moine
f25dead85a store the dom element where star will be displayed 2011-07-07 09:09:07 +02:00
Gwenhael Le Moine
2a7194de98 split css into themes files + common file
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2011-07-07 08:45:51 +02:00
Gwenhael Le Moine
bc650ae7a0 alignment 2011-07-06 23:42:40 +02:00
Gwenhael Le Moine
0097778ceb fix width of info panel 2011-07-06 23:30:16 +02:00
Gwenhael Le Moine
55b659d678 add info panel displaying game's state 2011-07-06 23:28:36 +02:00
Gwenhael Le Moine
098b744301 put star in a div 2011-07-06 23:13:25 +02:00
Gwenhael Le Moine
38f4e81838 display_level builds a self-contained html part 2011-07-06 23:08:41 +02:00
Gwenhael Le Moine
b746e83909 displaying characters is optional and off by default 2011-07-06 23:04:46 +02:00
Gwenhael Le Moine
f7625fb704 OMG graphics!! 2011-07-06 22:47:58 +02:00
Gwenhael Le Moine
ee2ed49d7f remove Makefile
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2011-07-06 22:40:36 +02:00
Gwenhael Le Moine
1da5b7325c import ngstar themes
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2011-07-06 22:40:12 +02:00
Gwenhael Le Moine
043a496756 externalize css
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2011-07-06 22:39:48 +02:00