-
Notifications
You must be signed in to change notification settings - Fork 16
/
index.haml
51 lines (40 loc) · 1.11 KB
/
index.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
!!! 5
%html
%head
%meta{charset: "utf-8"}
%title Space Invaders
%link{rel: "stylesheet", href: "style.css"}
%body
#cont
.top-info
#lives
%img{src: "images/life.png"}
%img{src: "images/life.png"}
%img{src: "images/life.png"}
.info-level
LEVEL
#info_level 1
#mute MUTE
%a.github{href: "https://github.com/oldboyxx/space_invaders", target: "_blank"} GITHUB
#intro
.controls
%img{src: "images/keys.png"}
.space Shoot with spacebar
.arrows Move with arrow keys
.start Press space to start
#loading
.title loading...
#game_over
.bg
.center
.title GAME OVER
.continue Press space to continue
#levelup
.bg
.title
LEVEL
#ingame_level 1
%canvas#game_screen{height: 500, width: 1000}
Your browser does not support canvas technology. Please try again with a different browser.
%script{:src => "sounds/howler.js"}
%script{:src => "script.js"}