Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (476)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
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: Infatuated on: 2014-06-02 16:39:05
this girl? It must be a deprecated language, never heard of it. Can you post an example?
2  Discussions / Miscellaneous Topics / Re: Sex appeal in advertising (NSFW) on: 2014-04-06 19:36:17
*registers to League of Angels*
3  Game Development / Newbie & Debugging Questions / Re: My most inefficient way of implementing running texts. How to optimize? on: 2014-04-05 16:20:48
I just wrote this. Give it a try. It's small and works well.

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  
public static void printText() {
      final String message = "Hello there";
     
      new Thread(new Runnable() {

         String printedMessage;
         
         @Override
         public void run() {
            for (int i = 0; i < message.length() + 1; i++) {
               
               printedMessage = message.substring(0, i);
               
               //print it
              System.out.println(printedMessage);
               
               try {
                  Thread.sleep(200);
               } catch (InterruptedException e) {
                  e.printStackTrace();
               }
            }
         }
         
      }).start();
   }
4  Game Development / Networking & Multiplayer / Re: How do you configure a router with Java to make it... on: 2014-03-30 11:29:50
Only the guy who hosts the server will need to open the ports on the routers configuration page. The players won't need to do anything.

Especially, if your game doesn't allow anyone but you to host a server, there is no reason to worry about, because you are the only one who needs to configurate his ports.
5  Game Development / Newbie & Debugging Questions / Re: LWJGL - Issue Binding Texture To An OpenGL Quad on: 2014-03-30 11:23:16
You didn't bind the texture and you didn't set the texture coords.

Try this.

1  
2  
3  
4  
5  
6  
7  
8  
player.texture.bind();

GL11.glBegin(GL11.GL_QUADS);
GL11.glTexCoord2f(0, 0); GL11.glVertex2f(player.x, player.y ); //Top-left
GL11.glTexCoord2f(1, 0); GL11.glVertex2f(player.x + player.texture.getTextureWidth(), player.y);//Top-right
GL11.glTexCoord2f(1, 1); GL11.glVertex2f(player.x + player.texture.getTextureWidth(), player.y + player.texture.getTextureHeight());//Bottom-right
GL11.glTexCoord2f(0, 1); GL11.glVertex2f(player.x, player.y + player.texture.getTextureHeight());//Bottom-left
GL11.glEnd();


Also, I don't know if using the texture dimensions to set the quad will turn out pretty well. Better, replace the player.texture.getTextureWidth and height with fixed values, at least for testing purposes.
6  Games Center / WIP games, tools & toy projects / Re: CarCry (3D Kinda-Racing Game) on: 2014-03-07 12:14:43
It's awesome. Can I get the source?

I will release the source at some point when I feel the development is over. Or if I get bored and never touch it again.

Hi, I tried to play, but the car is abnormally speed and controls make me go out of road even with a little button pressed.
It seems like the game runs 3 or 4 times faster that it should on my computer.
Tested on Windows 7 - JRE7 32bits.

Edit : Forcing v-sync in Graphic card settings fixed it. Perhaps you could put a fixed framerate of 60 in your code.
VSync is enabled but not at a fixed value. It depends from  how many frames per seconds your monitor can handle. Yours propably can handle a value around 100 so the game runs at 100 fps.

Which is obviously a problem, and will be fixed  in the next patch.
7  Game Development / Newbie & Debugging Questions / Re: Robot on: 2014-03-04 21:54:16
Works fine for me. Try binding left to another key, say 'L' and send the key press event for the letter 'L' instead.
I was about to say that. I tryied it and it worked. Thank you for your time.
8  Game Development / Newbie & Debugging Questions / Re: Robot on: 2014-03-04 21:41:33
Then the key press works fine. What is the keybind for "left" inside the game/emulator? It may not necessarily be, and probably isn't, the left arrow key.
The left key makes the little white rectangle which is on letter K on the video to go left. It works fine using a keyboard.

I used it on my last game project, too and it doesn't respond to robot events as well.
9  Game Development / Newbie & Debugging Questions / Re: Robot on: 2014-03-04 21:34:25
You sure you're having the specified game/program as the current active window while you're using the robot?
Yes. Check that. The menu ingame works normally with the key press event. Not the actual game though.
10  Game Development / Newbie & Debugging Questions / Re: Robot on: 2014-03-04 21:19:49
Maybe 'the game' checks whether a key is pressed, instead of checking for up/down events.

1  
2  
3  
  robot.keyPress(KeyEvent.VK_LEFT);
+ Thread.sleep(100);
  robot.keyRelease(KeyEvent.VK_LEFT);


I tryied adding some delay, even a big one, but still nothing. Maybe there is other way to press keys using script?
11  Game Development / Newbie & Debugging Questions / Robot on: 2014-03-04 21:11:08
I have been trying to use the Robot class to automatically control a game, but it turns out it works everywhere except inside the game.

I tested a couple of games and the same thing keeps happening. Google wasn't really helpful on that one, but anyone have any clue why it cant emulate key presses in games?

