Skip to content

Commit

Permalink
refactor: tidy assets
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Jan 15, 2024
1 parent 2f80e1d commit 8f7ae5f
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en-US">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/images/kaboom.png" />
<link rel="icon" href="/kaboom.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Web game created using kaboom-template" />
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Kaboom Template",
"icons": [
{
"src": "images/kaboom.png",
"src": "kaboom.png",
"type": "image/png",
"sizes": "72x72"
}
Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'kaboom/global'

import { bean } from './sprites'

add([pos(120, 80), bean])
Expand Down
File renamed without changes
3 changes: 1 addition & 2 deletions src/sprites/bean.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import image from '/sprites/bean.png'

import { Sprite } from '../types'
import image from './bean.png'

loadSprite(Sprite.bean, image)

Expand Down
2 changes: 2 additions & 0 deletions src/types/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/// <reference types="vite/client" />

import 'kaboom/global'

interface ImportMetaEnv {
readonly DEV: boolean
}
Expand Down

0 comments on commit 8f7ae5f

Please sign in to comment.