Skip to content

Commit 46cadcd

Browse files
author
Artur Ostrega
committed
updated examples to 0.3.1
1 parent 70cc1bc commit 46cadcd

File tree

10 files changed

+25152
-24654
lines changed

10 files changed

+25152
-24654
lines changed

examples/asteroids/code.js

Lines changed: 80 additions & 92 deletions
Large diffs are not rendered by default.

examples/asteroids/dependencies.js

Lines changed: 12268 additions & 0 deletions
Large diffs are not rendered by default.

examples/asteroids/runner.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
<!DOCTYPE html>
21
<html>
32
<head>
4-
<title>Yeah Game</title>
3+
<title>Game</title>
54

65
<style>
76
body {
@@ -44,11 +43,20 @@
4443
</style>
4544
</head>
4645
<body class="center-content">
47-
<canvas width="1280" height="720"></canvas>
46+
<canvas width="720" height="720"></canvas>
4847

48+
<div class="hidden">
49+
50+
</div>
51+
52+
<script src="./dependencies.js"></script>
4953
<script src="./web.js"></script>
5054
<script src="./setup.js"></script>
55+
5156
<script src="./code.js"></script>
57+
5258
<script src="./start.js"></script>
59+
60+
5361
</body>
5462
</html>

examples/asteroids/start.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
$opal.dynamic_require_severity = "error";
44
var self = $opal.top, $scope = $opal, nil = $opal.nil, $breaker = $opal.breaker, $slice = $opal.slice;
55

6-
$opal.add_stubs(['$new', '$last', '$subclasses']);
7-
return $scope.get('Game').$subclasses().$last().$new()
6+
$opal.add_stubs(['$new', '$default']);
7+
return $scope.get('Game').$default().$new()
88
})(Opal);
99

1010
//# sourceMappingURL=yeah/web/start.map

0 commit comments

Comments
 (0)