Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 src

import (
"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