Skip to content

Commit

Permalink
v2.5.0
Browse files Browse the repository at this point in the history
Add collision in both rain and snow examples
Add share button title
  • Loading branch information
JannisX11 committed Dec 5, 2022
1 parent 4f301ef commit 08d72f8
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 22 deletions.
2 changes: 1 addition & 1 deletion dist/app.js

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions dist/plain-report.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
vue-color: 99.19 KB (4.82%)
prismjs: 98.07 KB (4.76%)
vue: 91.47 KB (4.44%)
tinycolor2: 35.84 KB (1.74%)
regenerator-runtime: 24.26 KB (1.18%)
root: 21.3 KB (1.03%)
style-loader: 13.1 KB (0.636%)
setimmediate: 6.32 KB (0.307%)
process: 5.29 KB (0.257%)
css-loader: 2.21 KB (0.107%)
timers-browserify: 1.97 KB (0.0959%)
vue-prism-component: 1.69 KB (0.0821%)
webpack: 472 B (0.0224%)
@babel\runtime: 49 B (0.00232%)
<self>: 1.62 MB (80.5%)
vue-color: 99.19 KB (4.61%)
prismjs: 98.07 KB (4.56%)
vue: 91.47 KB (4.25%)
tinycolor2: 35.84 KB (1.67%)
regenerator-runtime: 24.26 KB (1.13%)
root: 21.3 KB (0.991%)
style-loader: 13.1 KB (0.609%)
setimmediate: 6.32 KB (0.294%)
process: 5.29 KB (0.246%)
css-loader: 2.21 KB (0.103%)
timers-browserify: 1.97 KB (0.0918%)
vue-prism-component: 1.69 KB (0.0787%)
webpack: 472 B (0.0214%)
@babel\runtime: 49 B (0.00223%)
<self>: 1.71 MB (81.3%)
4 changes: 4 additions & 0 deletions examples/rain.particle.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
"uv_size": [8, 8]
}
},
"minecraft:particle_motion_collision": {
"collision_radius": 0.1,
"expire_on_contact": true
},
"minecraft:particle_appearance_tinting": {
"color": [0.29412, 0.63922, 1, 1]
}
Expand Down
9 changes: 7 additions & 2 deletions examples/snow.particle.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@
},
"minecraft:emitter_shape_box": {
"offset": [0, 20, 0],
"half_dimensions": [36, 0, 36]
"half_dimensions": [36, 0, 36],
"direction": ["Math.random(-1, 1)", "-1.2-Math.random(0, 1)", "Math.random(-1, 1)"]
},
"minecraft:particle_lifetime_expression": {
"max_lifetime": 25
},
"minecraft:particle_initial_spin": {
"rotation": "variable.particle_random_3*360"
},
"minecraft:particle_initial_speed": ["Math.random(-1, 1)", "-1.2-Math.random(0, 1)", "Math.random(-1, 1)"],
"minecraft:particle_initial_speed": 1,
"minecraft:particle_motion_dynamic": {
"linear_acceleration": [0, -0.2, 0]
},
Expand All @@ -39,6 +40,10 @@
"uv": ["math.floor(variable.particle_random_2*8)*8", 72],
"uv_size": [8, 8]
}
},
"minecraft:particle_motion_collision": {
"collision_drag": 10,
"collision_radius": 0.1
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "snowstorm",
"version": "2.4.1",
"version": "2.5.0",
"description": "Minecraft Bedrock Edition particle editor",
"author": {
"name": "JannisX11",
Expand Down
2 changes: 1 addition & 1 deletion src/components/MenuBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<li class="mode_selector preview" :class="{selected: selected_tab == 'preview'}" @click="$emit('changetab', 'preview')">Preview</li>
</template>

<div v-if="canShare" @click="onShareParticle" class="mode_selector">
<div v-if="canShare" @click="onShareParticle" class="mode_selector" title="Share">
<Share style="font-size: 24px;" />
</div>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion vscode_extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "snowstorm",
"displayName": "Snowstorm",
"description": "Minecraft Bedrock Edition particle editor",
"version": "2.4.1",
"version": "2.5.0",
"enableProposedApi": false,
"publisher": "JannisX11",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion vscode_extension/snowstorm/app.js

Large diffs are not rendered by default.

0 comments on commit 08d72f8

Please sign in to comment.