[HELP]JAVA to Android (2D side-scolling game) - Android Q&A, Help & Troubleshooting

I want to make a 2D side-scolling game for Android (like Super Mario). And I'm "almost" done (basically a character moving right and left on a screen). So i've written a code which contains 6 small classes in Java and I have no idea how to write it for Android. I use Eclipse and this is my very first "real" project. Never written with Android before. I could use some help, I can show you guys the code or you could help me with some basics knowledge in Android coding.

Related

[Q] A few questions about Basic4android

Hi!
I got basic4android a few days ago and I am really lost.
I just wanted to ask you guys a few questions.
1-Does it need help from eclipse to create apps?
2- If I master this program, is it possible to create games like temple run or angry birds? And is it possible to create interactive live wallpapers?
3-Does it use XML or any thing similar?
4- Can you give a link for tutorials? I watched all of what was uploaded by the developer himself but he only explained the basics.
Thanks in advance:laugh:
1. Eclipse is not necessary but you have to install the android sdk since it uses it for compiling the code.
2. I think that is has a great potential since the final code is in java (you still program in basic thought) and this means that it creates code just like the one using the standard android tools (eclipse etc.). The basic4android has already a physics library, you can see a tutorial here : (google : lets-get-physical-with-basic4android )
3. No, the main configuration options are handled using standard ui controls (input boxes, radio buttons etc.)
4. As you see, you could use google for that but i can say that the "Basic4android Beginner's Guide" and the "Basic4android User's Guide" are just ok for a start before beginning reading anything on the forums
askariwa said:
1. Eclipse is not necessary but you have to install the android sdk since it uses it for compiling the code.
2. I think that is has a great potential since the final code is in java (you still program in basic thought) and this means that it creates code just like the one using the standard android tools (eclipse etc.). The basic4android has already a physics library, you can see a tutorial here : (google : lets-get-physical-with-basic4android )
3. No, the main configuration options are handled using standard ui controls (input boxes, radio buttons etc.)
4. As you see, you could use google for that but i can say that the "Basic4android Beginner's Guide" and the "Basic4android User's Guide" are just ok for a start before beginning reading anything on the forums
Click to expand...
Click to collapse
Thanks a lot man! :cyclops:
I'd give GLBasic a look if you want an easy way to create games
for Android (it also compiles for ios, windows, linux, macosx, cannoo,
gp2x, gp2xwiz, hp touchpad and pandora) The demo allows you to create full
non commercial games for Windows, Linux and Mac OSX and 10 minute time limited
for all other platforms, so you can work away with it to see if it suits and then
purchase when you need to compile to mobile.
The forums are very friendly and the developer is very responsive,
been using it a few years now and it's great for mobile games
vogella/ and developers.android.com are the best site rest in detail you can learn from google.
And besides eclipse other tools are not so acquainted with the android development YET!! so best advise go with eclipse.
Re:
askariwa said:
1. Eclipse is not necessary but you have to install the android sdk since it uses it for compiling the code.
2. I think that is has a great potential since the final code is in java (you still program in basic thought) and this means that it creates code just like the one using the standard android tools (eclipse etc.). The basic4android has already a physics library, you can see a tutorial here : (google : lets-get-physical-with-basic4android )
3. No, the main configuration options are handled using standard ui controls (input boxes, radio buttons etc.)
4. As you see, you could use google for that but i can say that the "Basic4android Beginner's Guide" and the "Basic4android User's Guide" are just ok for a start before beginning reading anything on the forums
Click to expand...
Click to collapse
Thanks very much! I am not lost my mobile phone, but it was stolen!
I love Basic4Android
roycevv said:
Thanks very much! I am not lost my mobile phone, but it was stolen!
Click to expand...
Click to collapse
I started using B4A a few years ago and love it. It's constantly updated and the number of libraries keeps growing. Recently a LibGDX library was made available which lets you write fast moving games using many sprites using B4A.
Problems with multi window
Hi,
I created an application with basic4Android. My application open pdf with adobe reader. I need to have 2 buttons when i saw pdf. I use multi window for smaller adobe reader. But i don't know line of code in basic4android for close or open adobe reader with multi window.
thank you for your future responses

How to write code with an Android device?

