00:00
00:00
Newgrounds Background Image Theme

Semiaza31 just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Basic 2d graphics in Java

1,307 Views | 21 Replies
New Topic Respond to this Topic

Basic 2d graphics in Java 2022-08-19 20:03:28


Help, I want to create a simple 2d game in java but I cant understand even how can I display pixels, seriously the built in graphics library is shit.Is there a built in function were I can pass as a parameter the name of the Jframe, x and y coordinates and an RGB value? cause I want able to find anything like that


"humanity came from the huge vaginal blast which started the universe"

-Lord Ashtar Sheran

(favorite video = https://www.youtube.com/watch?v=tLfFK_C-9HY)

BBS Signature

Response to Basic 2d graphics in Java 2022-08-20 02:11:34


I think you'd be better served by using JavaFX as that has better 2D shape support and has a Canvas to which you can set pixels, draw shapes and such. See the following link:


https://stackoverflow.com/questions/28417623/the-fastest-filling-one-pixel-in-javafx


Slint approves of me! | "This is Newgrounds.com, not Disney.com" - WadeFulp

"Sit look rub panda" - Alan Davies

BBS Signature

Response to Basic 2d graphics in Java 2022-08-21 13:23:15


I'm afraid the built-in graphics library was designed mostly for desktop GUI applications, give JavaFX as suggested by @Gimmick a try, I personally used libGDX to make a game once too


O prudente varão há de ser mudo,

Que é melhor neste mundo, mar de enganos,

Ser louco c’os demais, que só, sisudo

Response to Basic 2d graphics in Java 2022-08-24 05:57:06


I wouldn't use Java to create a game.


Hop over to Python and use Pygame or godot or unity or javascript and use <canvas> which is pretty nice


∀x (∃e (e ∈ x ∧ ∀x ¬(x ∈ e)) ∨ ∃y ¬∃e (e ∈ x ∧ ¬∃z (z ∈ y ∧ z ∈ e ∧ ∀x ¬((x ∈ y ∧ x ∈ e) ∧ ¬(x = z)))))

Response to Basic 2d graphics in Java 2022-08-24 21:52:21


At 8/24/22 05:57 AM, sharpnova wrote:I wouldn't use Java to create a game.

Hop over to Python and use Pygame or godot or unity or javascript and use <canvas> which is pretty nice


Picking an entire different language isn't the solution to paint a pixel given its xy position.


O prudente varão há de ser mudo,

Que é melhor neste mundo, mar de enganos,

Ser louco c’os demais, que só, sisudo

Response to Basic 2d graphics in Java 2022-08-24 22:18:44


At 8/24/22 09:52 PM, detergent1 wrote:
At 8/24/22 05:57 AM, sharpnova wrote:I wouldn't use Java to create a game.

Hop over to Python and use Pygame or godot or unity or javascript and use <canvas> which is pretty nice

Picking an entire different language isn't the solution to paint a pixel given its xy position.


I didn't mention that in my earlier post because I assume OP knows what they're getting into when they're trying to use Java to make a game, instead of a language better suited to the task (e.g. perhaps they want the challenge). But that doesn't mean that the suggestion to use a different language is incorrect either.


Slint approves of me! | "This is Newgrounds.com, not Disney.com" - WadeFulp

"Sit look rub panda" - Alan Davies

BBS Signature

Response to Basic 2d graphics in Java 2022-08-24 22:21:28


At 8/24/22 10:18 PM, Gimmick wrote:
At 8/24/22 09:52 PM, detergent1 wrote:
At 8/24/22 05:57 AM, sharpnova wrote:I wouldn't use Java to create a game.

Hop over to Python and use Pygame or godot or unity or javascript and use <canvas> which is pretty nice

Picking an entire different language isn't the solution to paint a pixel given its xy position.

I didn't mention that in my earlier post because I assume OP knows what they're getting into when they're trying to use Java to make a game, instead of a language better suited to the task (e.g. perhaps they want the challenge). But that doesn't mean that the suggestion to use a different language is incorrect either.


i also like when an entire different operating system is suggested when someone have a simple problem on Windows


O prudente varão há de ser mudo,

Que é melhor neste mundo, mar de enganos,

Ser louco c’os demais, que só, sisudo

Response to Basic 2d graphics in Java 2022-08-26 02:19:48


At 8/24/22 09:52 PM, detergent1 wrote:
At 8/24/22 05:57 AM, sharpnova wrote:I wouldn't use Java to create a game.

Hop over to Python and use Pygame or godot or unity or javascript and use <canvas> which is pretty nice

Picking an entire different language isn't the solution to paint a pixel given its xy position.


He was talking about making a game. Drawing a pixel was just an example of what he needed to do in order to do that. Did you not actually read his post? How is this not all clear to you already?


I'm totally willing to have a conversation with you about why this obvious stuff needed to be explained. It's a bit alarming tbh.


∀x (∃e (e ∈ x ∧ ∀x ¬(x ∈ e)) ∨ ∃y ¬∃e (e ∈ x ∧ ¬∃z (z ∈ y ∧ z ∈ e ∧ ∀x ¬((x ∈ y ∧ x ∈ e) ∧ ¬(x = z)))))

Response to Basic 2d graphics in Java 2022-08-26 02:21:03


At 8/24/22 10:21 PM, detergent1 wrote:i also like when an entire different operating system is suggested when someone have a simple problem on Windows


The problem with your analogy is that it's not at all apt.. and oversimplifying.. and stupid.


Advising someone steer away from Java for game development would be like advising someone steer away from Linux if they want to do lots of AAA&Indie PC Gaming.


∀x (∃e (e ∈ x ∧ ∀x ¬(x ∈ e)) ∨ ∃y ¬∃e (e ∈ x ∧ ¬∃z (z ∈ y ∧ z ∈ e ∧ ∀x ¬((x ∈ y ∧ x ∈ e) ∧ ¬(x = z)))))

Response to Basic 2d graphics in Java 2022-08-26 03:52:15


At 8/26/22 02:21 AM, sharpnova wrote:
At 8/24/22 10:21 PM, detergent1 wrote:i also like when an entire different operating system is suggested when someone have a simple problem on Windows

The problem with your analogy is that it's not at all apt.. and oversimplifying.. and stupid.

Advising someone steer away from Java for game development would be like advising someone steer away from Linux if they want to do lots of AAA&Indie PC Gaming.


Maybe he's developing Minecraft 2


Response to Basic 2d graphics in Java 2022-08-26 16:02:56


At 8/26/22 02:19 AM, sharpnova wrote:
At 8/24/22 09:52 PM, detergent1 wrote:
At 8/24/22 05:57 AM, sharpnova wrote:I wouldn't use Java to create a game.

Hop over to Python and use Pygame or godot or unity or javascript and use <canvas> which is pretty nice

Picking an entire different language isn't the solution to paint a pixel given its xy position.

He was talking about making a game. Drawing a pixel was just an example of what he needed to do in order to do that. Did you not actually read his post? [...]


Yeah I did read:


At 8/19/22 08:03 PM, SpermFactoty wrote:Help, I want to create a simple 2d game in java [...]

O prudente varão há de ser mudo,

Que é melhor neste mundo, mar de enganos,

Ser louco c’os demais, que só, sisudo

Response to Basic 2d graphics in Java 2022-08-26 16:52:44


At 8/26/22 03:52 AM, MysteryIDK wrote:
At 8/26/22 02:21 AM, sharpnova wrote:
At 8/24/22 10:21 PM, detergent1 wrote:i also like when an entire different operating system is suggested when someone have a simple problem on Windows

The problem with your analogy is that it's not at all apt.. and oversimplifying.. and stupid.

Advising someone steer away from Java for game development would be like advising someone steer away from Linux if they want to do lots of AAA&Indie PC Gaming.

Maybe he's developing Minecraft 2


I dont get why java gets so much crap. By what i know(which is not a lot) its mostly 'cause it just uses a syntax that is more complicated .


"humanity came from the huge vaginal blast which started the universe"

-Lord Ashtar Sheran

(favorite video = https://www.youtube.com/watch?v=tLfFK_C-9HY)

BBS Signature

At 8/26/22 04:52 PM, SpermFactoty wrote:
At 8/26/22 03:52 AM, MysteryIDK wrote:
At 8/26/22 02:21 AM, sharpnova wrote:
At 8/24/22 10:21 PM, detergent1 wrote:i also like when an entire different operating system is suggested when someone have a simple problem on Windows

The problem with your analogy is that it's not at all apt.. and oversimplifying.. and stupid.

Advising someone steer away from Java for game development would be like advising someone steer away from Linux if they want to do lots of AAA&Indie PC Gaming.

Maybe he's developing Minecraft 2

I dont get why java gets so much crap. By what i know(which is not a lot) its mostly 'cause it just uses a syntax that is more complicated .


Java's track record for games is deep, but an inch wide. Minecraft and Project Zomboid.


It's simply not easy to make a game in Java because Java isn't tailored for making games, unlike Godot or Unreal Engine or Unity or Gamemaker or Dreams or RPGMaker. Java rightfully "gets crap" on the game-making front then, since other tools do the job faster and simpler. It's like using chopsticks to dig a hole when you have shovels next to you.


Keep using Java if you want, but in your shoes, I'd personally make the switch to a dedicated game engine, based on your very simple prompt, as it seems you're not in too deep to start over. Time is limited, and the others are just trying to steer you in a direction which won't cost you as much time and frustration as Java will, even if they act a little rude about it. What matters first is the end product you create, but what matters second is how much you invest into creating that product. Java will simply cost you more.


Syntax can be everything sometimes.

Response to Basic 2d graphics in Java 2022-08-26 22:21:29


At 8/26/22 07:52 PM, MysteryIDK wrote:
At 8/26/22 04:52 PM, SpermFactoty wrote:
At 8/26/22 03:52 AM, MysteryIDK wrote:
At 8/26/22 02:21 AM, sharpnova wrote:
At 8/24/22 10:21 PM, detergent1 wrote:i also like when an entire different operating system is suggested when someone have a simple problem on Windows

The problem with your analogy is that it's not at all apt.. and oversimplifying.. and stupid.

Advising someone steer away from Java for game development would be like advising someone steer away from Linux if they want to do lots of AAA&Indie PC Gaming.

Maybe he's developing Minecraft 2

I dont get why java gets so much crap. By what i know(which is not a lot) its mostly 'cause it just uses a syntax that is more complicated .

Java's track record for games is deep, but an inch wide. Minecraft and Project Zomboid.

It's simply not easy to make a game in Java because Java isn't tailored for making games, unlike Godot or Unreal Engine or Unity or Gamemaker or Dreams or RPGMaker. Java rightfully "gets crap" on the game-making front then, since other tools do the job faster and simpler. It's like using chopsticks to dig a hole when you have shovels next to you.


dude java is a language just like C#, neither are tailored for making games, so what? that doesn't make Unity less useful


Keep using Java if you want, but in your shoes, I'd personally make the switch to a dedicated game engine, based on your very simple prompt, as it seems you're not in too deep to start over. Time is limited, and the others are just trying to steer you in a direction which won't cost you as much time and frustration as Java will, even if they act a little rude about it. What matters first is the end product you create, but what matters second is how much you invest into creating that product. Java will simply cost you more.


thank god game engines exists, game industry has been dead until now!


Syntax can be everything sometimes.


ugly code even more, independently of syntax!


O prudente varão há de ser mudo,

Que é melhor neste mundo, mar de enganos,

Ser louco c’os demais, que só, sisudo


At 8/26/22 10:21 PM, detergent1 wrote:
At 8/26/22 07:52 PM, MysteryIDK wrote:
At 8/26/22 04:52 PM, SpermFactoty wrote:
At 8/26/22 03:52 AM, MysteryIDK wrote:
At 8/26/22 02:21 AM, sharpnova wrote:
At 8/24/22 10:21 PM, detergent1 wrote:i also like when an entire different operating system is suggested when someone have a simple problem on Windows

The problem with your analogy is that it's not at all apt.. and oversimplifying.. and stupid.

Advising someone steer away from Java for game development would be like advising someone steer away from Linux if they want to do lots of AAA&Indie PC Gaming.

Maybe he's developing Minecraft 2

I dont get why java gets so much crap. By what i know(which is not a lot) its mostly 'cause it just uses a syntax that is more complicated .

Java's track record for games is deep, but an inch wide. Minecraft and Project Zomboid.

It's simply not easy to make a game in Java because Java isn't tailored for making games, unlike Godot or Unreal Engine or Unity or Gamemaker or Dreams or RPGMaker. Java rightfully "gets crap" on the game-making front then, since other tools do the job faster and simpler. It's like using chopsticks to dig a hole when you have shovels next to you.

dude java is a language just like C#, neither are tailored for making games, so what? that doesn't make Unity less useful

Keep using Java if you want, but in your shoes, I'd personally make the switch to a dedicated game engine, based on your very simple prompt, as it seems you're not in too deep to start over. Time is limited, and the others are just trying to steer you in a direction which won't cost you as much time and frustration as Java will, even if they act a little rude about it. What matters first is the end product you create, but what matters second is how much you invest into creating that product. Java will simply cost you more.


thank god game engines exists, game industry has been dead until now!

Syntax can be everything sometimes.


ugly code even more, independently of syntax!


Please chill out and limit your hostile sarcasm. At no point did I ever claim that games engines were the only reason video games and the industry exist. Nor did I ever claim to have sex with your mother.


You and Gimmick already gave answers to the kid's question by suggesting better libraries than the default one. He asked why people bagged on Java, and I explained the POV of naysayers in this thread who suggested moving off Java for the task of creating a 2D pixel art game. I even gave good examples of Java successes like Minecraft and Project Zomboid.


Terry Davis created TempleOS and made his own games native in that OS. Impressive sure, but he didn't make much after that.


I want to see this kid make games as much as you. And so did everyone else who suggested a switch off Java, in hopes that he'll have an easier time.


@MysteryIDK

"It's simply not easy to make a game in Java because Java isn't tailored for making games, unlike Godot or Unreal Engine or Unity or Gamemaker or Dreams or RPGMaker."


Epic you compare a computer language to a game engine, genius. You sound exactly like this: "It's simply not easy to make a game in Python because Python isn't tailored for making games, unlike Pygame."


The reason why Java is so hated is because it's got an ass syntax compared to C, C++, C#, Python, literally anything else in the world and because of compatibility issues, like Java will crash on a whim. I don't play enough Java games, so I don't know how much this is true, but I've seen this being said a ton of times before, so this isn't just rare. It's also got performance issues and security issues, last time I checked an exploit got found a while ago.


Ok boomer.

BBS Signature

Response to Basic 2d graphics in Java 2022-08-27 17:40:44


At 8/26/22 10:38 PM, MysteryIDK wrote:
At 8/26/22 10:21 PM, detergent1 wrote:
At 8/26/22 07:52 PM, MysteryIDK wrote:
At 8/26/22 04:52 PM, SpermFactoty wrote:
At 8/26/22 03:52 AM, MysteryIDK wrote:
At 8/26/22 02:21 AM, sharpnova wrote:
At 8/24/22 10:21 PM, detergent1 wrote:i also like when an entire different operating system is suggested when someone have a simple problem on Windows

The problem with your analogy is that it's not at all apt.. and oversimplifying.. and stupid.

Advising someone steer away from Java for game development would be like advising someone steer away from Linux if they want to do lots of AAA&Indie PC Gaming.

Maybe he's developing Minecraft 2

I dont get why java gets so much crap. By what i know(which is not a lot) its mostly 'cause it just uses a syntax that is more complicated .

Java's track record for games is deep, but an inch wide. Minecraft and Project Zomboid.

It's simply not easy to make a game in Java because Java isn't tailored for making games, unlike Godot or Unreal Engine or Unity or Gamemaker or Dreams or RPGMaker. Java rightfully "gets crap" on the game-making front then, since other tools do the job faster and simpler. It's like using chopsticks to dig a hole when you have shovels next to you.

dude java is a language just like C#, neither are tailored for making games, so what? that doesn't make Unity less useful

Keep using Java if you want, but in your shoes, I'd personally make the switch to a dedicated game engine, based on your very simple prompt, as it seems you're not in too deep to start over. Time is limited, and the others are just trying to steer you in a direction which won't cost you as much time and frustration as Java will, even if they act a little rude about it. What matters first is the end product you create, but what matters second is how much you invest into creating that product. Java will simply cost you more.


thank god game engines exists, game industry has been dead until now!

Syntax can be everything sometimes.


ugly code even more, independently of syntax!

Please chill out and limit your hostile sarcasm. At no point did I ever claim that games engines were the only reason video games and the industry exist. Nor did I ever claim to have sex with your mother.

You and Gimmick already gave answers to the kid's question by suggesting better libraries than the default one. He asked why people bagged on Java, and I explained the POV of naysayers in this thread who suggested moving off Java for the task of creating a 2D pixel art game. I even gave good examples of Java successes like Minecraft and Project Zomboid.

Terry Davis created TempleOS and made his own games native in that OS. Impressive sure, but he didn't make much after that.

I want to see this kid make games as much as you. And so did everyone else who suggested a switch off Java, in hopes that he'll have an easier time.


That's a perfect example of completely missing the point.


Who cares about Terry anyways you brought him up for what? To make a point? Let the poor guy rest.


Ok boomer.

BBS Signature

At 8/27/22 05:40 PM, CyberRobotnix wrote:
At 8/26/22 10:38 PM, MysteryIDK wrote:
At 8/26/22 10:21 PM, detergent1 wrote:
At 8/26/22 07:52 PM, MysteryIDK wrote:
At 8/26/22 04:52 PM, SpermFactoty wrote:
At 8/26/22 03:52 AM, MysteryIDK wrote:
At 8/26/22 02:21 AM, sharpnova wrote:
At 8/24/22 10:21 PM, detergent1 wrote:i also like when an entire different operating system is suggested when someone have a simple problem on Windows

The problem with your analogy is that it's not at all apt.. and oversimplifying.. and stupid.

Advising someone steer away from Java for game development would be like advising someone steer away from Linux if they want to do lots of AAA&Indie PC Gaming.

Maybe he's developing Minecraft 2

I dont get why java gets so much crap. By what i know(which is not a lot) its mostly 'cause it just uses a syntax that is more complicated .

Java's track record for games is deep, but an inch wide. Minecraft and Project Zomboid.

It's simply not easy to make a game in Java because Java isn't tailored for making games, unlike Godot or Unreal Engine or Unity or Gamemaker or Dreams or RPGMaker. Java rightfully "gets crap" on the game-making front then, since other tools do the job faster and simpler. It's like using chopsticks to dig a hole when you have shovels next to you.

dude java is a language just like C#, neither are tailored for making games, so what? that doesn't make Unity less useful

Keep using Java if you want, but in your shoes, I'd personally make the switch to a dedicated game engine, based on your very simple prompt, as it seems you're not in too deep to start over. Time is limited, and the others are just trying to steer you in a direction which won't cost you as much time and frustration as Java will, even if they act a little rude about it. What matters first is the end product you create, but what matters second is how much you invest into creating that product. Java will simply cost you more.


thank god game engines exists, game industry has been dead until now!

Syntax can be everything sometimes.


ugly code even more, independently of syntax!

Please chill out and limit your hostile sarcasm. At no point did I ever claim that games engines were the only reason video games and the industry exist. Nor did I ever claim to have sex with your mother.

You and Gimmick already gave answers to the kid's question by suggesting better libraries than the default one. He asked why people bagged on Java, and I explained the POV of naysayers in this thread who suggested moving off Java for the task of creating a 2D pixel art game. I even gave good examples of Java successes like Minecraft and Project Zomboid.

Terry Davis created TempleOS and made his own games native in that OS. Impressive sure, but he didn't make much after that.

I want to see this kid make games as much as you. And so did everyone else who suggested a switch off Java, in hopes that he'll have an easier time.

That's a perfect example of completely missing the point.

Who cares about Terry anyways you brought him up for what? To make a point? Let the poor guy rest.


For Terry's case, I was implying just because you can make a game within a certain constraint doesn't mean you should. Perhaps a tasteless point, but well it's out there now.


But yes, I suppose we've gone off-track here concerning alternatives to Java and optimizing a currently imaginary workflow.

Response to Basic 2d graphics in Java 2022-08-27 19:22:50


At 8/27/22 07:20 PM, MysteryIDK wrote:
At 8/27/22 05:40 PM, CyberRobotnix wrote:
At 8/26/22 10:38 PM, MysteryIDK wrote:
At 8/26/22 10:21 PM, detergent1 wrote:
At 8/26/22 07:52 PM, MysteryIDK wrote:
At 8/26/22 04:52 PM, SpermFactoty wrote:
At 8/26/22 03:52 AM, MysteryIDK wrote:
At 8/26/22 02:21 AM, sharpnova wrote:
At 8/24/22 10:21 PM, detergent1 wrote:i also like when an entire different operating system is suggested when someone have a simple problem on Windows

The problem with your analogy is that it's not at all apt.. and oversimplifying.. and stupid.

Advising someone steer away from Java for game development would be like advising someone steer away from Linux if they want to do lots of AAA&Indie PC Gaming.

Maybe he's developing Minecraft 2

I dont get why java gets so much crap. By what i know(which is not a lot) its mostly 'cause it just uses a syntax that is more complicated .

Java's track record for games is deep, but an inch wide. Minecraft and Project Zomboid.

It's simply not easy to make a game in Java because Java isn't tailored for making games, unlike Godot or Unreal Engine or Unity or Gamemaker or Dreams or RPGMaker. Java rightfully "gets crap" on the game-making front then, since other tools do the job faster and simpler. It's like using chopsticks to dig a hole when you have shovels next to you.

dude java is a language just like C#, neither are tailored for making games, so what? that doesn't make Unity less useful

Keep using Java if you want, but in your shoes, I'd personally make the switch to a dedicated game engine, based on your very simple prompt, as it seems you're not in too deep to start over. Time is limited, and the others are just trying to steer you in a direction which won't cost you as much time and frustration as Java will, even if they act a little rude about it. What matters first is the end product you create, but what matters second is how much you invest into creating that product. Java will simply cost you more.


thank god game engines exists, game industry has been dead until now!

Syntax can be everything sometimes.


ugly code even more, independently of syntax!

Please chill out and limit your hostile sarcasm. At no point did I ever claim that games engines were the only reason video games and the industry exist. Nor did I ever claim to have sex with your mother.

You and Gimmick already gave answers to the kid's question by suggesting better libraries than the default one. He asked why people bagged on Java, and I explained the POV of naysayers in this thread who suggested moving off Java for the task of creating a 2D pixel art game. I even gave good examples of Java successes like Minecraft and Project Zomboid.

Terry Davis created TempleOS and made his own games native in that OS. Impressive sure, but he didn't make much after that.

I want to see this kid make games as much as you. And so did everyone else who suggested a switch off Java, in hopes that he'll have an easier time.

That's a perfect example of completely missing the point.

Who cares about Terry anyways you brought him up for what? To make a point? Let the poor guy rest.

For Terry's case, I was implying just because you can make a game within a certain constraint doesn't mean you should.

But yes, I suppose we've gone off-track here concerning alternatives to Java and optimizing a currently imaginary workflow.


"We"? No, "you".


Ok boomer.

BBS Signature

Response to Basic 2d graphics in Java 2022-08-27 19:23:51


At 8/27/22 07:22 PM, CyberRobotnix wrote:
At 8/27/22 07:20 PM, MysteryIDK wrote:
At 8/27/22 05:40 PM, CyberRobotnix wrote:
At 8/26/22 10:38 PM, MysteryIDK wrote:
At 8/26/22 10:21 PM, detergent1 wrote:
At 8/26/22 07:52 PM, MysteryIDK wrote:
At 8/26/22 04:52 PM, SpermFactoty wrote:
At 8/26/22 03:52 AM, MysteryIDK wrote:
At 8/26/22 02:21 AM, sharpnova wrote:
At 8/24/22 10:21 PM, detergent1 wrote:i also like when an entire different operating system is suggested when someone have a simple problem on Windows

The problem with your analogy is that it's not at all apt.. and oversimplifying.. and stupid.

Advising someone steer away from Java for game development would be like advising someone steer away from Linux if they want to do lots of AAA&Indie PC Gaming.

Maybe he's developing Minecraft 2

I dont get why java gets so much crap. By what i know(which is not a lot) its mostly 'cause it just uses a syntax that is more complicated .

Java's track record for games is deep, but an inch wide. Minecraft and Project Zomboid.

It's simply not easy to make a game in Java because Java isn't tailored for making games, unlike Godot or Unreal Engine or Unity or Gamemaker or Dreams or RPGMaker. Java rightfully "gets crap" on the game-making front then, since other tools do the job faster and simpler. It's like using chopsticks to dig a hole when you have shovels next to you.

dude java is a language just like C#, neither are tailored for making games, so what? that doesn't make Unity less useful

Keep using Java if you want, but in your shoes, I'd personally make the switch to a dedicated game engine, based on your very simple prompt, as it seems you're not in too deep to start over. Time is limited, and the others are just trying to steer you in a direction which won't cost you as much time and frustration as Java will, even if they act a little rude about it. What matters first is the end product you create, but what matters second is how much you invest into creating that product. Java will simply cost you more.


thank god game engines exists, game industry has been dead until now!

Syntax can be everything sometimes.


ugly code even more, independently of syntax!

Please chill out and limit your hostile sarcasm. At no point did I ever claim that games engines were the only reason video games and the industry exist. Nor did I ever claim to have sex with your mother.

You and Gimmick already gave answers to the kid's question by suggesting better libraries than the default one. He asked why people bagged on Java, and I explained the POV of naysayers in this thread who suggested moving off Java for the task of creating a 2D pixel art game. I even gave good examples of Java successes like Minecraft and Project Zomboid.

Terry Davis created TempleOS and made his own games native in that OS. Impressive sure, but he didn't make much after that.

I want to see this kid make games as much as you. And so did everyone else who suggested a switch off Java, in hopes that he'll have an easier time.

That's a perfect example of completely missing the point.

Who cares about Terry anyways you brought him up for what? To make a point? Let the poor guy rest.

For Terry's case, I was implying just because you can make a game within a certain constraint doesn't mean you should.

But yes, I suppose we've gone off-track here concerning alternatives to Java and optimizing a currently imaginary workflow.

"We"? No, "you".


We as in the 50 different personalities in my brain.

Response to Basic 2d graphics in Java 2022-09-25 02:00:12


Maybe a little bit late but anyway


You don't draw on a JFrame. You draw on a Graphics object.


https://cs.lmu.edu/~ray/notes/javagraphics/

https://docs.oracle.com/javase/7/docs/api/java/awt/Graphics.html for reference.


Still, I recommend using a full-fledged game engine for game development, not just plain Java.

Response to Basic 2d graphics in Java 2022-09-27 18:13:12


At 9/25/22 02:00 AM, EdChar wrote:Maybe a little bit late but anyway

You don't draw on a JFrame. You draw on a Graphics object.

https://cs.lmu.edu/~ray/notes/javagraphics/
https://docs.oracle.com/javase/7/docs/api/java/awt/Graphics.html for reference.

Still, I recommend using a full-fledged game engine for game development, not just plain Java.


oh thanks its working right now


"humanity came from the huge vaginal blast which started the universe"

-Lord Ashtar Sheran

(favorite video = https://www.youtube.com/watch?v=tLfFK_C-9HY)

BBS Signature