Skip to content

Commit

Permalink
feat(backgrounds): add tile
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Jan 26, 2025
1 parent 304ebdc commit 8cc065a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
![release](https://img.shields.io/github/v/release/remarkablegames/kiki-and-boba)
[![build](https://github.com/remarkablegames/kiki-and-boba/actions/workflows/build.yml/badge.svg)](https://github.com/remarkablegames/kiki-and-boba/actions/workflows/build.yml)

💦 Capture the enemies with your bubbles!
💦 Shoot your bubbles at enemies!

Play the game on:

Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" href="/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="💦 Capture the enemies with your bubbles!" />
<meta name="description" content="💦 Shoot your bubbles at enemies!" />
<meta
property="og:image"
content="https://remarkablegames.org/kiki-and-boba/logo.png"
Expand Down Expand Up @@ -46,7 +46,7 @@

<script type="module">
import kaplay from 'kaplay'
kaplay()
kaplay({ background: [0, 0, 0, 0] })
</script>
<script type="module" src="src/index.ts"></script>

Expand Down
Binary file added public/backgrounds/tile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions src/scenes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import './title'

import { Scene } from '../constants'

setBackground(254, 197, 229)

export function start() {
go(Scene.Preload)
}
10 changes: 1 addition & 9 deletions src/scenes/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,7 @@ scene(Scene.Preload, () => {
]

sprites.forEach(([name, src]) => {
loadSprite(name, src, {
anims: {
[Animation.Idle]: 0,
[Animation.Move]: 0,
[Animation.Attack]: 0,
[Animation.Cooldown]: 0,
[Animation.Stunned]: 0,
},
})
loadSprite(name, src)
})

loadSprite(Sprite.Kiki, 'sprites/kiki.png', {
Expand Down
5 changes: 5 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ body {
height: 100%;
overflow: hidden;
}

body {
background-image: url('/backgrounds/tile.png');
background-repeat: repeat;
}

0 comments on commit 8cc065a

Please sign in to comment.