Java-Gaming.org Hi !
 Featured games (84) games approved by the League of Dukes Games in Showcase (575) Games in Android Showcase (154) games submitted by our members Games in WIP (623) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
 Home Help Search Login Register
Pages: 1 [2]
 ignore  |  Print
 Fix "my" method to make an object A move toward X,Y coordinates  (Read 3466 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: 20

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.
 Games published by our own members! Check 'em out!
davedes
 « Reply #33 - Posted 2013-04-22 14:40:15 »

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
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
but i get your point

"It's not at all important to get it right the first time. It's vitally important to get it right the last time."
Pages: 1 [2]
 ignore  |  Print

You cannot reply to this message, because it is very, very old.

 BurntPizza (29 views) 2015-04-23 03:42:11 theagentd (34 views) 2015-04-22 16:23:07 Riven (48 views) 2015-04-16 10:48:47 Duke0200 (59 views) 2015-04-16 01:59:01 Fairy Tailz (41 views) 2015-04-14 20:13:12 Riven (43 views) 2015-04-12 21:36:37 bus hotdog (60 views) 2015-04-10 02:39:32 CopyableCougar4 (66 views) 2015-04-10 00:51:04 BurntPizza (69 views) 2015-04-06 22:06:58 ags1 (67 views) 2015-04-02 10:58:48
 theagentd 23x BurntPizza 16x wessles 15x kingroka123 11x alwex 11x 65K 11x kevglass 8x Rayvolution 8x Roquen 7x chrislo27 7x Hanksha 7x Riven 7x Olo 7x Ecumene 7x ra4king 7x KevinWorkman 6x
 How to: JGO Wikiby Mac702015-02-17 20:56:162D Dynamic Lighting2015-01-01 20:25:42How do I start Java Game Development?by gouessej2014-12-27 19:41:21Resources for WIP gamesby kpars2014-12-18 10:26:14Understanding relations between setOrigin, setScale and setPosition in libGdx2014-10-09 22:35:00Definite guide to supporting multiple device resolutions on Android (2014)2014-10-02 22:36:02List of Learning Resources2014-08-16 10:40:00List of Learning Resources2014-08-05 19:33:27
 java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org