Here is my code in case you want to have a look. It simply starts a thread and presses the left arrow 10 times.


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  
new Thread(new Runnable(){
         Robot robot = null;
         int i = 0;
         
         @Override
         public void run() {
           
            try {
               robot = new Robot();
            } catch (AWTException e) {
               e.printStackTrace();
            }
           
            while (!stop) {
               try {
                  Thread.sleep(1000);
               } catch (InterruptedException e) {
                  // TODO Auto-generated catch block
                 e.printStackTrace();
               }
               System.out.println("wed");
               robot.keyPress(KeyEvent.VK_LEFT);
               robot.keyRelease(KeyEvent.VK_LEFT);
               i++;
               if (i>10) {
                  stop = true;
               }
               
            }
         }
         
      }).start();

12  Games Center / WIP games, tools & toy projects / Re: CarCry (3D Kinda-Racing Game) on: 2014-03-02 17:27:30
To easy. Increase speed or add more cars every minute.
You are right. Even though I made it a bit harder already in this build by adding some more cars.
13  Games Center / WIP games, tools & toy projects / Re: CarCry (3D Kinda-Racing Game) on: 2014-03-02 16:53:48
Beta version is out.

GUI improvements, gameplay fixes, smooth level loading, steering animation, etc.

Known issue:
Crashes when you try see the highscores or to submit your own when you have no internet connection.

Download link in main post.
14  Games Center / WIP games, tools & toy projects / Re: CarCry (3D Kinda-Racing Game) on: 2014-02-28 16:26:28
So, I fixed some bugs mostly gui ones but I also added a page where you can see the top 20 highscores.

I was looking for a way to effeciently store the highscores of all players on a database and be able to show them ingame. I really didn't want to create a server just for that purpose. Also, I didn't want to make a direct connection to a database because it would be really easy for someone with a decompiler to grab the db info.

So, I came up with another way that is not that safe but at least the hacker is not able to completely manipulate the database. So the client, establishes a connection with a php page I coded and via the get function in php, the page saves the info in the database. Then, in the highscore page ingame, client grabs the top 20 scores that are echoed on the website using php and prints them.

In order to have your score saved you must have added a username before you start playing, in the main menu, which is saved in a tiny text file in the same directory, so it can remember you each time you decide to play.

Paul.
15  Discussions / Miscellaneous Topics / Re: PlanetsĀ³ - a 3D open-source voxel-based RPG on: 2014-02-25 22:02:40
It looks great!
16  Games Center / WIP games, tools & toy projects / Re: CarCry (3D Kinda-Racing Game) on: 2014-02-25 19:30:04
I tend to believe that everything works fine now. All natives included, replaced lwjgl files with freshly downloaded ones and replaced the huge .wav files with .ogg. The file is about 9 MB now (from 24MB).

Added new link.
17  Games Center / WIP games, tools & toy projects / Re: CarCry (3D Kinda-Racing Game) on: 2014-02-25 13:10:17
You might have considered this already, but you could probably yoink Slick's Music: http://slick.ninjacave.com/javadoc/org/newdawn/slick/Music.html

When I try to load a .ogg file, either using tinysound or slick, the window just closes when it is about to start the music. Even if I included all the nessasary files.

The strange this is that it works normally in the IDE.

Not sure what's wrong.

- Make the grass stretch all the way across the screen
- Add some fog at the end so that you do not see the tiles loading
The stretching part will be done in the next patch.

18  Games Center / WIP games, tools & toy projects / Re: CarCry (3D Kinda-Racing Game) on: 2014-02-25 06:48:47
I uploaded a new version that includes all the natives. I hope it works fine for everyone now.

The file remains huge because I didn't manage yet to have it load .ogg files flawlessly, so I have to stick with .wav for now.
19  Games Center / WIP games, tools & toy projects / Re: CarCry (3D Kinda-Racing Game) on: 2014-02-24 22:03:26
I love the graphics and rather amusing car models, good job my friend Smiley
Thank you.

Why is this 27 Mb :x
--
The game isn't bad; It's a simple little arcade styled game which are always good Smiley

If you had the resources, I would definitely suggest spending some more time on the graphics (textures / car models), but hey graphics don't make the game Wink

Good job.
The background music file is 24mb.

I will surely do something about that.
20  Games Center / WIP games, tools & toy projects / Re: CarCry (3D Kinda-Racing Game) on: 2014-02-24 21:36:04
I uploaded the next version which contains some bug fixes and graphic improvements.
21  Games Center / WIP games, tools & toy projects / Re: CarCry (3D Kinda-Racing Game) on: 2014-02-24 14:21:47
Looks nice. But please give a download (your provided link is a JPG)
Thank you. I fixed it now.
22  Games Center / WIP games, tools & toy projects / CarCry (3D Kinda-Racing Game) on: 2014-02-24 14:15:28
This is the game I developed two days ago at Saturday night. All you have to do is to avoid the incoming beautifully textured vehicles.

