Author Topic: Unani: Collectables (Python+Pygame Game) [School-Project]  (Read 1615 times)

0 Members and 1 Guest are viewing this topic.

Offline killer rin

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6314
  • Gender: Male
  • Unanian Innovation!
  • Respect: +37
    • killerrin
    • Killerrin
    • killer rin
    • killerrin
    • View Profile
    • Killerrin Studios
Unani: Collectables (Python+Pygame Game) [School-Project]
« on: June 21, 2011, 02:51:01 PM »
0
Unani: Collection Game

Hey guys for the past month I have been working on a basic game for my computer sciences class. Well as of yesterday I am completely finished the project. Aside from one or two things I could do. I'm happy with it, and personally I find it better without those 2 things.

Installing the Game
So here we go I have included 2 file formats, both everyone here should be able to open, but I created 2 different versions just in case, So just chose your file format of your choice and lets roll!


Inside of the zip, you will find everything needed to get it running. Considering I did my project in Python+Pygame you will have to install that. Its a 44mb download when combined together, so it shouldn't hurt to much. You can find the installations inside of a folder marked "Installation + README". so go into that.

First Install python-3.1.1
Second Install pygame-1.9.1.win32-py2.5

After that it should run. Go back a level into the main game folder and open up "Unani Collection". If it doesn't open, that means your computer is 1 of the few that will need Pyscripter. Go back into the Installation Folder and install "PyScripter-v2.4.1-Setup".
Once that's done, go back into the main folder and open up "Unani Collection" in Pyscripter and press "Shift+F9" OR click the little green arrow on the toolbar.


Playing the Game
To play the game, Double click on "Unani Collection" in the main game folder or right click "Unani Collection" and open it in Pyscripter then press Shift+F9.
Code: [Select]
Player 1 Movement: W,S,A,D
Player 2 Movement: Up,Down,Left,Right

Nyan Mode: Home
Enter/Exit Siezure Mode: Backspace
Add/Remove Second Player: Insert  # Works in Normal Game, and in Nyan Mode

NOTE: Activating Nyan Mode will turn on Seizure more. To turn it off press BACKSPACE

Paint-Mode: F7
Increase Cursor Size: Keypad "+" Sign
Decrease Cursor Size: Keypad "-" Sign
Draw White: Left Mouse Button
Draw Black: Right Mouse Button
Draw Colors: Middle Mouse Button #Look below for color setting
Colors:
Blue=Keypad 1
Red=Keypad 2
Green= Keypad 3
Yellow=Keypad 4
Pink=Keypad 5
RandomColor = Keypad 9
Exit Paint Mode: F7 #Note when you Exit paint it saves a picture of the screen inside of the Game Folder

Close Game: Delete, or X in top right corner

Making Modifications
If you want you edit code, your going to need Pyscripter (or another editing form.. I prefer Pyscripter) To install Pyscripter, just look above for instructions.

Scroll Down a little to my section that I called "Define Variables, Consts, Lists, Ect Here"
if you want to edit the game, all of it is done in here.
Code: [Select]
Cursor_Size = The size of the default cursor before changing it in paintmode
SpaceShip_Speed = Speed of the player in the default game
Nyan_Speed = Speed of the Nyan Cat in Nyan Mode

unani_collectable = the number of wave 1 collectables that come up
red_unani_collectable = the number of wave 2 collectables that come up
blue_unani_collectable = the number of wave 3 collectables that come up
yellow_unani_collectable =  the number of wave 4 collectables that come up
unani_rand_collectable =  the number of wave 5 collectables that come up

red_multiplyer = multiplyer of the red collectables on wave 2
blue_multiplyer = multiplyer of the blue collectables on wave 3
yellow_multiplyer = multiplyer of the yellow collectables on wave 4
rand_multiplyer = multiplyer of the rand collectables on wave 5


Spoiler for DEFAULT CODE::
if you screw it up, or want it back to normal copy these lines below OVER the old list.
Code: [Select]
Score = 0 # Used to Keep Track of the Score
Timer = 180 # 3 Minutes Used for the Timer
NyanScore = 0 # Score of Nyan
Cursor_X, Cursor_Y = 0, 0 # Cursor Parameters
Cursor_Size = 2 # Cursor Size for Paint-Egg
SpaceShip_Speed = 15 # Space Ship Speed
Nyan_Speed = 10 # Nyan-Egg Speed
unani_collectable = 10 # Part 1 Collectables
red_unani_collectable = 25 # Part 2 Collectables
blue_unani_collectable = 35 # Part 3 Collectables
yellow_unani_collectable = 75 # Part 4 Collectabes
unani_rand_collectable = 2 # Part 4 Collectables
bg_pos= 0,0 # Background Position
red_multiplyer = 2
blue_multiplyer = 3
yellow_multiplyer = 4
rand_multiplyer = 2

If you somehow manage to screw up the entire project, I copied the current code into a text document called "Default Code"

« Last Edit: June 21, 2011, 03:30:42 PM by killer rin »

Offline Tobbs

  • Hero Member
  • *****
  • Posts: 8275
  • Gender: Male
  • The Space Pope
  • Respect: +82
    • View Profile
Re: Unani: Collectables (Python+Pygame Game) [School-Project]
« Reply #1 on: June 21, 2011, 03:20:37 PM »
0
What kind of game is it?

Keep calm and move along.

Offline killer rin

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6314
  • Gender: Male
  • Unanian Innovation!
  • Respect: +37
    • killerrin
    • Killerrin
    • killer rin
    • killerrin
    • View Profile
    • Killerrin Studios
Re: Unani: Collectables (Python+Pygame Game) [School-Project]
« Reply #2 on: June 21, 2011, 03:27:21 PM »
0
Its a collection game.  Pick up the collectables as the song goes on in the background... Essentially its your normal flashgame... except inside of python+Pygame instead of flash


EDIT: ADDED a Photo to the OP
« Last Edit: June 21, 2011, 03:34:19 PM by killer rin »

Offline Tobbs

  • Hero Member
  • *****
  • Posts: 8275
  • Gender: Male
  • The Space Pope
  • Respect: +82
    • View Profile
Re: Unani: Collectables (Python+Pygame Game) [School-Project]
« Reply #3 on: June 21, 2011, 05:48:28 PM »
0
Its a collection game.  Pick up the collectables as the song goes on in the background... Essentially its your normal flashgame... except inside of python+Pygame instead of flash


EDIT: ADDED a Photo to the OP

Hm. Think I'll pass. Never have been really fond of collection games.

Keep calm and move along.

Offline killer rin

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6314
  • Gender: Male
  • Unanian Innovation!
  • Respect: +37
    • killerrin
    • Killerrin
    • killer rin
    • killerrin
    • View Profile
    • Killerrin Studios
Re: Unani: Collectables (Python+Pygame Game) [School-Project]
« Reply #4 on: July 18, 2011, 09:42:05 PM »
0
UPDATE
I have updated the game and removed some of the bugs in it, As well as updated the Readme for the installation to make it easier to understand