PyRobbo 0.4.0__tar.gz → 0.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. pyrobbo-0.5.0/.github/workflows/main.yml +31 -0
  2. pyrobbo-0.5.0/.gitignore +36 -0
  3. pyrobbo-0.5.0/.idea/encodings.xml +4 -0
  4. pyrobbo-0.5.0/.idea/fileColors.xml +7 -0
  5. pyrobbo-0.5.0/.idea/fileTemplates/internal/Python Script.py +12 -0
  6. pyrobbo-0.5.0/.idea/inspectionProfiles/Project_Default.xml +16 -0
  7. pyrobbo-0.5.0/.idea/markdown-exported-files.xml +8 -0
  8. pyrobbo-0.5.0/.idea/markdown-navigator/profiles_settings.xml +3 -0
  9. pyrobbo-0.5.0/.idea/markdown-navigator.xml +83 -0
  10. pyrobbo-0.5.0/.idea/misc.xml +10 -0
  11. pyrobbo-0.5.0/.idea/modules.xml +8 -0
  12. pyrobbo-0.5.0/.idea/runConfigurations/pyrobbo.xml +24 -0
  13. pyrobbo-0.5.0/.idea/scopes/robbo.xml +3 -0
  14. pyrobbo-0.5.0/.idea/scopes/sprites.xml +3 -0
  15. pyrobbo-0.5.0/.idea/vcs.xml +6 -0
  16. pyrobbo-0.5.0/.vscode/launch.json +15 -0
  17. pyrobbo-0.5.0/.vscode/settings.json +3 -0
  18. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/PKG-INFO +5 -2
  19. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/PyRobbo.egg-info/PKG-INFO +5 -2
  20. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/PyRobbo.egg-info/SOURCES.txt +22 -1
  21. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/pyproject.toml +5 -4
  22. pyrobbo-0.5.0/pyrobbo.py +17 -0
  23. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/__init__.py +1 -0
  24. pyrobbo-0.5.0/robbo/__version__.py +16 -0
  25. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/game.py +50 -1
  26. pyrobbo-0.5.0/robbo/skins/tronic/ciphers32.bmp +0 -0
  27. pyrobbo-0.5.0/robbo.ico +0 -0
  28. pyrobbo-0.5.0/robbo.svg +144 -0
  29. PyRobbo-0.4.0/robbo/_version.py +0 -19
  30. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/LICENSE +0 -0
  31. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/PyRobbo.egg-info/dependency_links.txt +0 -0
  32. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/PyRobbo.egg-info/entry_points.txt +0 -0
  33. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/PyRobbo.egg-info/requires.txt +0 -0
  34. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/PyRobbo.egg-info/top_level.txt +0 -0
  35. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/README.md +0 -0
  36. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/board.py +0 -0
  37. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/defs.py +0 -0
  38. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/images.py +0 -0
  39. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/levels/ala.dat +0 -0
  40. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/levels/forever.dat +0 -0
  41. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/levels/original.dat +0 -0
  42. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/levels/test.dat +0 -0
  43. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/levels.py +0 -0
  44. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/skins/default/digits.png +0 -0
  45. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/skins/default/icons.png +0 -0
  46. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/skins/oily/digits.png +0 -0
  47. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/skins/oily/icons.png +0 -0
  48. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/skins/tronic/digits.png +0 -0
  49. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/skins/tronic/icons.png +0 -0
  50. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sounds/blaster.wav +0 -0
  51. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sounds/bomb.wav +0 -0
  52. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sounds/bullet.wav +0 -0
  53. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sounds/die.wav +0 -0
  54. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sounds/door.wav +0 -0
  55. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sounds/finish.wav +0 -0
  56. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sounds/key.wav +0 -0
  57. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sounds/lastscrew.wav +0 -0
  58. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sounds/life.wav +0 -0
  59. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sounds/push.wav +0 -0
  60. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sounds/screw.wav +0 -0
  61. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sounds/shoot.wav +0 -0
  62. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sounds/spawn.wav +0 -0
  63. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sounds/teleport.wav +0 -0
  64. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sounds/wallshoot.wav +0 -0
  65. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sounds.py +0 -0
  66. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sprites/__init__.py +0 -0
  67. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sprites/guns.py +0 -0
  68. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sprites/items.py +0 -0
  69. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sprites/mobs.py +0 -0
  70. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sprites/robbo.py +0 -0
  71. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sprites/static.py +0 -0
  72. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/sprites/teleport.py +0 -0
  73. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/robbo/status.py +0 -0
  74. {PyRobbo-0.4.0 → pyrobbo-0.5.0}/setup.cfg +0 -0
