diff --git a/README.md b/README.md index a23afaa..f8bea39 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/index.html b/index.html index 301f488..9c3848d 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + import kaplay from 'kaplay' - kaplay() + kaplay({ background: [0, 0, 0, 0] }) diff --git a/public/backgrounds/tile.png b/public/backgrounds/tile.png new file mode 100644 index 0000000..f575705 Binary files /dev/null and b/public/backgrounds/tile.png differ diff --git a/src/scenes/index.ts b/src/scenes/index.ts index 364c60b..1cbc705 100644 --- a/src/scenes/index.ts +++ b/src/scenes/index.ts @@ -5,8 +5,6 @@ import './title' import { Scene } from '../constants' -setBackground(254, 197, 229) - export function start() { go(Scene.Preload) } diff --git a/src/scenes/preload.ts b/src/scenes/preload.ts index e3aaece..d81a80d 100644 --- a/src/scenes/preload.ts +++ b/src/scenes/preload.ts @@ -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', { diff --git a/src/style.css b/src/style.css index fafbbaf..9153b30 100644 --- a/src/style.css +++ b/src/style.css @@ -10,3 +10,8 @@ body { height: 100%; overflow: hidden; } + +body { + background-image: url('/backgrounds/tile.png'); + background-repeat: repeat; +}