Skip to content

Commit

Permalink
1.0-wheezy
Browse files Browse the repository at this point in the history
Deb version
  • Loading branch information
zvezdochiot authored and mykaralw committed Jan 18, 2018
1 parent 0bdc4df commit 02ebf0b
Show file tree
Hide file tree
Showing 118 changed files with 1,877 additions and 24 deletions.
17 changes: 0 additions & 17 deletions .project

This file was deleted.

7 changes: 0 additions & 7 deletions .pydevproject

This file was deleted.

40 changes: 40 additions & 0 deletions README.md
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
14 changes: 14 additions & 0 deletions deb/config/control
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.
3 changes: 3 additions & 0 deletions deb/data/usr/games/dominos
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
cd /usr/share/games/dominos/
python Dominos.py
9 changes: 9 additions & 0 deletions deb/data/usr/share/applications/dominos.desktop
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
76 changes: 76 additions & 0 deletions deb/data/usr/share/games/dominos/Dominos.py
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added deb/data/usr/share/games/dominos/images/0.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 deb/data/usr/share/games/dominos/images/1.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 deb/data/usr/share/games/dominos/images/2.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 deb/data/usr/share/games/dominos/images/3.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 deb/data/usr/share/games/dominos/images/4.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 deb/data/usr/share/games/dominos/images/5.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 deb/data/usr/share/games/dominos/images/6.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 deb/data/usr/share/games/dominos/images/6r.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 deb/data/usr/share/games/dominos/images/8.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 deb/data/usr/share/games/dominos/images/9.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.
Binary file added deb/data/usr/share/games/dominos/images/clear.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.
Binary file added deb/data/usr/share/games/dominos/images/icon.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.
Binary file added deb/data/usr/share/games/dominos/images/left.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.
Binary file added deb/data/usr/share/games/dominos/images/right.png
Loading

0 comments on commit 02ebf0b

Please sign in to comment.