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 |
|
Gwenhael Le Moine
|
3479387310
|
same, moves -> distance_travelled
|
2011-07-06 13:46:01 +02:00 |
|
Gwenhael Le Moine
|
1e35d4e313
|
alignment
|
2011-07-05 13:46:17 +02:00 |
|
Gwenhael Le Moine
|
8e76404378
|
indentation
|
2011-07-05 13:45:13 +02:00 |
|
Gwenhael Le Moine
|
c71a6ecd6f
|
Chrom{e,ium} doesn't know for each -.-
|
2011-07-05 11:37:15 +02:00 |
|
Gwenhael Le Moine
|
a3a7506099
|
fixed some jslint complaints
|
2011-07-05 11:12:30 +02:00 |
|
Gwenhael Le Moine
|
dcd895f1e0
|
replace if by string.replace
|
2011-07-05 10:39:56 +02:00 |
|
Gwenhael Le Moine
|
c372de0e76
|
format_level using regexp replace (a bit over-the-top maybe)
|
2011-07-05 10:14:15 +02:00 |
|
Gwenhael Le Moine
|
1decb5d98b
|
let's declare our variables
|
2011-07-05 09:54:13 +02:00 |
|
Gwenhael Le Moine
|
34b94f0cca
|
use for each
|
2011-07-05 09:47:40 +02:00 |
|
Gwenhael Le Moine
|
7e1926cbcb
|
[ "", "" ].join( '' ) is faster than "" + ""
http://code.google.com/p/jslibs/wiki/JavascriptTips#Multiple_string_concatenation
|
2011-07-05 09:45:14 +02:00 |
|
Gwenhael Le Moine
|
d5b18f2e6c
|
single loop in format_level
|
2011-07-05 09:32:38 +02:00 |
|
Gwenhael Le Moine
|
5b8a904530
|
use [] instead of charAt()
|
2011-07-05 09:18:27 +02:00 |
|
Gwenhael Le Moine
|
0788f72009
|
typo
|
2011-07-04 21:18:20 +02:00 |
|
Gwenhael Le Moine
|
ffc7c98c87
|
removing an ugly switch by adding an ugly array :/
|
2011-07-04 21:17:14 +02:00 |
|
Gwenhael Le Moine
|
4a287c8441
|
; to amek js2-mode happy
|
2011-07-04 21:10:44 +02:00 |
|
Gwenhael Le Moine
|
e5ab1deb5d
|
correct width of #blackboard
|
2011-07-04 17:56:53 +02:00 |
|
Gwenhael Le Moine
|
1d6a88494d
|
center
|
2011-07-04 17:54:17 +02:00 |
|
Gwenhael Le Moine
|
d91600470a
|
OMG with colors and ungodly slowliness
|
2011-07-04 17:53:00 +02:00 |
|
Gwenhael Le Moine
|
1c7ce20bcb
|
refoctoring to have state always as first argument ; fix end of game test
|
2011-07-04 17:23:22 +02:00 |
|
Gwenhael Le Moine
|
92bfa8e599
|
indentation
|
2011-07-04 17:19:39 +02:00 |
|
Gwenhael Le Moine
|
4ea4dd56ef
|
old C code
|
2011-07-04 17:19:22 +02:00 |
|
Gwenhael Le Moine
|
58e904d2a9
|
add n and p to move among levels ; end of game alert
|
2011-07-04 16:51:03 +02:00 |
|
Gwenhael Le Moine
|
fc7cf65955
|
set focus
|
2011-07-04 16:43:20 +02:00 |
|
Gwenhael Le Moine
|
03a2de71b4
|
import html5boilerplate
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
|
2011-07-04 16:41:02 +02:00 |
|
Gwenhael Le Moine
|
7426c13e4d
|
fully functional
|
2011-07-04 16:40:15 +02:00 |
|
Gwenhael Le Moine
|
c79743eade
|
starting javascript version (for world domination)
|
2011-07-04 16:11:42 +02:00 |
|