Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (534)
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 ... 19
1  Games Center / WIP games, tools & toy projects / Re: WIP Publication Reel on: 2014-07-27 13:50:40
Spend some hours on a menu for my voxel based rts game.
Normally my stuff looks like crap, but im kinda proud of this Smiley

2  Game Development / Newbie & Debugging Questions / Re: [lwjgl] OpenAL UnsatisfiedLinkError on: 2014-07-20 23:10:29
Have you set up the OpenAL natives correctly for your project?
Yes,these are embedded in lwjgl

Hi

I dunno if this is even relevant to your issue, but I googled your issue and found another discussion where the user got an error when they forgot
AL.create()
. Again, this may not be relevant, but I thought I should post it Smiley

CopyableCougar4
Thank you, this solved the problem Smiley
3  Game Development / Newbie & Debugging Questions / [lwjgl] OpenAL UnsatisfiedLinkError on: 2014-07-20 18:32:16
Hello,

As my game is developing, I am in need of some background music for ambiance.
Now this should not be any problem, except the application keeps crashing on any OpenAL call.

I am currently running the latest java, and lwjgl 1.9.1 (also tried 1.9.0).
Error:
1  
2  
3  
4  
Exception in thread "Thread-4" java.lang.UnsatisfiedLinkError: org.lwjgl.openal.AL10.nalListenerfv(IJ)V
   at org.lwjgl.openal.AL10.nalListenerfv(Native Method)
   at org.lwjgl.openal.AL10.alListener(AL10.java:685)
   at Sound.SoundLoader.<clinit>(SoundLoader.java:33)


Speakers are connected properly and I am getting pretty desperate getting this to work.
Does anyone have a clue what could be causing this or got another audio lib as suggestion?
4  Game Development / Newbie & Debugging Questions / Re: image vs. array on: 2014-07-12 11:18:51
You dont have to return the pixel array, any editting you do here, alters the source image instantly.
5  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-01 10:19:32
I decided to have fun with shadows today using shadow mapping.


The code: https://www.github.com/ra4king/ShadowTest

Thanks! finally a usable example Smiley
6  Discussions / General Discussions / Re: I want to see Above the Sky With Java + Arduino. on: 2014-06-28 10:10:49
I would go for some kind of quad / octo copter.
These could be controllable with arduino (no java haha) or even pre-made flight controllers.
Multicopters like these are often used as camera mount, but i dont know if you could get far enough te be in the clouds.
I have a webshop in the Netherlands selling all kind of arduino stuff Smiley

Im sorry for my comment, but using rope is a not a smart idea, any clue how heavy 1km of rope would be?
7  Games Center / WIP games, tools & toy projects / Re: [Slick2d] Retro-Pixel Castles >>NEW MAP EDITOR BUILD: 6-22-2014!!<< on: 2014-06-25 21:02:02
Holes in drawing: Sadly, the drawing is tied to the games update cycles and your mouse's polling speed, right now really the only solution is to not move the mouse and map at the same time (or slower). Since the tiles are so tiny it's really easy for a fast mouse to totally skip over one tile here and there. I have it on my list of things to fix, but I have no clue how yet. I'd like to see how programs like Photoshop do it.

Get mouse coordinates before update and after. Fill all tiles between Smiley
8  Discussions / General Discussions / Re: What's with unorganized code? on: 2014-06-24 16:15:26
How would I improve the readability any more than this?

I listed several things wrong with your code above. I'd start by fixing those.

More generally, your whole attitude tells more about you as a programmer than your code does. I get that this was a light-hearted boasting of some code you're proud of, and that's cool, but good programmers know that there is always more to learn.

You could have started this thread with a "hey guys, I think this code is particularly well-done, can anybody give me pointers on how to improve it further?", but instead you immediately started by calling your code "godly". Some of the best Java game developers in the world frequent these forums. Do you really think your code is better than theirs? If not, what's the point of the approach you took?