Hi all, with this thread I'd like to share with the community, and with your help of course, knowledge and Android apps to develop in differente programming languages using an Android device.
I tried several IDEs and I've always spent a few time to search and try them, so now would be great if anyone'll share his opinion and which IDE he use, either to simple script or big programme.
At the moment I don't have available any Android Device, so I can't test them, and make any video. (Soon I'll buy a tablet)
Jave
Sand IDE for Java developers (free) https://play.google.com/store/apps/...GwsMSwxLDEsImNvbS5qaW1teWNoZW4uYXBwLnNhbmQiXQ..
Java/C++
AIDE - Android IDE - Java, C++ (free) https://play.google.com/store/apps/...pps#?t=W251bGwsMSwxLDEwOSwiY29tLmFpZGUudWkiXQ..
AIDE Premium Key (9,99€) https://play.google.com/store/apps/...GwsMSwxLDEwMiwiY29tLmFpZGUucHJlbWl1bS5rZXkiXQ..
Arduino
ArduinoDroid - Arduino IDE (fee) https://play.google.com/store/apps/details?id=name.antonsmirnov.android.arduinodroid
I'll make videos as soon as I buy the tablet.
Write here which you tried!!!

[Q] Developing for the Android, where to begin?

I am toying with the idea of developing for the Android. It's mostly for fun and to see where it goes. I am a programmer, but do not know Java specifically. If i was to learn Java, i would need to learn it from scratch, but for a programmer, not for a newcomer to the programming field.
I downloaded Android Studio and can follow the guides, but i wonder: Is it better to learn Java first and then Android? Or is it better to learn Android first? And regardless of which, is there a level of basic learning that is "enough" to foray into the other. I ask this because it seems that guides for Android expect one to know Java already. Then again, someone told me he learnt how to do Android, and found Java snippets on the web as he went along.
If there is no specific answer, please lend your advice or personal experience. I am very interested in hearing what other have to say about this.
Do both together
Hey there,
I was a bit worse off than you because the only "programming" experience I had was MS Excel formulas but with some effort now feel pretty good about getting even relatively complicated things working in Android. Basically, I would recommend you learn both Java and Android at the same time.
Here's why:
- you need to get the Android Studio tool set up anyway, and it will do a great job showing you syntax issues and recommending changes as you go. In this way you can rely on Android's developer tools to help you learn basic Java.
- the Internet is chock full of sample code for Android. You can use that as a base, deploy it to a device, change it around, deploy it to a device (or emulator) again, and so on. It will give you both hope and eventual confidence when you're able to see the changes you make in Java actually reflected in an app. It makes it more fun too.
- in the end the majority of your time will be learning the Android SDK frameworks, and I was often able to use the Android documentation examples themselves to teach myself both Java and the Android platform's ins and outs.
Dive in and enjoy!

Android Game C++ SFML or Android Studios Or C# Monogame ?

Hello all ^^
Am a rookie programmer, and i want to make an MMORTS game like OGame but for Android. I am good at Oracle, SQL, Java and about average at C++ (with little over 6 months training in my college)
so i got a question please forgive me if i said something wrong or ignorant, cause am still a rookie just starting into the world if programming
the game will be pretty much like Ogame but with little animations (u know like blinking lights on buildings and some very basic and simple ship battle animation). Other than that most of the game will be text based just like Ogame
build buildings
research tech
build ships
farm others
harvest resources
should i use C++ with SFML(Simple and Fast Media Library) or should i start with Android Studio ? Or C# And Monogame ?
the thing is i want to implement in app purchases and ads and premier memberships.
can i do that in a game written in C++ using SFML and ported to android platform? or am i better off using Android Studio cause it will be easier to incorporate them into my game using Android Studio.
my concern about using Android Studio is i dont see it having a good 2D library, or atleast a capable one like SFML and one of my seniors said 2D libraries in android studio are primitive and a pain to use
please suggest me which one to pick ?
we are a team of 2 members
am the programer and one of my friend who is a rookie designer

Making mobile or PC game

Hi. Does anyone here know about making games either for Android or for Windows or for both? I was always such a gamer addict but eventually I stopped playing because I feel like i played so many games that they dont work for me anymore haha. So I was thinking of creating my own game as I have ton of ideas.
But Im quite inexperienced in game development. I know a bit of programming but not sure how to proceed further so I have an moving object in 3D space. Am also not sure which language to pick, people say Java is good because if you code game in java then it will run in every kind of device.
Shireenzo said:
Hi. Does anyone here know about making games either for Android or for Windows or for both? I was always such a gamer addict but eventually I stopped playing because I feel like i played so many games that they dont work for me anymore haha. So I was thinking of creating my own game as I have ton of ideas.
But I'm quite inexperienced in game development. I know a bit of programming but not sure how to proceed further so I have an moving object in 3D space. Am also not sure which language to pick, people say Java is good because if you code game in java then it will run in every kind of device.
Click to expand...
Click to collapse
First of all game development is not hard but will take you long time and that's why it's considered hard. Every little feature you code will take you long time, then you will have to interconnect them and ensure it works correctly, then polish each of these gameplay features as well as do perfectly good visual assets.
Secondly, please don't use Java. LibGDX is the only game engine (actually its library, not an engine) for Java and it's nowhere as good as popular game engines are. Java games can be compiled once and technically be run on any platform like Linux, android and windows in same time (there are often errors though). Now while this may seem like an advancement and really great thing to have, it's actually not. Because any popular game engine will let you code your game once, and then just compile (a matter of clicking one button) a individual game package to each platform like Xbox, android, windows, browser and the like. So the only difference here is that you have to compile the game few times but you still code it once.
The game engine I would suggest you is to use Unity. Unity is very easy engine that is suited for every kind of game. One more thing Id recommend to you is to learn from free tutorial instead of paid one. One of websites that teaches you for free is this gamedev blog - actually I'm in game development for quite long time but it still taught me things i didn't know about. If you have troubles following the tutorial then you probably should learn some C#.

Categories

Resources