Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (686)
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  Game Development / Newbie & Debugging Questions / Perlin noise not working on: 2012-11-21 13:48:30
Hey there, i recently wrote a perlin noise class following this tutorial - -- Here is my code.  However, I noticed that it doesn't produce the colours I want, and instead gives me this -->

Which means I obviously did something wrong.  The thing is, I don't know what I did wrong.  I'm guessing it's at image.setRGB(x,y, (int)generatePerlinNoise(x,y)) but i'm not sure how to correct it show it shows up like proper perlin noise.
2  Game Development / Newbie & Debugging Questions / Re: LWJGL weirdness on: 2012-10-02 23:45:57
Yeah, I checked.  It doesn't ask for a "Game" class anywhere in the project.
3  Game Development / Newbie & Debugging Questions / LWJGL weirdness on: 2012-10-02 11:18:15
EDIT: Fixed the first problem.
EDIT2: Fixed all problems.
4  Discussions / General Discussions / Re: What's your dev rig? on: 2012-08-04 01:45:20
Lenovo B460
Nvidia GeForce 310M
Intel Core i5 2.40 GHz
Windows 7 Ultimate - 64 bit

Crap graphics card, I know. 
5  Game Development / Game Mechanics / Re: Checking a LARGE tilemap for collisions on: 2012-07-12 05:50:24
For a top-down RPG I chose 8 points (see drawing). Then I check for horizontal collisions on the ones furthest to the left and right, and then I check for vertical collisions using the points furthest to the top and bottom.

Hmmm, i'm not sure I quite understand what you're saying.  To check for collision on the points, shouldn't you have to loop through the entire tilemap?
6  Game Development / Game Mechanics / Checking a LARGE tilemap for collisions on: 2012-07-12 05:33:45
The first thought I had was to loop through each tile in the map, check to see if it is within a certain distance of the player, and then check for collisions.  This still seems slow though, I was wondering if anyone had any other ideas?  I'm also going to have a lot of entities (200 - 400) on the map doing this check, so it seems like it will slow down the game a lot. =/

for(int i = 0; i < tilemap.size(); i++)
    if(tile is within a 16 pixel radius of the player)
7  Game Development / Newbie & Debugging Questions / Re: Best way to create the game window? on: 2012-07-10 13:56:26
Thanks, i'll check those out.
8  Game Development / Newbie & Debugging Questions / Best way to create the game window? on: 2012-07-10 11:32:41
I've seen a lot of different implementations.  For example, this( one creates a JFrame and a Canvas (i don't know what for) but this ( one has the main class extend JFrame and then uses JPanels to place all the content on.  Are there pros and cons for each method of doing so?  Or is one simply better than the other?
9  Game Development / Newbie & Debugging Questions / Error: Cannot find main class in Development/Java on: 2012-04-21 01:41:08
So i'm following's tutorials on LWJGL 3D games, and I downloaded the source, just to see what the finished game would be like.  I downloaded and installed LWJGL in the correct way, but when trying to compile, I get this error:

Error: Could not find or load main class Development\Java
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)

I am using NetBeans, and strangely, I tested the source in Eclipse, so I don't think it's a problem with the source, but I followed the LWJGL instructions to the letter.

Here is a screenshot of my folder structure. 
10  Game Development / Newbie & Debugging Questions / Re: Library vs library-less programming on: 2012-04-17 16:19:29
Allright, thanks for the tips!
11  Game Development / Newbie & Debugging Questions / Library vs library-less programming on: 2012-04-17 14:06:01
As a beginner to java, I was wondering if I should start with using libraries such as Slick 2D and LWJGL, or if I should start without libraries, and learn the inner workings of the code?  Will it be any harder for me in the future as a programmer if I start with libraries?  And do games with library have better performance than games without?  I.E.  LWJGL enabled 3D game vs library-less 3D game.
12  Game Development / Game Mechanics / Re: Finding a frame index's X and Y positions on: 2012-04-05 23:34:04
haha, my bad.  thanks!
13  Game Development / Game Mechanics / Finding a frame index's X and Y positions on: 2012-04-05 16:48:53
Hi, i'm trying to create an animation system, and so far i've devised a method in which it will take in a specified array of frames to play, and play those frames.  However, my problem is, how can I tell the X and Y positions of a frame given the frame index?  I need those in order to display the frame at those coordinates.  Here is a diagram of what the animation looks like, the frame index is at the top left of each box in the "spritesheet".  
14  Game Development / Newbie & Debugging Questions / Re: Screen flickering/flashing randomly on: 2012-04-01 13:46:18
Ok, thanks for your help.  Can't believe that book has such high ratings on Amazon.
15  Game Development / Newbie & Debugging Questions / Re: Screen flickering/flashing randomly on: 2012-03-31 14:47:22
Tried reducing it to one thread, still flickers. Sad
16  Game Development / Newbie & Debugging Questions / Screen flickering/flashing randomly on: 2012-03-31 12:54:33
So i'm following Ian Cinnamon's book "Video Game Programming for the Evil Genius" and currently i'm on the racing game section.  I've copy-pasted his code into my program just to check if it works, and it doesn't.  The game starts flashing and flickering randomly, i'm guessing it has something to do with the repaint() functions in the Move1 and Move2 threads.  But I have no idea how to fix it, and he doesn't acknowledge the error in his book.  Here is the code.

Also, my friend told me to double-buffer it, but i have no idea how to go about implementing that.  Any ideas?

Pages: [1]
Dwinin (63 views)
2015-11-07 13:29:08

Rems19 (77 views)
2015-10-31 01:36:56

Rems19 (69 views)
2015-10-31 01:32:37

williamwoles (103 views)
2015-10-23 10:42:59

williamwoles (91 views)
2015-10-23 10:42:45

Jervac_ (105 views)
2015-10-18 23:29:12

DarkCart (131 views)
2015-10-16 00:58:11

KaiHH (114 views)
2015-10-11 14:10:14

KaiHH (153 views)
2015-10-11 13:26:18

BurntPizza (167 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 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‑
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!