Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First map #2

Open
wants to merge 15 commits into
base: replace-cannon-by-rapier
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
},
"css.validate": true,
"css.format.enable": true
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This is a work in progress, the following list is not exhaustive and is subject
- [x] `Loading` screen
- [x] `Main Menu` screen
- [ ] `Game Over` screen
- [x] Coins gathering
- [ ] Coins gathering
- [x] Basic movements (up, down, left, right, jump)
- [x] Keyboard controls
- [x] Camera rotation
Expand Down
5 changes: 3 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"enabled": true
},
"files": {
"ignore": ["vendor/**/*", "dist/**/*", "node_modules/**/*"]
"ignore": ["vendor", "dist", "node_modules", "static"]
},
"formatter": {
"enabled": true,
Expand All @@ -25,7 +25,8 @@
"javascript": {
"formatter": {
"semicolons": "asNeeded",
"quoteStyle": "single"
"quoteStyle": "single",
"trailingComma": "all"
}
}
}
18 changes: 9 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ services:
- proxy
labels:
- traefik.enable=true
- traefik.http.services.3d-game.loadbalancer.server.port=80
- traefik.http.services.cld.loadbalancer.server.port=80

- traefik.http.routers.3d-game.service=3d-game@docker
- traefik.http.routers.3d-game.rule=Host(`${APP_DOMAIN}`)
- traefik.http.routers.3d-game.entrypoints=web
- traefik.http.routers.3d-game.middlewares=redirect-https
- traefik.http.routers.cld.service=cld@docker
- traefik.http.routers.cld.rule=Host(`${APP_DOMAIN}`)
- traefik.http.routers.cld.entrypoints=web
- traefik.http.routers.cld.middlewares=redirect-https

- traefik.http.routers.3d-game-secured.service=3d-game@docker
- traefik.http.routers.3d-game-secured.entrypoints=web-secured
- traefik.http.routers.3d-game-secured.tls=true
- traefik.http.routers.3d-game-secured.rule=Host(`${APP_DOMAIN}`)
- traefik.http.routers.cld-secured.service=cld@docker
- traefik.http.routers.cld-secured.entrypoints=web-secured
- traefik.http.routers.cld-secured.tls=true
- traefik.http.routers.cld-secured.rule=Host(`${APP_DOMAIN}`)

networks:
proxy:
Expand Down
18 changes: 11 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,21 @@
"private": true,
"scripts": {
"dev": "vite",
"build": "vite build"
"build": "vite build",
"lint": "biome check .",
"lint:fix": "biome check --apply ."
},
"dependencies": {
"@dimforge/rapier3d": "^0.11.2",
"lil-gui": "^0.19.0",
"three": "^0.158.0"
"@dimforge/rapier3d": "^0.13.0",
"three": "^0.165.0"
},
"devDependencies": {
"@biomejs/biome": "^1.5.0",
"@types/three": "^0.160.0",
"vite": "^4.5.0",
"@biomejs/biome": "^1.7.1",
"@types/three": "^0.165.0",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"vite": "^5.2.10",
"vite-plugin-top-level-await": "^1.4.1",
"vite-plugin-wasm": "^3.3.0"
}
Expand Down
Loading