I developed a similar game in 2d some years ago which I never released, so I decided to give it a try in 3d.

I will propably add some more stuff from time to time. I used the LWJGL.

Enjoy.


Download here.
23  Games Center / Android Showcase / Re: Bat Potato on: 2014-02-18 21:44:42
-One of the few annoying things is that everyone thinks its another bad flappy bird clone , it even was banned from an appstore.

It is quite different from flappy bird actually.
24  Games Center / Android Showcase / Re: Bat Potato on: 2014-02-18 14:11:46
I find it quite enjoyable. You should propably work on the physics a bit more. The way it falls doesn't feel so smooth.
25  Games Center / Cube World Projects / Re: First ever 3D Game on: 2014-02-03 18:50:20

Well, it was my first game. Let me just break out my 3D CAD artists and texture designers and make some call of duty style fps. No, but in all seriousness, I think a voxel engine was a good start.

Of course it is a great start for 3d development, don't worry you did a great job. They didn't want to offend you.
26  Discussions / General Discussions / Re: New feature: coding experience on: 2014-02-02 22:07:25
TBH... I was looking at the Exp, and it looks quite boring being a number. Can we change it to something a little bit more visible and entertaining like stars or something. Like...


If they want the number details, then they can just look into the profile. But I feel that it'll make it more interesting if we had a visual icon representation of the experience. It'll also help make experience look more vague, which is good. Hopefully it'll also inspire newbies to stick with the language.

Or represent experience with levels, like it happens at rpg games.
27  Discussions / General Discussions / Re: New feature: coding experience on: 2014-02-01 19:14:12
It turns out someone can have more experience on java than on coding in general.
28  Discussions / General Discussions / Re: New feature: coding experience on: 2014-02-01 18:55:48
I hope users are honest about their experience.
29  Games Center / WIP games, tools & toy projects / Re: Pauler's First Person Game on: 2014-01-31 12:40:25
I apologise for bringing up this topic after a couple of months of inactivity, but now that I found time to code again, I decided to work on the ray picking part that it used to hold me back and it's still does. I thought of an no-so-efficient way to do the ray-picking but I decided to give it a try anyway. The engine kinda generates many points in a fixed distance direction he is looking at and checks each time if the points intersects to a rectangle. If it does it removes the rectangle. The problem is that when the camera starts to have a big angle, sometimes it starts removing wrong rectangles. I re-wrote the code in a different way but I keep getting the same malfunction.

<a href="http://www.youtube.com/v/sZUqfNx-fJU?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/sZUqfNx-fJU?version=3&amp;hl=en_US&amp;start=</a>

The following function returns the nearest object that players looks.

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  
public Rectangle getTargetedObject() {      
      double cameraPitchInRadians = Math.toRadians(Game.getCamera().pitch);
      double cameraYawInRadians = Math.toRadians(Game.getCamera().yaw);

      for (float x = 1; x < 15; x++) {
         for (float y = 1; y < 15; y++) {
            for (float z = 1; z < 15; z++) {
               float newX = (x * (float)Math.sin(cameraYawInRadians));
               float newZ = (z * (float)Math.cos(cameraYawInRadians));
               float newY = (y * (float)Math.sin(cameraPitchInRadians));
               
               float pointX = 0, pointY = 0, pointZ = 0;
               
               pointX = getX() + newX;
               pointY = getY() - newY;
               pointZ = getZ() - newZ;
               
               for (Rectangle rect:MapManager.getCurrentMap().getObjects()) {
                  if (rect.isCollidingWithPoint(pointX, pointY, pointZ)) {
                     return rect;
                  }
               }
            }
         }
      }

      return null;
   }


This one actually checks if the point that is generated using the function above is actually interesting with a rectangle.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
   public boolean isCollidingWithPoint(float x, float y, float z) {
      if (width == 0) width++;
      if (height == 0) height++;
      if (length == 0) length++;
     
      if(Math.abs((getX() + width / 2) - x) < width / 2)
      {
         if(Math.abs((getY() + height / 2) - y) < height / 2)
         {
            if (Math.abs((getZ() + length / 2) - z) < length / 2) {
               if (width == 1) width--;
               if (height == 1) height--;
               if (length == 1) length--;

               return true;
            }
         }
      }        
      if (width == 1) width--;
      if (height == 1) height--;
      if (length == 1) length--;

      return false;
   }


If anyone can see anything, that I cannot, please let me know.

Regards.
30  Games Center / Cube World Projects / Re: Craftia - The Game of Crafting on: 2013-10-25 21:41:08
For some reason it really reminds me Vermeer's cube world project.
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.

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

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

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

Riven (20 views)
2014-07-23 20:56:16

ctomni231 (48 views)
2014-07-18 06:55:21

Zero Volt (44 views)
2014-07-17 23:47:54

danieldean (35 views)
2014-07-17 23:41:23

MustardPeter (38 views)
2014-07-16 23:30:00

Cero (53 views)
2014-07-16 00:42:17

Riven (52 views)
2014-07-14 18:02:53
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

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!