game tryout
BIN
app/main/assets/baddie.png
Executable file
After Width: | Height: | Size: 15 KiB |
BIN
app/main/assets/diamond.png
Executable file
After Width: | Height: | Size: 508 B |
BIN
app/main/assets/dude.png
Executable file
After Width: | Height: | Size: 3.2 KiB |
BIN
app/main/assets/firstaid.png
Executable file
After Width: | Height: | Size: 554 B |
89590
app/main/assets/js/phaser.js
Normal file
BIN
app/main/assets/platform.png
Executable file
After Width: | Height: | Size: 15 KiB |
BIN
app/main/assets/sky.png
Executable file
After Width: | Height: | Size: 4.6 KiB |
BIN
app/main/assets/star.png
Executable file
After Width: | Height: | Size: 443 B |
@ -3,6 +3,3 @@
|
||||
|
||||
# bootstrap css framework
|
||||
component 'bootstrap'
|
||||
|
||||
# a default theme for the bootstrap framework
|
||||
component 'bootstrap_jumbotron_theme'
|
||||
|
1
app/main/config/initializers/client/phaser.rb
Normal file
@ -0,0 +1 @@
|
||||
require 'opal-phaser'
|
@ -1,8 +1,13 @@
|
||||
# By default Volt generates this controller for your Main component
|
||||
|
||||
|
||||
module Main
|
||||
class MainController < Volt::ModelController
|
||||
def index
|
||||
# Add code for when the index view is loaded
|
||||
require "game"
|
||||
|
||||
Game.new()
|
||||
|
||||
end
|
||||
|
||||
def about
|
||||
|
@ -3,4 +3,3 @@
|
||||
|
||||
<:Body>
|
||||
<h1>Home</h1>
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
<:nav href="/">Home</:nav>
|
||||
<:nav href="/about">About</:nav>
|
||||
</ul>
|
||||
<h3 class="text-muted">salama-debugger</h3>
|
||||
<h3 class="text-muted">Salama Debugger</h3>
|
||||
</div>
|
||||
|
||||
<:volt:notices />
|
||||
@ -16,7 +16,7 @@
|
||||
{{ view main_path, 'body', {controller_group: 'main'} }}
|
||||
|
||||
<div class="footer">
|
||||
<p>© Company {{ Time.now.year }}</p>
|
||||
<p> <a href="http://salama-vm.org/" >Salama</a> {{ Time.now.year }}</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|