Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
04f0542
Creting project proposal document
wtrelease Mar 4, 2018
62b1e12
Update proposal.md
wtrelease Mar 4, 2018
aeaf532
Finalized Proposal
CamilleGirard Mar 4, 2018
058197e
Merge pull request #1 from CamilleGirard/patch-1
wtrelease Mar 4, 2018
00980c9
Update proposal.md
wtrelease Mar 4, 2018
0d102ba
Created Test pygame project of snake
wtrelease Mar 6, 2018
dbd7700
Removed printing of event type
wtrelease Mar 6, 2018
6165663
Tutorial 2 Started'
CamilleGirard Mar 6, 2018
3e343be
Merge branch 'master' of https://github.com/wtrelease/InteractiveProg…
CamilleGirard Mar 6, 2018
024f417
Created runRun directory and file as foundation for project, began po…
wtrelease Mar 6, 2018
baab264
Merge remote-tracking branch 'refs/remotes/origin/master'
wtrelease Mar 6, 2018
53c3198
Simple Jumping Character and Miniman Surfaces
CamilleGirard Mar 8, 2018
e554eff
Add functional ground class and modify player class to run on it
wtrelease Mar 9, 2018
5e2db06
Begin movement side to side
CamilleGirard Mar 9, 2018
06df332
Start coin class - still having errors with movement
CamilleGirard Mar 13, 2018
81a0210
Add timing, improve ground detection, establish data structure for Items
wtrelease Mar 14, 2018
63f5989
Added a coin, beginning work on score counter
CamilleGirard Mar 15, 2018
40ddf3b
coin
CamilleGirard Mar 15, 2018
d5b5301
Add rock class and rock group, build game over event, coin generation
wtrelease Mar 15, 2018
ef05d4b
Make Ground() Advance method update all rocks
wtrelease Mar 15, 2018
077b5c4
added birds and rocks, made the player have health and die if falls, …
CamilleGirard Mar 15, 2018
cceb76e
make bird go faster than the coins
CamilleGirard Mar 15, 2018
64a550d
Bird moving up and down and resize some parts
CamilleGirard Mar 15, 2018
9a22ff3
Add varying rock frequency, varying bird speed, crop player images
wtrelease Mar 15, 2018
e96a9aa
Update README.md
CamilleGirard Mar 16, 2018
e41d60e
Finalized game runRun
CamilleGirard Mar 16, 2018
d4ff9fe
Merge branch 'master' of https://github.com/wtrelease/InteractiveProg…
CamilleGirard Mar 16, 2018
27c07b6
Final Game Write Up
CamilleGirard Mar 16, 2018
ecfd896
Removed Test games and moved Report up a level
wtrelease Mar 16, 2018
3a1134a
Update README.md
wtrelease Mar 16, 2018
abbdd72
Added Docstrings
wtrelease Mar 16, 2018
a1efa41
Merge branch 'master' of github.com:wtrelease/InteractiveProgramming
wtrelease Mar 16, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,32 @@
# InteractiveProgramming
# runRun
This is the base repo for the interactive programming project for Software Design, Spring 2018 at Olin College.

## Setup

Install pygame:

```
apt-get build-dep python-pygame
apt-get install mercurial python-dev python
pip install pygame
```

Run Game:

```
cd runRun/
python runRun.py (linux)
pythonw runRun.py (OSX)
```

Quit Game:

```
press q
```

Play Again:

```
press p
```
12 changes: 12 additions & 0 deletions proposal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Project Proposal

1. A game in the style of sonic, but simplified to scale to the two weeks. We want to make an interactive game for users where you are running through some world and there are obstacles and 'coins'. We will explore topics of visual animation, the making of an updated display and making the interactive game with keys. The MVP would be to have one static obstacle, one static 'coin', the screen moving. Stretch goals would be to have multiple moving obstacles and coins, changing speeds maybe and moving within the actual screen.

2. Walker would like to get a good understanding of py-game and to understand visual interaction and mixing it with physics models and inputs. Camille would like to gain knowledge on py-game and how to create visuals for the game.

3. We are planning to use py-game, we don't know other than that yet. We want to use something that we can get help with and since we both do not know anything it seems like a good place to start.

4. We would like to accomplish having a world and a person, we would like to try and get the world moving as well and be thinking about having the obstacle. We will have read and will build an understanding about py-game before this point and will have a better layout of the game and project - have the layout of the classes and some docstrings in there as well. We will be doing a mix of pair programming and independent work for the division of work. Make sure we have all the scafolding done.

5. Scoping the project, we both don't know what we are getting into so we don't know if this is realistic for us yet, but plan to make adjustments as needed as we go.

Binary file added runRun.pdf
Binary file not shown.
Binary file added runRun/data/images/bird.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added runRun/data/images/boulder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added runRun/data/images/coin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added runRun/data/images/jumpingman.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added runRun/data/images/runningman.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added runRun/data/images/snake.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions runRun/helpers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#! /usr/bin/env python

import os, sys
import pygame
from pygame.locals import *

def load_image(name, colorkey=None):
fullname = os.path.join('data', 'images')
fullname = os.path.join(fullname, name)
try:
image = pygame.image.load(fullname)
except(pygame.error):
print('Cannot load image:', fullname)
raise(SystemExit)
image = image.convert()
if colorkey is not None:
if colorkey is -1:
colorkey = image.get_at((0,0))
image.set_colorkey(colorkey, RLEACCEL)
return image, image.get_rect()
Loading