mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-06 07:54:29 +01:00
Fixed verb tense.
parent
62a56fb11b
commit
237c46dbf7
@ -115,11 +115,11 @@ func update(screen *ebiten.Image) error {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
You might wondering about what is `color.White`, you can actually found it in the `image/color` package, the package provided two default colors, which are BLACK (`color.Black`) and WHITE (`color.White`).
|
You might be wondering about what is `color.White`, you can actually found it in the `image/color` package, the package provided two default colors, which are BLACK (`color.Black`) and WHITE (`color.White`).
|
||||||
|
|
||||||
## Reposition and render the image to the game screen
|
## Reposition and render the image to the game screen
|
||||||
|
|
||||||
You will need to render the new image to the main screen once you've created it, otherwise it won't be displayed on the screen, but before you do it, you will also need to create a "render option struct" which's named as `DrawImageOptions{}`, which tells Ebiten how should the image be drew on the screen. We'll talk about it later, and right now, we can leave it as blank.
|
You will need to render the new image to the main screen once you've created it, otherwise it won't be displayed on the screen, but before you do it, you will also need to create a "render option struct" which's named as `DrawImageOptions{}`, which tells Ebiten how should the image should be drawn on the screen. We'll talk about it later, and right now, we can leave it as blank.
|
||||||
|
|
||||||
Here's the fully example.
|
Here's the fully example.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user