I have flash code with AS2 scripts. It is a slot machine game and I want to port it to Android and iOS .Since it is a slot machine game UI aren't going to be a priority in choosing the technology I code in. I can very well create separate UI's in android and iOS and hook them up with a plugin from another language.However, I want to re use as much code from AS2,Since Most of the code contains logic for the slot machine and Bingo game. I would like to know how I can go about this. Should I go for unity 3D , Oracle ADF , Corona or any other IDE that will be useful. Or should I convert AS2 script to C code and use that as a plugin in both Android and iOS ? Or any other option. Thanks
Have a look at Scaleform Mobile that might work well for you. You can use AS2 code and it deploys to mobile. Scaleform uses their own runtime but it integrates with the Flash toolchain. We use the Unity3D plugin and it works great.
I have some kind experience with Scaleform for Unity plug-in and I also think
that it is the best solution
for you needs (no matter Scaleform for Unity plug-in or Scaleform mobile).
In Scaleform you will able to leave most of the code base on AS side.
But Scaleform is advanced library with non-friendly documentation, therefore before you will able make you work, you needed to have some ะก++/C knowledge for bootstrapping skeleton app.
Related
I wanted to enable one of my Android project to the new KMM but will deploy only for Android platform for the time being. According to this FAQ page it seems that the plugin works only for macOS. But was confused on the next paragraph stating
The good news is that you can work with cross-platform projects on
Android even without the Kotlin Multiplatform Mobile plugin. If you
are going to work with shared code or Android-specific code, you can
work on any operating system supported by Android Studio.
I am not planning yet to run the iOS part as I am still learning it, all I want for now is to prepare my project so when I am confident with my iOS skill starting it would be easy. I do not have a good Mac device as of now that is why I prefer to use my Windows machine for now which is more reliable for heavy stuff like Android development.
I just found the right place and reference and it is possible according to this documentation
I want to make a game with my friends on iOs, Android, WP operating systems. We decided to use a cocos2d-x and develop the core of the game on C++. What will be the right way of developing so that we can write the game all together simultaneously but just build the project differently on every platform. We thought of writing the core of the game in C++ in Visual Studio, but there is the problem: How can we test it fast on every platform? How people usually develop multi-platform projects?. Also we would really like to hear some recommendations about the source controlling of the whole project. Thank you in advance.
Best way to develop a game on Cocos 2Dx is to
Develop Complete Game for one platform most probably iOS or Windows.
Port your game to other platforms.Fix minor bugs that occurs.
You can use GitHub to Work in groups.
Make sure you test your apps on devices because some features are
platform specific like ads etc.
For source control you have several options such as Git or SVN. Personally I quite like Git as it doesn't require a central server as it is peer to peer. That means if it all goes wrong with your host you still have a full copy. In terms of good and repository hosting I would take a look at https://bitbucket.org/
To test on iOS I believe you'd better got a Mac instead of windows box.
So I read this article on Mobile Orchard and, as I'm planning on having my first steps in Android development, it got me thinking: is it possible to develop for Android in Lua only? I Googled the topic but found no definitive answer. I know Java is the "base style" for Android but for the coding newbie which I am (elementary Python, basic C++), Lua seems somehow clearer and more friendly. Then here goes my question: can one develop an Android app using Lua only? If so, could you please show me some directions to move from here?
I've been developing a mobile application in Lua to control robots remotely from iOS and Android phones. The app is in pure Lua and runs on top of Mosync platform using MobileLua. There is still some plumbing required, but it's not too complex.
I also have a debugger and a Lua IDE (ZeroBraneStudio) that support debugging of Lua scripts running remotely (including MobileLua scripts running on Android or iOS devices). I provide a demo app you can use as a client to run simple scripts and check remote debugging in action.
[Update] If you are interested in more game oriented options, there are several available: (1) already mentioned Corona SDK, (2) Moai, and (3) Gideros Mobile. There is also Marmalade Quick and Cocos2d-x Lua bindings (for example, quick-cocos2d-x). All these toolkits/frameworks allow to develop in Lua.
Here is a detailed comparison of Moai vs. Corona.
I know this is an older question, but just to correct some misinformation (in the comments) for people who come later, Corona SDK (as of spring 2013) has a Starter Edition which is free -- no splash screen or anything. The main difference between it and the "Pro" version is you can't do in-app purchases in the Starter Edition. But you can use it to create apps for sale, etc. No expiration date on it or anything.
And in answer to the original question, learning Java may allow you to write Android apps, but if you then also want to target iOS you don't have any great options. By choosing something that's cross-platform from the beginning you can target Android or iOS or both. Lua (in any of the flavors already mentioned) is a great base language to learn for mobile development.
The question is what kind of app do you want to build and what skills do you have. If you are already familiar with JavaScript there is Phonegap/Cordova. If you are building games there are a number of frameworks for 2D and 3D which use Lua. Some are free, others have licensing fees but are worth it if it provides a solution to your problem. All have pros and cons. For example I'm not sure if I would want to build an RSS reader in a game framework. Java is just another language, I would recommend just learning Java and the Android framework to start and knowing what is there before adding another application specific framework layer on top.
Corona SDK allows you to write iOS and Android apps in Lua. Its very easy to learn, but its not free.
Edit:
I saw you posted that you found Corona just after I sent my post...
You can try http://scormpool.com/luastudio
Develop and run code on your device including iOS, Android, Mac, Win.
Exporter can help you to make standalone app on listed above platforms.
This may not be useful to the OP, however for other people interested in using lua to write their apps, I'd share my thoughts. So to answer the question:
Yes, you can use only lua to write apps for android using LuaJava from the kepler project (though I don't believe its being maintained anymore). You can create and manipulate Java objects seemlessly, and interact with the Android APIs through lua. You can even create UI elements dynamically using just lua. However, a small amount of java bootstrap code is needed to start the lua VM from your app. The AndroLua project is a great place to start for Android. The creator has done a lot of work making lua work with Android and packaging it all into an app. From experience I can say it works great! However, I would in no way recommend this to a beginner, as it requires a lot of knowledge about java and lua to make things work, meaning more work not less.
For AndroLua, just clone the repo and use that as a base for your own app. Last time I used it, I just imported it into android-studio, and after fixing a few problems with my own setup, had it compiling and running on my device.
If only pure Lua then the answer is no.. unless you want to use a lot of libraries
If you want to make little Android app/games then use a game engine, learning is a step by step process, don't dive straight into the hard part.
This time I'm trying to make a software that can be used on iOs, Android, as standalone software, as a web app, and I want to know if there is a way to make a base code in one language and with little effort and minimum changes use it to compile it for all the platforms. I was thinking in c++, but is there a better option?
Thanks in advance
Phonegap gets you three out of four http://phonegap.com/
Seems rather obvious to point out, but you Adobe Air can do each item in your list using the same code. The language behind it is Actionscript and is object oriented. From the same code, you can output Flash for web, Android apps, iOs apps, a standalone Air application for desktops. You can develop in Air using a Mac or PC.
(If you are using a PC to create apps, for uploading to iTunes, you need a Mac, but you can rent a virtual Mac from http://www.macincloud.com, which works on a PC. You will have to use the Mac to create your certificates and upload the IPA file onto iTunes, but it works perfectly without the expense of buying a Mac.)
You could also consider going as a service on the web. Otherwise, c# is a good all way to go. There are sites that will alter different sources of code to different outputs.
jQuery mobile also good framework for multiple mobile platforms. link to website. We are using this for same purpose. So far everything good.
I'm surprised that no one has mentioned this yet, but Unity should be your go-to for cross-platform app creation. Nominally, Unity is for cross-platform game development, but its expansive libraries allow for robust general-purpose program development. Unity provides you with great tools for building UIs, and it has an active community of developers.
Using C# will get you Android, iOS and Windows Phone if those are key platforms for you. Using Mono / Xamarin you can develop apps in C# / .NET.
I've built an Android app in the past (on a Windows machine using Eclipse), but having downloaded Ubuntu, the Android source and built it successfully (whew), I'm not sure how to tie it all together. How do I load my app into the Android that I've built?
If you really want to be building your own ROM you should head over to the Android Platform Developer's Guide and read it all through.
However if you simply want to develop your own applications then you only need the SDK (and on rare occasions when you want to add some native code also the NDK).
The easiest way to develop Android applications is by utilizing the Eclipse integration, which does most of the work for you.
You also probably want to know what all of the SDK tools (even if you are building your custom ROM) that the Eclipse plugin is using behind the scenes do, so head over to the Tools Overview.
You may want to take a look at the Android Cookbook.
It has loads of nice wee snippets of code to get you started.