Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scos
scos.projects
2PSnake
Commits
dfc5b244
Commit
dfc5b244
authored
Nov 11, 2020
by
Julian Rudolf
Browse files
set both snakes shield to true
parent
a6731aab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Game/main.py
View file @
dfc5b244
...
...
@@ -1079,7 +1079,7 @@ def game_loop():
# create snakes
snake1
=
Snake
(
startsnake1
[
"pos"
],
startsnake1
[
"vel"
],
startsnake1
[
"angle"
],
0
,
img
=
p1_snake
[
0
],
color
=
p1_snake
[
1
],
apple_img
=
green_apple
,
act_shield
=
Fals
e
,
length
=
snake_length
)
apple_img
=
green_apple
,
act_shield
=
Tru
e
,
length
=
snake_length
)
snake2
=
Snake
(
startsnake2
[
"pos"
],
startsnake2
[
"vel"
],
startsnake2
[
"angle"
],
1
,
img
=
p2_snake
[
0
],
color
=
p2_snake
[
1
],
apple_img
=
purple_apple
,
act_shield
=
True
,
length
=
snake_length
,
dir
=
False
)
snake1
.
set_enemy_snake
(
snake2
.
shield_snake
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment