A blocky, side-scrolling game made with Vuejs
![]() The issue happened because of not resetting lastTick: The lastTick is stored to calculate movement speed independent of frame rate. When paused, the delta is calculated with the time before the pause, so it gets huge and results in high velocity values that are used to calculate how far the player moved. |
||
---|---|---|
dist | ||
foo | ||
public | ||
src | ||
.editorconfig | ||
.eslintrc.cjs | ||
.gitignore | ||
.prettierrc | ||
env.d.ts | ||
index.html | ||
package.json | ||
README.md | ||
simplex.html | ||
tsconfig.json | ||
tsconfig.node.json | ||
vite.config.ts | ||
yarn.lock |
building-game
A blocky, side-scrolling, building and exploration game
This version of DIG! is reimplemented with Vue3 and Typescript. To see the old (and probably broken) version, check the vue2 branch.
Build Setup
# install dependencies
yarn
# serve with hot reload at localhost:8080
yarn dev
# build for production with minification
yarn build
Credits
Art, Music and all from OpenGameArt. More specifically:
- https://opengameart.org/content/voxel-pack (Kenneys Game Art is just incredible!)
- https://opengameart.org/content/oves-essential-game-audio-pack-collection-160-files-updated
and partially adapted to my needs.