SJGL (Now on GitHub!)

Lol, but i still can’t run it from console, btw, the jar name is called SJGL Image Demo.

I have no idea then.

Yea, u dont have to fix it if u dont want to, its your library… :emo:

Welcome to life!

Get used to this while you can. Eventually you’ll learn that negative feedback is the best feedback; learn from your mistakes.

  • Jev

WOO HOO!!!

Just nothing! Prefixes like gl… are relicts from a language without namespaces and objects. You don’t need them in modern languages and are just a hassle to type with no benefit…

It’s not that I don’t want to fix it, it’s just I have no idea what’s going on, so I have no way of knowing what I’m doing wrong, and moreover, how to fix it.

It’s not his fault, some web browsers just wrap the JAR into a ZIP but keeps the same filename for “security” concerns. Just use your favourite archiver and extract the JAR from the JAR (which is actually a ZIP :clue:).

I inherently disagree with what you are saying.
First of all the argument “I am just doing this for fun” is always a cop out.
Secondly people who actually need a library might google and find yours, which is absolutely useless, wasting their time.

Almost everyone of us thought, when we started, that all the available libraries were to complicated and “I can do it more simple”
It says you have 1 year experience. Its like a 14 year old math enthusiast trying to do satellite orbit calculations for NASA. Just stop.

You are entitled to your own opinion, so am I. We think alike in some ways, but not others, and I’m okay with that.

Just wanted to update it again, I think I might have made it a little more useful this time around :wink: Here’s the changelog:

Added:

  • logic(int delta) method. More about what that can be used for later.

  • ColorValue is now called Color

  • Image loading and drawing is now in GL.java.

  • New rainbowGradient(int x, int y, int width, int height, Color[] colors): now you can paint gradients.

  • Animation! (Well, sort of.) Example code:


import java.awt.*;
import com.darkcart.lib.sjgl.*;
import com.darkcart.lib.sjgl.simplegl.*;
import com.darkcart.lib.sjgl.util.*;

public class ImageTest extends BasicGame {
	private static final long serialVersionUID = 1L;

	int x = 250;
	int y = 140;
	int x1 = x + 50;
	int y1 = y;

	public void init() {
		// Blah blah blah
	}

	public void paint(Graphics g) {
		// Blah blah blah
		logic();
	}

	public void logic() {
		for (int i = 0; i < 4; i++) {
			repaint(x1, y1, 64, 64);
			x++;
			x1++;
			repaint(x, y, 64, 64);
			try {
				Thread.sleep(50);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}

	public static void main(String[] args) {
		ImageTest t = new ImageTest();
		t.init();
	}
}

Removed:

  • gl- prefix. Now you just use image(); or rect();, or etc. to draw.

  • GLImage class. Image loading/drawing is now in the GL class.

Download: here.

I think people should stop putting him down… Srsly, this is just something he is doing just for fun… I do a lot of things just for fun as well and I don’t really expect them to be absolutely amazing and everyone should try it… I just do it for fun, what other reason should people program?

I would agree, except…

These projects are being framed as “here, use this thing I made.”

We’re not “putting him down”. That implies that we are purposefully belittling him, which we are not. We are giving him constructive criticism. People have said this before and I will repeat it. It’s the internet, you need a thick skin. Without constructive criticism, DarkCart will not know what needs improvement.

Would you rather we shower him with compliments and then he gets crushed in the real world, or give constructive criticism now and work to prepare him for the expectations of the real world?

CopyableCougar4

I just felt like speaking up after this comment:

Seriously, I need to know what to add. It helps me keep motivated that people are interested in my library enough to suggest things to be added/changed.

Then, try to make a game with your library and you’ll find what is missing.

I don’t really understand this way of thinking. I appreciate altruism but why for do you develop this library? What does it give you? Are you looking for gratitude?

I couldn’t agree more, You should stop putting people down, Ask for suggestions not “Constructive Criticism” If he wants to develop a gaming library he can do that, You people got to stop being such arrogant @$$3$.

Nice job on the library so far, I used the demo for 0.6, You should make a little game with it, Maybe add collision detection and when the game starts the players just scroll and don’t stop, There are just suggestion but i wish you the best of luck on your library, I will continue to get the newest updates and hand out suggestions, Best of luck to you

~ Ty

“arrogant @$$3$.”? Excuse me? Only one person has even made a comment that could be considered out of line. You guys need to stop with this idea of being the hero and jumping on the “back OP up” bandwagon.

CopyableCougar4