Removed Toolpreview feature
Added Power Mushroom + functionality
This commit is contained in:
168
app/src/main/assets/particleEffects/fire.pe
Normal file
168
app/src/main/assets/particleEffects/fire.pe
Normal file
@ -0,0 +1,168 @@
|
||||
Untitled
|
||||
- Delay -
|
||||
active: false
|
||||
- Duration -
|
||||
lowMin: 5000.0
|
||||
lowMax: 5000.0
|
||||
- Count -
|
||||
min: 0
|
||||
max: 200
|
||||
- Emission -
|
||||
lowMin: 0.0
|
||||
lowMax: 0.0
|
||||
highMin: 80.0
|
||||
highMax: 80.0
|
||||
relative: false
|
||||
scalingCount: 4
|
||||
scaling0: 1.0
|
||||
scaling1: 1.0
|
||||
scaling2: 0.27450982
|
||||
scaling3: 0.0
|
||||
timelineCount: 4
|
||||
timeline0: 0.0
|
||||
timeline1: 0.16438356
|
||||
timeline2: 0.48630136
|
||||
timeline3: 1.0
|
||||
- Life -
|
||||
lowMin: 0.0
|
||||
lowMax: 0.0
|
||||
highMin: 500.0
|
||||
highMax: 1000.0
|
||||
relative: false
|
||||
scalingCount: 4
|
||||
scaling0: 1.0
|
||||
scaling1: 1.0
|
||||
scaling2: 0.8627451
|
||||
scaling3: 0.3529412
|
||||
timelineCount: 4
|
||||
timeline0: 0.0
|
||||
timeline1: 0.001
|
||||
timeline2: 0.77397263
|
||||
timeline3: 1.0
|
||||
- Life Offset -
|
||||
active: false
|
||||
- X Offset -
|
||||
active: false
|
||||
- Y Offset -
|
||||
active: false
|
||||
- Spawn Shape -
|
||||
shape: point
|
||||
- Spawn Width -
|
||||
lowMin: 0.0
|
||||
lowMax: 0.0
|
||||
highMin: 0.0
|
||||
highMax: 0.0
|
||||
relative: false
|
||||
scalingCount: 1
|
||||
scaling0: 1.0
|
||||
timelineCount: 1
|
||||
timeline0: 0.0
|
||||
- Spawn Height -
|
||||
lowMin: 0.0
|
||||
lowMax: 0.0
|
||||
highMin: 0.0
|
||||
highMax: 0.0
|
||||
relative: false
|
||||
scalingCount: 1
|
||||
scaling0: 1.0
|
||||
timelineCount: 1
|
||||
timeline0: 0.0
|
||||
- Scale -
|
||||
lowMin: 0.0
|
||||
lowMax: 0.0
|
||||
highMin: 40.0
|
||||
highMax: 40.0
|
||||
relative: false
|
||||
scalingCount: 2
|
||||
scaling0: 1.0
|
||||
scaling1: 0.7058824
|
||||
timelineCount: 2
|
||||
timeline0: 0.0
|
||||
timeline1: 1.0
|
||||
- Velocity -
|
||||
active: true
|
||||
lowMin: 0.0
|
||||
lowMax: 0.0
|
||||
highMin: 40.0
|
||||
highMax: 300.0
|
||||
relative: false
|
||||
scalingCount: 1
|
||||
scaling0: 1.0
|
||||
timelineCount: 1
|
||||
timeline0: 0.0
|
||||
- Angle -
|
||||
active: true
|
||||
lowMin: 0.0
|
||||
lowMax: 0.0
|
||||
highMin: 300.0
|
||||
highMax: 420.0
|
||||
relative: false
|
||||
scalingCount: 3
|
||||
scaling0: 1.0
|
||||
scaling1: 1.0
|
||||
scaling2: 1.0
|
||||
timelineCount: 3
|
||||
timeline0: 0.0
|
||||
timeline1: 0.5958904
|
||||
timeline2: 1.0
|
||||
- Rotation -
|
||||
active: false
|
||||
- Wind -
|
||||
active: false
|
||||
- Gravity -
|
||||
active: true
|
||||
lowMin: 0.0
|
||||
lowMax: 0.0
|
||||
highMin: 200.0
|
||||
highMax: 200.0
|
||||
relative: false
|
||||
scalingCount: 2
|
||||
scaling0: 0.0
|
||||
scaling1: 1.0
|
||||
timelineCount: 2
|
||||
timeline0: 0.0
|
||||
timeline1: 0.36301368
|
||||
- Tint -
|
||||
colorsCount: 12
|
||||
colors0: 0.34117648
|
||||
colors1: 1.0
|
||||
colors2: 0.047058824
|
||||
colors3: 1.0
|
||||
colors4: 0.12156863
|
||||
colors5: 0.047058824
|
||||
colors6: 1.0
|
||||
colors7: 0.12156863
|
||||
colors8: 0.047058824
|
||||
colors9: 0.047058824
|
||||
colors10: 0.047058824
|
||||
colors11: 1.0
|
||||
timelineCount: 4
|
||||
timeline0: 0.0
|
||||
timeline1: 0.20826162
|
||||
timeline2: 0.21826163
|
||||
timeline3: 1.0
|
||||
- Transparency -
|
||||
lowMin: 0.0
|
||||
lowMax: 0.0
|
||||
highMin: 1.0
|
||||
highMax: 1.0
|
||||
relative: false
|
||||
scalingCount: 4
|
||||
scaling0: 0.0
|
||||
scaling1: 1.0
|
||||
scaling2: 0.7368421
|
||||
scaling3: 0.0
|
||||
timelineCount: 4
|
||||
timeline0: 0.0
|
||||
timeline1: 0.34246576
|
||||
timeline2: 0.760274
|
||||
timeline3: 1.0
|
||||
- Options -
|
||||
attached: false
|
||||
continuous: true
|
||||
aligned: false
|
||||
additive: true
|
||||
behind: false
|
||||
premultipliedAlpha: false
|
||||
- Image Path -
|
||||
particle.png
|
@ -0,0 +1,30 @@
|
||||
package de.frajul.endlessroll.entities.tools;
|
||||
|
||||
import de.frajul.endlessroll.data.Vector;
|
||||
import de.frajul.endlessroll.entities.DestroyEffect;
|
||||
import de.frajul.endlessroll.entities.Player;
|
||||
import de.frajul.endlessroll.entities.collision.geometry.Geometry;
|
||||
import de.frajul.endlessroll.main.game.Timer;
|
||||
|
||||
/**
|
||||
* Created by Julian on 02.10.2017.
|
||||
*/
|
||||
|
||||
public class PowerMushroom extends Tool {
|
||||
|
||||
public PowerMushroom(Vector position) {
|
||||
super(ToolType.POWER_MUSHROOM, position, true, false);
|
||||
animation.disable();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPlayerCollision(Player player, Timer timer) {
|
||||
player.startSuperPower(timer.getCurrentTime());
|
||||
super.destroy(DestroyEffect.ENERGY_COLLECT);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Geometry createCollisionBounds() {
|
||||
return this;
|
||||
}
|
||||
}
|
BIN
app/src/main/res/drawable/tools_power_mushroom.png
Normal file
BIN
app/src/main/res/drawable/tools_power_mushroom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
BIN
app/src/main/res/drawable/tools_power_mushroom_button.png
Normal file
BIN
app/src/main/res/drawable/tools_power_mushroom_button.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
@ -47,6 +47,7 @@
|
||||
<string name="tool_name_spring">Spring</string>
|
||||
<string name="tool_name_magnet">Magnet</string>
|
||||
<string name="tool_name_bomb">Bomb</string>
|
||||
<string name="tool_name_power_mushroom">Power Mushroom</string>
|
||||
<string name="tool_upgrade_title_format_sd">%1$s (Lv%2$d)</string>
|
||||
<string name="tool_upgrade_none">None</string>
|
||||
<string name="tool_upgrade_time">Time</string>
|
||||
|
Reference in New Issue
Block a user