Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
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] 2 3
1  Java Game APIs & Engines / OpenGL Development / OpenGL Tessellation on: 2013-05-21 23:32:01
If I am rendering a generally simple game (Not a high polycount for most objects and the few higher-poly items are, well, few.), should I try to go through using tessellation? It just seems fairly complicated and I don't know if I would need it.
2  Games Center / WIP games, tools & toy projects / Re: Locotus Desperatus on: 2013-05-13 22:32:39
Here is a sort-of gameplay video:
<a href="http://www.youtube.com/v/dIGUqWW9qMY?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/dIGUqWW9qMY?version=3&amp;hl=en_US&amp;start=</a>

No download for this because I have not implemented my resource downloader yet, so the game would crash upon startup. First alpha release should be ready this friday.
3  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LibGDX draw arbitrary mesh on: 2013-05-08 19:13:57
I am trying to draw arbitrary filled polygons. I tried ShapeRenderer, but that only draws arbitrary polygons when you are in line mode.
4  Java Game APIs & Engines / Engines, Libraries and Tools / LibGDX draw arbitrary mesh on: 2013-05-08 00:37:47
I am using libGDX for my game. I am currently using mesh to draw arbitrary polygons, but I am wondering if there is a better class? Especially since the polygons are not actually drawing correctly (Only one triangle is drawing)
5  Game Development / Artificial Intelligence / Re: AI Combat on: 2013-04-30 12:06:21
Why use TinySound when libgdx already there?

I still have tinysound included from when I was trying to make this as a Java2D game. I just haven't removed it yet.
6  Game Development / Artificial Intelligence / AI Combat on: 2013-04-29 15:32:30
I implemented combat (for the player) and allowing AI to follow a path, but I can't figure out the best way to implement combat for the AI. My game is meant to be a stealth shooter, so I want the AI to call in reinforcements when you are spotted and the game to get much harder, but to allow the player to hide and the AI will slowly return to their positions. The thing is that I can't figure out how to have enemies:

  • Spot the player
  • Stop current "patrol" and chase after player
  • Call in reinforcements from a certain distance
  • Implement combat so that AI is smart (will use cover), but not unbeatable (no instant reload, aimbot, instant turn, etc...)
  • ...

My code is at: https://github.com/novasharper/LocotusDesperatus
7  Games Center / WIP games, tools & toy projects / Re: Locotus Desperatus on: 2013-04-26 00:47:35
New download: r2

New stuff:
  • Correctly renders weapon fire, combat mechanics soon to be implemented.
  • Re-implemented LOS, simplified code, also, now it works.

Bugs:
  • Sometimes hangs on start because pathfinding is weirdly slow. I am using A* on a 30x20 map and it hangs. If anyone can find the problem, that would be awesome because pathfinding used to be really fast and now sometimes it hangs almost indefinitely.
8  Discussions / General Discussions / Re: Free To Play/In-App purchases on: 2013-04-25 19:04:10
Are there any games that are advertising supported by way of advertisments playing on billboards, etc... in game. So like the user walks by a "holo-ad" projector (or whatever the equivalent would be) in game and it plays an actual ad sponsored by an actual company?
9  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LibGDX Gamepad on: 2013-04-25 13:23:45
Update: I fixed it by doing two things:

First, I reloaded my gamepad each time I switched between fullscreen and not fullscreen.

Second, I changed my reload code to this:
1  
2  
3  
4  
5  
6  
7  
8  
if(Gdx.input != null) {
   Array<Controller> controllers = new DesktopControllerManager().getControllers();
   if(controllers.size > 0) gamepad = controllers.first();
}
if(gamepad != null) {
   gamepad.addListener(this);
}
hatPosition = -1;
10  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LibGDX Gamepad on: 2013-04-25 12:43:36
Okay, so I tested it on a 64bit Win7 Pro desktop. The same problems occurred. When I went into fullscreen, the gamepad stopped responding. It seemed to have stopped polling the hardware gamepad.
11  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LibGDX Gamepad on: 2013-04-25 01:21:57
Well, haven't had the chance to test it on another computer yet, but now when I try to start my game in fullscreen, I get this error:

terminate called after throwing an instance of 'OIS::Exception'
  what():  Win32InputManager::Win32InputManager >> The sent HWND is not valid!
