Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2 3 4
1  Discussions / Miscellaneous Topics / Re: Pixel art? Creating pixel art from image!? on: 2014-07-29 21:00:09

this is what i i did :\ dont like it!
2  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Shader libs? on: 2014-07-29 16:43:38
I meant i dont have any libs !!
3  Discussions / Miscellaneous Topics / Re: Pixel art? Creating pixel art from image!? on: 2014-07-28 11:15:36
Now animating will be painfull!
4  Discussions / Miscellaneous Topics / Re: Pixel art? Creating pixel art from image!? on: 2014-07-27 23:39:20

Me truing to be an a artist! Not good!
5  Game Development / Newbie & Debugging Questions / Re: [Game] How do i make a camera.class? on: 2014-07-27 22:53:00
You don't have to just get the players x,y and center it on screen translate with Graphics!
6  Java Game APIs & Engines / OpenGL Development / Re: LWJGL Controller Advice [Getting false axis events] on: 2014-07-27 22:51:04
Create a variable for x and y for your stick and set it. After the method is called again check if x,y is the same if not set it to to a difrent x,y
7  Java Game APIs & Engines / Engines, Libraries and Tools / Shader libs? on: 2014-07-27 15:09:52
Is there any lib that provides you with using shaders? What i meant is that I am making a game in java, pure java no libs but i want shaders in my game. So is it posible that you just add it to my game and render it?
8  Java Game APIs & Engines / OpenGL Development / Re: LWJGL Controller Advice [Getting false axis events] on: 2014-07-27 11:43:23
I think that you cant read like that, try somehow getting the angle of your stick, if not just don't use it! Hope i helped Cheesy
9  Discussions / Miscellaneous Topics / Pixel art? Creating pixel art from image!? on: 2014-07-27 11:26:16
Well i am not an a great artist and i need help. Here's the thing i have an image

and i need someone to be kind to make me player 48x48 pixel art up,down,left and right. Thanks!
10  Game Development / Newbie & Debugging Questions / Re: Levels rendered sideways? on: 2014-07-27 00:49:45
Use [ code ] your code [ /code ].
And there are no details maybe the way you load the level? If you are doing it from a image just flip it!
11  Java Game APIs & Engines / OpenGL Development / Re: LWJGL Controller Advice on: 2014-07-27 00:44:43
You should take the pressed key and print it out! You would get numbers and you could insted checking for "A" pressed you check "5" pressed.
12  Games Center / WIP games, tools & toy projects / Re: Prophour23 - a fast-paced, randomized RTS on: 2014-07-24 17:14:21
When will the demo be avalable if you plan a demo?
13  Game Development / Newbie & Debugging Questions / Re: My game gives me a white screen when I run it with tiles moving enabled on: 2014-07-22 17:50:39
Maybe it's moving to fast and you don't see it, try moving it just 10 pixels and stop!
14  Java Game APIs & Engines / Engines, Libraries and Tools / Re: [Lego NXT] Java Libs? on: 2014-07-22 17:40:46
And i found it, Java for your robot Cheesy. Sorry for me saying no to java but i found it! Hope i helped! Cheesy
15  Java Game APIs & Engines / Engines, Libraries and Tools / Re: [Lego NXT] Java Libs? on: 2014-07-22 17:37:32
Rasberry Pi can use java but are you aming for? And how do you think to make your robots? Just wondering.

Edit: There is a link on the bottom of the page Software Dev. Kit and Hardware  Dev. Kit check them out there are no details on the page
16  Java Game APIs & Engines / Engines, Libraries and Tools / Re: [Lego NXT] Java Libs? on: 2014-07-22 17:32:58
There is a download link for the software in the link you posted! xD I dont think it can be programed in java, you have to use that software! It would be cool if you can program it but it has it's own OS-thing that controls it!
17  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-22 00:43:21
I am making my character design here is the sketch doing pixel art later :


18  Game Development / Newbie & Debugging Questions / Re: Why does my if statments stop working when I remove System.out statments on: 2014-07-22 00:26:59
try playerHealth < 1 !
19  Game Development / Newbie & Debugging Questions / Re: Why does my if statments stop working when I remove System.out statments on: 2014-07-21 22:57:54
What do you have in gameOver(); ?
20  Game Development / Newbie & Debugging Questions / Re: My bullet(missile,magic) doesn't want to go to mouse x,y!? on: 2014-07-19 16:05:38
http://i.imgur.com/iKa1MvA.gif

