Target Library
Dependents: GameProject_Prototype
Diff: Target.cpp
- Revision:
- 11:5b2be6934e1b
- Parent:
- 10:45a0af3e607c
- Child:
- 12:855610bdba49
--- a/Target.cpp Tue May 02 15:47:15 2017 +0000 +++ b/Target.cpp Tue May 02 16:25:54 2017 +0000 @@ -32,7 +32,7 @@ { _velocity.x = 0; - _velocity.y = 2; + _velocity.y = 1; if(_x <= -1){ n = 0; @@ -85,3 +85,9 @@ Vector2D v = {_velocity.x,_velocity.y}; return v; } + +void Target::set_pos(Vector2D p) +{ + _x = p.x; + _y = p.y; +} \ No newline at end of file