Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
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  Games Center / Showcase / Re: Astronaut - a light puzzle game with a powerful twist on: 2014-06-30 21:07:07
Very very very good game. I absolutely loved it. Kept me entranced from beginning to end.
2  Discussions / Miscellaneous Topics / Re: The Game That Time Forgot on: 2014-06-23 00:39:49
Yeah, I just saw that video from browsing #gamedev and #screenshotsaturday on twitter.
3  Games Center / WIP games, tools & toy projects / Re: [Android] [LibGDX] Pulse Orb on: 2014-06-22 05:35:12
I've been working on it nonstop since the thread was created.

//UPDATE
-Created duplicate assets at different sizes for different android screen sizes
-Implemented Advertisements

//TO DO
-Implement twitter sharing from the app
-Marketing
4  Games Center / WIP games, tools & toy projects / [Android] [LibGDX] Pulse Orb on: 2014-06-15 19:01:23
@pezna_official

Pulse Orb is a simple and fun Android game that requires logic.

Your goal is to use the red "Pulsorbs" to direct the green and white ball (called "Ball") to the finish.

Each unique level, with infinite ways to solve them, presents a different challenge that will keep players of all ages engaged.



General Idea
You are to direct "Ball" to the purple finish orb using pulsorbs, collecting all necessary keys along the way.

There is a "pro" score in the pictures, and that tells you how many pulsorbs that a professional (at playing the game) can beat the level using.

There are many obstacles that you must avoid or use to your advantage.



I've been developing this game for about 2 years, and I've restarted 3 times in pursuit of good design.

More details to come in the near future. Any questions are welcome.
Follow @pezna_official on twitter
5  Game Development / Newbie & Debugging Questions / Re: [Solved] [LibGDX] Shader problem is beginning to piss me off on: 2014-06-11 18:39:09
I believe this can be "fixed" (as in the issue is ignored like before) if you set
ShaderProgram.pedantic = false;
before creating a ShaderProgram.

If I could kiss you right now I would, you magnificent bastard.
That's why it was working in my previous project but not in the current one.
6  Game Development / Newbie & Debugging Questions / Re: [LibGDX] Shader problem is beginning to piss me off on: 2014-06-11 15:17:23
Okay, I've solved this issue.

Like I said, for some reason that exact shader code worked in a previous version of LibGDX, but wouldn't work the new one.

What I did:
I set the sampler2D to "u_texture"
1  
uniform sampler2D u_texture;


AND I also had to use the "color" variable so that it wouldn't get optimized out. So, my current fragment shader looks like this:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
#ifdef GL_ES
precision mediump float;
#endif

uniform sampler2D u_texture;
uniform vec2 u_resolution;

varying vec4 v_color;
varying vec2 v_texCoord0;

const vec4 glowColor = vec4(1, 1, 1, 1);

void main()
{
   vec4 color = texture2D(u_texture, v_texCoord0) * v_color;
   vec2 fragPos = gl_FragCoord.xy / u_resolution.xy; //will give range in [0-1, 0-1]
  float dist = distance(fragPos, vec2(0.5, 0.5)); //distance to the center of the screen
 
   color = mix(color, glowColor, dist);
   gl_FragColor = color;
}


It's very irritating how it works in previous LibGDX versions but not in the new one.
7  Game Development / Newbie & Debugging Questions / Re: [LibGDX] Shader problem is beginning to piss me off on: 2014-06-11 14:49:17
You're not actually using u_sampler2D even in the original shader, as you're not using "color", so the whole uniform is optimised away.

Cas Smiley

That's not the problem. I switched it to this and it still gave me that stupid error:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
#ifdef GL_ES
precision mediump float;
#endif

uniform sampler2D u_sampler2D;
uniform vec2 u_resolution;

varying vec4 v_color;
varying vec2 v_texCoord0;

void main()
{
   vec4 color = texture2D(u_sampler2D, v_texCoord0) * v_color;
   vec2 fragPos = gl_FragCoord.xy / u_resolution.xy; //will give range in [0-1, 0-1]
  float dist = distance(fragPos, vec2(0.5, 0.5)); //distance to the center of the screen
 
   gl_FragColor = color * vec4(fragPos, 0, 1);
}


