Merge remote-tracking branch 'origin/main'

# Conflicts:
#	project/data/levels/level-01.csv
main
Skyball2000 2023-03-29 10:46:04 +02:00
commit 43c3c3786f
11 changed files with 111 additions and 15 deletions

View File

@ -1,17 +1,17 @@
#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,# #,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#
#,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,# #,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#
#,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,# #,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#
#,#,S,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,# #,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#
#,#,S,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,# #,#,>,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#
#,#,S,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,# #,#,>,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,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,,,,M,,,,,,M,,,,,,,,,,,,,,,,,M,,,,,,M,,,,,,,,,,,,,,,# #,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#
#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,# #,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#
#,,,,,,,,,,,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,# #,,,,,,,,,,,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#
#,L,,,,,,,,,,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,# #,L,,,,,,,,,,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#

1 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
2 # # #
3 # # #
4 # # S #
5 # # S > #
6 # # S > #
7 # # S > L M M C #
8 # # S > + + + + S S S S S + + + L + + S S S S S + + + + + S S S S S + + + + + + + C + + #
9 # # S > # + # + # + # + # S # S # S # S # S # + # + # + # + # + # S # S # S # S # S # + # + # + # + # + # S # S # S # S # S # + # + # + # + # + # + # + # + # + #
10 # # S > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
11 # # S > # #
12 # # > # #
13 # # G #
14 # M M M M #
15 # #
16 # + + + + + + + + + + + + + + + #
17 # L # # # # # # # # # # # # # # # #

View File

@ -1,7 +1,7 @@
[ [
{ {
"name": "0-tutorial", "name": "0-tutorial",
"theme": "tutorial", "theme": "cave",
"abilities": [ "abilities": [
], ],
"file": "0-tutorial.csv" "file": "0-tutorial.csv"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 614 B

After

Width:  |  Height:  |  Size: 833 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 616 B

After

Width:  |  Height:  |  Size: 823 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 628 B

After

Width:  |  Height:  |  Size: 817 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 620 B

After

Width:  |  Height:  |  Size: 798 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 634 B

After

Width:  |  Height:  |  Size: 821 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 610 B

After

Width:  |  Height:  |  Size: 651 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 618 B

After

Width:  |  Height:  |  Size: 661 B

View File

@ -586,6 +586,22 @@
], ],
"width": 12, "width": 12,
"height": 12 "height": 12
},
{
"id": "2",
"delays": [
1
],
"width": 12,
"height": 12
},
{
"id": "3",
"delays": [
1
],
"width": 12,
"height": 12
} }
] ]
}, },
@ -599,6 +615,22 @@
], ],
"width": 12, "width": 12,
"height": 12 "height": 12
},
{
"id": "2",
"delays": [
1
],
"width": 12,
"height": 12
},
{
"id": "3",
"delays": [
1
],
"width": 12,
"height": 12
} }
] ]
}, },
@ -612,6 +644,22 @@
], ],
"width": 12, "width": 12,
"height": 12 "height": 12
},
{
"id": "2",
"delays": [
1
],
"width": 12,
"height": 12
},
{
"id": "3",
"delays": [
1
],
"width": 12,
"height": 12
} }
] ]
}, },
@ -638,6 +686,22 @@
], ],
"width": 12, "width": 12,
"height": 12 "height": 12
},
{
"id": "2",
"delays": [
1
],
"width": 12,
"height": 12
},
{
"id": "3",
"delays": [
1
],
"width": 12,
"height": 12
} }
] ]
}, },
@ -651,6 +715,22 @@
], ],
"width": 12, "width": 12,
"height": 12 "height": 12
},
{
"id": "2",
"delays": [
1
],
"width": 12,
"height": 12
},
{
"id": "3",
"delays": [
1
],
"width": 12,
"height": 12
} }
] ]
}, },
@ -664,6 +744,22 @@
], ],
"width": 12, "width": 12,
"height": 12 "height": 12
},
{
"id": "2",
"delays": [
1
],
"width": 12,
"height": 12
},
{
"id": "3",
"delays": [
1
],
"width": 12,
"height": 12
} }
] ]
}, },

View File

@ -16,7 +16,7 @@ class PlayerSprite(DynamicSprite):
self.deceleration_horizontal_air = 0.2 self.deceleration_horizontal_air = 0.2
self.deceleration_horizontal_ground = 0.4 self.deceleration_horizontal_ground = 0.4
self.gravity = 9.81 / 10 self.gravity = 9.81 / 11
self.max_motion_horizontal_via_input = 5 self.max_motion_horizontal_via_input = 5
self.id = 'player' self.id = 'player'
@ -41,9 +41,9 @@ class PlayerSprite(DynamicSprite):
if tick_data.key_manager.is_keymap_down(KeyManager.KEY_UP): if tick_data.key_manager.is_keymap_down(KeyManager.KEY_UP):
if self.jump_time < 0 and self.get_collides_with_direction(CollisionDirection.BOTTOM): if self.jump_time < 0 and self.get_collides_with_direction(CollisionDirection.BOTTOM):
self.jump_time = self.allowed_jump_time self.jump_time = self.allowed_jump_time
self.motion = (self.motion[0], self.motion[1] - 6) self.motion = (self.motion[0], self.motion[1] - 7)
if self.jump_time >= 0: if self.jump_time >= 0:
self.motion = (self.motion[0], self.motion[1] - 0.55) self.motion = (self.motion[0], self.motion[1] - 0.6)
if self.jump_time >= 0: if self.jump_time >= 0:
self.jump_time -= 1 self.jump_time -= 1