Spaces:
Sleeping
Sleeping
fix imports
Browse files- patches/characters.ts +8 -8
- patches/convex/music.ts +1 -1
- patches/src/App.tsx +1 -4
- patches/src/components/Cloud.tsx +1 -1
- patches/src/components/PixiStaticMap.tsx +5 -5
patches/characters.ts
CHANGED
@@ -168,49 +168,49 @@ export const Descriptions = [
|
|
168 |
export const characters = [
|
169 |
{
|
170 |
name: 'f1',
|
171 |
-
textureUrl: '/
|
172 |
spritesheetData: f1SpritesheetData,
|
173 |
speed: 0.15,
|
174 |
},
|
175 |
{
|
176 |
name: 'f2',
|
177 |
-
textureUrl: '/
|
178 |
spritesheetData: f2SpritesheetData,
|
179 |
speed: 0.15,
|
180 |
},
|
181 |
{
|
182 |
name: 'f3',
|
183 |
-
textureUrl: '/
|
184 |
spritesheetData: f3SpritesheetData,
|
185 |
speed: 0.15,
|
186 |
},
|
187 |
{
|
188 |
name: 'f4',
|
189 |
-
textureUrl: '/
|
190 |
spritesheetData: f4SpritesheetData,
|
191 |
speed: 0.15,
|
192 |
},
|
193 |
{
|
194 |
name: 'f5',
|
195 |
-
textureUrl: '/
|
196 |
spritesheetData: f5SpritesheetData,
|
197 |
speed: 0.15,
|
198 |
},
|
199 |
{
|
200 |
name: 'f6',
|
201 |
-
textureUrl: '/
|
202 |
spritesheetData: f6SpritesheetData,
|
203 |
speed: 0.15,
|
204 |
},
|
205 |
{
|
206 |
name: 'f7',
|
207 |
-
textureUrl: '/
|
208 |
spritesheetData: f7SpritesheetData,
|
209 |
speed: 0.15,
|
210 |
},
|
211 |
{
|
212 |
name: 'f8',
|
213 |
-
textureUrl: '/
|
214 |
spritesheetData: f8SpritesheetData,
|
215 |
speed: 0.15,
|
216 |
},
|
|
|
168 |
export const characters = [
|
169 |
{
|
170 |
name: 'f1',
|
171 |
+
textureUrl: '/assets/32x32folk.png',
|
172 |
spritesheetData: f1SpritesheetData,
|
173 |
speed: 0.15,
|
174 |
},
|
175 |
{
|
176 |
name: 'f2',
|
177 |
+
textureUrl: '/assets/32x32folk.png',
|
178 |
spritesheetData: f2SpritesheetData,
|
179 |
speed: 0.15,
|
180 |
},
|
181 |
{
|
182 |
name: 'f3',
|
183 |
+
textureUrl: '/assets/32x32folk.png',
|
184 |
spritesheetData: f3SpritesheetData,
|
185 |
speed: 0.15,
|
186 |
},
|
187 |
{
|
188 |
name: 'f4',
|
189 |
+
textureUrl: '/assets/32x32folk.png',
|
190 |
spritesheetData: f4SpritesheetData,
|
191 |
speed: 0.15,
|
192 |
},
|
193 |
{
|
194 |
name: 'f5',
|
195 |
+
textureUrl: '/assets/32x32folk.png',
|
196 |
spritesheetData: f5SpritesheetData,
|
197 |
speed: 0.15,
|
198 |
},
|
199 |
{
|
200 |
name: 'f6',
|
201 |
+
textureUrl: '/assets/32x32folk.png',
|
202 |
spritesheetData: f6SpritesheetData,
|
203 |
speed: 0.15,
|
204 |
},
|
205 |
{
|
206 |
name: 'f7',
|
207 |
+
textureUrl: '/assets/32x32folk.png',
|
208 |
spritesheetData: f7SpritesheetData,
|
209 |
speed: 0.15,
|
210 |
},
|
211 |
{
|
212 |
name: 'f8',
|
213 |
+
textureUrl: '/assets/32x32folk.png',
|
214 |
spritesheetData: f8SpritesheetData,
|
215 |
speed: 0.15,
|
216 |
},
|
patches/convex/music.ts
CHANGED
@@ -33,7 +33,7 @@ export const getBackgroundMusic = query({
|
|
33 |
.order('desc')
|
34 |
.first();
|
35 |
if (!music) {
|
36 |
-
return '/
|
37 |
}
|
38 |
const url = await ctx.storage.getUrl(music.storageId);
|
39 |
if (!url) {
|
|
|
33 |
.order('desc')
|
34 |
.first();
|
35 |
if (!music) {
|
36 |
+
return '/assets/background.mp3';
|
37 |
}
|
38 |
const url = await ctx.storage.getUrl(music.storageId);
|
39 |
if (!url) {
|
patches/src/App.tsx
CHANGED
@@ -76,11 +76,8 @@ export default function Home() {
|
|
76 |
|
77 |
<footer className="justify-end bottom-0 left-0 w-full flex items-center mt-4 gap-3 p-6 flex-wrap pointer-events-none">
|
78 |
<div className="flex gap-4 flex-grow pointer-events-none">
|
79 |
-
<FreezeButton />
|
80 |
<MusicButton />
|
81 |
-
|
82 |
-
Star
|
83 |
-
</Button>
|
84 |
<InteractButton />
|
85 |
<Button imgUrl={helpImg} onClick={() => setHelpModalOpen(true)}>
|
86 |
Help
|
|
|
76 |
|
77 |
<footer className="justify-end bottom-0 left-0 w-full flex items-center mt-4 gap-3 p-6 flex-wrap pointer-events-none">
|
78 |
<div className="flex gap-4 flex-grow pointer-events-none">
|
|
|
79 |
<MusicButton />
|
80 |
+
|
|
|
|
|
81 |
<InteractButton />
|
82 |
<Button imgUrl={helpImg} onClick={() => setHelpModalOpen(true)}>
|
83 |
Help
|
patches/src/components/Cloud.tsx
CHANGED
@@ -9,7 +9,7 @@ export const Cloud = ({
|
|
9 |
worldId: Id<"worlds">
|
10 |
}) => {
|
11 |
return (
|
12 |
-
<img src="/
|
13 |
)
|
14 |
}
|
15 |
|
|
|
9 |
worldId: Id<"worlds">
|
10 |
}) => {
|
11 |
return (
|
12 |
+
<img src="/assets/cloud.jpg" className="absolute w-full h-full object-cover" />
|
13 |
)
|
14 |
}
|
15 |
|
patches/src/components/PixiStaticMap.tsx
CHANGED
@@ -14,18 +14,18 @@ export type MapProps = {
|
|
14 |
};
|
15 |
|
16 |
const animations = {
|
17 |
-
'campfire.json': { spritesheet: campfire, url: '/
|
18 |
'gentlesparkle.json': {
|
19 |
spritesheet: gentlesparkle,
|
20 |
-
url: '/
|
21 |
},
|
22 |
'gentlewaterfall.json': {
|
23 |
spritesheet: gentlewaterfall,
|
24 |
-
url: '/
|
25 |
},
|
26 |
-
'windmill.json': { spritesheet: windmill, url: '/
|
27 |
'gentlesplash.json': { spritesheet: gentlesplash,
|
28 |
-
url: '/
|
29 |
};
|
30 |
|
31 |
const createTiles = (map: WorldMap) => {
|
|
|
14 |
};
|
15 |
|
16 |
const animations = {
|
17 |
+
'campfire.json': { spritesheet: campfire, url: '/assets/spritesheets/campfire.png' },
|
18 |
'gentlesparkle.json': {
|
19 |
spritesheet: gentlesparkle,
|
20 |
+
url: '/assets/spritesheets/gentlesparkle32.png',
|
21 |
},
|
22 |
'gentlewaterfall.json': {
|
23 |
spritesheet: gentlewaterfall,
|
24 |
+
url: '/assets/spritesheets/gentlewaterfall32.png',
|
25 |
},
|
26 |
+
'windmill.json': { spritesheet: windmill, url: '/assets/spritesheets/windmill.png' },
|
27 |
'gentlesplash.json': { spritesheet: gentlesplash,
|
28 |
+
url: '/assets/spritesheets/gentlewaterfall32.png',},
|
29 |
};
|
30 |
|
31 |
const createTiles = (map: WorldMap) => {
|