Also, like I said, I used the exact same shader code in another project and it worked. So, even in that one, the color wasn't being used, but it still worked without errors.
8  Game Development / Newbie & Debugging Questions / Re: [LibGDX] Shader problem is beginning to piss me off on: 2014-06-11 14:39:07
Um yeah you need to actually have that uniform in the shader, which you don't. Of course it will throw the error if the uniform doesn't exist. Try renaming the Sampler2D uniform again and then post whatever error you have.

I said that I did rename the sampler2D to u_texture and it gave me the exact same error with the exact same stack trace.

Could it be because I created this new project with libgdx 1.1 instead of the nightly 0.9.9 that was used on the previous projects? This is absolutely absurd.
9  Game Development / Newbie & Debugging Questions / [Solved] [LibGDX] Shader problem is beginning to piss me off on: 2014-06-11 14:33:42
I've written and used shaders for libgdx in the past, but never run into this stupid f**king problem.

"no uniform with name 'u_texture' in shader"

1  
2  
3  
4  
Exception in thread "LWJGL Application" java.lang.IllegalArgumentException: no uniform with name 'u_texture' in shader
   at com.badlogic.gdx.graphics.glutils.ShaderProgram.fetchUniformLocation(ShaderProgram.java:293)
   at com.badlogic.gdx.graphics.glutils.ShaderProgram.fetchUniformLocation(ShaderProgram.java:283)
   at com.badlogic.gdx.graphics.glutils.ShaderProgram.setUniformi(ShaderProgram.java:307)


Here's my shader fragment program
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
#ifdef GL_ES
precision mediump float;
#endif

uniform sampler2D u_sampler2D;
uniform vec2 u_resolution;

varying vec4 v_color;
varying vec2 v_texCoord0;

void main()
{
   vec4 color = texture2D(u_sampler2D, v_texCoord0) * v_color;
   vec2 fragPos = gl_FragCoord.xy / u_resolution.xy; //will give range in [0-1, 0-1]
  float dist = distance(fragPos, vec2(0.5, 0.5)); //distance to the center of the screen
 
   gl_FragColor = vec4(0, 0, dist, 1);
}


I've tried for so long to get this shit to work. None of my other shaders have this f**king problem.

And here's the real kicker. I put my exact same shader code in a different libgdx project and it worked, but in this new project it keeps giving me this stupid f**king error.

I even tried setting the sampler2D's name to u_texture and that didn't work.
10  Discussions / General Discussions / Re: Replicating a stock market in game on: 2014-02-13 17:40:19
Yes, I feel like things like equity, assets, and liabilities would be too much for a game. I certainly wouldn't play a game that complex.

I think if you simply followed the law of supply and demand, it would be good at that.
11  Games Center / WIP games, tools & toy projects / Re: Pezna Story Engine on: 2014-02-10 00:35:28
Added some new features:
  • New command: alter variable values
  • Refined story syntax: choices can now conditions attached to them, determining whether they are shown or not
  • Variable values can be used in text by enclosing the variable names in percent signs. Eg: %var1%
12  Games Center / WIP games, tools & toy projects / Re: Pezna Story Engine on: 2014-02-04 17:19:07
I've stopped working on it several years ago.
...

I just ran the simulation. Nice.
For Pezna Story Engine there is currently only JSON export and import. Although it wouldn't be too hard to include XML.
13  Games Center / WIP games, tools & toy projects / Re: Pezna Story Engine on: 2014-02-03 22:13:29
...
It's not 100% bulletproof, but it worked quite nicely.

Just downloaded that. It was very confusing and had no idea what I was doing.
Are you still working on it or have you stopped?
14  Games Center / WIP games, tools & toy projects / Re: Pezna Story Engine on: 2014-02-03 12:54:41
I've added another picture to the original post. I felt like the first image didn't do it justice.
Currently, the boxes can't be resized, but I think that's something that will be included when it's released.
Zooming may be a possibility in the future, but it will be a struggle calculating the correct font size to use when zoomed.
Right now, my concern is simply making sure everything works and is as useful to everyone's needs as possible.
Currently, the runtime that we have is very flexible, and you can jump to any scene or line that you wish.
15  Games Center / WIP games, tools & toy projects / Re: Pezna Story Engine on: 2014-01-31 01:37:33
Interesting! But how difficult is it to implement the actual storyboard into a game? Do you provide a way to easily insert speech? Or does the programmer have to create a parser to use the data?

