3 ms·
Is the source available? I'm curious how you're able to run either as an app, or in the browser.
by alanbernstein 7y ago
Is the source available? I'm curious how you're able to run either as an app, or in the browser.
- atum47 7y agoI wrote the thing with mobile and desktop on mind (touch and keyboard controls, render to several types of screen). Then this line does the magic: const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent); if isMobile = true, I show you the touch controls I'm holding the source code on this one for now, cause I'm trying to make a bucket out of it. But I'll release it soon enough. Check out my github for some other fun projects as well
- alanbernstein 7y agoCool, thanks for sharing that.
- atum47 7y agoyou're welcome
- atum47 7y agoby the way, the app version is a hybrid. I'm using java and javascript. I use a javascript interface to talk between the two. Java handles the ads and the data storage, the rest is javascript.