-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
208 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
# Psych Engine - Online | ||
Modified version of Psych Engine that adds multiplayer to it. | ||
Psych Online is a modified Psych Engine with Online Multiplayer functionality! | ||
|
||
This engine also has a [wiki!](https://github.com/Snirozu/Funkin-Psych-Online/wiki) | ||
## Features | ||
* Online Multiplayer (Public and LAN) | ||
* Built-In Mod Downloader | ||
* No Port Forwarding needed | ||
* Game Modifiers | ||
* Custom API | ||
* Skins Support | ||
|
||
If you want to use 0.6 of Psych Engine then go to [this repository](https://github.com/Snirozu/Funkin-Psych-Online-0.6) | ||
## | ||
This engine also has a [wiki!](https://github.com/Snirozu/Funkin-Psych-Online/wiki) | ||
Check the Source Code of the server [here!](https://github.com/Snirozu/Funkin-Online-Server) | ||
|
||
###### Psych Engine Commit: 5d0a66d |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package online; | ||
|
||
import online.states.ResultsScreen; | ||
|
||
@:build(online.Macros.getSetForwarder()) | ||
class FunkinPoints { | ||
@:forwardField(FlxG.save.data.funkinPointsv1, 0) | ||
public static var funkinPoints(get, null):Float; | ||
|
||
public static function calcFP(accuracy:Float, misses:Float, noteDensity:Float, notesHit:Float, combo:Float, songSpeed:Float):Float { | ||
if (accuracy <= 0) | ||
return 0; | ||
if (notesHit <= 0) | ||
return 0; | ||
|
||
var fp:Float = notesHit / noteDensity; | ||
fp *= 1 + combo / 1000; | ||
fp *= accuracy / (misses * 0.5 + 1) * (1 - noteDensity / 500); | ||
fp *= songSpeed; | ||
return Math.ffloor(fp); | ||
} | ||
|
||
public static function save(accuracy:Float, misses:Float, noteDensity:Float, notesHit:Float, combo:Float, songSpeed:Float) { | ||
var gained:Float = online.FunkinPoints.calcFP(accuracy, misses, noteDensity, notesHit, combo, songSpeed); | ||
funkinPoints += gained; | ||
ResultsScreen.gainedPoints = gained; | ||
FlxG.save.flush(); | ||
GameClient.send("updateFP", funkinPoints); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.