It's very easy. I've already created the library that reads the data and does everything for you.

You simply tell it what the filename of the story is and it reads and parses everything. The entire story can be run with only next() and nextLine().
16  Games Center / WIP games, tools & toy projects / Pezna Story Engine on: 2014-01-31 01:12:47
Hello everyone, this is the first project I'm posting on this forum.

My partner and I have been developing a story creator/engine to ease development and implementation of a story for and in games.




As you can see from the screenshot above, you are able to create a story in the form of a flowchart.
When I was working on a game (which is currently on hold), I searched for a way to easily create a story and use it within my game, but I could not find any such software. As a result, Pezna Story Engine was born.

With this, you don't need to waste time hard-coding your story into your game, you can easily use the flowchart system to write out your story. You are capable of having variables within the game that you can utilize with condition statements to branch into another scene or line.

The engine itself is already in a stage where it can be shipped off, but there are many features that we would like to add to it first. Although the engine is "complete", in a sense, the desktop software (GUI that is displayed in the screenshot) that will be used to create the story is incomplete. That is the only thing preventing a release of the beta demo version.

Current features:
-Conditions
-Goto statements
-Organized into scenes
-Choices for input from user
--Choices may direct the flow of the story, alter a variable's value, or both.
-Libgdx runtime complete
-When displaying Typewriter effect with variable speed

Many more features are planned for it, but if you can give me some feedback on what you would like to see in it, that's be great.

Added some new features:
  • New command: alter variable values
  • Refined story syntax: choices can now conditions attached to them, determining whether they are shown or not
  • Variable values can be used in text by enclosing the variable names in percent signs. Eg: %var1%
17  Java Game APIs & Engines / Android / Re: Supporting multiple devices. on: 2013-11-30 06:45:00
Most of the people on this forum don't know anything about android layouts. You'll have better luck asking elsewhere.
18  Game Development / Shared Code / Re: Calculating a SquareRoot on: 2013-11-16 04:18:48
Christ, all those lines and CPU hugging.

1  
2  
3  
4  
5  
6  
7  
8  
9  
   public final static float inverseSqrt(float x) {
      final float xhalves = 0.5f * x;
      x = (float)(Double.longBitsToDouble(0x5FE6EB50C7B537AAl - (Double.doubleToRawLongBits(x) >> 1)));
      return x * (1.5f - xhalves * x * x);
   }

   public final static float sqrt(final float x) {
      return x * inverseSqrt(x);
   }
19  Games Center / WIP games, tools & toy projects / Re: Copod on: 2013-11-09 22:39:16
The yellow on the new version just ruins things for me. Yellow causes great amounts of pain to my eyes with the contrast. Revert it to the old one please.
20  Games Center / WIP games, tools & toy projects / Re: The Entropy Game Engine on: 2013-11-08 02:55:26
I went to take a look at your Camera.java file and cringed at the monstrosities I saw.

First of all, you've limited the engine to a screen size of 1400x880. At least, that's what I deduced from this:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
        public double getLocationX() {
                if (objectSnappedTo == null) {
                        return locationX;
                } else {
                        return objectSnappedTo.getObjectLocationX() - (1400/2);
                }
        }
       
        public double getLocationY() {
                if (objectSnappedTo == null) {
                        return locationY;
                } else {
                        return objectSnappedTo.getObjectLocationY() + (880/2);
                }
        }

If someone snapped the camera to an object, then tried to use getLocationX() or getLocationY() and the window size was not 1400x880, their entire game gets screwed up if they use those values.

