Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (494)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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]
1  Discussions / Miscellaneous Topics / I think there's some XSS injections on JGO on: 2014-07-04 20:58:14
This happens every time I load a page on this site:


Along with that there is a weird Russian site that also pops up in TCPView when I go to this site:

Although that might be something regarding the ad pictures or the latest projects, but I have no idea how those work.

My assumptions that it's JavaScript come from the fact that this only happens on java-gaming.org and no other sites and that Malwarebytes said the connection was outbound.
2  Games Center / Archived Projects / Re: Legend Quest beta on: 2014-06-23 03:48:43
I didn't get the same result as SwordsMiner:


@AppleSauce
The source of his problems are probably in the fact that you made the res folder hidden. You cant normally see that in Windows when unzipping the folder.
3  Discussions / Miscellaneous Topics / Re: What video games have you been playing lately? on: 2013-06-20 02:36:20
Fallout: New Vegas
Metro: Last Light
Minecraft
4  Discussions / Miscellaneous Topics / Re: Ubuntu Phone OS on: 2013-01-08 18:55:45
I don't see any point to this. There is plenty of mobile operating systems already available, what is the purpose to creating another one?
5  Discussions / Suggestions / How about a mobile site? on: 2012-12-19 04:45:46
I noticed there is mobile version of this site. It is very difficult to browse the site and it takes three tries to hit the correct link on the unread topics page.
6  Discussions / General Discussions / Re: Registration Activation Quiz on: 2012-11-19 19:23:08
And those people also wont bother to stick to programming, if they already give up on a simple registration. Their loss.

Simple registration? That registration is FAR from simple.

You shouldn't screen out people who might be coming here to ask questions or need help. A noob wouldn't know how to get past the registration.
When I signed up I looked up everything on Google.
If you really want to join, then you are going to answer the questions.
7  Discussions / Miscellaneous Topics / Re: What music do you listen to while you code? on: 2012-11-17 21:32:17
I listen to a wide variety of songs.
8  Java Game APIs & Engines / OpenGL Development / Slick2D image problem on: 2012-10-29 21:08:06
For some reason images keep looking... strange...
Here is what it looks like:

The actual image I am attempting to display is this:


I am new to OpenGL, so I have no idea why this isn't working. I am using code similar to what is found on the LWJGL wiki.

My current code is this:
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  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
73  
74  
75  
76  
77  
78  
79  
80  
81  
82  
83  
84  
85  
package com.szanto.game;

import static org.lwjgl.opengl.GL11.*;
import java.io.IOException;
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
import org.newdawn.slick.opengl.Texture;
import org.newdawn.slick.opengl.TextureLoader;
import org.newdawn.slick.util.ResourceLoader;

public class Game {
   public static void main(String args[]) {
      new Game().run();
   }
   
   public final int WINDOW_WIDTH = 640, WINDOW_HEIGHT = 480;
   private long lastFPSTime;
   private int fpsCounter;
   private Texture texture;
   
   public void run() {
      try {
         Display.setDisplayMode(new DisplayMode(WINDOW_WIDTH, WINDOW_HEIGHT));
         Display.setTitle("Game");
         Display.create();
      } catch (LWJGLException e) {
         e.printStackTrace();
         System.exit(0);
      }
     
      init();
      this.lastFPSTime = System.currentTimeMillis();
     
      while (!Display.isCloseRequested()) {
         glClear(GL_COLOR_BUFFER_BIT);
         
         renderGame();
         
         Display.update();
         Display.sync(60);
         calculateFPS();
      }
     
      Display.destroy();
   }
   
   private void init() {
      // Init OpenGL
     glMatrixMode(GL_PROJECTION);
      glLoadIdentity();
      glOrtho(0, WINDOW_WIDTH, WINDOW_HEIGHT, 0, 1, -1);
      glMatrixMode(GL_MODELVIEW);
      glEnable(GL_TEXTURE_2D);
      glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
     
      // Init Other
     try {
         this.texture = TextureLoader.getTexture("PNG", ResourceLoader.getResourceAsStream("res/image.png"));
      } catch (IOException e) {
         e.printStackTrace();
      }
   }
   
   private void renderGame() {
      this.texture.bind();
     
      glBegin(GL_QUADS);
         glTexCoord2f(1, 1);
         glVertex2f(30, 30);
         glTexCoord2f(1, 0);
         glVertex2f(30, 10);
         glTexCoord2f(0, 0);
         glVertex2f(10, 10);
         glTexCoord2f(0, 1);
         glVertex2f(10, 30);
      glEnd();
   }
   
   private void calculateFPS() {
      long currentTime = System.currentTimeMillis();
      if (currentTime - this.lastFPSTime > 1000) { this.lastFPSTime = currentTime; Display.setTitle("FPS: " + this.fpsCounter); this.fpsCounter = 0; }
      this.fpsCounter++;
   }
}


I'll love anyone who can help me fix it Smiley
9  Discussions / General Discussions / Re: What to do about "contact"? on: 2012-10-17 14:59:51
You... Contact them?
10  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Library for drawing 3D graphics that's simple? on: 2012-09-27 23:39:50
I advise you to look at Ardor3D.
Is there any advantages to Ardor3D over JMonkey?
11  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Library for drawing 3D graphics that's simple? on: 2012-09-27 16:50:18
At some point you will need to learn things like 3D math, texture mapping, what a mesh is, etc. If you can't handle learning new concepts, you are in the wrong line of work... Tongue

What you seem to be looking for is a platform that allows you to create 3D games without much programming. I'd suggest something like Unity or another game-making engine.

Alternatively, you could try JMonkeyEngine which looks fairly similar to the code you posted. Of course, when it comes to lighting, collision, AI, etc. you are on your own.
I'll try JMonkeyEngine, it sounds like what I am looking for.

Thanks Smiley
12  Java Game APIs & Engines / Engines, Libraries and Tools / Library for drawing 3D graphics that's simple? on: 2012-09-27 14:51:10
I didn't explain this very well in the title, but I need a library for just drawing 3D graphics with ease. Something that will let me do something similar to this
1  
drawModel(new File("path/to/model"), x, y, z)

It doesn't have to be exactly like that, but I need something easy to use, like my example. This also needs to run on the GPU too, like LWJGL does.

Before you suggest me learning OpenGL, I have tried. I'm not too great at focusing and I've tried many times to learn OpenGL. It didn't work.

And I don't plan on writing games with this. I will (try to) learn OpenGL when I start writing games that require these graphics.


Thanks Smiley
Pages: [1]
 

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

The first screenshot will be displayed as a thumbnail.

Dwinin (19 views)
2014-09-12 09:08:26

Norakomi (54 views)
2014-09-10 13:57:51

TehJavaDev (63 views)
2014-09-10 06:39:09

Tekkerue (31 views)
2014-09-09 02:24:56

mitcheeb (53 views)
2014-09-08 06:06:29

BurntPizza (37 views)
2014-09-07 01:13:42

Longarmx (23 views)
2014-09-07 01:12:14

Longarmx (27 views)
2014-09-07 01:11:22

Longarmx (27 views)
2014-09-07 01:10:19

mitcheeb (35 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

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

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

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!