-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I think I've solved the crash issues that occurred on map change
- Loading branch information
Showing
22 changed files
with
240 additions
and
75 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version=0.3.6 | ||
version=0.3.7 | ||
name=NOOB | ||
team=1 | ||
ip= | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
package ; | ||
import flixel.FlxState; | ||
import mloader.Loader.LoaderErrorType; | ||
import enet.ENet; | ||
|
||
/** | ||
* ... | ||
* @author Ohmnivore | ||
*/ | ||
|
||
class PreGame extends FlxState | ||
{ | ||
|
||
public function new() | ||
{ | ||
super(); | ||
} | ||
|
||
override public function create():Void | ||
{ | ||
super.create(); | ||
|
||
Reg.pre_state = this; | ||
Reg.playermap = new Map<Int, Player>(); | ||
|
||
Assets.initAssets(); | ||
|
||
SkullClient.initClient(); | ||
} | ||
|
||
public function onLoaded():Void | ||
{ | ||
trace("Loaded external assets."); | ||
//if (buffer_string == null) | ||
//{ | ||
Msg.PlayerInfo.data.set("name", Assets.config.get("name")); | ||
Msg.PlayerInfo.data.set("team", Assets.config.get("team")); | ||
|
||
Reg.client.send(Msg.PlayerInfo.ID, 1, ENet.ENET_PACKET_FLAG_RELIABLE); | ||
//} | ||
} | ||
|
||
public function downloadError(e:LoaderErrorType):Void | ||
{ | ||
switch (e) | ||
{ | ||
case LoaderErrorType.Data: | ||
|
||
|
||
case LoaderErrorType.Format: | ||
|
||
|
||
case LoaderErrorType.IO: | ||
|
||
|
||
case LoaderErrorType.Security: | ||
|
||
} | ||
} | ||
|
||
override public function update():Void | ||
{ | ||
super.update(); | ||
|
||
Reg.client.poll(); | ||
} | ||
|
||
} |
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.