File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
engine/modules/entities/src/main
java/com/codingame/gameengine/module/entities
resources/view/entity-module Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public abstract class Entity<T extends Entity<?>> {
1717
1818 private int x , y , zIndex ;
1919 private double scaleX = 1 , scaleY = 1 ;
20- private boolean visible = true ;
20+ private boolean visible = false ;
2121 private double rotation , alpha = 1 ;
2222 ContainerBasedEntity parent ;
2323 Mask mask ;
@@ -29,7 +29,7 @@ static enum Type {
2929 Entity () {
3030 id = ++GraphicEntityModule .ENTITY_COUNT ;
3131 state = new EntityState ();
32-
32+ this . setVisible ( true );
3333 }
3434
3535 @ SuppressWarnings ("unchecked" )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export class Entity {
1313 scaleY : 1 ,
1414 zIndex : 0 ,
1515 alpha : 1 ,
16- visible : true ,
16+ visible : false ,
1717 rotation : 0 ,
1818 mask : - 1
1919 }
You can’t perform that action at this time.
0 commit comments