Compare commits
3 Commits
7b9c1b4bc8
...
57d2088a3a
Author | SHA1 | Date | |
---|---|---|---|
57d2088a3a | |||
12df04b285 | |||
fff2882583 |
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
dist/
|
11
README.md
@ -1,3 +1,5 @@
|
||||
# ⚠️ STATUS: DEVELOPMENT
|
||||
|
||||
![engine_icon](/src/icons/apple-touch-icon.png)
|
||||
|
||||
# Documentation
|
||||
@ -15,8 +17,17 @@ cd src/js/
|
||||
rollup main.js --file engine.js --format es
|
||||
```
|
||||
|
||||
# Use it
|
||||
|
||||
...
|
||||
|
||||
# Contribute
|
||||
|
||||
## Branch info
|
||||
|
||||
- `master` — current `dev` branch.
|
||||
- `release` — latest **stable** version branch.
|
||||
|
||||
## Git hooks
|
||||
|
||||
### pre-commit
|
||||
|
@ -1,4 +1,12 @@
|
||||
{
|
||||
"private": true,
|
||||
"version": "beeeeeeta",
|
||||
"scripts": {
|
||||
"build": "rm -rf ./dist/ && rollup src/js/main.js --file dist/engine-$(npm pkg get version | tr -d '\"').js --format es",
|
||||
"prettier-check": "prettier --check .",
|
||||
"prettier-write": "prettier --write .",
|
||||
"editorconfig-check": "ec ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "2.8.7"
|
||||
}
|
||||
|
2
src/.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
/fonts/monogram*
|
||||
/assets/
|
2
src/js/.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
game.js*
|
||||
engine.js
|
@ -33,10 +33,16 @@ export class App {
|
||||
this.scene = new Scene(this.canvas, this.context, w, h);
|
||||
this.prevTime = Date.now();
|
||||
|
||||
const logStrings = [
|
||||
'ujs engine',
|
||||
`version: ${this.#version}`,
|
||||
'feedback: iiiypuk {dog} fastmail.fm',
|
||||
];
|
||||
|
||||
if (this.options.welcome) {
|
||||
console.log('ujs engine');
|
||||
console.log('version:', this.#version);
|
||||
console.log('feedback:', 'iiiypuk {dog} fastmail.fm');
|
||||
logStrings.forEach((str) => {
|
||||
console.log(str);
|
||||
});
|
||||
}
|
||||
|
||||
Pointer.init();
|
||||
|
3
test/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
fonts/monogram*
|
||||
assets/
|
||||
js/game.js
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 766 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
1
test/js/engine.js
Symbolic link
@ -0,0 +1 @@
|
||||
../../dist/engine-beeeeeeta.js
|