small fixes

This commit is contained in:
Dennis Postma 2024-04-09 02:40:04 +02:00
parent 9c6411898b
commit 03c558b10e
2 changed files with 4 additions and 7 deletions

View File

@ -5,7 +5,7 @@ import Example from './scenes/mapScene'
const gameConfig = { const gameConfig = {
width: '100%', width: '100%',
height: '100%', height: '99%',
pixelArt: true, pixelArt: true,
type: Phaser.AUTO, type: Phaser.AUTO,
scene: Example scene: Example
@ -16,12 +16,9 @@ const gameConfig = {
</script> </script>
<template> <template>
<Game :config="gameConfig"> <Game :config="gameConfig" class="game">
<Scene name="MainScene"> <Scene name="MainScene">
<Rectangle :x="100" :y="100" :width="100" :height="100" :fillColor="0xAAAAAA" /> <Rectangle :x="100" :y="100" :width="100" :height="100" :fillColor="0xAAAAAA" />
</Scene> </Scene>
</Game> </Game>
</template> </template>
<style scoped>
</style>

View File

@ -61,7 +61,7 @@
body { body {
min-height: 100vh; min-height: 100vh;
color: var(--color-text); color: var(--color-text);
background: var(--color-background); background: black;
transition: transition:
color 0.5s, color 0.5s,
background-color 0.5s; background-color 0.5s;