Skip to content

Commit

Permalink
Ready to go
Browse files Browse the repository at this point in the history
  • Loading branch information
AdskiyPonchik committed Sep 29, 2023
0 parents commit 08aa424
Show file tree
Hide file tree
Showing 129 changed files with 549 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/Quazar.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Character_tools/Character_Left_old/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Character_Left_old/10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Character_Left_old/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Character_Left_old/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Character_Left_old/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Character_Left_old/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Character_Left_old/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Character_Left_old/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Character_Left_old/8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Character_Left_old/9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Character_Right_old/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Character_Right_old/10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Character_Right_old/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Character_Right_old/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Character_Right_old/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Character_Right_old/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Character_Right_old/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Character_Right_old/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Character_Right_old/8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Character_Right_old/9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/Main_Character.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/left/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/left/10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/left/11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/left/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Character_tools/left/3.png
Binary file added Character_tools/left/4.png
Binary file added Character_tools/left/5.png
Binary file added Character_tools/left/6.png
Binary file added Character_tools/left/7.png
Binary file added Character_tools/left/8.png
Binary file added Character_tools/left/9.png
Binary file added Character_tools/right/1.png
Binary file added Character_tools/right/10.png
Binary file added Character_tools/right/2.png
Binary file added Character_tools/right/3.png
Binary file added Character_tools/right/4.png
Binary file added Character_tools/right/5.png
Binary file added Character_tools/right/6.png
Binary file added Character_tools/right/7.png
Binary file added Character_tools/right/8.png
Binary file added Character_tools/right/9.png
Binary file added Character_tools/right_fixed/1.png
Binary file added Character_tools/right_fixed/10.png
Binary file added Character_tools/right_fixed/2.png
Binary file added Character_tools/right_fixed/3.png
Binary file added Character_tools/right_fixed/4.png
Binary file added Character_tools/right_fixed/5.png
Binary file added Character_tools/right_fixed/6.png
Binary file added Character_tools/right_fixed/7.png
Binary file added Character_tools/right_fixed/8.png
Binary file added Character_tools/right_fixed/9.png
Binary file added Coin/1.png
Binary file added Coin/2.png
Binary file added Coin/3.png
Binary file added Coin/4.png
Binary file added Coin/5.png
Binary file added Coin/6.png
Binary file added Coin/7.png
Binary file added Coin/8.png
Binary file added Platforms/1.png
Binary file added Platforms/10.png
Binary file added Platforms/11.png
Binary file added Platforms/2.png
Binary file added Platforms/3.png
Binary file added Platforms/4.png
Binary file added Platforms/5.png
Binary file added Platforms/6.png
Binary file added Platforms/7.png
Binary file added Platforms/8.png
Binary file added Platforms/9.png
Binary file added Score/0.png
Binary file added Score/1.png
Binary file added Score/2.png
Binary file added Score/3.png
Binary file added Score/4.png
Binary file added Score/5.png
Binary file added Score/6.png
Binary file added Score/7.png
Binary file added Score/8.png
Binary file added Score/9.png
Binary file added Score/Trophy.png
4 changes: 4 additions & 0 deletions Score/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[ViewState]
Mode=
Vid=
FolderType=Pictures
Binary file added Sounds/coin.wav
Binary file not shown.
Binary file added Sounds/fallback.mp3
Binary file not shown.
Binary file added Sounds/main_theme.mp3
Binary file not shown.
Binary file added Sounds/win_sound.wav
Binary file not shown.
Binary file added Tool.png
40 changes: 40 additions & 0 deletions Untitled Workspace.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
text,type,typeId,Description
Main,Process,creately.flowchart.process,
"Level.py

- setup_level
-scroll_x
-horisontal_collision
-vertical_collision
-go",Process,creately.flowchart.process,
"Player

- character_image
- animate
- get_input
- apply_gravity
- jump
- update",Process,creately.flowchart.process,
"Platforma

- platform_image
- animate
- update",Process,creately.flowchart.process,
"Score_counter

- score_image",Process,creately.flowchart.process,
"Support

- player_importer
- platform_importer
- coin_importer",Process,creately.flowchart.process,
"Config
- level_map
- tile_size
- screen_width
- screen height",Process,creately.flowchart.process,
"Coin

- coin_image
- animate
- update",Process,creately.flowchart.process,
Binary file added base_hinterground.png
Binary file added hinterground.png
72 changes: 72 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions programming part/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions programming part/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions programming part/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions programming part/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions programming part/.idea/programming part.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file added programming part/__pycache__/coin.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added programming part/__pycache__/main.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added programming part/__pycache__/support.cpython-310.pyc
Binary file not shown.
Binary file not shown.
30 changes: 30 additions & 0 deletions programming part/coin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import pygame
from support import coin_importer
class Coin(pygame.sprite.Sprite):
def __init__(self,pos):
super().__init__()
self.coin_image()
self.frame_index = 0
self.animation_speed = 0.15
self.image = self.animations['Coin'][self.frame_index]
self.rect = self.image.get_rect(topleft = pos)

def coin_image(self):
coin_path = '../'
self.animations = {'Coin':[]}
for animation in self.animations.keys():
full_path = coin_path + animation
self.animations[animation] = coin_importer(full_path)

def animate(self):
animation = self.animations['Coin']
self.frame_index+=self.animation_speed
if self.frame_index>=len(animation):
self.frame_index = 0

image = animation[int(self.frame_index)]
self.image = image

def update(self,dx):
self.animate()
self.rect.x+=dx
15 changes: 15 additions & 0 deletions programming part/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
level_map = [
'x x x',
'x c c c x x',
'x c x xx x xx xx xx xx xx x x',
'x xxx x x xx xxx x x x x',
'x x x c xx xxxxx x c x',
'x xxx xxx c xxxxx xx xx xxxx xxx x x',
'x xxxxxx xxx c xx xxx x x x',
'x xxx xxx xxxx xxxxxx xxx c xxx xxx xxx x',
'x P c xxxxxx xxx xxx x',
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',]

tile_size = 64
screen_width = 1200
screen_height = len(level_map) * tile_size
Loading

0 comments on commit 08aa424

Please sign in to comment.