Best way to get input on the internet is to claim you're better then others, if he was asking advise, he would not even have gotten half the comments he has now Smiley
But i totally agree on you.
9  Discussions / Miscellaneous Topics / Re: Can any wireless usb connect to a router on: 2014-06-20 18:31:06
well, whats your router type (is it even wireless)?
10  Discussions / Miscellaneous Topics / Re: [Girls] How to completely block them from our lives? on: 2014-06-12 23:31:59
New found love is always much better than some programming Wink
This thread should not exist.
11  Game Development / Networking & Multiplayer / Re: Collision detection - server side on: 2014-06-09 15:53:03
Dont use collission detection server side, install libgdx or implement your own system.
12  Discussions / Miscellaneous Topics / Re: Code-style: Cringe pics on: 2014-06-05 22:59:18
Actually, one thing I do that I know makes some people cringe is how I "compress" my getters and setters at the end of my class files into one line. But I've always liked it this way;

1  
2  
   public int getTileId(int tileX, int tileY, int layer){return mapArray[tileX][tileY][layer];}
   public String getTileProperty(int tileID, String property, String def){return mtl.getTileProperty(tileID, property, def);}


I always do this!
Thought i was the only one Cheesy
13  Games Center / WIP games, tools & toy projects / Re: [Slick2d] Retro-Pixel Castles - Top Down Survival Mayhem! on: 2014-05-28 20:30:47
This looks nice, when do you have some kind of playable demo?
14  Game Development / Newbie & Debugging Questions / Re: [lwjgl] [glsl] Blending & depth buffer problems on: 2014-05-15 14:56:47
Why are you guys talking about shaders?
Isnt this problem clearly caused by drawing order (depth buffer does not know about discards)?
15  Java Game APIs & Engines / OpenGL Development / Re: Spritesheets by dividing texture coordinates? on: 2014-05-04 23:09:37
what value has width?
16  Java Game APIs & Engines / OpenGL Development / Re: Spritesheets by dividing texture coordinates? on: 2014-05-04 12:58:27
lets say you have a texture with 16 sprites (4 x 4)
this means you have to do something like this (xindex and yindex ranging from 0 to 3):

1  
2  
3  
4  
5  
float size = 1f / 4f;
new Vector2f(size * xindex, size * yindex), //bottom left
new Vector2f(size * (xindex+1), size * yindex), //top left
new Vector2f(size * (xindex+1), size * (yindex+1)), //top right
new Vector2f(size * xindex, size * (yindex+1)) //bottom right
17  Discussions / General Discussions / Re: The Differences between Java and JavaScript. on: 2014-04-28 11:13:03
JavaScript is only named after Java to lift on the hype back then.
18  Game Development / Networking & Multiplayer / Re: Login through a website on: 2014-04-27 10:14:26
Very very very bad solution, also, check the date.
19  Game Development / Performance Tuning / Re: Taming Java GC to prevent stutter, an in-depth post on memory management on: 2014-04-24 22:33:55
I notice (huge) performance improvements when pooling big stuff like bytebuffers.
So in this situation it could be handy, or am i wrong?
20  Games Center / WIP games, tools & toy projects / Re: SOLIS on: 2014-04-24 18:23:36
I have a suggestion..
Add a bigger picture / show some videos or more pictures so we have a clue what it is.
A picture says more then a thousand words.. Smiley
21  Discussions / Miscellaneous Topics / Re: Is our Universe Simulatable? on: 2014-04-22 08:40:40
It means that all weird stuff thats happening with quantum mechanica (the observer influences the experiment), happens because we are simulated. When you are not looking, its not rendered (optimizing), therefore has a superposition state.
22  Discussions / Miscellaneous Topics / Re: Is our Universe Simulatable? on: 2014-04-21 00:28:59
There are some theorys around saying we are in a simulation right now!
23  Game Development / Newbie & Debugging Questions / Re: Issue with fragment shader on: 2014-04-17 23:46:27
You need to use at least an projection matrix in your vertex shader calculation
24  Game Development / Newbie & Debugging Questions / Re: LWJGL sending information to shaders via texture on: 2014-04-17 23:42:13
divide it by the max value.
For example if your highest value is 100, divide all values by 100.

