-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0825ea6
commit 1ddb07a
Showing
12 changed files
with
70 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
import korlibs.io.file.std.openAsZip | ||
import org.hexworks.zircon.api.resource.Resource | ||
import org.hexworks.zircon.api.resource.ResourceType | ||
import org.hexworks.zircon.api.resource.loadResource | ||
import org.hexworks.zircon.api.builder.application.appConfig | ||
import org.hexworks.zircon.api.builder.application.withSize | ||
import org.hexworks.zircon.api.createApplication | ||
import org.hexworks.zircon.internal.resource.BuiltInCP437TilesetResource | ||
|
||
suspend fun main() { | ||
val tileSize = 16 | ||
val gridCols = 1920 / tileSize | ||
val gridRows = 1080 / tileSize | ||
|
||
loadResource(Resource.create("rex_files/xptest.xp", ResourceType.PROJECT)).openAsZip() | ||
|
||
println("ok") | ||
// loadResource(Resource.create("rex_files/xptest.xp", ResourceType.PROJECT)).openAsZip() | ||
// | ||
// println("ok") | ||
|
||
// Applications.createApplication(appConfig { | ||
// size = Size.create(gridCols, gridRows) | ||
// defaultTileset = BuiltInCP437TilesetResource.valueOf("REX_PAINT_${tileSize}X${tileSize}") | ||
// debugMode = true | ||
// }).rex().start() | ||
|
||
createApplication(appConfig { | ||
withSize { | ||
width = gridCols | ||
height = gridRows | ||
} | ||
defaultTileset = BuiltInCP437TilesetResource.valueOf("REX_PAINT_${tileSize}X${tileSize}") | ||
debugMode = true | ||
}).components().start() | ||
|
||
} |