mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-09 00:04:42 +00:00
Fixed shaders on schoolEvil
This commit is contained in:
parent
f74962f8e8
commit
8eef111021
|
@ -1,5 +1,6 @@
|
|||
package;
|
||||
|
||||
import shaderslmfao.WiggleEffect;
|
||||
import play.stage.StageData;
|
||||
import play.stage.Stage;
|
||||
import Note;
|
||||
|
@ -571,12 +572,7 @@ class PlayState extends MusicBeatState
|
|||
// evilTrail.changeValuesEnabled(false, false, false, false);
|
||||
// evilTrail.changeGraphic()
|
||||
add(evilTrail);
|
||||
// evilTrail.scrollFactor.set(1.1, 1.1);
|
||||
|
||||
boyfriend.x += 200;
|
||||
boyfriend.y += 220;
|
||||
gf.x += 180;
|
||||
gf.y += 300;
|
||||
// evilTrail.scrollFactor.set(1.1, 1.1);
|
||||
case "tank":
|
||||
gf.y += 10;
|
||||
gf.x -= 30;
|
||||
|
|
|
@ -20,9 +20,13 @@ class WiggleEffect
|
|||
public var waveFrequency(default, set):Float = 0;
|
||||
public var waveAmplitude(default, set):Float = 0;
|
||||
|
||||
public function new():Void
|
||||
public function new(speed:Float, freq:Float, amplitude:Float, effect:WiggleEffectType = DREAMY):Void
|
||||
{
|
||||
shader.uTime.value = [0];
|
||||
this.waveSpeed = speed;
|
||||
this.waveFrequency = freq;
|
||||
this.waveAmplitude = amplitude;
|
||||
this.effectType = effect;
|
||||
}
|
||||
|
||||
public function update(elapsed:Float):Void
|
||||
|
@ -57,6 +61,11 @@ class WiggleEffect
|
|||
shader.uWaveAmplitude.value = [waveAmplitude];
|
||||
return v;
|
||||
}
|
||||
|
||||
function toString()
|
||||
{
|
||||
return 'WiggleEffect(${shader.uTime.value[0]})';
|
||||
}
|
||||
}
|
||||
|
||||
class WiggleShader extends FlxShader
|
||||
|
|
Loading…
Reference in a new issue