Here is link to the website that I made to help people start making java games. Tutorials are basic for beginers.
So far I have done 3 tutorials. I made 2 little games and I post the source code online.
Anyone else getting really weird formatting for the post above?
Uh…you put it in article format
I didn’t write the post. Interesting to know there’s an article format, but it doesn’t even add any author or date info, so it’s kinda … stripped.
It’s default for “Articles & tutorials”
Also default for other areas like snippets
Making tutorials : excellent.
Cursory overview : a bit spare, there’s short text explanation, and source code. Fair enough. Okay, it’s not holding your hand step by step, it assumes the user is going to download the source and work from there.
Negatives : general use of magic numbers in the Duck area - showing people how to use the set numbers for a duck’s width and height and so forth is not good. Perhaps should always encourage people to use the getWidth(), getHeight() or whatever.
Also the setting res to 800x600 is I think strange, optimally people should be able to pop fullscreen straight off the bat. First thing I loved when I started with oldtime machines was getting the screen under control, and drawing onto it with wild abandon. Admitted, you just had specific resolutions, but still the magic is part of it… How to do this in 2D is a question mark still. The drift away from screen coords to screen dimensions and fractions of the screen is hard to come by without frameworks of some sort. It kind of bothers me now, the assumption that there are still set resolutions assumptions though the screen space is so diverse… But I digress.
Hope this will be taken as constructive crit, I fully appreciate people taking the time to disseminate experience and information.
I like the examples, not so common.
But the site domain looks like covering all language.
This section is meant to have (full) articles written by members, not really for references to articles.
I will add the link to the ‘Java Gaming Resources’ page, and will remove this thread soon.
Thanks for the interesting work though
@ Karmington thanks for your comment.
When I started doing these tutorials, I thought it will be easier to write. In the end it turned out like this: a general description of the games / source code and source code itself for “experimentation”. “Fortunately”, some prefer to learn by experimenting, add or edit an already existing code.
The Duck tutorial contains some magic numbers, for example, in the duckLines array. But for the duck image I always use the function which returns the width of the image (duckImg.getWidth ()). I just looked at the code and saw that when I check whether any of the ducks was hit that I used seven “magic” numbers. I will repair this when I will have time.
As regards a resolution, I did not want a player to change the window size during the game, it would then have to change some variables and then there would be more code that would not be connected to the topic of tutorial(moving object). For the first game / tutorial is enough to teach the user to move objects. Adjusting the game to different resolutions would be the topic for another tutorial.
@ Riven
I did not know that this section is only to have a full article.
Thank you for adding link under the ‘Java Gaming Resources’ page. But the user that is written in brackets is wrong.
Sorry for my bad English. :persecutioncomplex: