meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
ssotc2009:group02 [2009/08/22 15:07] hevi |
ssotc2009:group02 [2009/08/23 18:29] eepi |
||
---|---|---|---|
Line 14: | Line 14: | ||
//Two player challenge each other in memory game. Game is in N810 screen where each players has 5 sound buttons to press. First player press 1 sound button. Second player responds to it and adds one sound more to memory sequence. First player the responds to 2 sounds and adds one sound more. Second responds to 3, first to 4, second to 5 and so on. The player who make first error in correct order in sound sequence loses and other player wins.// | //Two player challenge each other in memory game. Game is in N810 screen where each players has 5 sound buttons to press. First player press 1 sound button. Second player responds to it and adds one sound more to memory sequence. First player the responds to 2 sounds and adds one sound more. Second responds to 3, first to 4, second to 5 and so on. The player who make first error in correct order in sound sequence loses and other player wins.// | ||
- | {{: | + | {{: |
+ | |||
+ | {{: | ||
**+1 Memory Game** is a musical game software where two or more users compete with each other in recognizing what musical notes the opponent played in recent turn. Also this game will be developed with an intention to teach users the various basic musical notations like guitar chords or drum notes or piano chords. | **+1 Memory Game** is a musical game software where two or more users compete with each other in recognizing what musical notes the opponent played in recent turn. Also this game will be developed with an intention to teach users the various basic musical notations like guitar chords or drum notes or piano chords. | ||
Line 63: | Line 65: | ||
===== Technical problems and help ===== | ===== Technical problems and help ===== | ||
- | Scaling | + | If you need to scale image then heres a sample code! |
def getImageFromFile(self, | def getImageFromFile(self, | ||
- | #GUITAR IMAGES | + | |
- | | + | pixbuf = pixbuf.scale_simple(width, |
- | pixbuf = pixbuf.scale_simple(width, | + | fileImage = gtk.Image() |
- | fileImage = gtk.Image() | + | fileImage.set_from_pixbuf(pixbuf) |
- | fileImage.set_from_pixbuf(pixbuf) | + | return fileImage |
- | return fileImage | + | |
Code for enabling and disabling buttons | Code for enabling and disabling buttons | ||
- | def disableButtons(self): | + | disable |
- | self._gui.disableButtons(" | + | |
- | def enableButtons(self): | + | self.drumButton.set_sensitive(False) |
- | self._gui.disableButtons(" | + | enable |
+ | | ||
+ | self.drumButton.set_sensitive(True) | ||
Line 85: | Line 87: | ||
===== Result ===== | ===== Result ===== | ||
What did we end up with? Save codes here. | What did we end up with? Save codes here. | ||
+ | |||
+ | * {{: | ||
+ | |||
+ | * {{: | ||
Line 92: | Line 98: | ||
* https:// | * https:// | ||
- | * {{: | ||
- | * media.py inside the directory mediafile {{: | ||