I'm thinking of making the API look a little like this:
@main
struct Game: GameWindow {
var body: some Scene {
GameContet()
}
}
struct GameContent: GameScene {
// Placeholder, this obviously doesn't support animation, but it's there to give a sense of image.
let avatar = Sprite("avatar.jpeg")
let tilemap = Tiles("map.tmx", "layerName")
var body: some GameScene {
Image(avatar)
Tilemap(tilemap)
}
}
Thoughts?
I'm thinking of making the API look a little like this:
Thoughts?