Posts Tagged Tutorials
Michael James Williams wrote an article on 12/20/2012 …
In which he presents a list of 40+ game development tutorials he feels are of interest( and so should you 😉 ). The list covers everything from coding and math to aesthetics and game design. If you haven’t already seen it or come across the mentioned sources, definitely check it out.
Since the update for Tutorial 4 is taking longer than expected, I decided to switch from coding to art assets to keep the posts flowing.
Also, it’s worth noting that on the Gamasutra Web site, Chris Hildenbrand has added more helpful 2D game art tutorials (there are 8 in total, listed at Gamasutra and at Chris’ blog page 2D Game Art for Programmers. If your looking to improve your skills or looking to get up to speed with Inkscape his tutorials are a must read. What caught my attention the most was the tutorials he did on attack helicopters. Helicopters have always been a fun gaming element from back in the days of Choplifter and Infiltrator to Jane’s AH-64D Longbow (and Longbow 2). Chris’ tutorials are very straight forward and easy to follow. In just a couple of hours, you will be able to easily go from a blank Inkscape window to something like:
At this point we have the basis for the Python pygame model. We have the environment(outer space) and our player with the ability to move, but not shoot (nothing to shoot at yet). The game now looks something like this (using the more “modern” version of artwork):
But, ultimately what the window should look like, to make it more interesting and much more interactive would be something like the following mock up ( currently the game window does not look like this, but this is the intended final result). Currently I’m figuring out the GUI, I’ve gotten the furthest using Tkinter, but I haven’t gotten to the part where I can see the interaction between tkinter’s mainloop() and pygame’s mainloop().
Currently the work being done is on the GUI, to use what is available without having to include any additional install packages, this means that the GUI will be created either directly in pygame or using Tkinter(if possible). An alternate solution I’m thinking of is to create a transparent interface with SVG images and replace the option panel with that and then hardcode the buttons with pygame, but we’ll see how tkinter works out. The actual current window looks like this:
Sorry about the source code in the tutorials, (I either lose the spacing but retain the source formatting, or vice versa) while I try and isolate the problem (I have it narrowed down to an ID 10 T error) I have posted complete listings of each of the files;
|Tutorial 01||Source code listing 01|
|Tutorial 02||Source code listing 02|
|Tutorial 03||Source code listing 03|
I checked that the code appears properly in Firefox and IE, if anyone is using a browser other than these drop me a comment if you have difficulty viewing. Help me resolve the ID 10 T error!
Note: You can also leave a comment if you want to vote for either aliens or meteors in the the game.
In the first tutorial, we created a simple window using Python and Pygame. The next step, will be building on the previous example, to create a star field background, then write the code to animate it.