Skip to content

Commit

Permalink
knife setting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pathiratk committed Feb 18, 2020
1 parent 6cdb9c1 commit fe50a26
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project>
<!-- _________________________ Application Settings _________________________ -->

<app title="HelloWorld" file="HelloWorld" main="Main" version="0.0.1" company="HaxeFlixel" />
<app title="Knives In" file="KnivesIn" main="Main" version="0.0.1" company="HaxeFlixel" />

<!--The flixel preloader is not accurate in Chrome. You can use it regularly if you embed the swf into a html file
or you can set the actual size of your file manually at "FlxPreloaderBase-onUpdate-bytesTotal"-->
Expand Down
2 changes: 1 addition & 1 deletion source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class PlayState extends FlxState
this.thrower.visible = false;
this.cooldown = 0.5;

var newKnife = new Knife(thrower.x + 12, thrower.y + 9, Math.PI * (thrower.angle) / 180);
var newKnife = new Knife(thrower.x + 12, thrower.y + 9, Math.PI * (thrower.angle - 2) / 180);
newKnife.body.space = FlxNapeSpace.space;
newKnife.visible = true;
knives.push(newKnife);
Expand Down
2 changes: 1 addition & 1 deletion source/Thrower.hx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Thrower extends FlxSprite {
override public function update(elapsed:Float):Void {
super.update(elapsed);
if(this.visible) {
this.angle += 240 * elapsed;
this.angle += 200 * elapsed;
} else {
this.angle -= 4 * elapsed;
}
Expand Down

0 comments on commit fe50a26

Please sign in to comment.