Java-Gaming.org Hi !
 Featured games (91) games approved by the League of Dukes Games in Showcase (757) Games in Android Showcase (229) games submitted by our members Games in WIP (844) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
Pages: 1 [2]
 ignore  |  Print
 Fix "my" method to make an object A move toward X,Y coordinates  (Read 11767 times) 0 Members and 1 Guest are viewing this topic.
alaslipknot
 « Reply #30 - Posted 2013-04-22 02:02:41 »

well, i honestly have nothing to say with you guys, i started Java 4 months ago (2 months serious work) so as a super duper total n00b
thank you very much for you help

"It's not at all important to get it right the first time. It's vitally important to get it right the last time."
ClickerMonkey

JGO Coder

Medals: 26
Exp: 10 years

Game Engineer

 « Reply #31 - Posted 2013-04-22 02:30:30 »

Sometimes that is fun, too. But that's different from typical Java2D, since you are rendering by hand, and learning lots about bits, bytes, and cool tricks.

It was awesome, some of my favorite math dealt with colors... you can do so many cool color operations with some neat math.

 1  2  3  4  5  6  7  8 `// multiplies two values (0-255) together as if they were between 0 and 1int mul(int a, int b) {  return (a * b + 255) >> 8; // same as (a * b) / 255}// mixes to values (0-255) by delta (0-255) amount. 0 delta will result in a, 255 delta will result in b.int mix(int a, int b, int delta) {  return mul(a, 255 ^ delta) + mul(b, delta); // same as mul(a, 255 - delta) + mul(b, delta)}`

So you could do things like Blending functions pretty easy:

 1  2  3  4  5  6  7  8  9  10 `   public static final Blend Alpha = new Blend() {      public int blend( int o, int n ) {         return Color.mixRGB( o, n, Color.alpha( n ), Color.alpha( o ) );      }   };   public static final Blend Additive = new Blend() {      public int blend( int o, int n )    {         return Color.add( o, Color.scaleRGB( n, Color.alpha( n ), 0 ) );      }   };`

Fun fun!

Regenuluz
 « Reply #32 - Posted 2013-04-22 09:13:20 »

@davedes
I didn't install any extra things, so what I'm using is standard download and install from http://www.oracle.com/technetwork/java/javase/downloads/index.html (Also notice, how I myself mentioned that everything in Java were libraries... So you're just repeating what I already said with your "bla bla library bla bla" )

@the general popylation
And someone that has programmed for a few month probably should spend their time learning basic concepts before trying to learn graphics programming. I know a lot of people in here thinks that a game is utter crap, unless it has fancy graphics that can rival that of AAA companies, and thus it's a big must to learn OpenGL..... But imho then that's utter and complete bullshit. Graphics is the least important in a game.
davedes
 « Reply #33 - Posted 2013-04-22 14:40:15 »

Like I said; it's not part of the standard JRE. Maybe your JRE or JDK installation included the optional Java3D libraries.

Quote
@the general popylation
And someone that has programmed for a few month probably should spend their time learning basic concepts before trying to learn graphics programming. I know a lot of people in here thinks that a game is utter crap, unless it has fancy graphics that can rival that of AAA companies, and thus it's a big must to learn OpenGL.....
... Exactly why newbies should start with LibGDX. It lets you jump right into making a game, rather than spending your time writing game loops, tiled map editors/loaders, input management, UI, etc for Java2D.

Case in point:
Java2D vs LibGDX

alaslipknot
 « Reply #34 - Posted 2013-04-22 15:39:29 »

@the general popylation
And someone that has programmed for a few month probably should spend their time learning basic concepts before trying to learn graphics programming. I know a lot of people in here thinks that a game is utter crap, unless it has fancy graphics that can rival that of AAA companies, and thus it's a big must to learn OpenGL..... But imho then that's utter and complete bullshit. Graphics is the least important in a game.

Am not programming for few month :p
i learn the basics of programming with Pascal at high school (4 years ago) we also did : HTML,PHP,SQL and JavaScript
but it was very basics, the final exam was about files input/output
so am not a total noob in programming, am Just a java noob   and a super graphic programming noob