getting started...

Started by kitox, December 12, 2012, 08:08:43 PM

Previous topic - Next topic

kitox

hi every one...im newbie in android game development....can you help me? i dont know where to start....

i found out that there is no video tutorials for this engine...

thanks.....

EgonOlsen

What's your programming experience in general?

kitox

i just say it fair..ahm, i do have some background on c++ programming..actually this is my thesis...sorry for my poor english...

kitox

import com.threed.jpct.Camera;
import com.threed.jpct.FrameBuffer;
import com.threed.jpct.Light;
import com.threed.jpct.Logger;
import com.threed.jpct.Object3D;
import com.threed.jpct.Primitives;
import com.threed.jpct.RGBColor;
import com.threed.jpct.SimpleVector;
import com.threed.jpct.Texture;
import com.threed.jpct.TextureManager;
import com.threed.jpct.World;
import com.threed.jpct.util.BitmapHelper;
import com.threed.jpct.util.MemoryHelper;


does in every import have their own classes?

EgonOlsen

I don't get the question. You either import each class on its own or do something like import com.threed.jpct.*; Or let the IDE (like Eclipse) manage the imports for you. You should really get some basic Java knowledge before continuing...

K24A3

Java is very similar to C# but considerably different to c++, so you may want to read some Java tutorials before moving onto OpenGL programming. Java is more contained and object orientated than c++, no more header files (thank god), all the jPCT classes you posted up are contained into one jar library, or one 'namespace' if you are familiar with C#.

This site may help:
http://www.javabeginner.com/toc.htm

kitox

thanks for that..ahm, i am working with multiple sprites now for my splash screen. i loaded an image for my background..but when i add another image the images cant be seen? how can i fix this?

EgonOlsen

Images? Does this question has something to do with jPCT-AE?

kitox

i think so..thats why im asking..thanks for positive response.. ::)

EgonOlsen

I don't think that this relates to jPCT...jPCT has no concept of 'images' nor have i any idea what 'add another image' is supposed to mean in the context of the engine...  ???

kitox

sprites,textures..i want my background image with the image buttons loaded..i have not yet start coding in game proper i mean the actual game.. :'(

EgonOlsen

Maybe you can post some code? I still have no idea what you mean by 'adding an image'.... ???

Yatoom

From what I understand, you are making a splash screen and have not started to create the actual game. And for this splash screen, you want to make an animation. So, this animation consists of several textures which are put in an array or something, which then are applied on the background. But that does not work for some reason. So, it is best if you copy-paste your code here so we can check what went wrong.

Furthermore, you might want to use wild-cards in your imports, so when you do for example: import com.threed.jpct.*;, then you don't need to import every class apart. The stuff you import is indeed a package (or namespace) with more classes. Sometimes, it is also nice to use a static import: import static com.threed.jpct.Camera.*;. Then, you can write CAMERA_MOVOUT instead of Camera.CAMERA_MOVEOUT.