@@ -0,0 +1,31 @@
1
+ name: PyPI
2
+ on:
3
+ push:
4
+ tags:
5
+ - 'v*'
6
+ workflow_dispatch:
7
+ jobs:
8
+ deploy:
9
+ runs-on: ubuntu-latest
10
+ environment:
11
+ name: release
12
+ url: https://pypi.org/project/PyRobbo/
13
+ permissions:
14
+ id-token: write
15
+ steps:
16
+ - name: Checkout
17
+ uses: actions/checkout@v2
18
+ with:
19
+ fetch-depth: 0
20
+ - name: Setup Python
21
+ uses: actions/setup-python@v2
22
+ - name: Install dependencies
23
+ run: |
24
+ pip install --upgrade pip
25
+ pip install build
26
+ - name: Build package
27
+ run: |
28
+ python -m build
29
+ - name: Publish distribution to PyPI
30
+ if: startsWith(github.ref, 'refs/tags')
31
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,36 @@
1
+ ### JetBrains
2
+
3
+ # User-specific stuff
4
+ .idea/**/workspace.xml
5
+ .idea/**/tasks.xml
6
+ .idea/**/dictionaries
7
+ .idea/**/shelf
8
+ .idea/*.iml
9
+
10
+ # File-based project format
11
+ *.iws
12
+
13
+ ### Python
14
+
15
+ # Byte-compiled / optimized / DLL files
16
+ __pycache__/
17
+ *.py[cod]
18
+
19
+ # Distribution / packaging
20
+ build/
21
+ dist/
22
+ sdist/
23
+ *.egg-info
24
+ *.manifest
25
+ *.spec
26
+
27
+ # Translations
28
+ *.mo
29
+ *.pot
30
+
31
+ ### Other
32
+ *.a2s
33
+ *.xex
34
+
35
+ ## Dynamic version
36
+ /robbo/__version__.py
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" addBOMForNewFiles="with NO BOM" />
4
+ </project>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="SharedFileColors">
4
+ <fileColor scope="sprites" color="Green" />
5
+ <fileColor scope="robbo" color="Blue" />
6
+ </component>
7
+ </project>
@@ -0,0 +1,12 @@
1
+ # coding: utf8
2
+ # Copyright (C) 2019 Maciej Dems <maciej.dems@p.lodz.pl>
3
+ #
4
+ # This program is free software; you can redistribute it and/or modify it
5
+ # under the terms of GNU General Public License as published by the
6
+ # Free Software Foundation; either version 3 of the license, or (at your
7
+ # opinion) any later version.
8
+ #
9
+ # This program is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ # GNU General Public License for more details.
@@ -0,0 +1,16 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="PyCompatibilityInspection" enabled="true" level="WARNING" enabled_by_default="true">
5
+ <option name="ourVersions">
6
+ <value>
7
+ <list size="3">
8
+ <item index="0" class="java.lang.String" itemvalue="3.5" />
9
+ <item index="1" class="java.lang.String" itemvalue="3.6" />
10
+ <item index="2" class="java.lang.String" itemvalue="3.7" />
11
+ </list>
12
+ </value>
13
+ </option>
14
+ </inspection_tool>
15
+ </profile>
16
+ </component>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="MarkdownExportedFiles">
4
+ <htmlFiles />
5
+ <imageFiles />
6
+ <otherFiles />
7
+ </component>
8
+ </project>
@@ -0,0 +1,3 @@
1
+ <component name="MarkdownNavigator.ProfileManager">
2
+ <settings default="" pdf-export="" />
3
+ </component>
@@ -0,0 +1,83 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="MarkdownProjectSettings" wasCopied="false">
4
+ <PreviewSettings splitEditorLayout="SPLIT" splitEditorPreview="PREVIEW" useGrayscaleRendering="false" zoomFactor="1.0" maxImageWidth="0" showGitHubPageIfSynced="false" allowBrowsingInPreview="false" synchronizePreviewPosition="true" highlightPreviewType="NONE" highlightFadeOut="5" highlightOnTyping="true" synchronizeSourcePosition="true" verticallyAlignSourceAndPreviewSyncPosition="true" showSearchHighlightsInPreview="false" showSelectionInPreview="true" openRemoteLinks="true" replaceUnicodeEmoji="false" lastLayoutSetsDefault="false">
5
+ <PanelProvider>
6
+ <provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.panel" providerName="Default - Swing" />
7
+ </PanelProvider>
8
+ </PreviewSettings>
9
+ <ParserSettings gitHubSyntaxChange="false" emojiShortcuts="1" emojiImages="0">
10
+ <PegdownExtensions>
11
+ <option name="ABBREVIATIONS" value="false" />
12
+ <option name="ANCHORLINKS" value="true" />
13
+ <option name="ASIDE" value="false" />
14
+ <option name="ATXHEADERSPACE" value="true" />
15
+ <option name="AUTOLINKS" value="true" />
16
+ <option name="DEFINITIONS" value="false" />
17
+ <option name="DEFINITION_BREAK_DOUBLE_BLANK_LINE" value="false" />
18
+ <option name="FENCED_CODE_BLOCKS" value="true" />
19
+ <option name="FOOTNOTES" value="false" />
20
+ <option name="HARDWRAPS" value="false" />
21
+ <option name="HTML_DEEP_PARSER" value="false" />
22
+ <option name="INSERTED" value="false" />
23
+ <option name="QUOTES" value="false" />
24
+ <option name="RELAXEDHRULES" value="true" />
25
+ <option name="SMARTS" value="false" />
26
+ <option name="STRIKETHROUGH" value="true" />
27
+ <option name="SUBSCRIPT" value="false" />
28
+ <option name="SUPERSCRIPT" value="false" />
29
+ <option name="SUPPRESS_HTML_BLOCKS" value="false" />
30
+ <option name="SUPPRESS_INLINE_HTML" value="false" />
31
+ <option name="TABLES" value="true" />
32
+ <option name="TASKLISTITEMS" value="true" />
33
+ <option name="TOC" value="false" />
34
+ <option name="WIKILINKS" value="false" />
35
+ </PegdownExtensions>
36
+ <ParserOptions>
37
+ <option name="ADMONITION_EXT" value="false" />
38
+ <option name="ATTRIBUTES_EXT" value="false" />
39
+ <option name="COMMONMARK_LISTS" value="true" />
40
+ <option name="DUMMY" value="false" />
41
+ <option name="EMOJI_SHORTCUTS" value="true" />
42
+ <option name="ENUMERATED_REFERENCES_EXT" value="false" />
43
+ <option name="FLEXMARK_FRONT_MATTER" value="false" />
44
+ <option name="GFM_LOOSE_BLANK_LINE_AFTER_ITEM_PARA" value="false" />
45
+ <option name="GFM_TABLE_RENDERING" value="true" />
46
+ <option name="GITBOOK_URL_ENCODING" value="false" />
47
+ <option name="GITHUB_LISTS" value="false" />
48
+ <option name="GITHUB_WIKI_LINKS" value="false" />
49
+ <option name="GITLAB_EXT" value="false" />
50
+ <option name="GITLAB_MATH_EXT" value="false" />
51
+ <option name="GITLAB_MERMAID_EXT" value="false" />
52
+ <option name="HEADER_ID_NON_ASCII_TO_LOWERCASE" value="false" />
53
+ <option name="HEADER_ID_NO_DUPED_DASHES" value="false" />
54
+ <option name="JEKYLL_FRONT_MATTER" value="false" />
55
+ <option name="MACROS_EXT" value="false" />
56
+ <option name="NO_TEXT_ATTRIBUTES" value="false" />
57
+ <option name="PARSE_HTML_ANCHOR_ID" value="false" />
58
+ <option name="SIM_TOC_BLANK_LINE_SPACER" value="true" />
59
+ </ParserOptions>
60
+ </ParserSettings>
61
+ <HtmlSettings headerTopEnabled="false" headerBottomEnabled="false" bodyTopEnabled="false" bodyBottomEnabled="false" embedUrlContent="false" addPageHeader="true" embedImages="false" embedHttpImages="false" imageUriSerials="false" addDocTypeHtml="true" noParaTags="false">
62
+ <GeneratorProvider>
63
+ <provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.generator" providerName="Default Swing HTML Generator" />
64
+ </GeneratorProvider>
65
+ <headerTop />
66
+ <headerBottom />
67
+ <bodyTop />
68
+ <bodyBottom />
69
+ </HtmlSettings>
70
+ <CssSettings previewScheme="UI_SCHEME" cssUri="" isCssUriEnabled="false" isCssUriSerial="true" isCssTextEnabled="false" isDynamicPageWidth="true">
71
+ <StylesheetProvider>
72
+ <provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.css" providerName="Default Swing Stylesheet" />
73
+ </StylesheetProvider>
74
+ <ScriptProviders />
75
+ <cssText />
76
+ <cssUriHistory />
77
+ </CssSettings>
78
+ <HtmlExportSettings updateOnSave="false" parentDir="" targetDir="" cssDir="" scriptDir="" plainHtml="false" imageDir="" copyLinkedImages="false" imageUniquifyType="0" targetPathType="2" targetExt="" useTargetExt="false" noCssNoScripts="false" useElementStyleAttribute="false" linkToExportedHtml="true" exportOnSettingsChange="true" regenerateOnProjectOpen="false" linkFormatType="HTTP_ABSOLUTE" />
79
+ <LinkMapSettings>
80
+ <textMaps />
81
+ </LinkMapSettings>
82
+ </component>
83
+ </project>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="JavaScriptSettings">
4
+ <option name="languageLevel" value="ES6" />
5
+ </component>
6
+ <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8" project-jdk-type="Python SDK" />
7
+ <component name="PythonCompatibilityInspectionAdvertiser">
8
+ <option name="version" value="3" />
9
+ </component>
10
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/pyRobbo.iml" filepath="$PROJECT_DIR$/.idea/pyRobbo.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,24 @@
1
+ <component name="ProjectRunConfigurationManager">
2
+ <configuration default="false" name="pyrobbo" type="PythonConfigurationType" factoryName="Python" nameIsGenerated="true">
3
+ <module name="pyRobbo" />
4
+ <option name="INTERPRETER_OPTIONS" value="" />
5
+ <option name="PARENT_ENVS" value="true" />
6
+ <envs>
7
+ <env name="PYTHONUNBUFFERED" value="1" />
8
+ </envs>
9
+ <option name="SDK_HOME" value="" />
10
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
11
+ <option name="IS_MODULE_SDK" value="true" />
12
+ <option name="ADD_CONTENT_ROOTS" value="true" />
13
+ <option name="ADD_SOURCE_ROOTS" value="true" />
14
+ <EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
15
+ <option name="SCRIPT_NAME" value="pyrobbo.py" />
16
+ <option name="PARAMETERS" value="" />
17
+ <option name="SHOW_COMMAND_LINE" value="false" />
18
+ <option name="EMULATE_TERMINAL" value="false" />
19
+ <option name="MODULE_MODE" value="false" />
20
+ <option name="REDIRECT_INPUT" value="false" />
21
+ <option name="INPUT_FILE" value="" />
22
+ <method v="2" />
23
+ </configuration>
24
+ </component>
@@ -0,0 +1,3 @@
1
+ <component name="DependencyValidationManager">
2
+ <scope name="robbo" pattern="file[pyRobbo]:robbo//*" />
3
+ </component>
@@ -0,0 +1,3 @@
1
+ <component name="DependencyValidationManager">
2
+ <scope name="sprites" pattern="file[pyRobbo]:robbo/sprites//*" />
3
+ </component>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,15 @@
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version": "0.2.0",
6
+ "configurations": [
7
+ {
8
+ "name": "PyRobbo",
9
+ "type": "python",
10
+ "request": "launch",
11
+ "program": "${workspaceFolder}/pyrobbo.py",
12
+ "console": "integratedTerminal"
13
+ }
14
+ ]
15
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "python.pythonPath": "/usr/bin/python"
3
+ }
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyRobbo
3
- Version: 0.4.0
3
+ Version: 0.5.0
4
4
  Summary: Clone of an old 8-bit Atari game Robbo
5
5
  Author-email: Maciej Dems <macdems@gmail.com>
6
6
  License: GPL3
7
- Project-URL: homepage, http://github.com/macdems/pyrobbo
7
+ Project-URL: Homepage, http://github.com/macdems/pyrobbo
8
8
  Keywords: game,pygame,robbo,atari,clone
9
9
  Classifier: Development Status :: 4 - Beta
10
10
  Classifier: Intended Audience :: End Users/Desktop
@@ -16,6 +16,9 @@ Classifier: Topic :: Games/Entertainment :: Puzzle Games
16
16
  Requires-Python: >=3
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
+ Requires-Dist: pygame>=2.0.0
20
+ Requires-Dist: PyYAML>=5.3.1
21
+ Requires-Dist: appdirs>=1.4.4
19
22
 
20
23
  PyRobbo
21
24
  =======
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyRobbo
3
- Version: 0.4.0
3
+ Version: 0.5.0
4
4
  Summary: Clone of an old 8-bit Atari game Robbo
5
5
  Author-email: Maciej Dems <macdems@gmail.com>
6
6
  License: GPL3
7
- Project-URL: homepage, http://github.com/macdems/pyrobbo
7
+ Project-URL: Homepage, http://github.com/macdems/pyrobbo
8
8
  Keywords: game,pygame,robbo,atari,clone
9
9
  Classifier: Development Status :: 4 - Beta
10
10
  Classifier: Intended Audience :: End Users/Desktop
@@ -16,6 +16,9 @@ Classifier: Topic :: Games/Entertainment :: Puzzle Games
16
16
  Requires-Python: >=3
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
+ Requires-Dist: pygame>=2.0.0
20
+ Requires-Dist: PyYAML>=5.3.1
21
+ Requires-Dist: appdirs>=1.4.4
19
22
 
20
23
  PyRobbo
21
24
  =======
@@ -1,6 +1,26 @@
1
+ .gitignore
1
2
  LICENSE
2
3
  README.md
3
4
  pyproject.toml
5
+ pyrobbo.py
6
+ robbo.ico
7
+ robbo.svg
8
+ .github/workflows/main.yml
9
+ .idea/encodings.xml
10
+ .idea/fileColors.xml
11
+ .idea/markdown-exported-files.xml
12
+ .idea/markdown-navigator.xml
13
+ .idea/misc.xml
14
+ .idea/modules.xml
15
+ .idea/vcs.xml
16
+ .idea/fileTemplates/internal/Python Script.py
17
+ .idea/inspectionProfiles/Project_Default.xml
18
+ .idea/markdown-navigator/profiles_settings.xml
19
+ .idea/runConfigurations/pyrobbo.xml
20
+ .idea/scopes/robbo.xml
21
+ .idea/scopes/sprites.xml
22
+ .vscode/launch.json
23
+ .vscode/settings.json
4
24
  PyRobbo.egg-info/PKG-INFO
5
25
  PyRobbo.egg-info/SOURCES.txt
6
26
  PyRobbo.egg-info/dependency_links.txt
@@ -8,7 +28,7 @@ PyRobbo.egg-info/entry_points.txt
8
28
  PyRobbo.egg-info/requires.txt
9
29
  PyRobbo.egg-info/top_level.txt
10
30
  robbo/__init__.py
11
- robbo/_version.py
31
+ robbo/__version__.py
12
32
  robbo/board.py
13
33
  robbo/defs.py
14
34
  robbo/game.py
@@ -24,6 +44,7 @@ robbo/skins/default/digits.png
24
44
  robbo/skins/default/icons.png
25
45
  robbo/skins/oily/digits.png
26
46
  robbo/skins/oily/icons.png
47
+ robbo/skins/tronic/ciphers32.bmp
27
48
  robbo/skins/tronic/digits.png
28
49
  robbo/skins/tronic/icons.png
29
50
  robbo/sounds/blaster.wav
@@ -1,5 +1,5 @@
1
1
  [build-system]
2
- requires = ["setuptools", "wheel"]
2
+ requires = ["setuptools", "wheel", "setuptools-scm[toml]"]
3
3
  build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
@@ -23,7 +23,7 @@ dependencies = ["pygame>=2.0.0", "PyYAML>=5.3.1", "appdirs>=1.4.4"]
23
23
  dynamic = ["version"]
24
24
 
25
25
  [project.urls]
26
- homepage = "http://github.com/macdems/pyrobbo"
26
+ Homepage = "http://github.com/macdems/pyrobbo"
27
27
 
28
28
  [project.gui-scripts]
29
29
  pyrobbo = "robbo:main"
@@ -37,5 +37,6 @@ robbo = [
37
37
  "robbo.ico",
38
38
  ]
39
39
 
40
- [tool.setuptools.dynamic]
41
- version = { attr = "robbo._version.__version__" }
40
+ [tool.setuptools_scm]
41
+ write_to = "robbo/__version__.py"
42
+ git_describe_command = "git describe --dirty --tags --long --match v* --first-parent"
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env python3
2
+ # coding: utf8
3
+ # Copyright (C) 2019 Maciej Dems <maciej.dems@p.lodz.pl>
4
+ #
5
+ # This program is free software; you can redistribute it and/or modify it
6
+ # under the terms of GNU General Public License as published by the
7
+ # Free Software Foundation; either version 3 of the license, or (at your
8
+ # opinion) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU General Public License for more details.
14
+
15
+ import robbo
16
+
17
+ robbo.main()
@@ -115,6 +115,7 @@ def main():
115
115
  flags = FLAGS_FULLSCREEN if config.get('fullscreen', True) else FLAGS_WINDOW
116
116
 
117
117
  pygame.init()
118
+ pygame.mouse.set_visible(False)
118
119
  pygame.display.set_caption('PyRobbo')
119
120
  pygame.key.set_repeat(0,0)
120
121
 
@@ -0,0 +1,16 @@
1
+ # file generated by setuptools_scm
2
+ # don't change, don't track in version control
3
+ TYPE_CHECKING = False
4
+ if TYPE_CHECKING:
5
+ from typing import Tuple, Union
6
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
7
+ else:
8
+ VERSION_TUPLE = object
9
+
10
+ version: str
11
+ __version__: str
12
+ __version_tuple__: VERSION_TUPLE
13
+ version_tuple: VERSION_TUPLE
14
+
15
+ __version__ = version = '0.5.0'
16
+ __version_tuple__ = version_tuple = (0, 5, 0)
@@ -51,6 +51,18 @@ SCROLLS = {
51
51
  K_s: SCROLL_DOWN
52
52
  }
53
53
 
54
+ JOYSTICK_MOVES = {
55
+ (0, -1): WEST,
56
+ (0, 1): EAST,
57
+ (1, -1): NORTH,
58
+ (1, 1): SOUTH,
59
+ }
60
+
61
+ JOYSTICK_SCROLLS = {
62
+ -1: SCROLL_UP,
63
+ 1: SCROLL_DOWN
64
+ }
65
+
54
66
 
55
67
  class EndLevel(Exception):
56
68
  """End level exception"""
@@ -81,7 +93,12 @@ def draw_sprites():
81
93
 
82
94
  def play_level(level):
83
95
  """The game loop"""
84
- pygame.mouse.set_visible(0)
96
+ pygame.mouse.set_visible(False)
97
+
98
+ if pygame.joystick.get_count() > 0:
99
+ joystick = pygame.joystick.Joystick(0)
100
+ joystick_axes = [0, 0]
101
+ joystick_axis = None
85
102
 
86
103
  global clock_speed, clever_bears
87
104
 
@@ -142,6 +159,7 @@ def play_level(level):
142
159
  item.chain()
143
160
 
144
161
  move = None
162
+ joystick_can_fire = True
145
163
 
146
164
  # Process user events
147
165
  for event in pygame.event.get():
@@ -199,6 +217,37 @@ def play_level(level):
199
217
  scrolling = False
200
218
  else:
201
219
  scrolling = 0
220
+ elif event.type == pygame.JOYAXISMOTION and event.axis < 2:
221
+ prev = joystick_axes[event.axis]
222
+ if prev == -1:
223
+ curr = -1 if event.value <= -0.45 else 1 if event.value >= 0.50 else 0
224
+ elif prev == 1:
225
+ curr = 1 if event.value >= 0.45 else -1 if event.value <= -0.50 else 0
226
+ else:
227
+ curr = -1 if event.value <= -0.55 else 1 if event.value >= 0.55 else 0
228
+ if curr != prev:
229
+ joystick_axes[event.axis] = curr
230
+ if joystick.get_numbuttons() > 1 and joystick.get_button(1):
231
+ if event.axis == 1:
232
+ if curr != 0:
233
+ scrolling = True
234
+ scroll_step = JOYSTICK_SCROLLS[curr]
235
+ else:
236
+ scrolling = False
237
+ else:
238
+ if curr != 0:
239
+ move = JOYSTICK_MOVES[(event.axis, curr)]
240
+ if joystick.get_button(0):
241
+ if joystick_can_fire: robbo.fire(move)
242
+ joystick_can_fire = False
243
+ else:
244
+ robbo.move_key(move)
245
+ joystick_axis = event.axis
246
+ elif joystick_axis == event.axis:
247
+ robbo.move_key(STOP)
248
+ joystick_axis = event.axis
249
+ elif event.type == pygame.JOYBUTTONUP and event.button == 1:
250
+ scrolling = 0
202
251
  pygame.event.pump()
203
252
 
204
253
  # Check if scrolling is needed
Binary file
@@ -0,0 +1,144 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
4
+ xmlns:cc="http://creativecommons.org/ns#"
5
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
+ xmlns:svg="http://www.w3.org/2000/svg"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
+ width="16"
11
+ height="16"
12
+ viewBox="0 0 16 16"
13
+ version="1.1"
14
+ id="svg8"
15
+ inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
16
+ sodipodi:docname="robbo.svg">
17
+ <defs
18
+ id="defs2" />
19
+ <sodipodi:namedview
20
+ id="base"
21
+ pagecolor="#727272"
22
+ bordercolor="#666666"
23
+ borderopacity="1.0"
24
+ inkscape:pageopacity="0"
25
+ inkscape:pageshadow="2"
26
+ inkscape:zoom="44.8"
27
+ inkscape:cx="12.597668"
28
+ inkscape:cy="8.354651"
29
+ inkscape:document-units="px"
30
+ inkscape:current-layer="layer1"
31
+ inkscape:document-rotation="0"
32
+ showgrid="true"
33
+ units="px"
34
+ inkscape:window-width="1858"
35
+ inkscape:window-height="1047"
36
+ inkscape:window-x="0"
37
+ inkscape:window-y="0"
38
+ inkscape:window-maximized="1">
39
+ <inkscape:grid
40
+ type="xygrid"
41
+ id="grid10"
42
+ units="px"
43
+ spacingx="0.26458333"
44
+ spacingy="0.26458333" />
45
+ </sodipodi:namedview>
46
+ <metadata
47
+ id="metadata5">
48
+ <rdf:RDF>
49
+ <cc:Work
50
+ rdf:about="">
51
+ <dc:format>image/svg+xml</dc:format>
52
+ <dc:type
53
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
54
+ <dc:title></dc:title>
55
+ </cc:Work>
56
+ </rdf:RDF>
57
+ </metadata>
58
+ <g
59
+ inkscape:label="Warstwa 1"
60
+ inkscape:groupmode="layer"
61
+ id="layer1">
62
+ <path
63
+ id="rect1169"
64
+ style="fill:#ffffff;fill-opacity:1;stroke-width:1.00157;stroke-linecap:round;paint-order:markers stroke fill;stop-color:#000000"
65
+ d="M 3,3 C 3,4 3,5 3,6 3.6666667,6 4.3333333,6 5,6 5,6.3333333 5,6.6666667 5,7 4.3333333,7 3.6666667,7 3,7 3,7.3333333 3,7.6666667 3,8 2.3333333,8 1.6666667,8 1,8 c 0,1 0,2 0,3 0.6666667,0 1.3333333,0 2,0 0,0.666667 0,1.333333 0,2 3.3333333,0 6.6666667,0 10,0 0,-2 0,-4 0,-6 -0.666667,0 -1.333333,0 -2,0 0,-0.3333333 0,-0.6666667 0,-1 0.666667,0 1.333333,0 2,0 C 13,5 13,4 13,3 9.6666667,3 6.3333333,3 3,3 Z" />
66
+ <rect
67
+ style="fill:#80a0ff;stroke-width:1.00157;stroke-linecap:round;paint-order:markers stroke fill;stop-color:#000000;fill-opacity:1"
68
+ id="rect102"
69
+ width="2"
70
+ height="1"
71
+ x="3"
72
+ y="0" />
73
+ <rect
74
+ style="fill:#80a0ff;fill-opacity:1;stroke-width:1.00157;stroke-linecap:round;paint-order:markers stroke fill;stop-color:#000000"
75
+ id="rect104"
76
+ width="2"
77
+ height="1"
78
+ x="5"
79
+ y="1" />
80
+ <rect
81
+ style="fill:#80a0ff;fill-opacity:1;stroke-width:1.00157;stroke-linecap:round;paint-order:markers stroke fill;stop-color:#000000"
82
+ id="rect106"
83
+ width="2"
84
+ height="1"
85
+ x="7"
86
+ y="2" />
87
+ <path
88
+ id="rect108"
89
+ style="fill:#80a0ff;fill-opacity:1;stroke-width:1.00157;stroke-linecap:round;paint-order:markers stroke fill;stop-color:#000000"
90
+ d="M 3,3 C 3,4 3,5 3,6 3.6666667,6 4.3333333,6 5,6 5,5.3333333 5,4.6666667 5,4 5.6666667,4 6.3333333,4 7,4 7,3.6666667 7,3.3333333 7,3 5.6666667,3 4.3333333,3 3,3 Z" />
91
+ <path
92
+ id="rect104-3"
93
+ style="fill:#80a0ff;fill-opacity:1;stroke-width:1.00157;stroke-linecap:round;paint-order:markers stroke fill;stop-color:#000000"
94
+ d="M 5,6 C 5,6.3333333 5,6.6666667 5,7 4.3333333,7 3.6666667,7 3,7 c 0,2 0,4 0,6 0.6666667,0 1.3333333,0 2,0 C 5,11.333333 5,9.6666667 5,8 5.6666667,8 6.3333333,8 7,8 7,7.6666667 7,7.3333333 7,7 7.6666667,7 8.3333333,7 9,7 9,6.6666667 9,6.3333333 9,6 7.6666667,6 6.3333333,6 5,6 Z" />
95
+ <path
96
+ id="rect104-5"
97
+ style="fill:#80a0ff;fill-opacity:1;stroke-width:1.00157;stroke-linecap:round;paint-order:markers stroke fill;stop-color:#000000"
98
+ d="m 3,14 c 0,0.666667 0,1.333333 0,2 0.6666667,0 1.3333333,0 2,0 0,-0.666667 0,-1.333333 0,-2 -0.6666667,0 -1.3333333,0 -2,0 z" />
99
+ <path
100
+ id="rect104-5-2"
101
+ style="fill:#80a0ff;fill-opacity:1;stroke-width:1.00157;stroke-linecap:round;paint-order:markers stroke fill;stop-color:#000000"
102
+ d="m 9.0000002,14 c 0,0.666667 0,1.333333 0,2 0.6666667,0 1.3333328,0 1.9999998,0 0,-0.666667 0,-1.333333 0,-2 -0.666667,0 -1.3333331,0 -1.9999998,0 z" />
103
+ <path
104
+ id="rect104-5-7"
105
+ style="fill:#80a0ff;fill-opacity:1;stroke-width:1.00157;stroke-linecap:round;paint-order:markers stroke fill;stop-color:#000000"
106
+ d="m 13,8 c 0,1.3333333 0,2.666667 0,4 0.666667,0 1.333333,0 2,0 0,-1.333333 0,-2.6666667 0,-4 -0.666667,0 -1.333333,0 -2,0 z" />
107
+ <rect
108
+ style="fill:#ffffff;fill-opacity:1;stroke-width:1.00157;stroke-linecap:round;paint-order:markers stroke fill;stop-color:#000000"
109
+ id="rect106-9"
110
+ width="2"
111
+ height="1"
112
+ x="9"
113
+ y="1" />
114
+ <rect
115
+ style="fill:#ffffff;fill-opacity:1;stroke-width:1.00157;stroke-linecap:round;paint-order:markers stroke fill;stop-color:#000000"
116
+ id="rect106-9-6"
117
+ width="2"
118
+ height="1"
119
+ x="11"
120
+ y="1.5217076e-08" />
121
+ <rect
122
+ style="fill:#000000;fill-opacity:1;stroke-width:1.00157;stroke-linecap:round;paint-order:markers stroke fill;stop-color:#000000"
123
+ id="rect106-9-0"
124
+ width="2"
125
+ height="1"
126
+ x="9"
127
+ y="4" />
128
+ <rect
129
+ style="fill:#000000;fill-opacity:1;stroke-width:1.00157;stroke-linecap:round;paint-order:markers stroke fill;stop-color:#000000"
130
+ id="rect106-9-0-6"
131
+ width="2"
132
+ height="1"
133
+ x="5"
134
+ y="4" />
135
+ <path
136
+ id="rect104-5-26"
137
+ style="fill:#ffffff;fill-opacity:1;stroke-width:1.00157;stroke-linecap:round;paint-order:markers stroke fill;stop-color:#000000"
138
+ d="m 5.0000001,14 c 0,0.666667 0,1.333333 0,2 0.6666667,0 1.3333333,0 2,0 0,-0.666667 0,-1.333333 0,-2 -0.6666667,0 -1.3333333,0 -2,0 z" />
139
+ <path
140
+ id="rect104-5-26-1"
141
+ style="fill:#ffffff;fill-opacity:1;stroke-width:1.00157;stroke-linecap:round;paint-order:markers stroke fill;stop-color:#000000"
142
+ d="m 11,14 c 0,0.666667 0,1.333333 0,2 0.666667,0 1.333333,0 2,0 0,-0.666667 0,-1.333333 0,-2 -0.666667,0 -1.333333,0 -2,0 z" />
143
+ </g>
144
+ </svg>
@@ -1,19 +0,0 @@
1
- import os
2
- from subprocess import Popen, PIPE
3
-
4
- # Find current version form environment or git
5
-
6
- __version__ = os.environ.get('PYROBBO_VERSION')
7
-
8
- if not __version__:
9
- try:
10
- p = Popen(['git', 'describe', '--tags'], stdout=PIPE, stderr=PIPE, encoding='utf8')
11
- p.stderr.close()
12
- __version__ = p.stdout.read().strip()
13
- if '-' in __version__:
14
- ver, rev, git = __version__.split('-')
15
- __version__ = "{}+git{}.{}".format(ver, rev, git)
16
- if __version__.startswith('v'):
17
- __version__ = __version__[1:]
18
- except:
19
- __version__ = '0.0.0'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes