Hi everyone, sorry that it’s been a while since I’ve posted. I’ve been working on getting my youtube channel up and running. But anyway, back to the article:
So for a while now I have wanted to create apps for my phone, but there were several problems. Pretty much all of them being that I have an iPhone and a windows computer. For those who don’t know, for all intents and purposes, the only way to code IOS apps in Xcode. [distant lightning sound effect]. Xcode can only run on Apple computers and costs 100 annually. That’s one computer and $100 that allot of people don’t have. That’s why I made this article.
PhoneGap
The solution to our problems is phone gap. It allows developers to code cross-platform apps using html5 opening up allot of possibilities. The possibility I realized used was Google cardboard apps. And it was so much easier then I could have ever dreamed. I made a video on how you can get one running in under 10 minutes:
You can download PhoneGap here
I was nice and just copy and pasted the A-frame code here:
<html> <head> <script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script> <script type="text/javascript" src="cordova.js"></script>//include this code, it's necessary if you want phonegap features. </head> <body> <a-scene> <a-box position="-1 0.5 -3" rotation="0 45 0" color="#4CC3D9"></a-box> <a-sphere position="0 1.25 -5" radius="1.25" color="#EF2D5E"></a-sphere> <a-cylinder position="1 0.75 -3" radius="0.5" height="1.5" color="#FFC65D"></a-cylinder> <a-plane position="0 0 -4" rotation="-90 0 0" width="4" height="4" color="#7BC8A4"></a-plane> <a-sky color="#ECECEC"></a-sky> </a-scene> </body> </html>
You can even play around with the demo in your browser because it is just html5!