Tips & Samples
Document not reviewed yet, might be outdated. Please,
let us know
if you find something invalid here.
On this page
Showcases
YouTube tutorials
Korge main channel
- KorGE Tutorial #1 - Installing KorGE
- KorGE Tutorial #2 - The addupdater() function gets called on every frame
- KorGE Tutorial #3 - Placing Shapes and Images on the screen
- KorGE Tutorial #4 - Sprites and SpriteAnimations
- KorGE Tutorial #5 - Simple collision detection
- KorGE Tutorial #6 - Resolution handling and coordinate system
- KorGE Tutorial #7 - Sprites and SpriteAnimations from XML or JSON files
XenoTactic Korge Tips
XenoTactic is a community member who frequently creates videos on Korge. Check his channel out here.
- Korge Tip 1: Scene container, pushTo(), changeTo(), back() guide
- Korge Tip 2: Alignment, centering, grouping of elements
- Korge Tip 3: How to get the Views object, renderToBitmap(), and saving bitmap to file system
- Korge Tip 4: How to create a simple UI component
- Korge Tip 5: Event handlers get unintendedly activated across multiple overlapping components
- Korge Tip 6: Invisible container is eating up my onClick event listeners!
- Korge Tip 7: Container overview
- Korge Tip 8: How to create your own custom event listener methods for your UI components
- Korge Tip 9: Adding kotlinx json serialization to your project + Example of how to use it
- Korge Tip 10: Rendering views in specific layers using containers
- Korge Tip 11: Rendering views in order using properties
- Korge Tip 12: Separating game logic into it’s own dependency via mavenLocal()
- Korge Tip 13: Implementing event handlers via components
- Korge Tip 14: How to read and render SVG files
- Korge Multiplayer Demo Using Ktor Websockets!
- Korge Tip 15: How to add multiple entry points to your Korge project
- Korge Tip 16: How to change the font size of a UIButton and also walkthrough on UISkin
- Korge Tip 17: How to get sharper pixels when zooming in
- Korge Tip 18: How to easily make your views draggable
- Korge Tip 19: How to re-render bitmap after updating it
- Korge Tip 20: How to pass data between scenes
- Korge Tip 21: How to re-render bitmap after updating it [Updated]
- Korge Tip 22: Saving player data to file system with kotlinx json serialization
Game tutorials:
- Tic-Tac-Toe using KorGE KTree
- Testable Connect-4 game mostly doing TDD (Spanish)
Cookbook & samples projects
Checkout our continously growing samples repository on GitHub. https://github.com/korlibs/korge-samples/
Here are some examples from the Repository
- Animations
- Atlas, SpriteMaps
- BMP Fonts
- Box2D
- Box2D KorGE 2.0 preview
- Dragonbones
- Filters
- Input
- LipSync
- luak
- Ninepatch
- OnScreen Controller
- Particles
- Polyphonic Audio
- S3D
- Scenes
- Shapes
- SpriteAnimations
- 10.000 Sprites Animation
- SVG File Format
- Text Views
- TicTacToe SWF
- Tiled Background
- TileMap
- Triangulation
- UI
- Video
Game-like examples: