Fixed a few small things.

This commit is contained in:
2023-06-20 09:29:16 -07:00
parent 9574e9a3e9
commit d679b06b9f
13 changed files with 118 additions and 23 deletions

View File

@ -2,38 +2,48 @@
<asset type="texture" name="texture_eth_faces_day" ref="faceTexture" />
<asset type="texture" name="texture_eth_poses_day" ref="bodyTexture" />
<item>
<MeshRenderer />
<QuadMeshHost />
<SimpleBillboardedMaterial texture="faceTexture" />
<SimpleBillboardedMaterial texture="faceTexture" ref="faceMaterial" />
<TiledSprite tile="0" ref="faceSprite" sizeType="TILED_SPRITE_SIZE_TYPE_HEIGHT_RATIO" size="0.5" />
</item>
<!-- <item>
<item>
<MeshRenderer />
<QuadMeshHost />
<SimpleBillboardedMaterial texture="bodyTexture" />
<SimpleBillboardedMaterial texture="bodyTexture" ref="bodyMaterial" />
<TiledSprite tile="0" ref="bodySprite" sizeType="TILED_SPRITE_SIZE_TYPE_HEIGHT_RATIO" size="0.5" />
</item> -->
</item>
<code type="properties">
TilesetGrid gridFace;
TilesetGrid gridBody;
StateProperty&lt;float_t&gt; alpha;
</code>
<code type="init">
alpha = 0.0f;
this->gridFace = TilesetGrid(
1, 9,
faceTexture->texture.getWidth(), faceTexture->texture.getHeight(),
0, 0,
0, 0
);
faceSprite->tileset = &gridFace;
faceSprite->tileset = &amp;gridFace;
this->gridBody = TilesetGrid(
1, 9,
1, 5,
bodyTexture->texture.getWidth(), bodyTexture->texture.getHeight(),
0, 0,
0, 0
);
//bodySprite->tileset = &gridBody;
bodySprite->tileset = &amp;gridBody;
useEffect([&amp;]{
this->faceMaterial->color.a = alpha;
this->bodyMaterial->color.a = alpha;
}, alpha);
</code>
</prefab>

View File

@ -4,14 +4,21 @@
<string lang="en"><font style="italics">There is a bucket.</font></string>
</text>
<set property="eth->color"
<set property="eth->faceSprite->tile" to="1" type="int32_t" />
<text>
<string lang="en">It sways above your head like the mouth of a god. You are on Angelwood's best stage, and they are cheering for you, calling you their Queen, their Prom Queen.</string>
</text>
<set property="eth->faceSprite->tile" to="0" type="int32_t" />
<text>
<string lang="en">And you are dead soon.</string>
</text>
<set property="eth->bodySprite->tile" to="3" type="int32_t" />
<text>
<string lang="en">It's Prom Day. The metal bucket is swaying. Over you. Drenching your white pristine dress in guts and gore red. They aren't cheering anymore. They're gasping. But not screaming: oh, no, not in respectable Angelwood.</string>
</text>

View File

@ -5,10 +5,10 @@
<item ref="eth" prefab="prefabs/EthPrefab" />
<!-- <item lookAt="0, 0, 5, 0, 0, 0" > -->
<item lookAt="5, 5, 5, 0, 0, 0" >
<!-- <Camera ref="camera" type="CAMERA_TYPE_ORTHONOGRAPHIC" /> -->
<Camera ref="camera" />
<item lookAt="0, 0, 5, 0, 0, 0" >
<!-- <item lookAt="5, 5, 5, 0, 0, 0" > -->
<Camera ref="camera" type="CAMERA_TYPE_ORTHONOGRAPHIC" />
<!-- <Camera ref="camera" /> -->
<CameraTexture ref="camTexture" />
</item>
@ -33,7 +33,7 @@
</item>
<code type="init">
useEvent([&]{
useEvent([&amp;]{
assertNotNull(camTexture);
assertNotNull(image);
camTexture->renderTarget.setSize(image->getWidth(), image->getHeight());

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 MiB

After

Width:  |  Height:  |  Size: 58 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB