Skip to content

Commit 03b8fef

Browse files
committed
update first-application with update-to-date code and fix typo
1 parent 75b7f4c commit 03b8fef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

_docs/starting/first-application.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ fun main(args: Array<String>) {
1616
val app = createLittleKtApp {
1717
width = 960
1818
height = 540
19-
vSync = true
2019
title = "My First LittleKt App"
2120
}
2221
}
@@ -31,7 +30,7 @@ class MyGame(context: Context) : ContextListener(context) {
3130

3231
override suspend fun Context.start() {
3332
// this is where we can use the context to add render calls, dispose, calls, etc. All the logic should go here.
34-
val texture = resourceVfs["texture.png"].readTexture() // reads a texture on the main thread from the resources
33+
val texture = resourcesVfs["texture.png"].readTexture() // reads a texture on the main thread from the resources
3534
onUpdate { dt -> // this adds an updater that is called on every frame
3635
// render logic can go here
3736
}

0 commit comments

Comments
 (0)