WIP multiBalls (need refactoring)
This commit is contained in:
@@ -39,6 +39,20 @@ class EventGameUpdate extends ServerEvent {
|
||||
dirY: 0,
|
||||
speed: 0
|
||||
};
|
||||
ball2? = { // ALTERNATIVE POSSIBLE, Array of balls
|
||||
x: 0,
|
||||
y: 0,
|
||||
dirX: 0,
|
||||
dirY: 0,
|
||||
speed: 0
|
||||
};
|
||||
ball3? = {
|
||||
x: 0,
|
||||
y: 0,
|
||||
dirX: 0,
|
||||
dirY: 0,
|
||||
speed: 0
|
||||
};
|
||||
lastInputId = 0;
|
||||
constructor() { // TODO: constructor that take GameComponentsServer maybe ?
|
||||
super(en.EventTypes.gameUpdate);
|
||||
|
||||
Reference in New Issue
Block a user