https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
korge
  • d

    Dave

    09/01/2020, 7:11 AM
    I see that there is a ticket for "Support editable text area / text field #91". A colleague of mine wrote one based on old version of korge. I will add it to my pull request. However, the API has changed a little, and I need some input on how to update it to the latest. Who can best help?
    r
    • 2
    • 9
  • p

    Pablo Caviglia

    09/04/2020, 2:05 PM
    Hi all, I need some assistance with a UI component I've created that changes its graphics during a period of time
    d
    • 2
    • 12
  • d

    Dave

    09/08/2020, 1:20 PM
    I am trying to write Vertex and Fragment Shaders (for rendering a SkyBox). I am having trouble regarding the version of GLSL that is in use. How is the version decided ? Also, what version of openGL is used?
    d
    • 2
    • 21
  • a

    arocnies

    09/11/2020, 7:18 PM
    Are the old website examples that were on the homepage still hosted live somewhere?
    d
    r
    • 3
    • 10
  • n

    nanodeath

    09/13/2020, 8:47 PM
    hi all...I'm on Fedora 32 and for every tutorial/sample I try to run with the runJvm target I just get a black window. thoughts on problem/fix?
    d
    • 2
    • 6
  • n

    nanodeath

    09/14/2020, 2:38 PM
    if I want to contort an Image (or View, I guess) into a trapezoid shape, is there a way to do that? kind of like skew, but...not
    d
    • 2
    • 5
  • n

    nanodeath

    09/15/2020, 4:00 AM
    does Korge have any way to control rendering order? like a z-index kind of thing?
    r
    • 2
    • 3
  • d

    Dave

    09/15/2020, 12:42 PM
    korge-next: am trying to build for targets other than JVM. • macosX64 does not seem to work, • mobile targets are missing are these not yet supported ?
    r
    d
    • 3
    • 20
  • d

    Dave

    09/16/2020, 8:35 AM
    Is there currently any support for sensor input, such as Motion, Position, Environmental ?
    d
    • 2
    • 4
  • d

    Dave

    09/17/2020, 7:45 AM
    Would anyone involved in korge be interested in adding their thoughts to this issue, regarding support for androidNative. I need some help, 🙂 https://github.com/Kotlin/kotlinx.coroutines/issues/812#issuecomment-694041646
    d
    • 2
    • 2
  • m

    MrPowerGamerBR

    09/19/2020, 7:19 PM
    If I'm planning to create a simple game, should I wait for KorGE 2.0, use KorGE 2.0 or just use the current KorGE version? Also, if I use the current KorGE version, will 2.0 break a lot of the existing code?
    d
    • 2
    • 2
  • d

    Dave

    09/20/2020, 6:31 PM
    Hi. I'm trying to test a korge-next based app on an android emulator. (via android studio). I get this error: W/System.err: java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/android-x86-64/libjnidispatch.so) not found in resource path (.) is there something obvious I am doing wrong? Is there stuff missing from korge-next ? stacktrace: at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1032) at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:988) at com.sun.jna.Native.<clinit>(Native.java:195) at com.sun.jna.Native.malloc(Native Method) at com.sun.jna.Memory.malloc(Memory.java:722) at com.sun.jna.Memory.<init>(Memory.java:114) at com.soywiz.korgw.awt.BaseAwtGameWindow.<init>(BaseAwtGameWindow.kt:245) at com.soywiz.korgw.awt.AwtGameWindow.<init>(AwtGameWindow.kt:16) at com.soywiz.korgw.DefaultGameWindowJvmKt.CreateDefaultGameWindow(DefaultGameWindowJvm.kt:44) at com.soywiz.korge.Korge.invoke-GiotUC8(Korge.kt:106)
    n
    • 2
    • 1
  • n

    nanodeath

    09/21/2020, 8:59 PM
    any updates on the ECS front? if no I might start working on a basic one...if anyone has thoughts for how an ECS should specifically integrate with KorGE, lemme know. cc @Tommie Nygren
    d
    • 2
    • 1
  • p

    Pablo Caviglia

    09/22/2020, 3:16 PM
    Hi guys, need some help with the build process, specifically I'm trying to move from plain gradle to gradle kts. I'm getting an import error, maybe it's something simple but I cant find the issue.
    d
    • 2
    • 3
  • p

    Pablo Caviglia

    09/22/2020, 8:32 PM
    does anyone have experience with maven publishing in a korge project? I'm trying to deploy the generated android's aar file together with the source set, the problem is that I cannot find the way to indicate the source artifact.
    publishing {
        publications {
            register("aar", MavenPublication::class) {
                groupId = "com.senaptec"
                artifactId = "toolframework"
                version = project.version.toString()
    
                artifact("$buildDir/platforms/android/build/outputs/aar/android-debug.aar")
                artifact(androidSourcesJar)
            }
        }
    }
    the artifact(androidSourcesJar) section doesn't work because that source set doesn't actually exists
    d
    • 2
    • 2
  • n

    nanodeath

    09/23/2020, 2:26 AM
    hey, so when I set a virtualWidth/virtualHeight (differently from the native width/height), it seems like
    playArea.hitTest(mouseXY)
    (playArea is a
    roundRect
    ) no longer works correctly.
    playArea.hitTest(playArea.localMouseXY(views))
    also doesn't work. what's the incantation I'm missing?
    d
    • 2
    • 4
  • j

    Jaime Guerrero

    09/27/2020, 9:02 PM
    Hi all, I have some problems related with the camera. Probably, I made some mistakes. I have two questions. My camera & container settings are:
    val size = 800.0
    val cam = Camera(0.0, 0.0, size, size)
    val container = cameraContainer(size, size) { ... }
    container.camera = cam
    First, I have a soccer ball image in the middle of the screen and I’m using its position to move the cam.
    container.addFixedUpdater(ConfigModule.FPS.timesPerSecond) {
        ...
        launchImmediately {
            if (match.state == State.TakingPhoto) cam.zoom += 0.02 // This line for the second question
            cam.moveTo(ballRenderer.image.x - ConfigModule.halfScreenSizeWidth / cam.zoom,
            ballRenderer.image.y - ConfigModule.halfScreenSizeHeight / cam.zoom, 1.nanoseconds, Easing.SMOOTH)
        }
    }
    This works but I would like to add some delay in the camera movement. For this, using
    1.seconds
    instead of
    1.nanoseconds
    I get the correct delay. The problem is that in this case, I can see the ball a bit laggy, almost two balls at the same time in the screen, maybe due to the animation. Is there another way to do this? My second question is the zoom. I would like to change the zoom in any moment but I don’t know how to do it correctly. When the match is in the
    TakingPhoto
    state (about 50 iterations) I take advantage of this to zoom in while the ball is stopped.
    if (match.state == State.TakingPhoto) cam.zoom += 0.02
    I think this way is a mini hack. This works perfectly but I would like to choose in any moment of the match another zoom, but using an animation. I mean, if my current zoom is 1.5 and the ball position is off the soccer pitch for example, I need to change it from 1.5 to 1.0. Which is the correct way to change the zoom using an animation while is positioning in a point? Thaaaanks!
    d
    • 2
    • 4
  • r

    RezMike

    10/07/2020, 8:46 AM
    Hey, guys! It took me a lot of time to write it (and more than a week to publish it), but here it is - the last step of the 2048 tutorial. Check it out! https://blog.korge.org/korge-tutorial-writing-2048-game-step-4-data-saving/
    👏 4
    n
    • 2
    • 1
  • d

    Deactivated User

    10/14/2020, 11:01 AM
    KorGE 2.0 will have an optimized container for sprites. We have ported the bunnymark benchmark, and here are some preliminary WIP results:

    https://www.youtube.com/watch?v=5A-rzd1jXuU▾

    🚀 3
    ❤️ 4
    n
    • 2
    • 1
  • b

    Bohdan Yevtushenko

    10/15/2020, 3:52 PM
    Is Klock library can be used in Kotlin Multiplatform project with IOS ?
    r
    c
    • 3
    • 6
  • a

    arocnies

    10/18/2020, 1:01 AM
    I saw Korge was mentioned in the Kotlin talks this year ☄️. Any chance we'll get a dedicated Korge talk next year? 😉
    d
    t
    • 3
    • 2
  • d

    Dima Avdeev

    10/28/2020, 10:23 AM
    Soon GitHub will start GameJam https://github.blog/2020-10-27-github-game-off-2020/ Who will join?
    👾 6
    r
    d
    • 3
    • 16
  • d

    Deactivated User

    11/01/2020, 1:31 PM
    2.0.0.1-rc2 released 😛arty-parrot: . Here are the changelogs for all the libraries: https://github.com/korlibs/korge-plugins/releases/tag/v2.0.0.1-rc2
    👍 3
    :party-parrot: 6
    :kotlin-intensifies: 2
    • 1
    • 1
  • p

    Pablo Caviglia

    11/05/2020, 4:53 PM
    hi all, does someone knows why this happens and how can it be fixed? kotlin.native.concurrent.InvalidMutabilityException: mutation attempt of frozen kotlin.collections.HashMap@2fbf0c8 at kfun:kotlin.Throwable.<init>(kotlin.String?;kotlin.Throwable?)kotlin.Throwable (00000000007e0e00) at ThrowInvalidMutabilityException (00000000004c8d50) at kfun:kotlin.collections.HashMap.<set-length>#internal (00000000007ea080) at kfun:kotlin.collections.HashMap.addKey$stdlib(K)kotlin.Int (00000000007eaea0) at kfun:kotlin.collections.HashMap.put(K;V)V? (00000000007ec770) at kfun:com.senaptec.toolframework.util.FontLoader.$loadCOROUTINE$108.invokeSuspend(kotlin.Result<kotlin.Any?>)kotlin.Any? (0000000000560d10)
    n
    c
    • 3
    • 24
  • p

    Pablo Caviglia

    11/05/2020, 7:41 PM
    is there any way to instead of generate a whole iOS app based on a korge project, just generate the source, or a library that can be used by a 'typical' iOS app ?
    a
    d
    • 3
    • 38
  • p

    Pablo Caviglia

    11/07/2020, 2:09 AM
    does exists any port guide to korge 2 ? or maybe it isnt necessary ?
    r
    d
    • 3
    • 106
  • p

    Pablo Caviglia

    11/09/2020, 10:36 PM
    any way to measure a Text component's rendering dimension after configuring its font size, font type, etc?
    d
    • 2
    • 1
  • p

    Pablo Caviglia

    11/11/2020, 4:54 PM
    This is a pretty open question because I'm not sure if it's me that I'm doing something wrong, it's mostly probable that's the case... My scene shows a set of images that last for a few seconds before disappearing. Then almost immediately a new image is shown in a random coordinate in the scene. The timings are random too, so everything is random when/where the images appear. If the user touch any of those images then the same process happens, the image disappears and a new one is generated. What I'm seeing is that a flickering effect occurs during this process. The images that are being shown flicker, they disappear/appear in the same position, but almost instantly, no more than a few millis. It's important to clarify that the position is the same, so it's nearly impossible to have the same image appear on the same position as part of the game logic's process. It seems to be something more related to a repaint of the scene, or something like that. Any clues?
    d
    • 2
    • 17
  • p

    Pablo Caviglia

    11/11/2020, 5:19 PM
    i've this agOpenGl.setViewport(0, 0, width, height) in my android app, but looks like that method doesn't exists anymore with those parameters...
    d
    • 2
    • 24
  • r

    RezMike

    11/12/2020, 4:41 PM
    https://twitter.com/kotlin/status/1326907953635602433
    👍 2
    ✔️ 2
    p
    • 2
    • 1
Powered by Linen
Title
r

RezMike

11/12/2020, 4:41 PM
https://twitter.com/kotlin/status/1326907953635602433
👍 2
✔️ 2
p

Pablo Caviglia

11/12/2020, 6:04 PM
ok, just filled in the survey (and added some reference to korge) 😄
🙂 1
View count: 4