There's sooo many things wrong with smoothMove. First of all, why are you creating TWO threads??? One would have been bad enough, but two? Just to move the camera? And what about accounting for different framerates? What if I wanted the camera to take 5 seconds moving to a location? What if I wanted 0.5 seconds?
What you should do is change smoothMove to take a time variable, then set a boolean isSmoothMoving as true.
Give the camera an update(float deltaTime) function and have it check if isSmoothMoving is true. Based on its current location and angle between that and it's desired moveLocation, you should be able to figure out what to do. It's much more difficult than what you have now, but infinitely better.
21  Discussions / General Discussions / Re: Pattern Recognition research and game related use? on: 2013-11-06 14:18:14
I think making something that will attempt to get a better score based after watching you play sounds like an awesome idea.
22  Games Center / WIP games, tools & toy projects / Re: System FRONT on: 2013-11-06 14:12:45
None of your links work. They are all truncated with ellipses (...) and are not valid.
23  Games Center / WIP games, tools & toy projects / Re: Ancient Secret on: 2013-11-06 14:10:33
Wow, the game seems complicated, and unfortunately I don't have the time right now to play it.
Also, when I downloaded it, it downloaded as a zip file and I had to change the extension to .jar to run it.
24  Discussions / Miscellaneous Topics / Re: Speed Code Tutorials? on: 2013-11-06 03:23:56
Make a customizable game profile framework. Let me explain:
Some games require the user to create an account, and then the user will have a profile with stats and whatnot.

Like so:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
class Profile
{
   Stat[] stats;
   Username username;
}

class Stat
{
   String name;
   String value;
}

class Username
{
   String username;
   String id;
}


Actually, after looking at the snippet I just posted, I think I may have just created it.

How about you make a graphical mouth that moves and says things. I'm talking about a mouth that gets drawn on the screen, and it is pre-programmed to move along to words that are being played.
25  Games Center / WIP games, tools & toy projects / Re: Paint Editor - By Crafted Games and Software on: 2013-11-05 22:16:29
Here is a demo:
http://www.java-gaming.org/user-generated-content/members/251719/painteditoralpha1-0.jar

As I said before you can only draw in green more updates will be coming.

Controls:
Mouse Click and Drag to draw (You can use both left click and right click for better drawing)

You didn't say if I was correct or not, so I took the liberty of reverse-engineering your jar file to see the sauce.
1  
private Point[] points = new Point[10000];


This isn't a good way of making a paint program. What happens when I fill up all the points? The array doesn't even correlate to any pixel on the screen. When/if you expand this program, you'll see what I mean.

Keep working at it. Look at how Paint.JAVA is done.
26  Games Center / WIP games, tools & toy projects / Re: Paint Editor - By Crafted Games and Software on: 2013-11-05 21:49:39
Just by looking at the screenshot, I'm going to take a guess:
You're grabbing the mouse position every update and storing it in a list.
You then loop through the list and draw a dot at the positions.

Am I correct? If I am, you should draw a line connecting each point so that you don't have a bunch of dots.
27  Games Center / WIP games, tools & toy projects / Re: Paint.JAVA - Attempt at cloning Paint.NET (with cross-platform support) on: 2013-11-05 18:10:32
Nice. I just downloaded it and I'm impressed. I think the menu bars are a bit too bloated.



This needs to have an eraser tool.
28  Games Center / WIP games, tools & toy projects / Re: Zombie Surival [Untitled] on: 2013-11-05 17:55:47
Honestly, I don't think your game could overload a computer, no offense. If its just simple calculations, it should be able to run on anyone's computer, even a netbook.

It's called a busy loop. A loop which never sleeps.

You seem to be very arrogant and cocky. Have fun with your shitty game.
29  Java Game APIs & Engines / Engines, Libraries and Tools / Re: libgdx 0.9.9 released on: 2013-11-04 02:44:21
Nice. I've been waiting to test out the new 3D API, but I was hesitant to use the nightly builds because I didn't know what features hadn't been added yet or were going to change. Now I can explore it. Hopefully, the wiki will be improved.
30  Games Center / WIP games, tools & toy projects / Re: Kartex on: 2013-11-04 02:28:10
I think you should make the text at the top of the screen have a white or orange outline so it can stand out.
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.

CogWheelz (18 views)
2014-07-30 21:08:39

Riven (26 views)
2014-07-29 18:09:19

Riven (15 views)
2014-07-29 18:08:52

Dwinin (13 views)
2014-07-29 10:59:34

E.R. Fleming (33 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

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

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

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

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

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

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

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
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!