Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a small typo in the textures guide #106

Merged
merged 1 commit into from
May 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/guides/components/textures.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ To start with, you have the image you want to display. The first step is to mak

### Loading the Image

To work with the image, the first step is to pull the image file from your webserver into the user's web browser. To do this, we can use `Assets.load('myTexture.png')`. `Assets` wraps and deals with telling the browser to fetch the image, convert it and then let you when that has been completed. This process is *asynchronous* - you request the load, then time passes, then a proimise completes to let you know the load is completed. We'll go into the loader in a lot more depth in a later guide.
To work with the image, the first step is to pull the image file from your webserver into the user's web browser. To do this, we can use `Assets.load('myTexture.png')`. `Assets` wraps and deals with telling the browser to fetch the image, convert it and then let you when that has been completed. This process is *asynchronous* - you request the load, then time passes, then a promise completes to let you know the load is completed. We'll go into the loader in a lot more depth in a later guide.

```ts
const texture = await Assets.load('myTexture.png');
Expand Down
Loading