Game Programming at scriptedfun

Game Programming for Beginners: Video Tutorials, Source Code, and Articles

Subscribe via e-mail!

Enter your email address:

Delivered by FeedBurner

Entries for the ‘pygame’ Category

The 2nd Annual Toronto Indie Game Jam!

From the IGDA Toronto Chapter forums:
Greetings folks! This is the official announcement of TO Jam 2. This years event promises to be bigger, more exciting and prestigious than last year. We currently are able to confirm the following information about the event:
-Will be held in the downtown Toronto area
-Event will happen May 4,5,6
-Refer to the [...]

Leave a Comment

Particle Invaders update 1

I thought of changing some lines in the Particle Invaders code to make the particles emitted by the shots and the bombs more interesting. Go ahead and grab the source. You can try running the previous version and the current one to see the difference.
If you’re looking for an exercise, maybe you can try modifying [...]

Leave a Comment

Particle Effects for Games

I would like to apologize for not being able to post in a very long time. The schoolyear’s about to end here in Manila, and there is still a lot of work that needs to be done.
I needed a break, so I came up with this very simple demo of particle effects for Pygame, which [...]

Comments (2)

DonationCoder.com Accessibility Game Coding Contest

Finally! I was able to upload my entries to DonationCoder’s contest, despite the problems that I was having earlier. I was able to find a computer with a good internet connection (thank you!) . I will be making posts about this at this forum page on DonationCoder.com. Thanks in advance for trying my games! [...]

Comments (3)

Finishing a game…

Over at the Indiegamer forums, they’re running a thread asking what everyone is currently working on. I’ve decided to participate:

Basically, the objective here is to prevent the characters from falling by catching them with the flying creature at the bottom edge of the screen, which you control.
Right now, I’m using graphics from Spritelib, but hopefully [...]

Comments (8)

Shooting Mechanism Demo

As a follow up to the background scrolling example, I’ve modified the 1945 code again to emphasize how the shooting mechanism works.

Basically, the player is given two options for shooting:

Every distinct click of the left mouse button guarantees one shot.
Holding the left mouse button will make shots appear at regular intervals (rapid fire).

In a way, [...]

Comments (2)

Pygame Scrolling Background

One of the questions that I’m asked most often is how the background scrolling in 1945 works. To answer this question, I’ve removed some of the code from the original 1945 code, added a few things, and came up with this scrolling demo:

The best way to understand how the scrolling actually works is by downloading [...]

Comments (5)

Typing Game Source Code

I’m currently working on a Pygame project (will post again as soon as it’s done! ), and I’m now in the process of implementing the high score entry feature. One of my concerns was how to get keyboard input - while there are many examples of how to get keyboard input through the event [...]

Comments (1)

Pygame Starfield Rain

It rained yesterday afternoon, and I had the chance to observe raindrops descend from the edge of a roof while I gave an exam to some of my math students. While doing so, I thought that the effect that it gave might look good as a starfield in a space shooter. And so, we have [...]

Comments (10)

1945 - a vertical scrolling shooter

1945 is a clone of the popular vertical scrolling shooter 1942. Again, the graphics in the game were taken from the Spritelib by Ari Feldman. This game will serve as the basis for the screencasts once we finish Arinoid. The screencasts will probably begin with screencast 6. In the meantime, I am hoping that you’ll [...]

Comments (8)

Learning Pygame

Pygame is actually very easy to learn, and I highly recommend that you spend some time studying how to use it before we start coding. I suggest that you visit the Pygame Documentation on the Pygame website and go through the tutorials listed there.
While it would be ideal if you read through every tutorial, I [...]

Comments (1)