Author Topic: getting started...  (Read 1842 times)

Offline kitox

  • byte
  • *
  • Posts: 8
    • View Profile
getting started...
« on: December 12, 2012, 08:08:43 pm »
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.....

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: getting started...
« Reply #1 on: December 12, 2012, 08:12:25 pm »
What's your programming experience in general?

Offline kitox

  • byte
  • *
  • Posts: 8
    • View Profile
Re: getting started...
« Reply #2 on: December 12, 2012, 09:00:08 pm »
i just say it fair..ahm, i do have some background on c++ programming..actually this is my thesis...sorry for my poor english...

Offline kitox

  • byte
  • *
  • Posts: 8
    • View Profile
Re: getting started...
« Reply #3 on: December 12, 2012, 11:30:01 pm »
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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: getting started...
« Reply #4 on: December 13, 2012, 01:42:48 pm »
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...

Offline K24A3

  • long
  • ***
  • Posts: 231
    • View Profile
Re: getting started...
« Reply #5 on: December 13, 2012, 02:48:05 pm »
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

Offline kitox

  • byte
  • *
  • Posts: 8
    • View Profile
Re: getting started...
« Reply #6 on: January 11, 2013, 03:42:43 pm »
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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: getting started...
« Reply #7 on: January 11, 2013, 08:17:16 pm »
Images? Does this question has something to do with jPCT-AE?

Offline kitox

  • byte
  • *
  • Posts: 8
    • View Profile
Re: getting started...
« Reply #8 on: January 17, 2013, 09:32:48 am »
i think so..thats why im asking..thanks for positive response.. ::)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: getting started...
« Reply #9 on: January 17, 2013, 05:27:26 pm »
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...  ???

Offline kitox

  • byte
  • *
  • Posts: 8
    • View Profile
Re: getting started...
« Reply #10 on: January 18, 2013, 09:01:57 pm »
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.. :'(

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: getting started...
« Reply #11 on: January 19, 2013, 10:19:43 am »
Maybe you can post some code? I still have no idea what you mean by 'adding an image'.... ???

Offline Yatoom

  • byte
  • *
  • Posts: 8
    • View Profile
Re: getting started...
« Reply #12 on: February 01, 2013, 08:32:10 pm »
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.