Skip to content

Commit

Permalink
fix: clipping plane, responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
Sceat committed Apr 7, 2024
1 parent 810940d commit 6a4e171
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 2 additions & 0 deletions src/components/game-ui/game-chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ i
border-radius 12px
margin .5em
max-width 1000px
width 40%
min-width 300px
min-height 150px
max-height 150px
transition all .3s
Expand Down
7 changes: 3 additions & 4 deletions src/components/misc/floating-bubbles.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<template lang="pug">
.bubbles
- for (var i = 0; i < 128; i++)
div.bubble(
style=`
--size:${2+Math.random()*4}rem; --distance:${6+Math.random()*4}rem; --position:${-5+Math.random()*110}%; --time:${2+Math.random()*2}s; --delay:${-1*(2+Math.random()*2)}s;
`)
div.bubble(style=`--size:${2+Math.random()*4}rem; --distance:${6+Math.random()*4}rem; --position:${-5+Math.random()*110}%; --time:${2+Math.random()*2}s; --delay:${-1*(2+Math.random()*2)}s;`)
</template>

<style lang="stylus" scoped>
Expand All @@ -14,6 +11,8 @@
left 0
right 0
height 1rem
pointer-events none
user-select none
filter:url("#blob")
.bubble
position absolute
Expand Down
4 changes: 0 additions & 4 deletions src/components/misc/section-container.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ b.sui-network
text-transform uppercase
color #eee
.container
display flex
flex-flow column nowrap
align-items center
padding 3em
height 100%
>span
display flex
width 100%
Expand Down
2 changes: 1 addition & 1 deletion src/core/game/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ const camera = new PerspectiveCamera(
60, // Field of view
window.innerWidth / window.innerHeight, // Aspect ratio
0.1, // Near clipping plane
1500, // Far clipping plane
2000, // Far clipping plane
)
const pool = create_pools(scene)

Expand Down
3 changes: 3 additions & 0 deletions src/views/home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ h3.title
color #eee
font-weight 900
text-transform uppercase
.view
overflow-y auto
height 100%
>.mobile
display flex
justify-content center
Expand Down

0 comments on commit 6a4e171

Please sign in to comment.