-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6603e9
commit 92f2311
Showing
17 changed files
with
182 additions
and
125 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
from maps import Map | ||
|
||
from characters.player import Player | ||
from characters.enemy import Enemy | ||
from characters.texture import Texture | ||
|
||
from components.events.grace_period import GracePeriod | ||
from components.events.text import TextEvent | ||
|
||
from components.text import Text | ||
from components.text.text_collection import TextCollection | ||
|
||
from components.sprites.sprite import Sprite | ||
from components.sprites.sprite_handler import SpriteHandler | ||
from components.sprites.sprite_collection import SpriteCollection | ||
|
||
class MapTest(Map): | ||
def __init__(self, player: Player, sign): | ||
super(Map, self).__init__() | ||
|
||
self.player = player | ||
|
||
# # NPC | ||
# self.sign = sign | ||
|
||
# self.emilia = Player("assets/images/chr_emilia.png", (400, 193), 0.4) # 에밀리아 | ||
# self.emilia.dialog = TextCollection( | ||
# [ | ||
# Text("#이 쪽으로 잘 왔구나!#"), | ||
# Text("여기는 훈련장이야."), | ||
# Text("쭉 가면 적이 출몰할거야!"), | ||
# Text("적은 *J키*로 공격할 수 있으니 참고하라구!") | ||
# ], | ||
# self.sign.width | ||
# ) | ||
|
||
self.NPCs = [] | ||
|
||
self.obstacles = [] | ||
self.enemies = [] | ||
|
||
# 배경 | ||
self.background = Texture("assets/images/background_main.png", (0, 0), 1, repeat_x=2, fit=True) | ||
self.floor = Texture("assets/images/ground.png", (0, 320), 0.4, repeat_x=2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.