Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
typespace
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Drahflow
typespace
Commits
b1b3410f
Unverified
Commit
b1b3410f
authored
3 years ago
by
Drahflow
Browse files
Options
Downloads
Patches
Plain Diff
Level 8 (r + u)
parent
45737687
Branches
master
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
level8.py
+30
-0
30 additions, 0 deletions
level8.py
typespace.py
+3
-2
3 additions, 2 deletions
typespace.py
with
33 additions
and
2 deletions
level8.py
0 → 100644
+
30
−
0
View file @
b1b3410f
from
enemies
import
Fighter
,
Shooter
,
Boss
from
objects
import
Text
from
random
import
random
,
choice
def
level8
(
objects
,
tick
):
if
tick
==
1
:
objects
.
append
(
Text
(
"
Level 8
"
,
50
))
objects
.
append
(
Text
(
"
Zeigefinger auch für r und u
"
,
100
))
elif
tick
<
2000
:
if
tick
%
400
==
0
:
objects
.
append
(
Fighter
(
"
r
"
,
100
,
0
))
objects
.
append
(
Fighter
(
"
r
"
,
150
,
0
))
objects
.
append
(
Fighter
(
"
u
"
,
650
,
0
))
objects
.
append
(
Fighter
(
"
u
"
,
700
,
0
))
elif
tick
<
4000
:
if
tick
%
400
==
0
:
objects
.
append
(
Shooter
(
"
rd
"
,
200
,
0
,
"
jfaö
"
))
objects
.
append
(
Fighter
(
"
rr
"
,
250
,
0
))
objects
.
append
(
Fighter
(
"
uu
"
,
550
,
0
))
objects
.
append
(
Shooter
(
"
uk
"
,
600
,
0
,
"
jfaö
"
))
elif
tick
<
5200
:
if
tick
%
400
==
0
:
objects
.
append
(
Fighter
(
"
rs
"
,
200
,
0
))
objects
.
append
(
Fighter
(
"
rf
"
,
250
,
0
))
objects
.
append
(
Fighter
(
"
uj
"
,
550
,
0
))
objects
.
append
(
Fighter
(
"
ul
"
,
600
,
0
))
elif
tick
==
5200
:
objects
.
append
(
Boss
(
choice
([
"
fahr
"
,
"
fuhr
"
]),
400
,
0
))
elif
tick
==
6000
:
return
True
This diff is collapsed.
Click to expand it.
typespace.py
+
3
−
2
View file @
b1b3410f
...
...
@@ -33,10 +33,11 @@ from level4 import level4
from
level5
import
level5
from
level6
import
level6
from
level7
import
level7
from
level8
import
level8
from
won
import
won
levels
=
[
level1
,
level2
,
level3
,
level4
,
level5
,
level6
,
level7
,
won
]
# levels = [won]
levels
=
[
level1
,
level2
,
level3
,
level4
,
level5
,
level6
,
level7
,
level8
,
won
]
# levels = [
level8,
won]
level
=
levels
.
pop
(
0
)
clock
=
pygame
.
time
.
Clock
()
completed
=
False
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment