Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
citius-invaders
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomás Teijeiro Campo
citius-invaders
Commits
acf6424e
Commit
acf6424e
authored
May 12, 2016
by
Pablo R. Mier
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
2ce9bc6b
1183a0d8
Pipeline
#584
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
game.py
game.py
+3
-2
No files found.
game.py
View file @
acf6424e
...
...
@@ -92,8 +92,9 @@ class InvadersGame(sge.dsp.Game):
if
self
.
anim_sleep
is
None
:
#The animation time is adjusted according to the number of new
#individuals.
self
.
anim_sleep
=
(
0
if
len
(
self
.
pairs
)
>
50
else
min
(
1.0
,
3.0
/
len
(
self
.
pairs
)))
self
.
anim_sleep
=
(
1.0
if
len
(
self
.
pairs
)
==
0
else
0
if
len
(
self
.
pairs
)
>
50
else
min
(
1.0
,
3.0
/
len
(
self
.
pairs
)))
else
:
time
.
sleep
(
self
.
anim_sleep
)
elif
self
.
pairs
is
not
None
:
...
...
Write
Preview
Markdown
is supported
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