Merge branch 'webpack' of vega.uberspace.de:dev/node-fftcg into webpack
This commit is contained in:
commit
9f0d13c475
8 changed files with 31 additions and 4 deletions
|
@ -1,5 +1,10 @@
|
||||||
import $ from 'jquery'
|
// libs
|
||||||
|
const $ = require('jquery')
|
||||||
|
|
||||||
|
// style sheet
|
||||||
|
require('./style/custom.scss')
|
||||||
|
|
||||||
|
// on load
|
||||||
$(() => {
|
$(() => {
|
||||||
require('craftyjs/dist/crafty.js')
|
require('craftyjs/dist/crafty.js')
|
||||||
require('./game/test_entities.coffee')
|
require('./game/test_entities.coffee')
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
CONF = require '../config.coffee'
|
||||||
|
|
||||||
# intermediate config
|
# intermediate config
|
||||||
bcConf = Crafty.clone CONF.bigcard
|
bcConf = Crafty.clone CONF.bigcard
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
CONF = require '../config.coffee'
|
||||||
require './BigCard.coffee'
|
require './BigCard.coffee'
|
||||||
|
|
||||||
################
|
################
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
CONF = require '../config.coffee'
|
||||||
|
|
||||||
################
|
################
|
||||||
# Playmat
|
# Playmat
|
||||||
################
|
################
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
CONF = require '../config.coffee'
|
||||||
require '../components/Playmat.coffee'
|
require '../components/Playmat.coffee'
|
||||||
|
|
||||||
Crafty.defineScene "Battle", ->
|
Crafty.defineScene "Battle", ->
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
|
CONF = require './config.coffee'
|
||||||
|
require './components/Card.coffee'
|
||||||
|
require './scenes/Battle.coffee'
|
||||||
|
|
||||||
# init Socket.IO
|
# init Socket.IO
|
||||||
socket = io()
|
socket = io()
|
||||||
|
|
||||||
# init CraftyJS framework
|
# init CraftyJS framework
|
||||||
Crafty.init()
|
Crafty.init()
|
||||||
|
|
||||||
require './components/Card.coffee'
|
|
||||||
require './scenes/Battle.coffee'
|
|
||||||
|
|
||||||
# Load base scene
|
# Load base scene
|
||||||
Crafty.scene "Battle"
|
Crafty.scene "Battle"
|
||||||
|
|
||||||
|
|
14
static/crafty-min.js
vendored
Normal file
14
static/crafty-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -3,6 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<title>Crafty Things</title>
|
<title>Crafty Things</title>
|
||||||
<script src="/socket.io/socket.io.js"></script>
|
<script src="/socket.io/socket.io.js"></script>
|
||||||
|
<script src="crafty-min.js"></script>
|
||||||
<script src="game.bundle.js"></script>
|
<script src="game.bundle.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
|
|
Reference in a new issue