Live data from Hacker News

Making a cross-platform mobile game in Reason/OCaml

jaredforsyth.com

11–20 of 27 posts

Re: Making a cross-platform mobile game in Reason/OCaml

#11
post #7

Very cool. Hot reloading in iOS would be extreamly useful. I remember that I used a plugin that was called injectionforxcode but it was not working very well.

Flutter has a nice hot reloading feature: https://flutter.io/hot-reload/

Yeah, but then you have to use Dart.

Re: Making a cross-platform mobile game in Reason/OCaml

#13
The game, Gravitron, looks very similar to an old Ludum Dare entry called Graviton:

http://sam.draknek.org/projects/gravity

(timelapse development video: https://www.youtube.com/watch?v=3tQ00R69rF8)

It's a really cool game concept, even cooler being written in OCaml! :)

Re: Making a cross-platform mobile game in Reason/OCaml

#16
post #15

Does it only work on desktop browsers?

By which I mean does the version that's compiled for browsers not work on mobile browsers? I noticed the Gravitron game loads on mobile but the layout is broken. Is that just a case of not being optimized to work for mobile browers? Or is there a limitation in the frameworks that prevents it from working in mobile browsers?

Re: Making a cross-platform mobile game in Reason/OCaml

#17
post #16
post #15

Does it only work on desktop browsers?

By which I mean does the version that's compiled for browsers not work on mobile browsers? I noticed the Gravitron game loads on mobile but the layout is broken. Is that just a case of not being optimized to work for mobile browers? Or is there a limitation in the frameworks that prevents it from working in mobile browsers?

I'm not sure the answer, but since it's for sale on android and ios, I imagine there's not a lot of incentive for the author to make it work on mobile browsers if it's easily done.

Re: Making a cross-platform mobile game in Reason/OCaml

#18

The game, Gravitron, looks very similar to an old Ludum Dare entry called Graviton: http://sam.draknek.org/projects/gravity (timelapse development video: https://www.youtube.com/watch?v=3tQ00R69rF8 ) It's a really cool game concept, even cooler being written in OCaml! :)

Not only is this game a total blast to play, but it's also one of the only games that I think is best played on a trackpad instead of with a mouse.

However if I were the creator of this game, I'd be pretty pissed at the one in the OP. One was obviously inspired by the other.

Re: Making a cross-platform mobile game in Reason/OCaml

#20
post #19
post #15

Does it only work on desktop browsers?

I haven't optimized it for mobile browsers, but it wouldn't be hard. Was pretty heads down on getting mobile native out the door.

Great, thanks! This all came at a perfect time -- I was just about to start working on converting a bunch of our music education games to iOS. My plan was to do that, then convert our existing games from Flash to HTML5. If I can get this up and running, it would save a great deal of time.
Post reply on HN