Link to home
Start Free TrialLog in
Avatar of James Hancock
James HancockFlag for United States of America

asked on

How do I put a simple self-made game on my phone?

Hi

I'd like to get my first Javascript test game onto my phone.

Do they expect .js files or HTML5?

How do I upload it - comple it to an app? Will it work on all devices? How do I accommodate different pixel dimensions in my code? - for identical gameplay on all devices, is there a stretch / affine transform?
Thanks
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of James Hancock

ASKER

Someone advised me to look at J2ME, java for devices, basically. Java to work on devices/phones
What do you think / know of that?

Thanks
Java ME platforms are currently restricted to JRE 1.3 features and is not supported anymore. Even the replacement phoneme seems to have disappeared
This page claims to be able to put it into Eclipse
What do you think?

here
You can do your apps game using
hybrid framework http://www.techifylogic.com/top-5-frameworks-for-mobile-hybrid-apps-games-2018/

or using Native language  ( Swift and Objective-C for iOS apps and Java or Kotlin for Android apps)

or use React Native (you code once for both OS)
see this
https://www.npmjs.com/package/react-native-game-engine

I would use React Native...
Awesome - Thanks

Will React Native work on Tablets, also, Internet Explorer, Chrome, Safari, all phones? Does it do TCP/IP networking properly, . . obviously?
Does it adapt to the different screen sizes of desktops/phones/ tablets? like slither.io?

This will be another Javascript project in Xcode? - That's what I'm using, btw

My game server is in Java on my dog machine in my office.
The installation instructions say to install by typing..
npm install --save react-native-game-engine

Open in new window

Where do I type this? Does Atom have a quick-install ?

Thanks