Yea it works xD i Just made new x,y floats and and works sometimes i just don't understand computer/java thanks everybody:D
21  Game Development / Newbie & Debugging Questions / Re: My bullet(missile,magic) doesn't want to go to mouse x,y!? on: 2014-07-19 15:41:26
Ok weard stuff is going on xD
http://i.imgur.com/1sJHyYG.gif
22  Game Development / Newbie & Debugging Questions / Re: My bullet(missile,magic) doesn't want to go to mouse x,y!? on: 2014-07-19 15:24:30
Then how can i make it not snapp to 15 degrees?
23  Game Development / Newbie & Debugging Questions / Re: My bullet(missile,magic) doesn't want to go to mouse x,y!? on: 2014-07-19 14:50:25
I use the code like NegativeZero said but i get the effect shown on the screen and i want it to go in a straight line, i tried with vec2 same effect,Is it possible or should I leave it as it is?
http://www.mediafire.com/download/sunoh7d6ctwalf1/game.jar
here you can see what is happening!
24  Game Development / Newbie & Debugging Questions / Re: My bullet(missile,magic) doesn't want to go to mouse x,y!? on: 2014-07-19 11:45:52
And from that how can i calculate the velocity for x,y?
25  Game Development / Newbie & Debugging Questions / My bullet(missile,magic) doesn't want to go to mouse x,y!? [solved] on: 2014-07-19 11:07:13
I asked this question before but i had particles on my missile and i thougth that it was working, and it's not!   Emo

Well i get this:

before i changed static x,y to not static:



after:




GitHub for the code
Look in the src/Entity for the player(shooting from the player)
and missile, camera is in the control


I don't know why is it doing this? I want it to go at any angle! Why it doesn't ?
26  Game Development / Newbie & Debugging Questions / Re: How to reset the game ? on: 2014-07-19 10:57:21
well you need to reset everything score player .............
just when you do like
1  
player = new Player(....);

just repeat that! And reset score,lives ....... You don't need to create a new window!
I hope i helped!
27  Game Development / Newbie & Debugging Questions / Re: Get the mouse x , y? [solved or not?] on: 2014-07-17 23:42:46
 Emo Well you helped but the code is still not working
i still get chunks


Source on GitHub
28  Game Development / Newbie & Debugging Questions / How to load an image from a jar? [solved] on: 2014-07-17 15:52:42
my code:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
   public static BufferedImage grabImage(String path, int x, int y, int width, int height) {
      BufferedImage tile = null;
      BufferedImage bildTileset = null;
      try {
         bildTileset = ImageIO.read(new File(path));
      } catch (IOException error) {
         System.err.println("Tileset not found");
         error.printStackTrace();
      }
      tile = bildTileset.getSubimage(x * width, y * height, width, height);
      return tile;
   }

//exapmple
// BufferedImage img = grabImage("res/img/img.png",0,0,16,16);

But it wont work! It loads if it is outside of the jar! How do i load it form inside the jar?
29  Game Development / Newbie & Debugging Questions / Re: Get the mouse x , y? on: 2014-07-17 01:01:04
It's not solved Sad!
30  Game Development / Newbie & Debugging Questions / Re: Animating on: 2014-07-17 00:50:49
I don't reconend doing that, it would be a painfull process! Try just clear java animation. This is how i do it :
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
package Graphics;

import java.awt.image.BufferedImage;

import Main.Main;

public class Animation {

   private BufferedImage[] animImages = {};
   private boolean animate = false;
   private int index = 0;
   private long miliSeconds, targetTime, now;

   public Animation(int mili,BufferedImage[] images) {
      this.miliSeconds = mili;
      animImages = images;
      now = System.currentTimeMillis();
      targetTime = now + miliSeconds;
      Main.anims.add(this);
   }
   
   public void stopAnimation(){
      animate = false;
   }
   
   public void startAnimation(){
      animate = true;
   }
   
   public BufferedImage getCurrentImage(){
      if(index < 0 || index > animImages.length){
         new Exception();
      }
      return animImages[index];
   }
   
   public void disposeAnimation(){
      Main.anims.remove(this);
   }
   
   public void setIndex(int i){
      index = i;
   }
   
   public void tick(){
      if (System.currentTimeMillis() >= targetTime && animate) {
         index++;
         now = System.currentTimeMillis();
         targetTime = now + miliSeconds;
         if(index>animImages.length-1){
            index = 0;
         }
      }
   }

}


Make an a static array list in the main method and tick every animation in there it so easy to get the image getCurrentImage() simple as that!
Pages: [1] 2 3 4
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (18 views)
2014-07-30 21:08:39

Riven (27 views)
2014-07-29 18:09:19

Riven (16 views)
2014-07-29 18:08:52

Dwinin (14 views)
2014-07-29 10:59:34

E.R. Fleming (35 views)
2014-07-29 03:07:13

E.R. Fleming (13 views)
2014-07-29 03:06:25

pw (44 views)
2014-07-24 01:59:36

Riven (45 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54
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
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!