Commit Graph

18 Commits

Author SHA1 Message Date
Martysh12 05c29e7e72 Implemented key_up and key_down methods
Implemented key_up and key_down methods in GameIO
2021-12-20 16:12:34 +02:00
John McCardle 113d93773e Removed self from super().__init__(self) in LinuxGameIO 2021-12-20 04:39:49 -05:00
Martysh12 82186e4a3a Removed self from super().__init__(self)
Removed self from super().__init__(self) in WindowsGameIO
2021-12-20 04:37:56 -05:00
Martysh12 cd91488a1b Ignoring __pycache__/ 2021-12-20 04:37:56 -05:00
Martysh12 d758442190 Create .gitignore with the Asteroids folder
Create .gitignore with the Asteroids folder, for the ease of contributing.
2021-12-20 04:37:56 -05:00
Martysh12 207761d498 Removed invalid documentation from LinuxGameIO 2021-12-20 04:35:10 -05:00
Martysh12 d55ecef953 Fix naming oversight 2021-12-19 21:34:29 +02:00
Martysh12 d04a0b172c Add key_up and key_down methods in GameIO
Add key_up() and key_down() methods in GameIO. key_press() does the aforementioned two functions one after the other.
2021-12-19 21:33:57 +02:00
Martysh12 1a1e8efef8 Moved module to a different file
Moved module to a different file and created a main script.
2021-12-19 21:16:34 +02:00
John McCardle 30a45e6b47 Application screenshot used for window location 2021-12-19 14:11:55 -05:00
John McCardle 1720ee3bbc remove behavior from abstract base method 2021-12-19 14:11:20 -05:00
Martysh12 9eb29fc7cc Changed the naming a bit
Changed the naming a bit
2021-12-19 21:05:25 +02:00
Martysh12 6e5dd7eab4 Introduced Abstract Base Classes
Introduced Abstract Base Classes to ease the process of adding another platform.

Also some minor documentation.
2021-12-19 21:01:11 +02:00
Martysh12 bfcb0650e6 Changed os.name to platform.system()
Changed os.name to platform.system() because platform.system() is much more reliable, and is easy to check for different system.

Also added a check for linux.
2021-12-19 20:29:38 +02:00
Martysh12 b5c4bbcdd9 Added simple documentation and a shebang
Added simple documentation and a shebang and fixed a simple error at line 32.
2021-12-19 20:26:08 +02:00
Martysh12 555ecfa7a3 Added newlines and sorted imports
Added newlines and sorted imports according to PEP-8.
2021-12-19 20:18:07 +02:00
John McCardle 3f9af5012c Cross-platform basics on capturing the game screen to a PIL image. 2021-12-19 13:02:58 -05:00
Error_404 64ac273833
Create README.md 2021-12-19 22:03:44 +05:30