forked from Seitoh63/PySpaceInvaders
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHowToLaunch
More file actions
257 lines (233 loc) · 10.2 KB
/
HowToLaunch
File metadata and controls
257 lines (233 loc) · 10.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
======
Steps to prepare screen as of this writing (2023 03 30)
use mouse to click on raspberry icon in upper left corner of screen
scroll down menu to PREFERENCES and another sub menu pops out
scroll down sub menu to SCREEN CONFIGURATION and click
a window will open named "Screen Layout Editor"
with mouse click on LAYOUT to open menu
scroll down to SCREENS and a sub-menu will pop out
scroll over to HDMI-1 and another sub-menu will pop out
scroll down to RESOLUTION and yet another sub-menu will pop out
scroll to 1280 x 1080 and click, the menus will collapse
with mouse click APPLY button in Screen Layout Editor window
another window with a confirmation query will open
your options are
YES to accept changes and reboot now,
NO to accept changes and reboot later,
close this confirmation window by clicking on "x" in upper right corner
click "undo" in Screen Layout Editor to undo request for change
click "Apply" in Screen Layout Editor to reopen confirmation window
Steps to launch as of this writing (2023 03 30)
right-click on PySpaceInvaders folder
scroll to OPEN FOLDER IN TERMINAL and click
a terminal window will open with a blinking cursor
at the cursor type "python main.py" and press Enter on keyboard
game will launch and will scale to full screen and commence
press arrow keys left and right to move bow and arrow
press space bar to shoot arrows
press ESC key to quit game at any time
Steps to launch as of this writing (2023 03 20)
open Terminal
change directory to /Desktop/PySpaceInvaders
enter "python main.py" into terminal command line
======
PySpaceInvaders was sourced from
https://github.com/Seitoh63/PySpaceInvaders
Art for the sprites was designed by Eric Garcia
The systems were integrated by Rafael Fajardo, with help from Esteban Fajardo
Eric and Rafael were brought together by Victoria Lyall
systems:
Raspberry Pi 3B+ for initial development
Raspberry Pi 4B for completion and archival exhibition
====
to do
try pyinstaller to make exe
terminal: pip install -U pyinstaller
terminal: pyinstaller your_program.py
edit your_program.spec file to ensure dependencies
try boot into game with some autoexec script
====
done
replace images in "sprite" folder with those by Eric
preserve file names
resample or redraw a couple to match original dimensions
may have to adjust code to add to alien class
in config.py and alien.py
place copy of original images into "sprite alt" folder
change resolution of display target to make game bigger
commented out main.py lines 91, 92, 132, 133
add joystick support
Esteban Fajardo consulting programmer
https://github.com/denilsonsa/pygame-joystick-test
which I forked as
https://github.com/rafaelfajardo/pygame-joystick-test
===
Operating system images available at:
https://downloads.raspberrypi.org/raspios_armhf/images/raspios_armhf-2022-09-26/
direct download link:
https://downloads.raspberrypi.org/raspios_armhf/images/raspios_armhf-2022-09-26/2022-09-22-raspios-bullseye-armhf.img.xz
===
Operating SYSTEM INFO
sweat@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
sweat@raspberrypi:~ $ getconf LONG_BIT
32
===
CPU SYSTEM INFO, DEV RASPI 3B+
sweat@raspberrypi:~ $ cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 1
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 2
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 3
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
Hardware : BCM2835
Revision : a22082
Serial : 000000006f29efb2
Model : Raspberry Pi 3 Model B Rev 1.2
===
CPU SYSTEM INFO RASPI 4B
sweat@raspberrypi:~ $ cat /proc/cpuinfo
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
Hardware : BCM2835
Revision : c03115
Serial : 10000000f18a2b11
Model : Raspberry Pi 4 Model B Rev 1.5
===
===
PYINSTALLER INFO (not yet working)
have to add PATH to/for pyinstaller so that it works.
find ~ -name pyinstaller -type f
export ...
first attempt
sweat@raspberrypi:~/Desktop/PySpaceInvaders $ pyinstaller main.py --onefile
828 INFO: PyInstaller: 5.9.0
829 INFO: Python: 3.9.2
843 INFO: Platform: Linux-5.15.61-v7+-armv7l-with-glibc2.31
845 INFO: wrote /home/sweat/Desktop/PySpaceInvaders/main.spec
860 INFO: UPX is not available.
870 INFO: Extending PYTHONPATH with paths
['/home/sweat/Desktop/PySpaceInvaders']
2439 INFO: checking Analysis
2439 INFO: Building Analysis because Analysis-00.toc is non existent
2439 INFO: Initializing module dependency graph...
2444 INFO: Caching module graph hooks...
2516 INFO: Analyzing base_library.zip ...
8309 INFO: Loading module hook 'hook-encodings.py' from '/home/sweat/.local/lib/python3.9/site-packages/PyInstaller/hooks'...
16741 INFO: Loading module hook 'hook-pickle.py' from '/home/sweat/.local/lib/python3.9/site-packages/PyInstaller/hooks'...
22955 INFO: Loading module hook 'hook-heapq.py' from '/home/sweat/.local/lib/python3.9/site-packages/PyInstaller/hooks'...
27486 INFO: Caching module dependency graph...
28445 INFO: running Analysis Analysis-00.toc
28619 INFO: Analyzing /home/sweat/Desktop/PySpaceInvaders/main.py
30249 INFO: Loading module hook 'hook-xml.py' from '/home/sweat/.local/lib/python3.9/site-packages/PyInstaller/hooks'...
30534 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from '/home/sweat/.local/lib/python3.9/site-packages/PyInstaller/hooks'...
30806 INFO: Loading module hook 'hook-numpy.py' from '/home/sweat/.local/lib/python3.9/site-packages/PyInstaller/hooks'...
35031 INFO: Loading module hook 'hook-platform.py' from '/home/sweat/.local/lib/python3.9/site-packages/PyInstaller/hooks'...
35997 INFO: Loading module hook 'hook-difflib.py' from '/home/sweat/.local/lib/python3.9/site-packages/PyInstaller/hooks'...
37925 INFO: Loading module hook 'hook-multiprocessing.util.py' from '/home/sweat/.local/lib/python3.9/site-packages/PyInstaller/hooks'...
46332 INFO: Loading module hook 'hook-sysconfig.py' from '/home/sweat/.local/lib/python3.9/site-packages/PyInstaller/hooks'...
54890 INFO: Loading module hook 'hook-OpenGL.py' from '/home/sweat/.local/lib/python3.9/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks'...
64096 INFO: Loading module hook 'hook-pkg_resources.py' from '/home/sweat/.local/lib/python3.9/site-packages/PyInstaller/hooks'...
67753 INFO: Processing module hooks...
69135 INFO: Processing pre-safe import module hook win32com from '/home/sweat/.local/lib/python3.9/site-packages/_pyinstaller_hooks_contrib/hooks/pre_safe_import_module/hook-win32com.py'.
71081 INFO: Looking for ctypes DLLs
72097 INFO: Analyzing run-time hooks ...
72140 INFO: Including run-time hook '/home/sweat/.local/lib/python3.9/site-packages/PyInstaller/hooks/rthooks/pyi_rth_pkgres.py'
72185 INFO: Including run-time hook '/home/sweat/.local/lib/python3.9/site-packages/PyInstaller/hooks/rthooks/pyi_rth_inspect.py'
72194 INFO: Including run-time hook '/home/sweat/.local/lib/python3.9/site-packages/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py'
72211 INFO: Including run-time hook '/home/sweat/.local/lib/python3.9/site-packages/PyInstaller/hooks/rthooks/pyi_rth_multiprocessing.py'
72325 INFO: Looking for dynamic libraries
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
1767 INFO: No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
84147 INFO: Looking for eggs
84148 INFO: Python library not among binary dependencies. Performing additional search...
84360 INFO: Using Python library /lib/arm-linux-gnueabihf/libpython3.9.so.1.0
84422 INFO: Warnings written to /home/sweat/Desktop/PySpaceInvaders/build/main/warn-main.txt
84846 INFO: Graph cross-reference written to /home/sweat/Desktop/PySpaceInvaders/build/main/xref-main.html
85007 INFO: checking PYZ
85007 INFO: Building PYZ because PYZ-00.toc is non existent
85008 INFO: Building PYZ (ZlibArchive) /home/sweat/Desktop/PySpaceInvaders/build/main/PYZ-00.pyz
89333 INFO: Building PYZ (ZlibArchive) /home/sweat/Desktop/PySpaceInvaders/build/main/PYZ-00.pyz completed successfully.
89412 INFO: checking PKG
89412 INFO: Building PKG because PKG-00.toc is non existent
89412 INFO: Building PKG (CArchive) main.pkg
120547 INFO: Building PKG (CArchive) main.pkg completed successfully.
120576 INFO: Bootloader /home/sweat/.local/lib/python3.9/site-packages/PyInstaller/bootloader/Linux-32bit-arm/run
120576 INFO: checking EXE
120577 INFO: Building EXE because EXE-00.toc is non existent
120577 INFO: Building EXE from EXE-00.toc
120577 INFO: Copying bootloader EXE to /home/sweat/Desktop/PySpaceInvaders/dist/main
120581 INFO: Appending PKG archive to custom ELF section in EXE
120827 INFO: Building EXE from EXE-00.toc completed successfully.
===