fixed requires
This commit is contained in:
parent
aec78fedef
commit
275d2f05f5
@ -1,11 +1,12 @@
|
|||||||
# By default Volt generates this controller for your Main component
|
# By default Volt generates this controller for your Main component
|
||||||
|
|
||||||
|
if RUBY_PLATFORM == 'opal'
|
||||||
|
require "main/lib/game"
|
||||||
|
end
|
||||||
module Main
|
module Main
|
||||||
class MainController < Volt::ModelController
|
class MainController < Volt::ModelController
|
||||||
|
|
||||||
def index
|
def index
|
||||||
require "main/lib/game"
|
|
||||||
|
|
||||||
Game.new()
|
Game.new()
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
|
require "opal-phaser"
|
||||||
|
|
||||||
class Score
|
class Score
|
||||||
attr_accessor :score
|
attr_accessor :score
|
||||||
attr_reader :scoreText
|
attr_reader :scoreText
|
||||||
|
Loading…
x
Reference in New Issue
Block a user