Skip to content

Commit 333a4e3

Browse files
committed
Initial version
0 parents  commit 333a4e3

27 files changed

+1880
-0
lines changed

.github/workflows/main.yml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: Build and Release
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
name: Build on ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest, windows-latest, macos-latest]
12+
13+
steps:
14+
- name: Check-out repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.11"
21+
architecture: "x64"
22+
cache: "pip"
23+
cache-dependency-path: |
24+
**/requirements*.txt
25+
26+
- name: Install Dependencies
27+
run: pip install -r requirements.txt
28+
29+
- name: Build Executable
30+
uses: Nuitka/Nuitka-Action@main
31+
with:
32+
nuitka-version: main
33+
script-name: run.py
34+
nofollow-import-to: "*tk*,_codecs,encodings,multiprocessing,gi"
35+
disable-plugins: tk-inter,dill-compat,eventlet,gevent,pyqt5,pyqt6,pyside2,pyside6,delvewheel,pywebview,matplotlib,spacy,enum-compat,pbr-compat,gevent,pmw-freezer,transformers,upx,kivy,options-nanny,multiprocessing,gi
36+
include-data-dir: assets=assets
37+
include-data-files: CREDITS=CREDITS
38+
mode: standalone
39+
output-file: AimTrainer
40+
41+
- name: Zip Build Output
42+
shell: bash
43+
run: |
44+
mkdir -p zip_output
45+
if [ "${{ runner.os }}" = "Windows" ]; then
46+
powershell.exe -Command "Compress-Archive -Path 'build/run.dist/*' -DestinationPath 'zip_output/AimTrainer-${{ runner.os }}.zip'"
47+
else
48+
cd build/run.dist
49+
zip -r "../../zip_output/AimTrainer-${{ runner.os }}.zip" .
50+
fi
51+
52+
- name: Upload Zipped Build Artifact
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: AimTrainer-${{ runner.os }}.zip
56+
path: zip_output/AimTrainer-${{ runner.os }}.zip
57+
release:
58+
name: Create GitHub Release
59+
needs: build
60+
runs-on: ubuntu-latest
61+
steps:
62+
- name: Checkout repository
63+
uses: actions/checkout@v4
64+
with:
65+
fetch-depth: 0
66+
67+
- name: Download All Zipped Builds
68+
uses: actions/download-artifact@v4
69+
with:
70+
path: downloads
71+
72+
- name: Delete Old Release (if exists)
73+
continue-on-error: true
74+
run: gh release delete latest -y
75+
env:
76+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77+
78+
- name: Delete Git tag (if exists)
79+
continue-on-error: true
80+
run: |
81+
git push origin :refs/tags/latest
82+
git tag -d latest
83+
84+
- name: Recreate Git tag at HEAD
85+
run: |
86+
git tag latest
87+
git push origin latest
88+
89+
- name: Create the new release
90+
run: gh release create latest downloads/**/AimTrainer-*.zip --title "Latest Build" --notes "Most recent multi-platform builds of AimTrainer"
91+
env:
92+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
43+
.coverage
44+
.coverage.*
45+
.cache
46+
nosetests.xml
47+
coverage.xml
48+
*.cover
49+
*.py,cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
.pybuilder/
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
97+
# UV
98+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99+
# This is especially recommended for binary packages to ensure reproducibility, and is more
100+
# commonly ignored for libraries.
101+
#uv.lock
102+
103+
# poetry
104+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105+
# This is especially recommended for binary packages to ensure reproducibility, and is more
106+
# commonly ignored for libraries.
107+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108+
#poetry.lock
109+
110+
# pdm
111+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
112+
#pdm.lock
113+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
114+
# in version control.
115+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
116+
.pdm.toml
117+
.pdm-python
118+
.pdm-build/
119+
120+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
121+
__pypackages__/
122+
123+
# Celery stuff
124+
celerybeat-schedule
125+
celerybeat.pid
126+
127+
# SageMath parsed files
128+
*.sage.py
129+
130+
# Environments
131+
.env
132+
.venv
133+
env/
134+
venv/
135+
ENV/
136+
env.bak/
137+
venv.bak/
138+
139+
# Spyder project settings
140+
.spyderproject
141+
.spyproject
142+
143+
# Rope project settings
144+
.ropeproject
145+
146+
# mkdocs documentation
147+
/site
148+
149+
# mypy
150+
.mypy_cache/
151+
.dmypy.json
152+
dmypy.json
153+
154+
# Pyre type checker
155+
.pyre/
156+
157+
# pytype static type analyzer
158+
.pytype/
159+
160+
# Cython debug symbols
161+
cython_debug/
162+
163+
# PyCharm
164+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
165+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
166+
# and can be added to the global gitignore or merged into this file. For a more nuclear
167+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
168+
#.idea/
169+
170+
# Ruff stuff:
171+
.ruff_cache/
172+
173+
# PyPI configuration file
174+
.pypirc
175+
176+
test*.py
177+
.zed/
178+
logs/
179+
logs
180+
settings.json
181+
data.json

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.11

CREDITS

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Thanks to OpenGameArt and:
2+
Kay Lousberg for the 2d Guns assets: https://opengameart.org/content/2d-guns
3+
2D_Platformerguy for the music: https://opengameart.org/content/electronic-music-chiptune-3
4+
5+
Huge Thanks to Python for being the programming language used in this game.
6+
https://www.python.org/
7+
8+
Huge thanks to Ursina Engine for being the graphical engine for this game.
9+
https://www.ursinaengine.org/
10+
11+
Thanks to the following other libraries used in this game:
12+
pypresence - https://github.com/qwertyquerty/pypresence - Used for Discord Rich Presence

0 commit comments

Comments
 (0)