Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gandalf-le-dev/ebitengine-yaegi-hotreload
Small example of usage of Yaegi with ebitengine to allow hot reload
https://github.com/gandalf-le-dev/ebitengine-yaegi-hotreload
Last synced: 3 days ago
JSON representation
Small example of usage of Yaegi with ebitengine to allow hot reload
- Host: GitHub
- URL: https://github.com/gandalf-le-dev/ebitengine-yaegi-hotreload
- Owner: Gandalf-Le-Dev
- License: mit
- Created: 2024-07-16T15:11:58.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-09-22T16:15:35.000Z (4 months ago)
- Last Synced: 2024-11-09T12:11:55.636Z (about 2 months ago)
- Language: Go
- Homepage:
- Size: 21.4 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ebitengine engine with hotreload thanks to yaegi
## How to use
Run the project
`go run .`
You will see the default debug text on screen
Now you can update the debug text in the file `src/debug.go`.
Example of update:
```go
package srcimport (
"github.com/hajimehoshi/ebiten/v2"
"github.com/hajimehoshi/ebiten/v2/ebitenutil"
)func DrawDebugString(screen *ebiten.Image) {
ebitenutil.DebugPrint(screen, "THIS IS AN UPDATE")
}
```After saving press R in game and you will see you updated text.
## Demo
https://github.com/user-attachments/assets/f98daded-a875-4886-a5af-85d99c187c25