Lots of gameplay improvements

This commit is contained in:
LoveEevee
2018-09-05 19:46:26 +03:00
parent 2405345291
commit 79c4cfcd9d
11 changed files with 738 additions and 637 deletions

View File

@@ -1,4 +1,4 @@
function Circle(id, ms, type){
function Circle(id, ms, type, text, speed){
var _id=id;
var _ms = ms;
@@ -42,15 +42,6 @@ function Circle(id, ms, type){
this.isAnimated = function(){
return _animating;
}
this.setInitPos = function(initPos){
_pos.x = initPos.x;
_pos.y = initPos.y
}
this.move = function(pxPerFrame){
_pos.x -= pxPerFrame;
}
this.getAnimT = function(){
return _animT;
@@ -59,15 +50,6 @@ function Circle(id, ms, type){
this.incAnimT = function(){
_animT+=0.05;
}
this.moveTo = function(x, y){
_pos.x=x;
_pos.y=y;
}
this.getPos = function(){
return _pos;
}
this.updateStatus = function(status){
_status=status;
@@ -101,4 +83,12 @@ function Circle(id, ms, type){
this.getID = function(){
return _id;
}
this.getText = function(){
return text;
}
this.getSpeed = function(){
return speed;
}
}