Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.

Sign up now

Using python

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Vanillaface1   Members   


Posted 19 May 2013 - 05:26 PM

So. I want to start making a game using python. I only want a simple platformer, nothing too intense, only one or two levels to start off with. I have a very limited knowledge of python and programming but want to know where to start. Should I learn a few key bits of code, or should I start making the game and learn as I go along? Also, where would be the best place to learn this kind of thing? I've used youtube a lot but want to know if there's anything better out there. Thanks.

#2 shadowisadog   Members   


Posted 19 May 2013 - 08:41 PM

Code Academy should provide a decent start and get you going with some basic programming exercises.


I would recommend to anyone that you start with the basics of programming before trying to write a game. Games are software, and learning the language makes the process of creating a game less stressful.


Then there is How to Think Like a Computer Scientist : Learning With Python


A note is that there is Python 2.x and Python 3.x. Python 3 is the future of the Python language and plenty of packages are available for it. I currently use Python 2.7. Learning Python 3 may be something you wish to consider, but the basics should be fairly similar if not identical. Here is the Python 3 version of How to Think Like a Computer Scientist.


So my advice would be to practice some basic programming and get used to writing programs. Try to build up your programming skills before tackling a game project. If you go into starting to make a game with some knowledge of variables, loops, file IO, object oriented programming, data structures, and possibly even design patterns then you are going to have a much stronger starting point than trying to learn as you go in the context of making a game.


Once you have done all of that then I might recommend Writing a game in Python using Pygame and Invent with Python although keep in mind that these two links are going to delve into some pretty advanced stuff rather quickly. It is ok to feel a bit lost when looking at these references especially if you ignore my advice to learn the basics of Python first!


After you have done ALL of that then you may want to look into Tiled for creating levels for your game.


A final note is that... Be aware that (and this goes for any one in the future reading this) that the journey of game development and learning how to write both games and software is a long one. Don't expect to be good at it overnight. I have been programming for over a decade and I still learn new things on a daily basis!

Edited by shadowisadog, 19 May 2013 - 09:03 PM.

#3 G01denW01f11   Members   


Posted 19 May 2013 - 09:59 PM

This is a newbie's perspective, but here's how I got started:


There is an online course based on How to Think like a Computer Scientist here: http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-189-a-gentle -introduction-to-programming-using-python-january-iap-2011/


I found the exercises moderately difficult, and the course ends with a project where you make your own Tetris game based off a framework they provide. After going through that I was able to make a mostly-functional Pong game in Pygame with very little difficulty over this weekend.

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.