Skip to content

Commit b7b327f

Browse files
committed
Add instructions and cute story
1 parent 837ed69 commit b7b327f

File tree

4 files changed

+79
-32
lines changed

4 files changed

+79
-32
lines changed

README.md

+2-28
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,3 @@
1-
#7DRL 2016
1+
#Bisbee's Escape
22

3-
## Todo List
4-
5-
- [x] Lose state
6-
- [x] Win state
7-
- [ ] Title
8-
- [x] Multiple levels
9-
- [x] Enemies drop key items
10-
- [x] Player can get pickups
11-
- [x] Show status (item count, current levels)
12-
- [x] Player can continue to next levels
13-
- [x] Smarter Enemies
14-
- [x] More Enemies
15-
- [ ] More Interesting Map Generation
16-
- [x] Randomized Crate Effects
17-
- [x] | Bomb
18-
- [ ] | Wall
19-
- [x] | Create Decoy
20-
- [x] | Create Enemies
21-
- [x] | Tunnel to bottom
22-
- [ ] | ???? MORE ????
23-
24-
## Low Priority
25-
26-
- [ ] Help screen (show identified crates)
27-
- [ ] Title Screen
28-
- [ ] Sound
29-
- [ ] Touch control
3+
Drop

assets/js/game.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,17 @@ var Game = {
66
mapSize: {x: 13, y: 15},
77
init: function() {
88
this.display = PIXI.autoDetectRenderer(Game.mapSize.x * Game.tileSize.x, (Game.mapSize.y + 2) * Game.tileSize.y);
9-
document.body.appendChild(this.display.view);
9+
document.querySelector('.game').appendChild(this.display.view);
1010
this.stage = new PIXI.Container();
1111
this.switchScreen(Game.Screen.playScreen);
12-
window.addEventListener('keydown', function(e) {Game.currentScreen.handleInput('keydown', e);});
12+
window.addEventListener('keydown', function(e) {
13+
if (e.keyCode === ROT.VK_SPACE ||
14+
e.keyCode === ROT.VK_DOWN ||
15+
e.keyCode === ROT.VK_UP) {
16+
e.preventDefault();
17+
}
18+
Game.currentScreen.handleInput('keydown', e);
19+
});
1320
return this;
1421
},
1522
refresh: function() {

assets/js/screen.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Game.Screen.playScreen = {
105105
Game.stage.addChild(graphics);
106106

107107
if (this.gameEnded) {
108-
var levelLabel = new PIXI.Text("STAGE " + this.level, {font:"20px Audiowide", fill:"#888888"});
108+
var levelLabel = new PIXI.Text("LEVEL B" + (8 - this.level), {font:"20px Audiowide", fill:"#888888"});
109109
levelLabel.x = Game.stage.width - 10;
110110
levelLabel.y = 2;
111111
levelLabel.anchor.set(1, 0);
@@ -124,7 +124,7 @@ Game.Screen.playScreen = {
124124
Game.stage.addChild(pressKeyLabel);
125125

126126
} else {
127-
var levelLabel = new PIXI.Text("STAGE " + this.level, {font:"20px Audiowide", fill:"white"});
127+
var levelLabel = new PIXI.Text("LEVEL B" + (8 - this.level), {font:"20px Audiowide", fill:"white"});
128128
levelLabel.x = Game.stage.width - 10;
129129
levelLabel.y = 2;
130130
levelLabel.anchor.set(1, 0);

index.html

+66
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,74 @@
1919
<script src="assets/js/level-templates.js"></script>
2020
<script src="assets/js/map-generators.js"></script>
2121
<script src="assets/js/screen.js"></script>
22+
<style type="text/css">
23+
html, body {
24+
margin: 0;
25+
padding: 0;
26+
}
27+
body {
28+
background: #1A237E;
29+
}
30+
h1 {
31+
text-align: center;
32+
font-family: Audiowide, sans-serif;
33+
font-size: 30px;
34+
color: white;
35+
margin: 20px 0;
36+
}
37+
h2 {
38+
text-align: center;
39+
font-family: Audiowide, sans-serif;
40+
font-size: 20px;
41+
color: white;
42+
margin: 10px 0;
43+
}
44+
canvas {
45+
display: block;
46+
margin: auto;
47+
}
48+
p {
49+
font-family: sans-serif;
50+
color: white;
51+
}
52+
.instructions, .story {
53+
max-width: 600px;
54+
margin: auto;
55+
}
56+
.instructions {
57+
text-align: center;
58+
font-weight: bold;
59+
}
60+
.story, .links{
61+
margin-top: 80px;
62+
line-height: 1.3;
63+
}
64+
</style>
2265
</head>
2366
<body>
67+
<h1>Bisbee's Escape</h1>
68+
<div class="game"></div>
2469

70+
<div class="instructions">
71+
<h2>Instructions</h2>
72+
<p>Use arrow keys, wasd, hjkl, or numpad to move.</p>
73+
<p>Defeat enemies by dropping crates on them.</p>
74+
<p>Learn the crates' mysterious effects.</p>
75+
<p>Collect all the energy scattered throughout the level</p>
76+
<p>OR<p>
77+
<p>Collect datachips from trashed enemies to open the gates to next level.</p>
78+
</div>
79+
80+
<div class="story">
81+
<h2>Story</h2>
82+
<p>Bisbee worked in the robotonium mines day in and day out. It had a job and did its job well. It was content as a robot could be.</p>
83+
<p>Until one day... Suddenly Bisbee had a strange urge to see the surface. There was a whole world out there. What wonders did it hold?</p>
84+
<p>Even Bisbee itself didn't know where this spark of curiousity came from. Was it a software bug? A glitch caused by stray neutrinos? But Bisbee knew one thing for sure. There was a collapsed shaft in Zone 7-R that led straight to the surface...</p>
85+
</div>
86+
87+
<div class="links">
88+
<h2>Links</h2>
89+
<p><a href="https://github.com/walsh9/7drl2016">Source on GitHub</a></p>
90+
</div>
2591
</body>
2692
</html>

0 commit comments

Comments
 (0)