[Pygame] Reasonable to make a 2d top down shooter?

[Pygame] Reasonable to make a 2d top down shooter?

Postby SealHunt » Wed Apr 16, 2014 8:32 am

Hello,

I am a newcomer at coding department, and would like to know if it is a good idea to create a top down shooter in pygame. I went through a couple of python tutorials about 1 year ago, but got frustrated and quit upon being faced with problems which I couldn't solve by myself at that time. Recently I stumbled upon stencyl, which has revitalised my interest in coding and game development, but since stencyl is using flash, there is only a limited amount of memory that could be allocated to things like AI and other algorithms, and after creating multiple enemies with even a basic AI (turn in the direction closest to the player, then walk towards player) the fps drops substantially. Since I'm already hooked on the project I'd rather port the basic mechanics to another language and see where I can go from there, instead of abandoning it altogether.

The idea is to make a 2d top down shooter with roguelike elements (semi -random level generation, semi-random loot, rpg-like character progression, permament death) and a high difficulty curve, as well as trying to maintain a retro feel. I was wondering if it is feasible to give python (and pygame) a shot, or should I rather work with an API such as Unity?

Sorry for the long post, and thank you in advance.

Marcin
Last edited by Mekire on Wed Apr 16, 2014 9:16 am, edited 1 time in total.
Reason: First post lock.
SealHunt
 
Posts: 2
Joined: Wed Apr 16, 2014 7:59 am

Re: [Pygame] Reasonable to make a 2d top down shooter?

Postby Mekire » Wed Apr 16, 2014 9:28 am

It sounds completely possible to me. You will have to be mindful of performance but it shouldn't be anything impossible to achieve. Path finding can be pretty expensive, but you also need to realize that there is almost never a need to recalculate it every single frame. Almost every time I have seen someone say they can't get enough performance out of python/pygame in a 2d game, it is a result of them doing something extremely inefficient. That is not to say it isn't entirely possible to hit a performance wall, but if you are doing a solo project you will really have to try to genuinely cross the threshold. If all else fails, you will build a prototype in python (which is extremely valuable), and realize you need a faster language/framework.

Issues of compatibility are much more of an issue with Pygame than performance is in my opinion. It is not going to run in a browser, so if that is your goal, use something else. You could try Kivy while sticking with python, or you could use Unity and the webplayer it has (pretty popular these days it seems).

Basically just start writing it,
-Mek
User avatar
Mekire
 
Posts: 987
Joined: Thu Feb 07, 2013 11:33 pm
Location: Amakusa, Japan

Re: [Pygame] Reasonable to make a 2d top down shooter?

Postby SealHunt » Wed Apr 16, 2014 2:46 pm

Thank you for your input!

I have only experienced a handful of games that ran in browser which I genuinely enjoyed, so I'd rather aim for making it a windows game, and if there is any success possibly xbox live (ala spelunky).
SealHunt
 
Posts: 2
Joined: Wed Apr 16, 2014 7:59 am

Re: [Pygame] Reasonable to make a 2d top down shooter?

Postby XndrK » Thu Apr 17, 2014 4:25 pm

How familiar are you with GitHub?
Proverbs 26:14 describes me a bit too well.

Version: Python 2.7.5

https://github.com/4of92000
https://github.com/PythonForum/
User avatar
XndrK
 
Posts: 172
Joined: Sat Jun 15, 2013 7:57 pm

Re: [Pygame] Reasonable to make a 2d top down shooter?

Postby metulburr » Thu Apr 17, 2014 4:31 pm

so I'd rather aim for making it a windows game

dont forget linux ;)
New Users, Read This
OS Ubuntu 14.04, Arch Linux, Gentoo, Windows 7/8
https://github.com/metulburr
steam
User avatar
metulburr
 
Posts: 1416
Joined: Thu Feb 07, 2013 4:47 pm
Location: Elmira, NY

Re: [Pygame] Reasonable to make a 2d top down shooter?

Postby XndrK » Thu Apr 17, 2014 4:57 pm

I was going to say that, but I figured that Pygame is cross-platform.
Proverbs 26:14 describes me a bit too well.

Version: Python 2.7.5

https://github.com/4of92000
https://github.com/PythonForum/
User avatar
XndrK
 
Posts: 172
Joined: Sat Jun 15, 2013 7:57 pm

Re: [Pygame] Reasonable to make a 2d top down shooter?

Postby metulburr » Thu Apr 17, 2014 8:26 pm

I figured that Pygame is cross-platform

Pygame is, but you could still code it using windows only libraries dealing with other things.
New Users, Read This
OS Ubuntu 14.04, Arch Linux, Gentoo, Windows 7/8
https://github.com/metulburr
steam
User avatar
metulburr
 
Posts: 1416
Joined: Thu Feb 07, 2013 4:47 pm
Location: Elmira, NY


Return to Game Development

Who is online

Users browsing this forum: No registered users and 2 guests