Add basic movement
This commit is contained in:
@@ -37,12 +37,12 @@ bool initEntityObjectsLayer(BzTileMap *map, BzTileObjectGroup *objectGroup) {
|
||||
ecs_set(ECS, e, Animation, {
|
||||
.firstFrame=(TextureRegion) {
|
||||
objectTileset->tiles,
|
||||
bzTilesetGetTileRegion(objectTileset, object.gid)
|
||||
bzTilesetGetTileRegion(objectTileset, object.gid + 1)
|
||||
},
|
||||
.currAnimation=ANIMATION_IDLE,
|
||||
.currFrame=0,
|
||||
.frameCount=2,
|
||||
.frameDuration=0.36f
|
||||
.frameCount=4,
|
||||
.frameDuration=0.20f
|
||||
});
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user