diff --git a/einstein.res b/cpp-source/einstein.res similarity index 100% rename from einstein.res rename to cpp-source/einstein.res diff --git a/einsteingame/main.py b/einsteingame/main.py index 99bcb3f..0244401 100644 --- a/einsteingame/main.py +++ b/einsteingame/main.py @@ -92,5 +92,3 @@ def main(script, *args): initAudio() # menu() # getStorage().flush() - - resources.dump() diff --git a/einsteingame/messages.py b/einsteingame/messages.py index 016deae..d88e065 100644 --- a/einsteingame/messages.py +++ b/einsteingame/messages.py @@ -60,9 +60,6 @@ class Messages(object): "message": Formatter(data, msgOffset), } - print("{}: {}".format(name, self.__messages[name]['message'].getMessage())) - offset += sz + 4 - msg = Messages() diff --git a/einsteingame/resources.py b/einsteingame/resources.py index feee40b..f3ef771 100644 --- a/einsteingame/resources.py +++ b/einsteingame/resources.py @@ -216,10 +216,4 @@ class ResourcesCollection: for resource in self.__groups[group]: func(resource) - def dump(self): - for name, resource in self.__resources.items(): - for variant in resource.variants: - with open('resources/' + name, 'wb') as f: - f.write(variant.getData()) - resources = None diff --git a/po/einstein.pot b/po/einstein.pot new file mode 100644 index 0000000..038c2d6 --- /dev/null +++ b/po/einstein.pot @@ -0,0 +1,117 @@ +msgid "rulesText" +msgstr ""\n\nThe game goal is to open all cards in square of 6x6 cards. When\nevery card is open, field looks like this:\n\n$opensquare.bmp$\n\nEvery row of square contains cards of one type only. For example,\nfirst row contains arabic digits, second - letters, third - rome digits,\nfouths - dices, fifth - geometric figures, sixs - mathematic symbols.\n\nUse logic and open cards with method of exclusion. If card doesn't\nopened, cell contains every possible cards. For example, \n\n$closed.bmp$\n\nmeans that this cell may contain every rome digit with exception of \nIII (because card with III image is absent). To open card click on\nsmall image with left mouse button. To exclude card click with right\nmouse button.\n\nUse tips to solve this puzzle. There is two types of tips:\nhorizontal and vertical. Vertical tips located at screen bottom.\nFor example, vertical tip\n\n$verthint.bmp$\n\nmeans that letter 'B' and '+' sign located in the same column.\n\nHorizontal tips located at the right side of the puzzle square.\nThere is few type of horizontal tips. First type of horizontal\ntip says that two cards located at neighbour columns, but it is\nunknown, which one is at the right side and thich is at the left:\n\n$hornearhint.bmp$\n\nSecond tip type means that one cards is at the left of another.\nIt says nothing about distance between that cards. They may be\nneighbour columns or at the opposite sides of puzzle field:\n\n$horposhint.bmp$\n\nThe last type of tip means that one card is located between\ntwo another cards:\n\n$horbetweenhint.bmp$\n\nAll three cards must be located in neighbour columns, central\ncard is always between other two, but it is unknown, which card is located\nat the right side and which at the left.\n\nIf you no longer need some tip, remove it by right mouse button click.\nYou can always see removed tips by pressing 'Switch' button.\n\n\n"" + +msgid "about" +msgstr "'About'" + +msgid "anonymous" +msgstr "'Anonymous'" + +msgid "cancel" +msgstr "'Cancel'" + +msgid "close" +msgstr "'Close'" + +msgid "copyright" +msgstr "'Copyright (c) 2003-2005 Flowix Games'" + +msgid "einsteinFlowix" +msgstr "'Einstein puzzle by Flowix Games'" + +msgid "einsteinPuzzle" +msgstr "'Einstein Puzzle'" + +msgid "empty" +msgstr "'-- Empty Slot --'" + +msgid "enableSound" +msgstr "'Enable sound'" + +msgid "enterGame" +msgstr "'Enter game name:'" + +msgid "enterName" +msgstr "'Enter your name:'" + +msgid "exit" +msgstr "'Exit'" + +msgid "expired" +msgstr "'This beta is expired. Please download update from http://games.flowix.com'" + +msgid "fullscreen" +msgstr "'Run in fullscreen mode'" + +msgid "help" +msgstr "'Help'" + +msgid "iddqd" +msgstr "'IT IS NOT DOOM, LUKE!'" + +msgid "loadGame" +msgstr "'Load Game'" + +msgid "loading" +msgstr "'Loading.... Please wait....'" + +msgid "loose" +msgstr "'YOU HAVE LOST'" + +msgid "newGame" +msgstr "'Start New Game'" + +msgid "next" +msgstr "'Next'" + +msgid "niceCursor" +msgstr "'Nice cursor'" + +msgid "ok" +msgstr "'OK'" + +msgid "options" +msgstr "'Options'" + +msgid "pause" +msgstr "'Pause'" + +msgid "paused" +msgstr "'GAME PAUSED'" + +msgid "prev" +msgstr "'Prev'" + +msgid "rules" +msgstr "'Game Rules'" + +msgid "save" +msgstr "'Save'" + +msgid "saveError" +msgstr "'Error saving game'" + +msgid "saveGame" +msgstr "'Save Game'" + +msgid "startNew" +msgstr "'New game'" + +msgid "switch" +msgstr "'Switch'" + +msgid "topScores" +msgstr "'Hall Of Fame'" + +msgid "tryAgain" +msgstr "'Try again'" + +msgid "version" +msgstr "'version 2.0'" + +msgid "volume" +msgstr "'Volume:'" + +msgid "won" +msgstr "'CONGRATULATIONS, YOU HAVE WON!'" + diff --git a/resources/A1.png b/resources/A1.png new file mode 100644 index 0000000..8d3de20 Binary files /dev/null and b/resources/A1.png differ diff --git a/resources/A2.png b/resources/A2.png new file mode 100644 index 0000000..cd1c65a Binary files /dev/null and b/resources/A2.png differ diff --git a/resources/A3.png b/resources/A3.png new file mode 100644 index 0000000..5465851 Binary files /dev/null and b/resources/A3.png differ diff --git a/resources/A4.png b/resources/A4.png new file mode 100644 index 0000000..7fd8d25 Binary files /dev/null and b/resources/A4.png differ diff --git a/resources/A5.png b/resources/A5.png new file mode 100644 index 0000000..944d048 Binary files /dev/null and b/resources/A5.png differ diff --git a/resources/A6.png b/resources/A6.png new file mode 100644 index 0000000..3d1cb03 Binary files /dev/null and b/resources/A6.png differ diff --git a/resources/B1.png b/resources/B1.png new file mode 100644 index 0000000..bcb7d0a Binary files /dev/null and b/resources/B1.png differ diff --git a/resources/B2.png b/resources/B2.png new file mode 100644 index 0000000..8eb346f Binary files /dev/null and b/resources/B2.png differ diff --git a/resources/B3.png b/resources/B3.png new file mode 100644 index 0000000..9d8523c Binary files /dev/null and b/resources/B3.png differ diff --git a/resources/B4.png b/resources/B4.png new file mode 100644 index 0000000..ea17c17 Binary files /dev/null and b/resources/B4.png differ diff --git a/resources/B5.png b/resources/B5.png new file mode 100644 index 0000000..3ac4e1e Binary files /dev/null and b/resources/B5.png differ diff --git a/resources/B6.png b/resources/B6.png new file mode 100644 index 0000000..909fdf7 Binary files /dev/null and b/resources/B6.png differ diff --git a/resources/C1.png b/resources/C1.png new file mode 100644 index 0000000..9f82aa8 Binary files /dev/null and b/resources/C1.png differ diff --git a/resources/C2.png b/resources/C2.png new file mode 100644 index 0000000..d0acce5 Binary files /dev/null and b/resources/C2.png differ diff --git a/resources/C3.png b/resources/C3.png new file mode 100644 index 0000000..b5de60a Binary files /dev/null and b/resources/C3.png differ diff --git a/resources/C4.png b/resources/C4.png new file mode 100644 index 0000000..fcf10cf Binary files /dev/null and b/resources/C4.png differ diff --git a/resources/C5.png b/resources/C5.png new file mode 100644 index 0000000..b24ef91 Binary files /dev/null and b/resources/C5.png differ diff --git a/resources/C6.png b/resources/C6.png new file mode 100644 index 0000000..3be9332 Binary files /dev/null and b/resources/C6.png differ diff --git a/resources/D1.png b/resources/D1.png new file mode 100644 index 0000000..224c8b4 Binary files /dev/null and b/resources/D1.png differ diff --git a/resources/D2.png b/resources/D2.png new file mode 100644 index 0000000..8de693e Binary files /dev/null and b/resources/D2.png differ diff --git a/resources/D3.png b/resources/D3.png new file mode 100644 index 0000000..7f002c9 Binary files /dev/null and b/resources/D3.png differ diff --git a/resources/D4.png b/resources/D4.png new file mode 100644 index 0000000..6167a66 Binary files /dev/null and b/resources/D4.png differ diff --git a/resources/D5.png b/resources/D5.png new file mode 100644 index 0000000..2b4f007 Binary files /dev/null and b/resources/D5.png differ diff --git a/resources/D6.png b/resources/D6.png new file mode 100644 index 0000000..1fa5733 Binary files /dev/null and b/resources/D6.png differ diff --git a/resources/E1.png b/resources/E1.png new file mode 100644 index 0000000..3989e09 Binary files /dev/null and b/resources/E1.png differ diff --git a/resources/E2.png b/resources/E2.png new file mode 100644 index 0000000..ccc47c0 Binary files /dev/null and b/resources/E2.png differ diff --git a/resources/E3.png b/resources/E3.png new file mode 100644 index 0000000..fb59aee Binary files /dev/null and b/resources/E3.png differ diff --git a/resources/E4.png b/resources/E4.png new file mode 100644 index 0000000..992c5d7 Binary files /dev/null and b/resources/E4.png differ diff --git a/resources/E5.png b/resources/E5.png new file mode 100644 index 0000000..d78e3b0 Binary files /dev/null and b/resources/E5.png differ diff --git a/resources/E6.png b/resources/E6.png new file mode 100644 index 0000000..c6d79f4 Binary files /dev/null and b/resources/E6.png differ diff --git a/resources/F1.png b/resources/F1.png new file mode 100644 index 0000000..b322c30 Binary files /dev/null and b/resources/F1.png differ diff --git a/resources/F2.png b/resources/F2.png new file mode 100644 index 0000000..a4d12bf Binary files /dev/null and b/resources/F2.png differ diff --git a/resources/F3.png b/resources/F3.png new file mode 100644 index 0000000..e4fa176 Binary files /dev/null and b/resources/F3.png differ diff --git a/resources/F4.png b/resources/F4.png new file mode 100644 index 0000000..dadc74c Binary files /dev/null and b/resources/F4.png differ diff --git a/resources/F5.png b/resources/F5.png new file mode 100644 index 0000000..3038186 Binary files /dev/null and b/resources/F5.png differ diff --git a/resources/F6.png b/resources/F6.png new file mode 100644 index 0000000..725dee5 Binary files /dev/null and b/resources/F6.png differ diff --git a/resources/a1.png b/resources/a1.png new file mode 100644 index 0000000..752609b Binary files /dev/null and b/resources/a1.png differ diff --git a/resources/a2.png b/resources/a2.png new file mode 100644 index 0000000..8b93436 Binary files /dev/null and b/resources/a2.png differ diff --git a/resources/a3.png b/resources/a3.png new file mode 100644 index 0000000..f755e5e Binary files /dev/null and b/resources/a3.png differ diff --git a/resources/a4.png b/resources/a4.png new file mode 100644 index 0000000..f971dec Binary files /dev/null and b/resources/a4.png differ diff --git a/resources/a5.png b/resources/a5.png new file mode 100644 index 0000000..65ed1f4 Binary files /dev/null and b/resources/a5.png differ diff --git a/resources/a6.png b/resources/a6.png new file mode 100644 index 0000000..ca8ff4e Binary files /dev/null and b/resources/a6.png differ diff --git a/resources/applause.ogg b/resources/applause.ogg new file mode 100644 index 0000000..30e1709 Binary files /dev/null and b/resources/applause.ogg differ diff --git a/resources/b1.png b/resources/b1.png new file mode 100644 index 0000000..ef10221 Binary files /dev/null and b/resources/b1.png differ diff --git a/resources/b2.png b/resources/b2.png new file mode 100644 index 0000000..f55bf11 Binary files /dev/null and b/resources/b2.png differ diff --git a/resources/b3.png b/resources/b3.png new file mode 100644 index 0000000..2704366 Binary files /dev/null and b/resources/b3.png differ diff --git a/resources/b4.png b/resources/b4.png new file mode 100644 index 0000000..6f834e5 Binary files /dev/null and b/resources/b4.png differ diff --git a/resources/b5.png b/resources/b5.png new file mode 100644 index 0000000..e57d2ca Binary files /dev/null and b/resources/b5.png differ diff --git a/resources/b6.png b/resources/b6.png new file mode 100644 index 0000000..f3abcf0 Binary files /dev/null and b/resources/b6.png differ diff --git a/resources/betwarr.png b/resources/betwarr.png new file mode 100644 index 0000000..85c859f Binary files /dev/null and b/resources/betwarr.png differ diff --git a/resources/blue.png b/resources/blue.png new file mode 100644 index 0000000..47a80ce Binary files /dev/null and b/resources/blue.png differ diff --git a/resources/btn.png b/resources/btn.png new file mode 100644 index 0000000..5a645eb Binary files /dev/null and b/resources/btn.png differ diff --git a/resources/c1.png b/resources/c1.png new file mode 100644 index 0000000..f6c9560 Binary files /dev/null and b/resources/c1.png differ diff --git a/resources/c2.png b/resources/c2.png new file mode 100644 index 0000000..96972ff Binary files /dev/null and b/resources/c2.png differ diff --git a/resources/c3.png b/resources/c3.png new file mode 100644 index 0000000..4d74446 Binary files /dev/null and b/resources/c3.png differ diff --git a/resources/c4.png b/resources/c4.png new file mode 100644 index 0000000..2bd6d6b Binary files /dev/null and b/resources/c4.png differ diff --git a/resources/c5.png b/resources/c5.png new file mode 100644 index 0000000..526c7f1 Binary files /dev/null and b/resources/c5.png differ diff --git a/resources/c6.png b/resources/c6.png new file mode 100644 index 0000000..9b0aca3 Binary files /dev/null and b/resources/c6.png differ diff --git a/resources/click.ogg b/resources/click.ogg new file mode 100644 index 0000000..affa7f3 Binary files /dev/null and b/resources/click.ogg differ diff --git a/resources/closed.png b/resources/closed.png new file mode 100644 index 0000000..faa8884 Binary files /dev/null and b/resources/closed.png differ diff --git a/resources/cursor.png b/resources/cursor.png new file mode 100644 index 0000000..904e228 Binary files /dev/null and b/resources/cursor.png differ diff --git a/resources/d1.png b/resources/d1.png new file mode 100644 index 0000000..38e900c Binary files /dev/null and b/resources/d1.png differ diff --git a/resources/d2.png b/resources/d2.png new file mode 100644 index 0000000..96b1ef1 Binary files /dev/null and b/resources/d2.png differ diff --git a/resources/d3.png b/resources/d3.png new file mode 100644 index 0000000..2bca443 Binary files /dev/null and b/resources/d3.png differ diff --git a/resources/d4.png b/resources/d4.png new file mode 100644 index 0000000..47ec799 Binary files /dev/null and b/resources/d4.png differ diff --git a/resources/d5.png b/resources/d5.png new file mode 100644 index 0000000..995b7ed Binary files /dev/null and b/resources/d5.png differ diff --git a/resources/d6.png b/resources/d6.png new file mode 100644 index 0000000..f281194 Binary files /dev/null and b/resources/d6.png differ diff --git a/resources/darkpattern.png b/resources/darkpattern.png new file mode 100644 index 0000000..b8a748a Binary files /dev/null and b/resources/darkpattern.png differ diff --git a/resources/e1.png b/resources/e1.png new file mode 100644 index 0000000..f52cc67 Binary files /dev/null and b/resources/e1.png differ diff --git a/resources/e2.png b/resources/e2.png new file mode 100644 index 0000000..8f268ea Binary files /dev/null and b/resources/e2.png differ diff --git a/resources/e3.png b/resources/e3.png new file mode 100644 index 0000000..67689cf Binary files /dev/null and b/resources/e3.png differ diff --git a/resources/e4.png b/resources/e4.png new file mode 100644 index 0000000..9c83b59 Binary files /dev/null and b/resources/e4.png differ diff --git a/resources/e5.png b/resources/e5.png new file mode 100644 index 0000000..4955c59 Binary files /dev/null and b/resources/e5.png differ diff --git a/resources/e6.png b/resources/e6.png new file mode 100644 index 0000000..f4adaa9 Binary files /dev/null and b/resources/e6.png differ diff --git a/resources/f1.png b/resources/f1.png new file mode 100644 index 0000000..c25517f Binary files /dev/null and b/resources/f1.png differ diff --git a/resources/f2.png b/resources/f2.png new file mode 100644 index 0000000..1c13df5 Binary files /dev/null and b/resources/f2.png differ diff --git a/resources/f3.png b/resources/f3.png new file mode 100644 index 0000000..890a250 Binary files /dev/null and b/resources/f3.png differ diff --git a/resources/f4.png b/resources/f4.png new file mode 100644 index 0000000..2ac3b2b Binary files /dev/null and b/resources/f4.png differ diff --git a/resources/f5.png b/resources/f5.png new file mode 100644 index 0000000..526271d Binary files /dev/null and b/resources/f5.png differ diff --git a/resources/f6.png b/resources/f6.png new file mode 100644 index 0000000..8e37927 Binary files /dev/null and b/resources/f6.png differ diff --git a/resources/glasbk2.ogg b/resources/glasbk2.ogg new file mode 100644 index 0000000..78ec6a1 Binary files /dev/null and b/resources/glasbk2.ogg differ diff --git a/resources/greenpattern.png b/resources/greenpattern.png new file mode 100644 index 0000000..616f9eb Binary files /dev/null and b/resources/greenpattern.png differ diff --git a/resources/hint-near.png b/resources/hint-near.png new file mode 100644 index 0000000..b7ea147 Binary files /dev/null and b/resources/hint-near.png differ diff --git a/resources/hint-side.png b/resources/hint-side.png new file mode 100644 index 0000000..da02649 Binary files /dev/null and b/resources/hint-side.png differ diff --git a/resources/hint-tile.png b/resources/hint-tile.png new file mode 100644 index 0000000..906d524 Binary files /dev/null and b/resources/hint-tile.png differ diff --git a/resources/horbetweenhint.png b/resources/horbetweenhint.png new file mode 100644 index 0000000..5cf56ae Binary files /dev/null and b/resources/horbetweenhint.png differ diff --git a/resources/hornearhint.png b/resources/hornearhint.png new file mode 100644 index 0000000..8e4974d Binary files /dev/null and b/resources/hornearhint.png differ diff --git a/resources/horposhint.png b/resources/horposhint.png new file mode 100644 index 0000000..7c23159 Binary files /dev/null and b/resources/horposhint.png differ diff --git a/resources/laser.ogg b/resources/laser.ogg new file mode 100644 index 0000000..ef9fdf7 Binary files /dev/null and b/resources/laser.ogg differ diff --git a/resources/laudcn2.ttf b/resources/laudcn2.ttf new file mode 100644 index 0000000..ee8c8ff Binary files /dev/null and b/resources/laudcn2.ttf differ diff --git a/resources/luximb.ttf b/resources/luximb.ttf new file mode 100644 index 0000000..7473e1f Binary files /dev/null and b/resources/luximb.ttf differ diff --git a/resources/marble1.png b/resources/marble1.png new file mode 100644 index 0000000..2211664 Binary files /dev/null and b/resources/marble1.png differ diff --git a/resources/nova.png b/resources/nova.png new file mode 100644 index 0000000..7cebedb Binary files /dev/null and b/resources/nova.png differ diff --git a/resources/nova.ttf b/resources/nova.ttf new file mode 100644 index 0000000..186e5e7 Binary files /dev/null and b/resources/nova.ttf differ diff --git a/resources/opensquare.png b/resources/opensquare.png new file mode 100644 index 0000000..fda2a68 Binary files /dev/null and b/resources/opensquare.png differ diff --git a/resources/rain.png b/resources/rain.png new file mode 100644 index 0000000..9099efc Binary files /dev/null and b/resources/rain.png differ diff --git a/resources/redpattern.png b/resources/redpattern.png new file mode 100644 index 0000000..436e31c Binary files /dev/null and b/resources/redpattern.png differ diff --git a/resources/tile.png b/resources/tile.png new file mode 100644 index 0000000..d66cf0d Binary files /dev/null and b/resources/tile.png differ diff --git a/resources/title.png b/resources/title.png new file mode 100644 index 0000000..a17089e Binary files /dev/null and b/resources/title.png differ diff --git a/resources/verthint.png b/resources/verthint.png new file mode 100644 index 0000000..05939e2 Binary files /dev/null and b/resources/verthint.png differ diff --git a/resources/whizz.ogg b/resources/whizz.ogg new file mode 100644 index 0000000..d565e60 Binary files /dev/null and b/resources/whizz.ogg differ