https://kotlinlang.org logo
Title
b

Brian G

02/06/2022, 3:31 AM
I've been experimenting with using Compose to render a retro-pixel-art style RPG. All programmer art for now. Having fun though. The pixelated text is rendered using normal compose
Text
function, I made the human sprite in Aseprite. And yes, there are hats.
👍🏻 2
:nice: 19
😮 9
👍🏼 1
👍 3
t

therealbluepandabear

02/06/2022, 4:06 AM
That's really cool! The art is also really nice, I'm looking forward to see your game progress 👍🏻 Is it open source?
:thank-you: 1
b

Brian G

02/06/2022, 3:06 PM
I think I would like to open source some or all of it when I'm less ashamed of the code quality 🙂
c

Colton Idle

02/07/2022, 6:05 PM
I'd love to see the most basic version of this games code.
First things that come to mind is... how does the little guy move. how is the background/level built? how is this only with compose! Way cool. id be very interested in just a stripped down version of this game. like walking, and level. that could kickstart me to build my own!
b

Brian Guertin

02/09/2022, 11:54 PM
Thanks for the interest, I hope to have time to share some of the code in the future. At this point I'm still figuring out if I like using Compose this way.
I'm also toying with with writing Behaviour trees using coroutines.
t

therealbluepandabear

02/10/2022, 1:48 AM
Yeah, I mean as much as this project is nice I have a weird feeling Compose would make your life 10x harder when creating a game, it would be better to use a dedicated game engine or framework. Although what you have demonstrated is the fantastic capability of Compose.
b

Brian Guertin

02/10/2022, 3:28 AM
That depends entirely on the game. The more UI-heavy your game, the more useful Compose will be, since it really is a fantastic UI library. And the
Canvas
is good enough for most simple 2D graphics rendering.
👀 2
I actually converted this project from libGDX and I find the Compose version waaay simpler
t

therealbluepandabear

02/10/2022, 4:28 AM
That's interesting, because I was actually wanting to get into game development with Android Studio, most people I spoke to recommended a game engine - thanks for changing my perspective on things.
🥳 2
b

Brian Guertin

02/10/2022, 2:14 PM
I saw this other Compose game that is already open source. I recommend checking it out! @Colton Idle @therealbluepandabear The source code is very clean, easy to follow: https://github.com/mariodujic/Neon
t

therealbluepandabear

03/14/2022, 3:51 AM
Interesting, I'll take a look.