Player texture
This commit is contained in:
@ -1,7 +1,8 @@
|
|||||||
<prefab name="Player" type="">
|
<prefab name="Player" type="">
|
||||||
|
<asset type="texture" name="texture_player" />
|
||||||
<MeshRenderer />
|
<MeshRenderer />
|
||||||
<CapsuleMeshHost />
|
<QuadMeshHost />
|
||||||
<SimpleTexturedMaterial ref="material" />
|
<SimpleBillboardedMaterial texture="texture_player" />
|
||||||
<CharacterController2D />
|
<CharacterController2D />
|
||||||
<BoxCollider />
|
<BoxCollider />
|
||||||
<EntityHealth />
|
<EntityHealth />
|
||||||
|
@ -5,10 +5,6 @@
|
|||||||
<SimpleBillboardedMaterial texture="texture_urchin" />
|
<SimpleBillboardedMaterial texture="texture_urchin" />
|
||||||
<EntityHealth />
|
<EntityHealth />
|
||||||
<EntityFaction faction="FACTION_ENEMY" />
|
<EntityFaction faction="FACTION_ENEMY" />
|
||||||
|
|
||||||
<EntityAIWalk mode="ENTITY_AI_WALK_MODE_WANDER" />
|
|
||||||
<EntityMove />
|
|
||||||
|
|
||||||
<CharacterController2D />
|
<CharacterController2D />
|
||||||
<BoxCollider />
|
<BoxCollider />
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 6.2 KiB |
@ -25,4 +25,5 @@ tool_prefab(${ROSE_ASSETS_DIR}/prefabs/Crab.xml)
|
|||||||
tool_prefab(${ROSE_ASSETS_DIR}/prefabs/SwordHitbox.xml)
|
tool_prefab(${ROSE_ASSETS_DIR}/prefabs/SwordHitbox.xml)
|
||||||
tool_prefab(${ROSE_ASSETS_DIR}/prefabs/Wall.xml)
|
tool_prefab(${ROSE_ASSETS_DIR}/prefabs/Wall.xml)
|
||||||
|
|
||||||
tool_texture(texture_urchin ${ROSE_ASSETS_DIR}/textures/Urchin.png)
|
tool_texture(texture_urchin ${ROSE_ASSETS_DIR}/textures/Urchin.png)
|
||||||
|
tool_texture(texture_player ${ROSE_ASSETS_DIR}/textures/Player.png)
|
@ -51,6 +51,7 @@ namespace Dawn {
|
|||||||
auto assMan = &this->game->assetManager;
|
auto assMan = &this->game->assetManager;
|
||||||
std::vector<Asset*> assets;
|
std::vector<Asset*> assets;
|
||||||
vectorAppend(&assets, Urchin::getRequiredAssets(assMan));
|
vectorAppend(&assets, Urchin::getRequiredAssets(assMan));
|
||||||
|
vectorAppend(&assets, Player::getRequiredAssets(assMan));
|
||||||
return assets;
|
return assets;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user