Skip to content

Commit

Permalink
update rit game space-invasion formula
Browse files Browse the repository at this point in the history
Signed-off-by: GuillaumeFalourd <[email protected]>
  • Loading branch information
GuillaumeFalourd committed Mar 8, 2021
1 parent 95ee3b2 commit e5bdcc8
Show file tree
Hide file tree
Showing 27 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This repository contains Ritchie formulas which can be executed by [ritchie-cli]
- [Send Email](https://github.com/GuillaumeFalourd/formulas-python/tree/master/send/email): `rit send email`
- [Snake Game](https://github.com/GuillaumeFalourd/formulas-python/tree/master/game/snake): `rit game snake`
- [Flappy Bird Game](https://github.com/GuillaumeFalourd/formulas-python/tree/master/game/flappy-bird): `rit game flappy-bird`
- [Alien Invasion Game](https://github.com/GuillaumeFalourd/formulas-python/tree/master/game/alien-invasion): `rit game alien-invasion`
- [Space Invasion Game](https://github.com/GuillaumeFalourd/formulas-python/tree/master/game/space-invasion): `rit game space-invasion`

### Doing

Expand Down
Binary file removed docs/img/rit-game-alien-invasion-formula.png
Binary file not shown.
Binary file removed docs/img/rit-game-alien-invasion-play.png
Binary file not shown.
Binary file added docs/img/rit-game-space-invasion-formula.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/rit-game-space-invasion-play.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 0 additions & 17 deletions game/alien-invasion/README.md

This file was deleted.

File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions game/space-invasion/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Ritchie Formula

## Command

```bash
rit game space-invasion
```

## Description

Formula para jogar Space Invasion (Space Invaders like) usando o Ritchie.

## Demo

![Execution](/docs/img/rit-game-space-invasion-formula.png)

![Game](/docs/img/rit-game-space-invasion-play.png)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def bullet_configurations(self, mode):
def ship_configurations(self, mode):
self.ship_limit = 3
if mode == "EASY":
self.ship_speed_factor = 1.5
self.ship_speed_factor = 2
if mode == "MEDIUM":
self.ship_speed_factor = 1.25
self.ship_speed_factor = 1.5
if mode == "HARD":
self.ship_speed_factor = 1

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
print("\033[32m🟒 Click the \"PLAY\" button to start \033[0m")
print("\033[32m🟑 Shoot bullets using the \"SPACE\" KEY\033[0m")
print("\033[32m🟠 Move the ship using UP KEY πŸ”Ό, DOWN KEY πŸ”½, LEFT KEY ◀️ and RIGHT KEY ▢️ \033[0m")
print("\033[31mπŸ”΄ Press the \"ESCAPE\" KEY on the Alien Invasion screen to end the game! \033[0m")
print("\033[31mπŸ”΄ Press the \"ESCAPE\" KEY on the Space Invasion screen to end the game! \033[0m")
print("")

def run(mode):
Expand All @@ -24,7 +24,7 @@ def run(mode):

screen = pygame.display.set_mode((ai_settings.screen_width, ai_settings.screen_height))

pygame.display.set_caption("Alien Invasion")
pygame.display.set_caption("Space Invasion")

# Make the Play button.
play_button = Button(ai_settings, screen, "Play")
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e5bdcc8

Please sign in to comment.