AL lib: alc_cleanup: 1 device not closed
12  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LibGDX Gamepad on: 2013-04-24 22:35:17
Okay, so I got the gamepad mapping written, but now I am having the problem that when I go into fullscreen mode, the gamepad stops working.
13  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LibGDX Gamepad on: 2013-04-24 20:18:24
If you download libgdx, it is in the extensions/gdx-controller directory
14  Java Game APIs & Engines / Engines, Libraries and Tools / LibGDX Gamepad on: 2013-04-24 15:46:54
I made a gamepad wrapper using JInput for a previous game. Is there any way to use gamepads with LibGDX?
15  Games Center / WIP games, tools & toy projects / Re: Locotus Desperatus on: 2013-04-20 15:16:48
Update: Got basic level editing working (sortof).

Two edit modes: paint and edit.
  • With paint, you set tile type to paint, then when a tile is clicked on, it sets it to that.
  • With edit, you select tile, then change its type.

Loads tiles from spritesheet.

<a href="http://www.youtube.com/v/IVGVv5mdepw?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/IVGVv5mdepw?version=3&amp;hl=en_US&amp;start=</a>
Note: The editor is actually smooth, it just appears to stutter because of the screen recording software I use.

The code for this is on github in the desktop project. The package is daedalus.leveleditor

I need to clean up the code, but right now I am focused on finishing it.
16  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LibGDX BufferedImage to Texture on: 2013-04-11 10:33:54
Thanks for the suggestions. I managed to fix it. I create a Gdx2DPixmap which can load from input streams, then I use that to create a pixmap, then I use the pixmap to create a texture.

1  
2  
3  
Gdx2DPixmap gpm = new Gdx2DPixmap(menuBackground, Gdx2DPixmap.GDX2D_FORMAT_RGB888);
Pixmap pixmap = new Pixmap(gpm);
Texture background = new Texture(bgPixmap);
17  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LibGDX BufferedImage to Texture on: 2013-04-10 23:45:47
The problem is that I have to read in images from a inputstream and after a few google searches, I didn't see a clear way to do this.
18  Java Game APIs & Engines / Engines, Libraries and Tools / LibGDX BufferedImage to Texture on: 2013-04-10 01:13:57
Is there any way to convert a BufferedImage to a Texture?
19  Discussions / General Discussions / Re: why are people trying to use Java2D to make games? on: 2013-04-07 01:39:01
This is shit you need to know about. You need to know how to do this. If stuff like this gets in your way and you just give up on it despite fairly plain evidence that it's solvable in the form of all those other games out there that have got it working then you're possibly not going to be of the right mindset to be a developer in the first place. Maybe I'm reading too much into this.

Cas Smiley

I mean, it's not like I just gave up. I finished the game. I just decided that since I am doing mostly 2D development, I would give Java2D a try for my new game.

....dang princec all swarin and sheet but yeah it is kinda basic and not very hard to deal with. I will be honest, I have never setup libgdx without the gui setup program doing everything for me. Does that make me a huge noob? Probably.

Java2D is slow but not 10 images being rotated slow. You have to be doing something horribly wrong. Instead, just drop j2d and move on to the future, libgdx.

To be fair, my definition of slow is fairly strict. My game was getting ~50fps as opposed to the intended ~60fps. With a bit of optimization, I could have gotten over it. Also, the problem was not low fps, it was stuttering due to a game loop that did not react well to a fps decrease. I would simulate constant updates by sometimes updating/ticking multiple times before rendering. If I just separated out game logic from rendering, my problems would go away (for now).
20  Discussions / General Discussions / Re: why are people trying to use Java2D to make games? on: 2013-04-06 22:18:11
I know that I am personally using Java2D because I want to make a game that does not need any extra libraries. Sure its not too bad to add extra jars, but having natives gets a bit annoying. I tried using LWJGL and kept getting UnsatisfiedLinkErrors claiming wrong ELF type. No such thing with Java2D.
Something like LibGDX streamlines the process for you. They have a GUI tool where you select the folder to save your Eclipse project, and then when you open it in Eclipse it "Just Works."

Anyways... It's your funeral. Smiley At the end of the day, almost everybody who is serious about game development and has given both Java2D and LibGDX a try will not prefer to use Java2D. Not only is it less performant and more verbose, but it ports to less platforms and includes zero utilities that almost all games will need (game loops, GUI, input polling, bitmap fonts, asset management, texture atlases, animated sprites, particles, physics, tiled maps, or whatever).

