-
Notifications
You must be signed in to change notification settings - Fork 2
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
0 parents
commit 47a5d26
Showing
9 changed files
with
942 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package | ||
{ | ||
[RemoteClass(alias="Ball")] | ||
public class Ball | ||
{ | ||
public var velocityX:Number; | ||
public var velocityY:Number; | ||
public var x:Number; | ||
public var y:Number; | ||
public var score:int; | ||
|
||
public static const START_VELOCITY:Number = 30; | ||
public static const INC_VELOCITY:Number = 5; | ||
public static const MAX_VELOCITY:Number = 50; | ||
public static const START_SCORE:Number = 100; | ||
public static const INC_SCORE:Number = 50; | ||
} | ||
} |
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,21 @@ | ||
package | ||
{ | ||
import mx.collections.ArrayCollection; | ||
|
||
[RemoteClass(alias="Game")] | ||
[Bindable] | ||
public class Game | ||
{ | ||
public function Game() | ||
{ | ||
balls = new Vector.<Ball>(); | ||
players = new ArrayCollection(); | ||
} | ||
|
||
public var balls:Vector.<Ball>; | ||
public var players:ArrayCollection; | ||
public var timeLeft:Number = 0; | ||
|
||
public static const GAME_DURATION:Number = 120; | ||
} | ||
} |
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,25 @@ | ||
package | ||
{ | ||
import flash.events.Event; | ||
|
||
public class NetBus | ||
{ | ||
|
||
|
||
public function shoutHello():void | ||
{ | ||
|
||
} | ||
|
||
public function handleHello(event:Event):void | ||
{ | ||
|
||
} | ||
|
||
public function startGame():void | ||
{ | ||
|
||
} | ||
|
||
} | ||
} |
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.