Skip to content

Commit

Permalink
fixed outdated info in platformer tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
mrDIMAS committed Aug 4, 2024
1 parent 4f95419 commit 19268df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tutorials/platformer/part1.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ and be rock-solid. Every rigid body requires a collider, otherwise, the physics
right-click on the rigid body in `Inspector` and click `Add Child -> Physics2D -> Collider`. We've just added a new collider to the rigid
body, by default it has a `Cuboid` shape with a `1.0` meter in height and width. Finally, we need to add some graphics to the rigid body,
right-click on the rigid body and click `Add Child -> 2D -> Rectangle`. This adds a simple 2D sprite, select it and set a texture
to it by drag'n'dropping it from the asset browser on the white field of the `Texture` field in the `Inspector`. For my scene, I'm gonna
be using three sprites.
to it by finding the `Material` property in the Inspector, clicking `Edit` button near it and setting the `diffuseTexture`
property by simply drag'n'dropping the texture from the asset browser to the property. For my scene, I'm gonna be using
three sprites.

- `data/tiles/13.png` - left ground block
- `data/tiles/14.png` - center ground block
Expand Down

0 comments on commit 19268df

Please sign in to comment.