Skip to content

Commit

Permalink
move assets
Browse files Browse the repository at this point in the history
  • Loading branch information
shanimal08 committed Jan 31, 2025
1 parent ead6e4c commit 0216521
Show file tree
Hide file tree
Showing 25 changed files with 251 additions and 332 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
35 changes: 0 additions & 35 deletions dist/README.md

This file was deleted.

474 changes: 237 additions & 237 deletions dist/main.js

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions lib/scripts/core/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const Loader = () => {
list.push(async () => {
try {
const response = await fetch(url);

const buffer = await response.arrayBuffer();
const schematicJsonSize = new Uint32Array(buffer, 0, 1)[0];
const schematic = JSON.parse(new TextDecoder().decode(new Uint8Array(buffer, 4, schematicJsonSize)));
Expand Down Expand Up @@ -78,8 +77,6 @@ const Loader = () => {
}

function loadTexture(url, cb) {
console.debug(url);

list.push(() => {
new THREE.TextureLoader().load(
url,
Expand Down
2 changes: 1 addition & 1 deletion lib/scripts/core/settings.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const ASSETS_PATH = '/assets';
export const ASSETS_PATH = './assets';
const DPR = Math.min(2, window.devicePixelRatio || 1);
const USE_PIXEL_LIMIT = true;
const MAX_PIXEL_COUNT = 2560 * 1440;
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tari-project/tari-tower",
"version": "0.0.2",
"version": "0.0.3",
"private": false,
"description": "the tower animation used in Tari Universe",
"homepage": "https://github.com/tari-project/tari-tower#readme",
Expand All @@ -12,21 +12,21 @@
"type": "module",
"exports": {
".": {
"/BASE.buf": "./dist/assets/models/BASE.buf",
"/BOX.buf": "./dist/assets/models/BOX.buf",
"/COIN.buf": "./dist/assets/models/COIN.buf",
"/COIN_PLACEMENT.buf": "./dist/assets/models/COIN_PLACEMENT.buf",
"/LOSE_ANIMATION.buf": "./dist/assets/models/LOSE_ANIMATION.buf",
"/gobo.jpg": "./dist/assets/textures/gobo.jpg",
"/LDR_RGB1_0.png": "./dist/assets/textures/LDR_RGB1_0.png",
"/matcap_gold.jpg": "./dist/assets/textures/matcap_gold.jpg",
"types": "./dist/main.d.ts",
"/BASE.buf": "./assets/models/BASE.buf",
"/BOX.buf": "./assets/models/BOX.buf",
"/COIN.buf": "./assets/models/COIN.buf",
"/COIN_PLACEMENT.buf": "./assets/models/COIN_PLACEMENT.buf",
"/LOSE_ANIMATION.buf": "./assets/models/LOSE_ANIMATION.buf",
"/gobo.jpg": "./assets/textures/gobo.jpg",
"/LDR_RGB1_0.png": "./assets/textures/LDR_RGB1_0.png",
"/matcap_gold.jpg": "./assets/textures/matcap_gold.jpg",
"default": "./dist/main.js"
}
},
"main": "dist/main.js",
"files": [
"/dist"
"/dist",
"/assets"
],
"scripts": {
"dev": "vite",
Expand Down
35 changes: 0 additions & 35 deletions public/README.md

This file was deleted.

Binary file removed public/assets/models/BASE.buf
Binary file not shown.
Binary file removed public/assets/models/BOX.buf
Binary file not shown.
Binary file removed public/assets/models/COIN.buf
Binary file not shown.
Binary file removed public/assets/models/COIN_PLACEMENT.buf
Binary file not shown.
Binary file removed public/assets/models/LOSE_ANIMATION.buf
Binary file not shown.
Binary file removed public/assets/textures/LDR_RGB1_0.png
Binary file not shown.
8 changes: 0 additions & 8 deletions public/assets/textures/LICENSES.txt

This file was deleted.

Binary file removed public/assets/textures/gobo.jpg
Binary file not shown.
Binary file removed public/assets/textures/matcap_gold.jpg
Binary file not shown.
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default defineConfig({
'@/*': resolve(__dirname, './lib/*'),
},
},
plugins: [dts({ include: ['lib', 'assets'] }), tsconfigPaths(), eslint({ eslintOptions: { cache: false, fix: true } })],
plugins: [dts({ include: ['lib'] }), tsconfigPaths(), eslint({ eslintOptions: { cache: false, fix: true } })],
assetsInclude: ['**/*.buf', '**/*.glsl', '**/*.frag', '**/*.vert', '**/*.jpg', '**/*.png'],
build: {
lib: {
Expand All @@ -30,7 +30,7 @@ export default defineConfig({
input: { main: resolve(__dirname, 'lib/main.ts') },
output: {
entryFileNames: '[name].js',
assetFileNames: 'assets/[name][ext]',
assetFileNames: 'assets/[dirname]/[name][ext]',
globals: {
'three': 'Three',
'min-signal': 'MinSignal',
Expand Down

0 comments on commit 0216521

Please sign in to comment.