#How would i go about making a pixel game in java (im really new and need to make a 1 month project )

1 messages · Page 1 of 1 (latest)

teal swan
#

thank you

woven ploverBOT
#

<@&987246452180930620> please have a look, thanks.

woven ploverBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

hot jacinth
#

You could just follow a Youtube tutorial on how to do a 2D game, just to get a basic idea of games. You should learn swing and how the paintComponent method works, as well as KeyListeners. Some will disagree and say u should learn JavaFX but i disagree because swing is way better for Java beginners in my opinion. Of course you should also have a idea what you wanna do, maybe also write down your idea on paper. Dont do to much, start with some smaller games, like a jump and run

#

When you got that and still have time you could add some small enemies during the jump and run level

#

Also some coins to pick up to buy new weapons. Keep in mind thats just future ideas, you will prob not be able to do that in 1 mounth with that much Java experience, but maybe in the future if you wanna finish this project

mild star
#

lwjgl too

#

stuff to google

lapis thistle
#

libgdx would be helpful as you don't have to invent the universe to start.

worldly basalt
# teal swan thank you

I recommend you follow video tutorials from this account. Realistically since you are new, a lot of this will be difficult. The video will go fast, its important that you go slow, compile multiple times, and confirm how you did what you did. Follow closely your first follow through before adding any custom features. https://www.youtube.com/@ForeignGuyMike

#

I followed this series when I was about 2 months into programming. Learned a lot from it. https://www.youtube.com/watch?v=9dzhgsVaiSo&list=PL-2t7SM0vDfcIedoMIghzzgQqZq45jYGv

IMPORTANT INFO:
This is an extremely old tutorial, back when I was a noob at game programming. One of the most destructive parts of this crap code is the multi-threaded key input. Swing puts all KeyEvent firings in a separate thread, so I implore everyone to look at video 9 (final - Artifact game) of this tutorial to check out the Keys class in ...

▶ Play video
teal swan
#

i would have a look

fickle crystal
#

I learned the hard way it is hell without prior OpenGL experience

mild star
#

whats hell about it?

fickle crystal
#

I know this from several months of creating a 2D graphics lib/simple game engine thing in lwjgl with no prior OpenGL experience

#

You’re going to spend more time figuring out how to make OpenGL and lwjgl work than you are going to be making your game

hot jacinth
keen arch
teal swan
#

so my teacher recommends me to use like eclipse

teal swan
#

nvm it was indeed eclipse lol

sleek arrow
sleek arrow
#

yeah its much more modern

teal swan
#

oh

#

ill look into it then

sleek arrow
#

👍

worldly basalt
#

I actually did not like Java until I wrote Java in IntelliJ

teal swan
#

oh its by jet brains

#

didnt they make pycharm

keen arch
#

yes jetbrains made many good ides

sleek arrow
#

and much more awesome software