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
|
||||
|
||||
|
||||
if RUBY_PLATFORM == 'opal'
|
||||
require "main/lib/game"
|
||||
end
|
||||
module Main
|
||||
class MainController < Volt::ModelController
|
||||
|
||||
def index
|
||||
require "main/lib/game"
|
||||
|
||||
Game.new()
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
require "opal-phaser"
|
||||
|
||||
class Score
|
||||
attr_accessor :score
|
||||
attr_reader :scoreText
|
||||
|
Loading…
Reference in New Issue
Block a user