Compare commits

...

3 Commits

Author SHA1 Message Date
Alexander Popov 57d2088a3a
update welcome 2023-04-30 16:39:54 +03:00
Alexander Popov 12df04b285
add private 2023-04-30 16:27:15 +03:00
Alexander Popov fff2882583
build script 2023-04-30 16:22:50 +03:00
18 changed files with 33 additions and 7 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
dist/

View File

@ -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

View File

@ -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
View File

@ -1,2 +0,0 @@
/fonts/monogram*
/assets/

2
src/js/.gitignore vendored
View File

@ -1,2 +0,0 @@
game.js*
engine.js

View File

@ -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
View File

@ -0,0 +1,3 @@
fonts/monogram*
assets/
js/game.js

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 766 B

After

Width:  |  Height:  |  Size: 766 B

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

1
test/js/engine.js Symbolic link
View File

@ -0,0 +1 @@
../../dist/engine-beeeeeeta.js