For that, I was talking about LWJGL. Also, I wasn't talking about coding. When I use Eclipse, it always just worked because I could specify the native location. I was talking about when I exported my game and tried to run it elsewhere. I have not made a game yet in LibGDX, so I don't know how well one export transfers from one platform to another, but with LWJGL, I exported my game under Windows and when I tried to run it under Linux, it spat out that error.
21  Discussions / General Discussions / Re: why are people trying to use Java2D to make games? on: 2013-04-06 17:44:50
I know that I am personally using Java2D because I want to make a game that does not need any extra libraries. Sure its not too bad to add extra jars, but having natives gets a bit annoying. I tried using LWJGL and kept getting UnsatisfiedLinkErrors claiming wrong ELF type. No such thing with Java2D. Sure the Java2D api is a bit annoying, but all it takes is a little wrapper class (i.e. a Sprite class) and you never have to worry about it again. The main concern, and the one why I am considering switching to LibGDX is performance with a bunch of rotated images. It works nice and smoothly until I had 10 simultaneously rotating images, then it just started stuttering.
22  Games Center / WIP games, tools & toy projects / Re: Locotus Desperatus on: 2013-04-05 01:30:11
Yep. One and the same. It took a long time to write all the game engine code for it (and I still have quite a bit left), but now I should be able to start work on tying the game together and adding content.
23  Games Center / WIP games, tools & toy projects / Locotus Desperatus on: 2013-04-04 23:39:09
Download latest version: r2


This is a screenshot of my WIP game Locotus Desperatus.
Anyhow, video of menu (WIP):
<a href="http://www.youtube.com/v/qcLP1Ptr4TQ?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/qcLP1Ptr4TQ?version=3&amp;hl=en_US&amp;start=</a>
Picture of gamepad input system (shamelessly copied from Steam Big Picture):

It will all be done in java2d and will hopefully end up being fast enough to easily maintain vsync.

Edit: Link to source code: https://github.com/novasharper/LocotusDesperatus
Please critique.

Edit 2: Working on porting game to LibGDX

Edit 3: Finished porting menu system. Also moved to separate game thread from graphics thread. Much easier thanks to LibGDX.
24  Java Game APIs & Engines / Java 2D / Re: Ray Tracing Distortion on: 2013-04-03 19:03:00
Found the problem. I thought the ratio was:
1  
fovx / fovy = width / heigth

I dound it was:
1  
tan(fovx / 2) / tan(fovy / 2) = width / height
25  Java Game APIs & Engines / Java 2D / Re: Ray Tracing Distortion on: 2013-04-03 00:51:59
I use:
1  
fovx = fovy * width / height;

and
1  
2  
3  
alpha = Math.tan(Math.toRadians(fovx / 2)) * (pixel[0] - (width / 2)) / (width / 2);
beta = Math.tan(Math.toRadians(fovy / 2)) * ((height / 2) - pixel[1]) / (height / 2);
dir = normalize(sub(add(scale(uTemp, alpha), scale(vTemp, beta)), wTemp));
26  Java Game APIs & Engines / Java 2D / Ray Tracing Distortion on: 2013-04-03 00:14:58
My ray tracer works, but when I try to render a sphere with 60 degree fovy, 1820x1080, there is a large amount of distortion.

Ideas?
27  Java Game APIs & Engines / Java 2D / Re: GridWorld-esque Interface on: 2013-03-21 10:32:02
So basically, what I need is the GridWorld system of displaying a grid of entities/blocks and being able to right click on a tile containing an entity to modify its properties. I don't actually need a GridWorld-style system for my game. I already implemented something to render and handle my game. My problem was that I didn't actually have any levels to test my game on. I have a level-format that I can read from and save to, so my problem was that I didn't have something that would create the levels. Grid world is a good interface for what I wanted. (a level designer)
28  Java Game APIs & Engines / Java 2D / GridWorld-esque Interface on: 2013-03-20 22:21:24
Hi, I don't know how many of you have had the misfortune to use GridWorld, but I was wondering if anyone could provide me with a rough summary of how the graphics worked. I have the code, but it is hard to dig through all their procedures. I am trying to make a level-editor for a game I am working on and GridWorld is actually a pretty good interface for what I need, but I don't know how to re-create it.

Thanks in advance.
29  Game Development / Newbie & Debugging Questions / Re: Level, Asset, Save File storage on: 2013-03-06 21:21:39
Okay. Thank you for the pointer. I will look into that.
30  Game Development / Newbie & Debugging Questions / Re: Level, Asset, Save File storage on: 2013-03-05 21:46:13
Ok. Sounds like this is more personal preference than I thought. Well, thanks for the advice.
Pages: [1] 2 3
 

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 (29 views)
2014-09-12 09:08:26

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

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

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

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

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

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

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

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

mitcheeb (40 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!