https://kotlinlang.org logo
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
  • p

    Pal Matolay

    06/14/2020, 11:36 PM
    Can I stop the sprite animation in the end? (like
    endFrame
    instead of `startFrame`or similar) (Because by default it goes back to the first frame at the end of the animation.)
    d
    n
    • 3
    • 7
  • a

    andylamax

    06/15/2020, 12:05 AM
    How do I submit my game?
    ➕ 1
    d
    • 2
    • 5
  • a

    arocnies

    06/15/2020, 2:28 AM
    Anyone else having the issue where you
    runJs
    and everything is several times larger than you expect (works fine in
    runJVM
    )?
    d
    • 2
    • 3
  • p

    Pal Matolay

    06/15/2020, 4:58 AM
    Hey, Here’s a last minute submit too! Unfortunately I can do only it like this for now. Thank you for the event, really! It was a really big challenge for me, but I really enjoyed and learned a lot! https://github.com/matolaypal/the-ultimate-classic-game
    r
    d
    • 3
    • 8
  • a

    arocnies

    06/16/2020, 4:26 AM
    Finally got a chance to look at my sizing issue. Here's a screen shot of the "Hello world" Korge project running on the JVM and in the browser. I only added the yellow circle centered on the stage sized to the width; all other code is the same. *Might be worth mentioning that I have a 1440p monitor (Seems like the JS canvas gets a size pretty close to my monitor)
    d
    r
    • 3
    • 6
  • a

    arnis71

    06/16/2020, 10:24 AM
    Hey everyone, I am trying to fix an issue I've found with Android target https://github.com/korlibs/korge/issues/218. In short it does not include dependencies to other mp modules in generated Android project. Not with source sets nor with Gradle. Knowing this how can I fix it? Can anyone help me find a way to insert project dependencies into generated Android project?
    d
    • 2
    • 15
  • n

    Nico

    06/16/2020, 5:27 PM
    We just concluded the drawing of the winners of the KorGE sharing lottery. Congratulations to avdim3 and arsildo

    https://www.youtube.com/watch?v=31V6ZnMvrkY&feature=youtu.be▾

    😎 2
    👏 4
    🎉 6
    d
    r
    +2
    • 5
    • 10
  • t

    tobsef

    06/16/2020, 10:21 PM
    🐞 My game also uses keyboard controls. It seems the key handling changed during one of the last updates. Both, the number 1 and the numpad 1 are mapped to the same N1 enum. So it's not possible to detect key events of the normal numbers.
    stage.onKeyDown {
       log.debug { "Pressed key: $it.key" }
    }
    | It's always
    N1
    for Numpad and normal numbers But it should also return
    KP_1
    . This is the behavior if numlock is enabled. If it's disabled, the numpad keys are mapped to the arrows DOWN, UP, LEFT & RIGHT
    d
    • 2
    • 2
  • a

    andylamax

    06/17/2020, 2:19 AM
    how do I add dependencies to korge using gradle? Problem: Korge targets all platforms, android, jvm, native and js. I just wan't to target android, jvm and js alone. how do I add my multiplatform dependencies without providing the native implementations? Some of these dependencies are 3rd party. Is there a way I can configure the korge gradle plugin?
    a
    t
    d
    • 4
    • 7
  • p

    PipeCruz

    06/18/2020, 2:19 AM
    Hello, my group's submission for the gamejam (https://itch.io/jam/korge-gamejam-1/rate/672309) received a comment saying all it displayed was a black screen. We have updated the submission with a jar tested on our computers and a few others running jre8 from the oracle website. One of them didn't work and was giving "java.lang.Error: Invalid memory access" Exceptions in the console until java was updated.
    n
    d
    • 3
    • 3
  • d

    Deactivated User

    06/19/2020, 9:55 PM
    Hey people. We are still evaluating the games 🎮. Hopefully by the end of weekend we will have a veredict and will publish the results next week asap. Some entries had issues (specially on JS that have a different initial aspect ratio, or on macOS with retina displays where other width/height values other than virtualWidth/virtualHeight have different values). We have been fixing them on korge, marking confusing width/height values as internal or experimental, and/or making PRs with the fixes to each project. As said, those and other potential issues related to korge are not going to count for the evaluation. Thanks for your patience 🙂 😴
    😮ctocat: 2
    💪 4
    d
    i
    • 3
    • 4
  • s

    SerVB

    06/19/2020, 11:25 PM
    Is there any reason why you don't update the plugin there https://plugins.gradle.org/plugin/com.soywiz.korge ? I think
    plugins
    DSL is more convenient for me but it seems I can't use it because there is no up-to-date plugin at Gradle Plugins Portal...
    d
    • 2
    • 2
  • s

    SerVB

    06/20/2020, 12:50 AM
    Is there a way to perform vector draws on low level, just by executing functions? The only way to draw I currently know is to create an object for every visible vector primitive I have and manage it. For example, I can do
    val c = circle()
    and then when I don't need it I must do
    c.removeFromParent()
    to avoid memory leaks. Can I just draw a circle without creating an object? Like in Canvas2D Web API, for example?
    d
    • 2
    • 12
  • s

    SerVB

    06/20/2020, 1:51 PM
    Can I use nearest neighborhood instead of linear interpolation? I draw this rect via Graphics, but when I make actual size of the window bigger than virtual size, I see blured image... In this app, I want to see pixels, because there wll be pixel art 😊
    d
    • 2
    • 4
  • s

    SerVB

    06/20/2020, 3:09 PM
    I have a strange behavior with icon. This works:
    suspend fun main() = Korge {
        val t = resourcesVfs["korge.png"].readBitmap()
    
        image(t)
    }
    However, if I add an icon, the program seems to block at
    val t
    line so no rendering happens after it:
    suspend fun main() = Korge(icon = resourcesVfs["korge.png"].readBitmap()) {
        val t = resourcesVfs["korge.png"].readBitmap()
    
        image(t)
    }
    Is it expected?
    d
    • 2
    • 1
  • s

    SerVB

    06/20/2020, 4:24 PM
    I see when I try to paint a bmpSlice as a sprite, the whole bitmap is painted. This is the place in sources: https://github.com/korlibs/korge/blob/17a24338a004082625bfdc0b7a440528a06d44d3/korge/src/commonMain/kotlin/com/soywiz/korge/view/Sprite.kt#L46-L52
    constructor(
            bmpSlice: BmpSlice = Bitmaps.white,
            anchorX: Double = 0.0,
            anchorY: Double = anchorX,
            hitShape: VectorPath? = null,
            smoothing: Boolean = true
        ) : this(bmpSlice.bmp, anchorX, anchorY, hitShape, smoothing)  // <= it seems that here the full bmp is taken
    Is it expected? My workaround is to call
    bmpSlice.extract()
    ...
    🐛 1
    d
    • 2
    • 7
  • d

    dector

    06/21/2020, 1:44 PM
    Is it possible to use KorGE in JVM-only project as a library?
    d
    • 2
    • 3
  • n

    Nico

    06/21/2020, 3:32 PM
    https://blog.korge.org/2020/06/winners-of-1st-korge-gamejam.html
    ❤️ 1
    👏 8
    🎉 8
    💪 3
    e
    a
    +3
    • 6
    • 7
  • n

    Nico

    06/22/2020, 9:51 AM
    How would I add an additional dependency in a project consuming the korge gradle plugin, since
    kotlin
    closure is not available in the consuming project?
    a
    • 2
    • 3
  • n

    Nico

    06/22/2020, 4:45 PM
    Sebastian Aigner from Jetbrains mentioned KorGE in The Kotliners conference keynote Check 24:10

    https://youtu.be/fZUL8_kgHXg▾

    🤘 2
    👏 5
    p
    • 2
    • 4
  • j

    janvladimirmostert

    06/23/2020, 7:48 PM
    is Klock supported in Kotlin 1.4 M2 ? I've added it to build.gradle.kts
    val commonMain by getting {
                dependencies {
                    implementation(kotlin("stdlib-common"))
                    implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime:$serializationVersion")
                    implementation("com.soywiz.korlibs.klock:klock:1.10.3")
    settings.gradle.kts
    enableFeaturePreview("GRADLE_METADATA")
    when i use this snippet to test it
    import com.soywiz.klock.DateTimeTz
    
    fun main() {
    
        val local = DateTimeTz.nowLocal()
        println(local)
        println(local.toString("yyyy-MM-dd"))
    gradle build complains about
    Unresolved reference: soywiz
    d
    a
    • 3
    • 26
  • n

    Nico

    06/24/2020, 6:22 AM
    hey guys. What content would you like to see in a next tutorial video? What would have helped you the most when you started korge or what would help you now?
    t
    d
    +3
    • 6
    • 56
  • n

    Nico

    06/26/2020, 10:09 AM
    Hey guys, we put together a questionnaire for KorGE users to help us collect feedback on what to improve and what to focus on. We would really appreciate you answering the questions and helping us out here. There are also some questions about the gamejam, which are optional if you did not participate. Please give us 5 minutes of your time and fill out the questionnaire. https://forms.gle/vixwZbso6qnK6sRn8
    👍 5
    a
    p
    r
    • 4
    • 4
  • p

    Pablo Caviglia

    06/26/2020, 11:37 AM
    hey @Deactivated User, let's continue talking here about video playback with native android implementation
    👍 1
    :tnx: 1
    n
    d
    • 3
    • 21
  • n

    Nico

    06/28/2020, 8:19 PM
    Hallo to you all. We just published our feature preview for KorGE 2.0. Check it out here: https://blog.korge.org/korge-2-0-feature-preview/
    🚀 3
    👏 1
    r
    • 2
    • 1
  • a

    andylamax

    06/28/2020, 8:23 PM
    Is korge using semantic versioning? does this mean there is no backwards compatibility?
    n
    r
    • 3
    • 5
  • a

    andylamax

    06/28/2020, 8:34 PM
    The blog above said to request features if interested. So, take this as a feature request The korge gradle plugin should let the user decide which target they want to compile to. Sometimes, I want just to target say jvm and js only. The fact that I need to provide external dependencies (If I happen to have them). I need to provide them for each platform (even the one's I am not interested in) is not I deal.
    d
    f
    • 3
    • 6
  • a

    andylamax

    06/28/2020, 8:36 PM
    Secondly, This is more of a Question|Feature, Can a Korge Application be embedded inside a normal application? If not, can that feature be added? If yes, HOW?
    d
    • 2
    • 5
  • n

    Nico

    06/30/2020, 8:01 PM
    The Scene Tutorial is finally out

    https://youtu.be/pdUEQP1Ry08▾

    👍 3
    🎉 5
    s
    i
    r
    • 4
    • 6
  • d

    Deactivated User

    07/01/2020, 11:12 AM
    📰 Hey guys. Just a small update: Yesterday was my last day in my previous work. As for today I plan to fully work on KorGE 🙂 (but give me a few days to fully be here). I might need some extra money for living while working on KorGE so if you have or find out some stuff that I can do like consulting or developments that are compatible with me continue working on KorGE, please let me know via PM so we can discuss it. Also, my wife @Tamygm21 will be the Social Media Manager of KorGE. She is still not fully fluent in english, so be sympathetic with her mistaeks 🙂 also we will help her as much as we can while allowing her to make social media decisions. @RezMike and me are working on the coding part (RezMike is also working on written tutorial), and @Nico in addition of providing awesome videotutorials is heading KorGE. Keep in mind that except myself than plan to invest full time on it, the rest of the members of the org have their own jobs and responsibilities, so don't push them too much. Let's bring together KorGE to the next level 💪 I plan to invest myself some time fixing known reported bugs in KorGE 1.x. And KorGE 2.0 is already WIP targeting Kotlin 1.4 ⏭️
    ❤️ 7
    🌈 4
    💪 4
    👍 11
    r
    • 2
    • 1
Powered by Linen
Title
d

Deactivated User

07/01/2020, 11:12 AM
📰 Hey guys. Just a small update: Yesterday was my last day in my previous work. As for today I plan to fully work on KorGE 🙂 (but give me a few days to fully be here). I might need some extra money for living while working on KorGE so if you have or find out some stuff that I can do like consulting or developments that are compatible with me continue working on KorGE, please let me know via PM so we can discuss it. Also, my wife @Tamygm21 will be the Social Media Manager of KorGE. She is still not fully fluent in english, so be sympathetic with her mistaeks 🙂 also we will help her as much as we can while allowing her to make social media decisions. @RezMike and me are working on the coding part (RezMike is also working on written tutorial), and @Nico in addition of providing awesome videotutorials is heading KorGE. Keep in mind that except myself than plan to invest full time on it, the rest of the members of the org have their own jobs and responsibilities, so don't push them too much. Let's bring together KorGE to the next level 💪 I plan to invest myself some time fixing known reported bugs in KorGE 1.x. And KorGE 2.0 is already WIP targeting Kotlin 1.4 ⏭️
❤️ 7
🌈 4
💪 4
👍 11
r

Rishav Sharan

07/01/2020, 11:44 AM
Having more of your bandwidth for Korge is always a great news. Don't stretch yourself too much though. Also, welcome @Tamygm21! 🎉
😊 1
👍 2
View count: 1