*You don't need textures to use float buffer data in the shader, Opengl 3.0 has a feature wich allows you to upload this buffer drectly, this way you also can send int / byte buffers.

25  Game Development / Newbie & Debugging Questions / Re: New vector from known angle on: 2014-04-15 14:30:02
I bet there is some nice bounce function around..
A while ago i made one from a known bounce math formula.

1  
2  
3  
4  
public static Vector2f CalcBounce(Vector2f vect, Vector2f surfacenormal, float bounce){
        float add = Vector2f.dot(vect, normal);
        return new Vector2f(bounce * (-2f * add * normal.x + vect.x), bounce * (-2f * add * normal.y - vect.y));
}


vect = xspeed / yspeed;
surfacenormal = normal of the surface
bounce = bounce of object, with this you can play with different material types (speeding up / slowing down).

26  Games Center / WIP games, tools & toy projects / Re: SCREENSHAKE: SixtyGig - Open World Retro RPG. on: 2014-04-14 21:42:17
1  
public void screenShakeTest() throws SlickException{


What would generate a SlickException then?

And why dont you use something like this: (not tested)
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
   public void screenShakeTest(){
        screenShake += 1;
     
         mapX += screenShake <= 4 ? shakeAmount : -shakeAmount;
         mapY += screenShake <= 4 ? shakeAmount : -shakeAmount;

         if(screenShake %8 == 0){
             screenShake  = 0;

             if (shakeDirection){
                shakeAmount += 1;
             }else{
                shakeAmount -= 1;
             }
         }

      if (shakeAmount >= 4){shakeDirection = false;}
      if (shakeAmount <= 0){shakeDirection = true;}
   }
27  Discussions / Miscellaneous Topics / Re: What are Anti-Virus Developers Protecting us From? on: 2014-04-14 15:06:42
Just add some nice firewall so they cant call home without permission.
Its what i have been doing for several years now.
If you are paranoid, just disable everything except a white list of applications, some clicking at the start but you will immediately notice something strange popping up.
28  Discussions / General Discussions / Re: Libraries You Wish For on: 2014-04-06 23:31:53
Got loads of static helper classes like 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  
public static float fastAbs(final float f)
    {
        return f >= 0.0f ? f : -f;
    }

    public static double fastAbs(final double d)
    {
        return d >= 0.0D ? d : -d;
    }

    public static long fastAbs(final long d)
    {
        return d >= 0l ? d : -d;
    }

    public static float clamp(float value)
    {
        if (value > 1.0f)
            return 1.0f;
        if (value < 0.0f)
            return 0.0f;
        return value;
    }

    public static float clamp(float value, float min, float max)
    {
        if (value > max)
            return max;
        if (value < min)
            return min;
        return value;
    }


Also got some class with fast sin/cos functions and float pi consts
1  
public static final float PIf=(float)Math.PI, PI2f=2*PIf, PI05f=0.5f*PIf, PI025f=0.25f*PIf, PI075f=0.75f*PIf, PI15f=1.5f*PIf;
29  Discussions / General Discussions / Re: Creating dev team Java 2d!! on: 2014-04-06 14:53:11
Its like google docs for eclipse.
I only dont see the value in it.

You should use github or something similar and let very member do its thing accompanied with his own task on a todo list.
30  Discussions / General Discussions / Re: Creating dev team Java 2d!! on: 2014-04-04 20:12:40
am creating a team right now not a game -.- after i have a team then team dicides what to do and it said we do 2d top down , and 2d platformer

You have nothing to offer, so you better start making something to offfer Tongue
Pages: [1] 2 3 ... 19
 

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 (35 views)
2014-07-24 01:59:36

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

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

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

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

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

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

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

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

Riven (56 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!