Skip to content

Commit

Permalink
Update to latest python arcade version
Browse files Browse the repository at this point in the history
  • Loading branch information
richstokes committed Jan 24, 2021
1 parent d8e9648 commit 41d8949
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 13 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Inspired by Netflix's "[Chaos Monkey](https://github.com/Netflix/chaosmonkey)",
 

>CHAOS ENGINEERING IS:
>"the discipline of experimenting on a distributed system in order to build confidence in the system's capability to withstand turbulent conditions in production."
>
>This game is more for fun and demonstration purposes than to be a genuine chaos engineering tool. That said, over time I may add other disruptive features beyond simply killing pods. Feel free to open an "issue" with any suggestions!
>"the discipline of experimenting on a distributed system in order to build confidence in the system's capability to withstand turbulent conditions in production."
This game is more for fun and demonstration purposes than to be a genuine chaos engineering tool. That said, over time I may add other disruptive features beyond simply killing pods. Feel free to open an "issue" with any suggestions!

 

Expand All @@ -31,7 +31,18 @@ Press 'R' to reset the game.

1. Clone the repo
2. `pip install -r requirements.txt`
3. `python cheekymonkey.py`
3. `python cheekymonkey.py`

Or with `pyenv` (recommended):

```
pyenv install 3.8.7
eval "$(pyenv init -)"
pyenv local 3.8.7
pip install -r requirements.txt
python ./cheekymonkey.py
```

 

Expand Down
6 changes: 4 additions & 2 deletions cheekymonkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import timeit
import os
import arcade
from arcade.examples.frametime_plotter import FrametimePlotter
# from arcade.examples.frametime_plotter import FrametimePlotter
# from arcade import FrametimePlotter
from pyglet.gl import GL_NEAREST, GL_LINEAR
import pymunk
import logging
Expand Down Expand Up @@ -80,7 +81,8 @@ def setup(self):
self.grab_joint = None

# Lists of sprites
self.dynamic_sprite_list = arcade.SpriteList[PymunkSprite]()
# self.dynamic_sprite_list = arcade.SpriteList[PymunkSprite]()
self.dynamic_sprite_list = arcade.SpriteList() # I dont know why, but this had to change from the above line
self.static_sprite_list = arcade.SpriteList()
self.static_sprite_list.is_static = True
self.bg_sprite_list = arcade.SpriteList()
Expand Down
2 changes: 1 addition & 1 deletion constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
CONTAINER_FACTOR = 1

# How many containers to spawn in offline mode
OFFLINE_CRATE_COUNT = 15
OFFLINE_CRATE_COUNT = 30

# Default friction used for sprites, unless otherwise specified
DEFAULT_FRICTION = 0.4
Expand Down
Binary file not shown.
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
# cheekymonkey/create_level.py: 5
# cheekymonkey/physics_utility.py: 1
# cheekymonkey/player_utility.py: 1
arcade == 2.3.15
arcade == 2.5.2

# cheekymonkey/k8s_kill_pod.py: 1
kubernetes == 11.0.0

# cheekymonkey/cheekymonkey.py: 6
pyglet == 1.5.3
# pyglet <2 && >=1.5.11

# cheekymonkey/cheekymonkey.py: 7
# cheekymonkey/create_level.py: 4
# cheekymonkey/physics_utility.py: 8
# cheekymonkey/player_utility.py: 28
pymunk == 6.0.0
pymunk == 5.7
6 changes: 3 additions & 3 deletions upgrade-packages.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
# Helper script for me, you shouldn't need to run this
pip install --upgrade arcade
pip install --upgrade pymunk
pip install pigar || true
pip3 install --upgrade arcade
pip3 install --upgrade pymunk
pip3 install pigar || true
pigar
git add requirements.txt
git commit -m 'Updating packages'

0 comments on commit 41d8949

Please sign in to comment.