Skip to content

Commit 910d518

Browse files
committed
Add seemless integration of doom
No need to install it manually anymore
1 parent c25ae0a commit 910d518

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed

README.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,5 @@ Les pull requests sont les bienvenues sur ce dépôt ! Et si vous envoyez votre
4646

4747
Pour soumettre une idée si vous n'êtes pas en mesure de coder, n'hésitez pas à créer [une issue GitHub](https://github.com/MathisHammel/CroixPharmacie/issues), ou m'envoyer des propositions en [DM sur Twitter](https://twitter.com/MathisHammel).
4848

49-
## Comment exécuter Doom ?
50-
51-
L'exécution du module Doom est dépendante de cyDoomGeneric, un wrapper de DoomGeneric. L'installation se fait en plusieurs étapes :
52-
53-
```bash
54-
git clone https://github.com/wojciech-graj/cydoomgeneric
55-
cd cydoomgeneric/cydoomgeneric
56-
python setup.py install
57-
```
58-
59-
Vous pouvez maintenant exécuter doom.py pour le lancer sur la croix de pharmacie ! Utilisez les flèches pour vous déplacer, Ctrl gauche pour tirer, et la barre espace pour ouvrir les portes.
49+
## Comment jouer à Doom ?
50+
Utilisez les flèches pour vous déplacer, Ctrl gauche pour tirer, et la barre espace pour ouvrir les portes.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ dependencies = [
1111
"moviepy>=1.0.3",
1212
"matplotlib>=3.7",
1313
"pydub>=0.25.1",
14+
"cydoomgeneric @ git+https://github.com/Baduit/cydoomgeneric",
1415
]
1516
readme = "README.md"
1617
requires-python = ">= 3.11"

requirements-dev.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ charset-normalizer==3.4.0
1515
colorama==0.4.6
1616
contourpy==1.3.0
1717
cycler==0.12.1
18+
cydoomgeneric @ git+https://github.com/Baduit/cydoomgeneric@b20705b303e74b28985396cc5f06637e53607b16
1819
decorator==4.4.2
1920
fonttools==4.54.1
2021
idna==3.10

requirements.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ charset-normalizer==3.4.0
1515
colorama==0.4.6
1616
contourpy==1.3.0
1717
cycler==0.12.1
18+
cydoomgeneric @ git+https://github.com/Baduit/cydoomgeneric@b20705b303e74b28985396cc5f06637e53607b16
1819
decorator==4.4.2
1920
fonttools==4.54.1
2021
idna==3.10

src/croix_pharmacie/mains/doom.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import cydoomgeneric as cdg
2121
import pygame
2222

23+
from croix_pharmacie.asset_helper import get_asset_path
2324
from croix_pharmacie.pharmacontroller import PharmaScreen
2425

2526
SCREEN_WIDTH = 640
@@ -91,7 +92,7 @@ def main():
9192
SCREEN_HEIGHT,
9293
lambda pixels: draw_frame(screen, pixels, debug_figax),
9394
get_key)
94-
cdg.main()
95+
cdg.main(argv=["cydoomgeneric", "-iwad", str(get_asset_path("doom1.wad"))])
9596

9697

9798
if __name__ == "__main__":

0 commit comments

Comments
 (0)