diff --git a/.gitignore b/.gitignore index 3096c2a..f00ab96 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ -game.js -index.js +main.js skin.css diff --git a/Makefile b/Makefile index 5095c05..c44f187 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,14 @@ PACKAGES=unitJS -TARGETS=index.js game.js skin.css +SRC=js +JS_CODE=$(shell find $(SRC) -type f -name '*.js') +TARGETS=main.js skin.css .PHONY: mrproper all: $(TARGETS) -%.js: js/ - sjw -o $@ $(PACKAGES:%=-I %) -m Main.$(@:%.js=%) $^ +main.js: $(JS_CODE) + sjw -o $@ $(PACKAGES:%=-I %) $(SRC) skin.css: skin/ cat $^*.css > $@ diff --git a/game.html b/game.html index fc22982..639db8a 100644 --- a/game.html +++ b/game.html @@ -3,7 +3,7 @@ KoiKoi - + diff --git a/index.html b/index.html index ab74edd..a16d29d 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ KoiKoi - + diff --git a/js/Main.js b/js/Main.js new file mode 100644 index 0000000..103d5b5 --- /dev/null +++ b/js/Main.js @@ -0,0 +1,5 @@ +import * as Login from GUI.Screen.Login; +import * as Hall from GUI.Screen.Hall; + +Login.init(); +Hall.init();