Posts: 2
Joined: Sun Jan 29, 2017 10:08 pm

PC Pups(a Python game)

Tue Jan 31, 2017 10:09 pm

I shared this already on the Pocket Chip boards because I made the game partly with the Pocket Chip in mind, but it runs a little better on a Ras-pi so I wanted to share it over here too. It runs perfectly smooth on my Pi 3. I haven't tried it on my Pi 2 or Pi 1 yet, but I would assume it chugs a little bit on the original Pi, since it does on my Chip which has similar specs.

I'm a fairly novice python programmer, but have made a few little games since the first Raspberry Pi came out. This is the first game that i exported with Pyinstaller to try and make it simpler to share.

if you download one of the executables, it should run on anything running Linux. Once you download the file you just have to make it executable (chmod a+x /home/pi/PocketChipPups, or wherever your file is located). The default resolution is 480 x 270 to fit the Pocket Chip screen. I also uploaded a version at double the resolution for larger displays.

The game is simple. You are a time traveling cowboy dude. It is fully controlled just with the mouse. Click to move, click to target enemies which you will shoot automatically when you aren't moving. If you find a pup walk over it to earn it's loyalty. It will then attack enemies for you and level up. There are multiple guns to find, and health pickups as well. I wanted to add a boss, but it isn't in there yet.

Aside from sharing this game, I'm anxious to talk python and Pyinstaller and programming/game making in general and methods of game distribution (not concerned about $$) and to see any other games y'all are making.

It is fairly unpolished, but if there is enough interest I can continue working on it. Currently working on a new game project that we plan to turn into a full arcade cabinet at nearby pub. Here are the links to Pocket Chip Pups. I hope some of you will enjoy it, and that it actually runs for you. Cheers!

PocketChip version(480 x 270):
http://en.file-upload.net/download-1227 ... pPups.html
960 x 540 resolution version:
http://en.file-upload.net/download-1227 ... cale2.html
Here's a screenshot from the game
PCP1.jpg (51.03 KiB) Viewed 1036 times
Last edited by Loofafool on Sun Feb 05, 2017 6:15 pm, edited 2 times in total.

Posts: 3777
Joined: Fri Jun 08, 2012 6:03 pm

Re: PC Pups(a Python game)

Wed Feb 01, 2017 7:46 pm

How about you share the game via GitHub.
Means others can clone/fork you code to make improvements or suggestions.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

Posts: 14
Joined: Thu Dec 08, 2016 4:33 pm

Re: PC Pups(a Python game)

Thu Feb 02, 2017 3:42 pm

Nice game. Do you think about creating card games? I think it's more simple. For instance I am a poker fan and like to hang out on casinoz.club . It's my way to relax.

Posts: 224
Joined: Fri Jan 04, 2013 10:52 pm

Re: PC Pups(a Python game)

Thu Feb 02, 2017 9:20 pm

My suggestion was also github. I makes projects easy to manage, download/install and track issues. I am not much for games but sometimes like to use a game to demo a programming technique. This python, opencv game is pretty simple but does demonstrate using motion tracking for a visual motion activated menuing and game play. Just a demo https://github.com/pageauc/hotspot-game
This uses a pi-camera and works best if the RPI is connected to hdmi TV with camera facing towards player
GitHub - https://github.com/pageauc
YouTube - https://www.youtube.com/user/pageaucp

Posts: 2
Joined: Sun Jan 29, 2017 10:08 pm

Re: PC Pups(a Python game)

Fri Feb 03, 2017 9:10 pm

Thanks for the suggestions. I edited the original post to add the github link. Apologies to anyone that dives in the code, it was not written with other eyes in mind. I'm aware it's sloppy and doing plenty of things wrong, but I'm definitely open and curious to hear any suggestions on major things I'm doing stupidly or inefficiently in the code. It's python 2. I hastily added a few comments in it to try and make it slightly more readable to the unfortunate reader.

Return to “Gaming”