Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 27 lines (20 sloc) 0.46 kb
0c2df7e @mattgu74 first commit
authored
1 /*
2 * OpaTetris
3 *
4 * @author Matthieu Guffroy
5 *
6 */
7
8 import mattgu74.tetris
9
10 conf()=
9d9f664 [] defined canvas and cube colors, add titles
Ida Swarczewskaja authored
11 myTetris = Tetris(25, 10, 20, 250, Color.rgb(31,31,31))
0c2df7e @mattgu74 first commit
authored
12 myTetris.init(#game)
13
14 @client Load()=
15 conf()
16
17 start()=
cef3a7c @mattgu74 New design, Add the view of the next element
authored
18 <div id=#game >
9d9f664 [] defined canvas and cube colors, add titles
Ida Swarczewskaja authored
19 <div class="logo"></div>
cef3a7c @mattgu74 New design, Add the view of the next element
authored
20 <div id=#info onready={_ -> Load()}>Load</>
21 </>
22
23
0c2df7e @mattgu74 first commit
authored
24 server = Server.one_page_bundle("M@ttgu74 - Game - Tetris",
25 [@static_resource_directory("resources")],
cef3a7c @mattgu74 New design, Add the view of the next element
authored
26 ["resources/resources.css"], start)
Something went wrong with that request. Please try again.