KorGE Store
API version: list.json.
Add your own resources.
Box2d support
services
Adds support for Box2D.
main:
registerBox2dSupportOnce()
addChild(resourcesVfs["restitution.ktree"].readKTree(views))
restitution.ktree:
<ktree width="921.3163135700865" height="720.0" gridWidth="20" gridHeight="20">
<solidrect y="620.0" width="920.0" height="100.0">
<__ex_physics friction="0.2" restitution="0.2"/>
</solidrect>
<ellipse x="120.0" y="246.0" anchorX="0.5" anchorY="0.5" width="100.0" height="100.0">
<__ex_physics type="DYNAMIC" linearVelocityY="6.0" friction="0.2" restitution="0.3"/>
</ellipse>
<ellipse x="260.0" y="246.0" anchorX="0.5" anchorY="0.5" width="100.0" height="100.0">
<__ex_physics type="DYNAMIC" linearVelocityY="6.0" friction="0.2" restitution="0.4"/>
</ellipse>
<ellipse x="400.0" y="246.0" anchorX="0.5" anchorY="0.5" width="100.0" height="100.0">
<__ex_physics type="DYNAMIC" linearVelocityY="6.0" friction="0.2" restitution="0.5"/>
</ellipse>
<ellipse x="540.0" y="245.0" anchorX="0.5" anchorY="0.5" width="100.0" height="100.0">
<__ex_physics type="DYNAMIC" linearVelocityY="6.0" friction="0.2" restitution="0.6"/>
</ellipse>
<ellipse x="680.0" y="246.0" anchorX="0.5" anchorY="0.5" width="100.0" height="100.0">
<__ex_physics type="DYNAMIC" linearVelocityY="6.0" friction="0.2" restitution="0.7"/>
</ellipse>
</ktree>
Space Shooter Redux
assets
Space-related backgrounds, spaceships, fonts and sounds.
Sample code (views decorators/builders prefixed with spaceShooterRedux
):
import com.soywiz.korge.*
import com.soywiz.korim.color.*
import spaceredux.*
suspend fun main() = Korge(width = 512, height = 512, bgcolor = Colors["#2b2b2b"]) {
//spaceShooterRedux.putBackground(SpaceShooterReduxBackground.Type.BLUE, speedX = 2.0, speedY = 1.0)
spaceShooterRedux.putDemoCode()
}