#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)
<@&987246452180930620> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
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.
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
libgdx would be helpful as you don't have to invent the universe to start.
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
Small games programming
My Android Games:
https://play.google.com/store/apps/developer?id=Distraction
Blog: http://neetlife2.blogspot.com/
Email: [email protected]
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 ...
why thank you kind sir
i would have a look
For a beginner please do not recommend lwjgl
I learned the hard way it is hell without prior OpenGL experience
oh? i don't know that much about it. good to note
whats hell about it?
It’s basically just an OpenGL wrapper. The fact that OpenGL is already has a bit of a steep learning curve and the fact that there aren’t many good lwjgl specific resources made it a pain
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
Not for a Java beginner
i second this opinion
hooooo here we gooooo lets learn java !!!!!
so my teacher recommends me to use like eclipse
but it seems the video here is using a ide named swing?
nvm it was indeed eclipse lol
well your teachers recommendation is not the best then. pretty much everyone here uses and recommends IntelliJ IDEA
intellij?
yeah its much more modern
👍
I actually did not like Java until I wrote Java in IntelliJ
yes jetbrains made many good ides
and much more awesome software