Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spieleprogrammieren
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Teckids
Projekt Hack-n-Fun
Material und Vorlagen
Spieleprogrammieren
Commits
9ce7fc33
Commit
9ce7fc33
authored
2 years ago
by
Robert Seimetz
Browse files
Options
Downloads
Patches
Plain Diff
Remove obsolete param
parent
fe5ccc5b
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Licenses.md
+6
-2
6 additions, 2 deletions
Licenses.md
gameparts/enemies.py
+1
-2
1 addition, 2 deletions
gameparts/enemies.py
main_template.py
+1
-1
1 addition, 1 deletion
main_template.py
map.tmx
+3
-3
3 additions, 3 deletions
map.tmx
with
11 additions
and
8 deletions
Licenses.md
+
6
−
2
View file @
9ce7fc33
...
@@ -22,5 +22,9 @@
...
@@ -22,5 +22,9 @@
-
Author: Puddin
-
Author: Puddin
-
link: https://opengameart.org/content/rotating-coin
-
link: https://opengameart.org/content/rotating-coin
-
CC0: https://creativecommons.org/publicdomain/zero/1.0/
-
CC0: https://creativecommons.org/publicdomain/zero/1.0/
-
[
BasicTilesets
](
tilesets/BasicTileset_Tiles.png
)
All other files (but just files in
`img`
and
`sound`
) are CC0: https://creativecommons.org/publicdomain/zero/1.0/
-
Author: marceles
\ No newline at end of file
-
Link: https://opengameart.org/content/basic-tiles-for-gbstudiogame-boy
-
CC-BY 4.0: https://creativecommons.org/licenses/by/4.0/
All other files (but just files in
`img`
and
`sound`
) are CC0: https://creativecommons.org/publicdomain/zero/1.0/
This diff is collapsed.
Click to expand it.
gameparts/enemies.py
+
1
−
2
View file @
9ce7fc33
...
@@ -7,10 +7,9 @@ from gameparts.basics import _Physics, _Character, rotate_image
...
@@ -7,10 +7,9 @@ from gameparts.basics import _Physics, _Character, rotate_image
class
LinearEnemy
(
_Character
,
_Physics
):
class
LinearEnemy
(
_Character
,
_Physics
):
def
__init__
(
self
,
location
,
size
,
image
,
tilemap
,
walls
,
speed
,
direction
):
def
__init__
(
self
,
location
,
size
,
image
,
tilemap
,
walls
,
direction
):
_Character
.
__init__
(
self
,
location
,
size
,
image
,
tilemap
)
_Character
.
__init__
(
self
,
location
,
size
,
image
,
tilemap
)
_Physics
.
__init__
(
self
,
walls
)
_Physics
.
__init__
(
self
,
walls
)
self
.
speed
=
speed
self
.
bouncetype
=
"
invert
"
self
.
bouncetype
=
"
invert
"
self
.
move
=
direction
self
.
move
=
direction
...
...
This diff is collapsed.
Click to expand it.
main_template.py
+
1
−
1
View file @
9ce7fc33
...
@@ -55,7 +55,7 @@ for objects in tilemap.data.objects:
...
@@ -55,7 +55,7 @@ for objects in tilemap.data.objects:
print
(
"
Coin
"
)
print
(
"
Coin
"
)
# Für alle gewünschten Charactergruppen
# Für alle gewünschten Charactergruppen
if
objects
.
name
==
"
bat
"
:
if
objects
.
name
==
"
bat
"
:
enemies
.
add
(
Following
Enemy
((
objects
.
x
,
objects
.
y
),
(
49
,
22
),
"
bat.png
"
,
tilemap
,
platforms
,
10
,
player
))
enemies
.
add
(
Linear
Enemy
((
objects
.
x
,
objects
.
y
),
(
49
,
22
),
"
bat.png
"
,
tilemap
,
platforms
,
10
,
[
3
,
0
]
))
print
(
"
Bat
"
)
print
(
"
Bat
"
)
...
...
This diff is collapsed.
Click to expand it.
map.tmx
+
3
−
3
View file @
9ce7fc33
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<map
version=
"1.
4
"
tiledversion=
"1.
4.3
"
orientation=
"orthogonal"
renderorder=
"right-down"
width=
"90"
height=
"45"
tilewidth=
"16"
tileheight=
"16"
infinite=
"0"
nextlayerid=
"8"
nextobjectid=
"35"
>
<map
version=
"1.
8
"
tiledversion=
"1.
8.2
"
orientation=
"orthogonal"
renderorder=
"right-down"
width=
"90"
height=
"45"
tilewidth=
"16"
tileheight=
"16"
infinite=
"0"
nextlayerid=
"8"
nextobjectid=
"35"
>
<tileset
firstgid=
"1"
source=
"
./
tilesets/tilemap.tsx"
/>
<tileset
firstgid=
"1"
source=
"tilesets/tilemap.tsx"
/>
<layer
id=
"1"
name=
"Tile Layer 1"
width=
"90"
height=
"45"
>
<layer
id=
"1"
name=
"Tile Layer 1"
width=
"90"
height=
"45"
>
<data
encoding=
"csv"
>
<data
encoding=
"csv"
>
69,66,66,66,66,66,66,28,29,29,29,29,29,30,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,
69,66,66,66,66,66,66,28,29,29,29,29,29,30,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
</data>
</data>
</layer>
</layer>
<objectgroup
id=
"7"
name=
"characters"
>
<objectgroup
id=
"7"
name=
"characters"
>
<object
id=
"34"
name=
"bat"
x=
"
1072.25"
y=
"495.
5"
width=
"31.75"
height=
"32"
/>
<object
id=
"34"
name=
"bat"
x=
"
234.565"
y=
"10.203
5"
width=
"31.75"
height=
"32"
/>
</objectgroup>
</objectgroup>
<objectgroup
id=
"6"
name=
"coins"
>
<objectgroup
id=
"6"
name=
"coins"
>
<object
id=
"27"
name=
"coin"
x=
"320.727"
y=
"623.818"
width=
"15.8182"
height=
"15.2727"
/>
<object
id=
"27"
name=
"coin"
x=
"320.727"
y=
"623.818"
width=
"15.8182"
height=
"15.2727"
/>
...
...
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