Gwenhael Le Moine
|
3de7966666
|
parametrable theme
|
2011-07-16 14:33:18 +02:00 |
|
Gwenhael Le Moine
|
4de9f3eaee
|
cosmetics
|
2011-07-16 14:17:26 +02:00 |
|
Gwenhael Le Moine
|
1f1c9d0413
|
declare functions as var
|
2011-07-16 13:55:58 +02:00 |
|
Gwenhael Le Moine
|
d7134f4d12
|
forgotten parameter
|
2011-07-16 12:45:13 +02:00 |
|
Gwenhael Le Moine
|
8a75d360ef
|
load_sprites monkey-patch assets to put assets in it
|
2011-07-16 12:44:17 +02:00 |
|
Gwenhael Le Moine
|
067d34e65c
|
uncouple switch_actor from its display part
|
2011-07-16 12:38:34 +02:00 |
|
Gwenhael Le Moine
|
373942d2c6
|
move back board update into make_a_move, it's still business, not view
|
2011-07-16 12:33:08 +02:00 |
|
Gwenhael Le Moine
|
474197210e
|
uncoupe move path finding from updating board and drawing
|
2011-07-16 12:30:27 +02:00 |
|
Gwenhael Le Moine
|
8e3b318f63
|
path is an array
|
2011-07-16 11:47:34 +02:00 |
|
Gwenhael Le Moine
|
564b69bafc
|
get_pos returns an array; use switch_actor on click
|
2011-07-16 11:44:36 +02:00 |
|
Gwenhael Le Moine
|
285017b767
|
we change state directly; save moves' path
|
2011-07-16 11:39:02 +02:00 |
|
Gwenhael Le Moine
|
9df46b1116
|
get rid of start_loop; refactor load_level
|
2011-07-15 21:26:08 +02:00 |
|
Gwenhael Le Moine
|
48692bb974
|
I reorganize and it's my joy
|
2011-07-15 20:57:55 +02:00 |
|
Gwenhael Le Moine
|
5558486992
|
void -> empty, second try
|
2011-07-15 12:28:25 +02:00 |
|
Gwenhael Le Moine
|
c7d47d1b3a
|
void is a js keyword
|
2011-07-15 12:23:33 +02:00 |
|
Gwenhael Le Moine
|
fa45c0ef10
|
add default
|
2011-07-15 11:51:09 +02:00 |
|
Gwenhael Le Moine
|
60cf9e5e6e
|
use jQuery() instead of $()
|
2011-07-15 11:29:36 +02:00 |
|
Gwenhael Le Moine
|
a7c5401f21
|
order (and discipline)
|
2011-07-15 08:50:11 +02:00 |
|
Gwenhael Le Moine
|
164fcec321
|
use keycodes as values for direction enum, simplifies the switch
|
2011-07-15 08:48:30 +02:00 |
|
Gwenhael Le Moine
|
e4c429209c
|
add optional level_index parameter
|
2011-07-14 13:10:52 +02:00 |
|
Gwenhael Le Moine
|
b810ee1687
|
show final alert only once, stop handling event then
|
2011-07-14 12:57:51 +02:00 |
|
Gwenhael Le Moine
|
3d5f3d40bb
|
highlight the mysterious nature of the display bug
|
2011-07-14 12:48:57 +02:00 |
|
Gwenhael Le Moine
|
4e626743a4
|
display_level is called later anyway
|
2011-07-14 12:48:01 +02:00 |
|
Gwenhael Le Moine
|
ffd321d323
|
factorize event handling
|
2011-07-14 12:47:10 +02:00 |
|
Gwenhael Le Moine
|
3d34335f50
|
factorized drawing cell on canvas
|
2011-07-14 10:47:17 +02:00 |
|
Gwenhael Le Moine
|
9efab8a024
|
cosmetics
|
2011-07-14 10:41:10 +02:00 |
|
Gwenhael Le Moine
|
77b9939606
|
move code around to try and make more sense
|
2011-07-14 10:37:24 +02:00 |
|
Gwenhael Le Moine
|
518657b121
|
refactoring gone wrong (pulled too early)
|
2011-07-14 10:31:23 +02:00 |
|
Gwenhael Le Moine
|
6b513ed5ba
|
we know where to find the levels
|
2011-07-14 10:29:20 +02:00 |
|
Gwenhael Le Moine
|
64196217cf
|
refoctoring II more
|
2011-07-14 10:28:36 +02:00 |
|
Gwenhael Le Moine
|
a8c9232a87
|
refactoring II in progress
|
2011-07-14 10:24:58 +02:00 |
|
Gwenhael Le Moine
|
efc86e6993
|
refactoring II "moving things around"
|
2011-07-14 09:58:21 +02:00 |
|
Gwenhael Le Moine
|
0670cb375e
|
move things around (it's getting late, time to stop fiddling with this pointlessly)
|
2011-07-13 23:00:02 +02:00 |
|
Gwenhael Le Moine
|
032996dd52
|
encapsulate everything in initialize_a_star()
|
2011-07-13 22:57:02 +02:00 |
|
Gwenhael Le Moine
|
1c7c308c60
|
store dom container name into state
|
2011-07-13 22:55:43 +02:00 |
|
Gwenhael Le Moine
|
9f5c19ee36
|
move sprites into state.board_infos + load_sprites()
|
2011-07-13 22:42:48 +02:00 |
|
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 |
|