game: advent to online
This commit is contained in:
14
frontend/static/js/api/game/Ball.js
Normal file
14
frontend/static/js/api/game/Ball.js
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
|
||||
class Ball
|
||||
{
|
||||
constructor (position_x, position_y, velocity_x, velocity_y)
|
||||
{
|
||||
this.position_x = position_x;
|
||||
this.position_y = position_y;
|
||||
this.velocity_x = velocity_x;
|
||||
this.velocity_y = velocity_y;
|
||||
}
|
||||
}
|
||||
|
||||
export { Ball }
|
Reference in New Issue
Block a user