forked from LibreGamesArchive/dominos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
118 changed files
with
1,877 additions
and
24 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# dominos | ||
|
||
Dominos - board game of pygame. | ||
|
||
Automatically exported from code.google.com/p/dominos | ||
|
||
--- | ||
|
||
## Build deb | ||
|
||
Install bash-deb-build: | ||
|
||
``` | ||
$ wget https://github.com/zvezdochiot/bash-deb-build/releases/download/0.3/bash-deb-build_0.3_all.deb | ||
$ sudo dpkg -i bash-deb-build_0.3_all.deb | ||
``` | ||
|
||
Get source Dominos: | ||
|
||
``` | ||
$ git clone https://github.com/zvezdochiot/pygame-dominos | ||
``` | ||
|
||
Make deb package: | ||
|
||
``` | ||
$ cd pygame-dominos | ||
$ cd deb | ||
$ sudo bash-deb-build lzma | ||
``` | ||
|
||
Install deb package: | ||
|
||
``` | ||
$ sudo dpkg -i *.deb | ||
``` | ||
|
||
2018 | ||
--- | ||
zvezdochiot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Package: dominos | ||
Source: dominos | ||
Version: 1.0-wheezy | ||
Architecture: all | ||
Maintainer: Libre Games Archive <[email protected]> | ||
Section: games | ||
Priority: optional | ||
Depends: python (>= 2.6.6-7~), python (<< 2.8), python-pygame | ||
Installed-Size: 697 | ||
Homepage: https://github.com/LibreGamesArchive/dominos | ||
Description: Dominos is a puzzle game | ||
Dominos is a puzzle game based on the Sino-European domino set, which consists of 28 dominoes. | ||
For more information about Dominos and Game rules please read the game documentation. | ||
Or you can surf the Wikipedia page about Dominos. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
cd /usr/share/games/dominos/ | ||
python Dominos.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Desktop Entry] | ||
Encoding=UTF-8 | ||
Type=Application | ||
Name=Dominos | ||
Comment=Dominos is a puzzle game | ||
Icon=dominos.png | ||
Exec=dominos | ||
Categories=Game;BoardGame; | ||
Terminal=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
#!/usr/bin/env python | ||
|
||
import pygame | ||
from pygame.locals import * | ||
from sys import exit | ||
from main import * | ||
from os import environ,path | ||
|
||
|
||
class splashWindow(object): | ||
|
||
def __init__(self): | ||
""" | ||
__init__(self) | ||
this function will initiate the startwindow | ||
""" | ||
environ['SDL_VIDEO_CENTERED']='1' | ||
pygame.init() | ||
seticon('images/icon.png') | ||
start_screen = pygame.display.set_mode((498,501),NOFRAME,32) | ||
init_background = pygame.image.load("images/init_bg.png").convert() | ||
pygame.display.set_caption("Dominoes!") | ||
onQuite_clicked_img = pygame.image.load("images/onclicked1.png") | ||
onenjoy_clicked_img = pygame.image.load("images/onclicked2.png") | ||
|
||
bg_sound = path.join('sounds','bg.ogg') | ||
soundtrack = pygame.mixer.Sound(bg_sound) | ||
soundtrack.set_volume(0.9) | ||
soundtrack.play(-1) | ||
|
||
enjoy_sound = path.join('sounds','enjoy.ogg') | ||
enjoyTick = pygame.mixer.Sound(enjoy_sound) | ||
enjoyTick.set_volume(0.9) | ||
|
||
quit_sound = path.join('sounds','quit.ogg') | ||
quitTick = pygame.mixer.Sound(quit_sound) | ||
quitTick.set_volume(0.9) | ||
|
||
while True: | ||
for event in pygame.event.get(): | ||
if event.type == QUIT: | ||
exit() | ||
|
||
if event.type == MOUSEBUTTONDOWN: | ||
x,y = pygame.mouse.get_pos() | ||
if x >= 172 and x <= 320 and y >= 435 and y<=480: | ||
start_screen.blit(onenjoy_clicked_img,(190,438)) | ||
enjoyTick.play(0) | ||
pygame.display.update() | ||
pygame.time.wait(500) | ||
main() | ||
|
||
if x >= 324 and x <= 423 and y >= 327 and y<=369: | ||
start_screen.blit(onQuite_clicked_img,(317,322)) | ||
quitTick.play(1) | ||
pygame.display.update() | ||
exit() | ||
|
||
if event.type == KEYDOWN: | ||
if event.key == K_KP_ENTER or event.key == K_SPACE: | ||
enjoyTick.play(0) | ||
main() | ||
|
||
if event.key == K_ESCAPE: | ||
quitTick.play(0) | ||
exit() | ||
|
||
|
||
start_screen.blit(init_background,(0,0)) | ||
pygame.display.update() | ||
|
||
if __name__ == '__main__': | ||
splashWindow() | ||
|
||
|
||
|
File renamed without changes.
0
Dominos/src/Tile.py → deb/data/usr/share/games/dominos/Tile.py
100755 → 100644
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
BIN
+6.26 KB
deb/data/usr/share/games/dominos/images/computer_tiles_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.