|
@ -42,7 +42,7 @@ public class BreakoutLevel1 extends BreakoutLevelBase{ |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
protected GameObject createEgoObject() { |
|
|
protected GameObject createEgoObject() { |
|
|
RectObject ego = new RectObject("ego", this, 350, 550, 0, 0, 80, 10, Color.blue); |
|
|
|
|
|
|
|
|
RectObject ego = new RectObject("ego", this, 350, 550, 0, 0, 60, 10, Color.blue); |
|
|
this.addObject(ego); |
|
|
this.addObject(ego); |
|
|
ego.addController(new EgoController(ego.getWidth(),ego.getHeight())); |
|
|
ego.addController(new EgoController(ego.getWidth(),ego.getHeight())); |
|
|
ego.addCollider(new collider.RectCollider(ego.getId(),ego,ego.getWidth(),ego.getHeight())); |
|
|
ego.addCollider(new collider.RectCollider(ego.getId(),ego,ego.getWidth(),ego.getHeight())); |
|
|