@neurogoo hmm good question, I know i've built a clojure libGDX project for android before but can't remember how


it seems that it was depended on lein-droid, but that project seems to be on hiatus.


ah yes that sounds familiar


you could also try aot'ing the clojure and using android studio


Hmmm, I have to look into it, but unfortunately does seem like that using Clojure for Android game is not realistically possible currently 😞


yeah possible but not done that often or documented


I know Arcadia can do it but I've never actually tested anything out


Yeah Arcadia is one possibility, but I have understood that it is in quite alpha stage. Also as Unity as engine is not familiar to be I should probably first learn it before using Arcadia


eh it's alpha but very stable - but you're right learning Unity at the same time is a lot to take in

sineer 2017-04-17T15:49:53.398549Z

@neurogoo Have you considered using ClojureScript instead? There's play-cljs and a few others... I find it best to develop for the web for devel phase then target android/ios with re-natal.

sineer 2017-04-17T15:53:23.464727Z

I too had a really hard time working with lein-droid and I don't think it's worth the trouble unless you really need to build some native java code. Working with re-natal and cljs is a lot easier I find and the tools improved a lot last few months


I have considered, but if I have understood correctly, React Native is still somewhat limited for complex graphics.


I am not that familiar with front-end world, but I think I need something like svg or canvas. My idea was to make simple isometrix 4x game

sineer 2017-04-17T17:26:50.257443Z

@neurogoo I understand. I've spent huge amount of time understanding frontend stuff instead of actually doing graphic stuff.

sineer 2017-04-17T17:38:49.501869Z

React(Native) job is not to do complex graphics really it's more about dealing with components lifecycle.


it has a canvas element no?

sineer 2017-04-17T17:40:05.527247Z

You can use whatever you want with react really, canvas, svg, WebGL, ...

sineer 2017-04-17T17:40:44.540618Z

In my latest experiment I mixed gl-react with to do GLSL in WebGL using om next...

sineer 2017-04-17T17:41:35.558109Z

Recently I've decided that pixi.js looks like what I need for it does WebGL and fall back to canvas if not available


yeah pixi is great


re: react native, does that mean you used a webview?

sineer 2017-04-17T17:43:11.589571Z

I'm not sure, there may be "native" webgl component but they probably do use a webview

sineer 2017-04-17T17:43:34.597440Z

I haven't done WebGL on android yet

sineer 2017-04-17T17:45:50.643534Z

I do think it's a good thing to use a webview too because it makes it that much easier to target the web instead and it's a lot easier develop in your browser than on your android device

sineer 2017-04-17T17:47:45.682910Z

even for simple app I find it a lot easier to develop in plain react then port instead of trying to develop using react native (unless you have some native requirements that can't be done in plain react, ie Bluetooth LE stuff)

sineer 2017-04-17T17:49:29.718268Z

There is nothing like chrome devtools for react native. figwheel and devcards are also a huge plus for me not to mention dirac awesome repl


yeah think we're at a point where a web based game would run fine on most phones

sineer 2017-04-17T17:55:35.843649Z

That said, if all you want to do is code a simple game that you can already plan ahead what it will look like then perhaps all theses tools are a distraction and one could simply code it and focus on implementing the plan...

sineer 2017-04-17T17:56:48.869117Z

Yeah for 2D stuff I think webview on mobile is fine. We also have core.async that can be very useful for concurency.


When I looked into React Native it didn't seem to have canvas element. I could be wrong as it is new to me


There is 3rd party version of canvas for React Native, but that is currently unmaintained


Webview is something that I need to test to see how it perfoms, but it does feel quite unefficient way to do things.

sineer 2017-04-17T22:04:13.541437Z

@neurogoo check out

sineer 2017-04-17T22:05:22.558642Z

I'm not sure it can be used in ReactNative too.

sineer 2017-04-17T22:06:52.579833Z

WebGL in webview I suspect would outperform any canvas due to help from the GPU. That is why I believe libs such as pixi.js that target WebGL are the best option

sineer 2017-04-17T22:08:54.606615Z

You might be plesently surprised by Webview canvas performance too since it's mainstream and very much optimized... Using webview with react and virtual DOM is very fast.