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
  • t

    Tucker S

    03/25/2021, 11:08 PM
    Hi — enjoying messing around in korge for one of my side projects. I was curious though if there is a supported way to add a drop shadow to a ShapeView? I see there are some dropShadow functions on Bitmap32 but I’m not quite sure how to get the Bitmap32 from the ShapeView.
    d
    • 2
    • 4
  • d

    Deactivated User

    04/01/2021, 2:15 PM
    Breaking news! KorGE is now called KorgetaZ https://blog.korge.org/presenting-korgetaz/
    😁 7
    :kotlin-intensifies: 2
    😒uspect: 3
    e
    d
    • 3
    • 2
  • d

    Dave

    04/16/2021, 12:28 PM
    I am trying to do a call
    resourcesVfs[fileName].readString()
    from a non suspending function, in common code. I can wrap it in runBlockingNoSuspensions, which works on JVM...but not on JS. What is the expected way to do this? (I cannot make the function a suspend function)
    s
    • 2
    • 2
  • d

    Dave

    04/16/2021, 3:31 PM
    Next question:
    userHomeVfs
    does not seem to result in my user home directory ? it just gives a the folder where the application starts Does something need to be configured or passed in ?
    🤷 1
    • 1
    • 1
  • e

    Etienne

    04/16/2021, 6:45 PM
    curious about rendering with Korge, wrt acceleration and perf on various platforms.
    s
    d
    • 3
    • 8
  • v

    voddan

    04/24/2021, 7:42 PM
    it is 2.0.7.1, which means that it is outdated on the gradle hub https://plugins.gradle.org/plugin/com.soywiz.korge
    s
    • 2
    • 2
  • v

    voddan

    04/25/2021, 9:09 AM
    I need to perform animation on collision:
    box.onCollision {
      view.tween(...)
    }
    How do I pass the coroutine context there? Is there something like
    box.onCollisionSuspended {..}
    ?
    d
    • 2
    • 4
  • d

    Dave

    04/26/2021, 10:41 AM
    korio question: Reading file content from a URL. Potentially nice and easy, there is a UrlVfs. But what to do if the URL requires credentials ?
    d
    • 2
    • 9
  • v

    voddan

    05/08/2021, 3:31 PM
    What is the right way to use Camera and CameraContainer? I am making a platformer, and when the character is close to the edge of the screen, the view point should move and reveal more of the game scene. For now all my game objects are children of a Scene.
    m
    • 2
    • 5
  • s

    Sahil Bajaj

    05/25/2021, 7:49 AM
    We at InVideo have been trying to render 2D Vector graphics with Korge. But I notice that ShapeView renders using Android Canvas to a bitmap and then renders it as a texture. Also, in my understanding, Shape2D apparently has tessellation implemented for Vector Path and so far it's being rasterized in Software... Is there some work done on rendering shapes on GPU (GLES)? If not, is there some potential to us trying it? Are there any major known hurdles or bottlenecks? (considering path computation and tessellation has been taken care of)
    d
    • 2
    • 30
  • d

    Deactivated User

    07/10/2021, 7:30 PM
    • 1
    • 1
  • d

    Deactivated User

    07/25/2021, 11:01 PM
    🎉🎊 New sample/starterkit showing a typical old-style rpg and shows how to integrate tiled tilemaps 🗺️, camera 🎥 , aseprite file loading 😛arty-parrot:, and collisions 💥. You can check it here: • https://korlibs.github.io/korge-starter-kit-rpg/ Source code : https://github.com/korlibs/korge-starter-kit-rpg Also released Korge / Korlibs 2.3.1 ( https://github.com/korlibs/korge-next/releases/tag/v2.3.1 )
    🔥 2
    👌 3
    d
    • 2
    • 3
  • m

    Makentoshe

    08/14/2021, 8:21 AM
    Hello, everyone! Is there a way to consume and hide a mouse cursor for proper handling of mouse move events for camera rotation in a 3D scene?
    d
    • 2
    • 2
  • m

    MisileLab

    08/14/2021, 5:29 PM
    How to clone QView object?
    d
    • 2
    • 1
  • a

    Akshay Verma

    08/31/2021, 6:37 AM
    Can someone help me to run samples in android device from korge-next repo. I tried
    ./gradlew :samples:mask:installDebug
    but it doesn't seem to be working
    d
    • 2
    • 10
  • m

    MisileLab

    09/03/2021, 5:10 PM
    Why readKtree is deprecated and How can i change readKtree to not deprecate method?
    d
    • 2
    • 1
  • y

    y9san9

    09/05/2021, 4:59 PM
    Hello here! How can I convert BigNum to BigInt like
    1.02.toInt() == 1
    d
    • 2
    • 3
  • y

    y9san9

    09/05/2021, 5:32 PM
    @Deactivated User, something wrong with division 🙂
    d
    • 2
    • 19
  • a

    addamsson

    09/16/2021, 9:43 AM
    Hi there! Do you have a full example / reference on how
    Atlas
    works? The documentation is very sparse. A little context: I'm trying to write a renderer that uses CP437 tilesets like this and for that I need to be able to access each tile individually and I also want to tint them (background and foreground)
    ✅ 1
    d
    • 2
    • 2
  • a

    Alexey Chuprin

    09/19/2021, 7:53 PM
    Hello! I am trying to study in the HelloWorld project (https://github.com/korlibs/korge-hello-world). And when run task
    runIosSimulatorDebug
    get error
    Uncaught Kotlin exception: kotlin.native.IncorrectDereferenceException: Trying to access top level value not marked as @ThreadLocal or @SharedImmutable from non-main thread
    . What am I doing wrong?
    d
    • 2
    • 6
  • c

    Carl Bateman

    09/21/2021, 3:32 PM
    I'm having a render issue which I recreated with the default korge hello world app and using the attached image. The image is rendered incorrectly with the background colour bleeding through. The error is not visible to the naked eye, but using a colour picker shows that e.g. with a blue background the white part of the image is RGB(253, 253, 254) instead of RGB(255, 255, 255). Is this a bug or do I need to set the blending mode to correct the render the image? Thanks.
    d
    • 2
    • 10
  • g

    Georgii Kashin

    09/23/2021, 9:54 AM
    Hi! I'm trying to compile a hello-world sample on iOS:
    ./gradlew iosBuildSimulatorDebug
    But always run into the error: How can I handle it?
    d
    • 2
    • 1
  • y

    y9san9

    09/29/2021, 11:05 AM
    @Deactivated User, Hi. Could you please help with using BigInt and sql delight if you had experience with the last 🙂
    r
    d
    • 3
    • 9
  • c

    Carl Bateman

    09/30/2021, 8:29 AM
    I have downloaded the basic KorGE demo scene, and ran into an issue: if I create more than two images and added a filter to each of them, the app crashes almost immediately on mobile. Doesn't matter the filter (whether it's a blur, an Identity Filter, whatever) or the size of the image. On JVM, it seems to be working properly and smoothly, but running on mobile it simply crashes. The error I'm getting is
    Fatal signal 11 (SIGSEGV) at 0x42a637d9 (code=1)
    Seems like some sort of concurrency issue. Having a class that runs glFinish() on every render pass mitigates the problem to a certain point (up to 8 to 10 images), but even with small amount of images and running a very simple filter, the FPS drops to about 8 or 9.
    d
    m
    +2
    • 5
    • 30
  • c

    Carl Bateman

    09/30/2021, 12:52 PM
    I'd like to deploy Korge to work to my Android phone, but there's no device menu available. A default Android has this option. Is there a setting I've missed?
    d
    • 2
    • 3
  • d

    Deactivated User

    10/03/2021, 1:57 PM
    Just finished documenting KorIM 🎉🥳: https://korlibs.soywiz.com/korim/ we are now one step closer to having a decent documentation
    :mind-blown: 2
    🥳 5
    • 1
    • 1
  • d

    Deactivated User

    10/05/2021, 9:02 PM
    Just added the new in-browser search engine 🌟 to the documentation. It is experimental, so feel free to let me know about issues. It should be able to search in code blocks and be fast enough. Try for example searching for
    quadTo
    Also moved the documentation to a new location: https://docs.korge.org/
    🎉 3
    • 1
    • 2
  • p

    Piotr Krzemiński

    10/08/2021, 5:12 PM
    Is there any support for 3D physics? I want to make a simulation of a grabber that grabs an item from one place to another.
    d
    • 2
    • 1
  • a

    Akshay Verma

    10/11/2021, 7:43 AM
    vfsFile.writeChunk(byteArray, offset = offset)
    this doesn't seem to be working in iOS (or any write methods be it as trivial as
    writeString()
    ) The file creation is happening so there must be some problem inside write method
    d
    • 2
    • 4
  • d

    Deactivated User

    10/18/2021, 7:34 PM
    KorIM in action within a Jupyter Notebook with a Kotlin Kernel : https://github.com/korlibs/korlibs-jupyter/blob/00f96a0e442c0f1150fb807f7869949decdec1dd/korim.ipynb (edited)
    🔥 5
    • 1
    • 1
Powered by Linen
Title
d

Deactivated User

10/18/2021, 7:34 PM
KorIM in action within a Jupyter Notebook with a Kotlin Kernel : https://github.com/korlibs/korlibs-jupyter/blob/00f96a0e442c0f1150fb807f7869949decdec1dd/korim.ipynb (edited)
🔥 5
Somehow I cannot edit the message. Here's the updated version: https://github.com/korlibs/korlibs-jupyter/blob/main/korim.ipynb And a datalore version that doesn't require installing anything to edit!: https://datalore.jetbrains.com/view/notebook/P1c7UXeywEaWTqSZ05kqu9
View count: 18