Initial Commit
15
.vscode2/launch.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Python Debugger: Current File with Arguments",
|
||||||
|
"type": "debugpy",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "${workspaceFolder}/main.py",
|
||||||
|
"console": "integratedTerminal"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
27
TESTING/Time.py
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
import pygame
|
||||||
|
from icecream import ic
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
|
|
||||||
|
CLOCK = pygame.time.Clock()
|
||||||
|
|
||||||
|
testOn = True
|
||||||
|
timeStart = pygame.time.get_ticks()
|
||||||
|
|
||||||
|
while testOn: # Pretend game loop.
|
||||||
|
if ic(pygame.time.get_ticks() - timeStart) >= 2000: # Once 2000 ms has elapsed.
|
||||||
|
ic("Time has elapsed.")
|
||||||
|
testOn = False
|
||||||
|
|
||||||
|
del testOn, timeStart
|
||||||
|
|
||||||
|
# ---------------------------------------------------------
|
||||||
|
sleep(2)
|
||||||
|
# ---------------------------------------------------------
|
||||||
|
|
||||||
|
timeStart = pygame.time.get_ticks()
|
||||||
|
|
||||||
|
while ic(pygame.time.get_ticks() - timeStart) < 2000:
|
||||||
|
pass
|
||||||
|
|
||||||
|
ic("Time has elapsed.")
|
||||||
21
TESTING/Xlib_utilization.py
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
# Taken from Glyph, Eevee on https://stackoverflow.com/questions/1225057/how-can-i-determine-the-monitor-refresh-rate
|
||||||
|
# Deconstruction, Commenting and Renaming by Cutieguwu.
|
||||||
|
|
||||||
|
from Xlib import display
|
||||||
|
from Xlib.ext import randr
|
||||||
|
|
||||||
|
displayGlobal = display.Display() # Get every display thing. Maybe a WM object?
|
||||||
|
default_screen = displayGlobal.get_default_screen() # Find default display for some reason.
|
||||||
|
info = displayGlobal.screen(default_screen) # Use this as a point to get information about all screens.
|
||||||
|
|
||||||
|
displayConfigs = randr.get_screen_resources(info.root) # Get every screen's possible configurations.
|
||||||
|
ConfigsActive = set() # Create an empty set to add configurations to.
|
||||||
|
|
||||||
|
for config in displayConfigs.crtcs: # For every display configuration, determine if it's active and add its identifier to the configurations in use.
|
||||||
|
crtc_info = randr.get_crtc_info(info.root, config, displayConfigs.config_timestamp)
|
||||||
|
if crtc_info.mode:
|
||||||
|
ConfigsActive.add(crtc_info.mode)
|
||||||
|
|
||||||
|
for config in displayConfigs.modes:
|
||||||
|
if config.id in ConfigsActive: # For every active display mode, figure out its framerate.
|
||||||
|
print(config.dot_clock / (config.h_total * config.v_total))
|
||||||
31
TESTING/clean python version
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
from sys import version
|
||||||
|
|
||||||
|
versionStr = ""
|
||||||
|
|
||||||
|
for c in version:
|
||||||
|
if c == " ":
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
versionStr = versionStr + c
|
||||||
|
|
||||||
|
versionTuple = tuple(versionStr.split("."))
|
||||||
|
|
||||||
|
print(versionTuple)
|
||||||
|
|
||||||
|
# GCC CLEANUP
|
||||||
|
|
||||||
|
versionStr = ""
|
||||||
|
startFlag = False
|
||||||
|
|
||||||
|
for c in version:
|
||||||
|
if startFlag:
|
||||||
|
if c not in ["G", "C", "]"]:
|
||||||
|
versionStr = versionStr + c
|
||||||
|
elif c == "[":
|
||||||
|
startFlag = True
|
||||||
|
|
||||||
|
print(versionStr)
|
||||||
|
|
||||||
|
versionTuple = tuple(versionStr.split())
|
||||||
|
|
||||||
|
print(versionTuple)
|
||||||
15
TESTING/for loop debugging.py
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
myList = ["A", "A", "A", "D"]
|
||||||
|
|
||||||
|
for i in myList:
|
||||||
|
|
||||||
|
if i == "A":
|
||||||
|
myList.append("A")
|
||||||
|
else:
|
||||||
|
myList[2] = "C"
|
||||||
|
|
||||||
|
print(myList)
|
||||||
|
|
||||||
|
|
||||||
|
for button in buttonList:
|
||||||
|
if button.name in ["Start", "Back"]:
|
||||||
|
button.remove()
|
||||||
39
TESTING/refreshed spawned classes.py
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
import pygame
|
||||||
|
from os import path
|
||||||
|
|
||||||
|
class Guy():
|
||||||
|
def __init__(self, mouseCoords):
|
||||||
|
self.coords = mouseCoords
|
||||||
|
self.image = pygame.image.load(path.dirname(__file__) + "/../data/image/ui/icons/settings_neutral.png")
|
||||||
|
|
||||||
|
def draw(self):
|
||||||
|
"""
|
||||||
|
Draws character.
|
||||||
|
"""
|
||||||
|
WINDOW.blit(self.image, (self.coords))
|
||||||
|
|
||||||
|
WINDOW = pygame.display.set_mode((720, 480))
|
||||||
|
CLOCK = pygame.time.Clock()
|
||||||
|
|
||||||
|
gameOn = True
|
||||||
|
guys = []
|
||||||
|
|
||||||
|
while gameOn:
|
||||||
|
|
||||||
|
CLOCK.tick(30)
|
||||||
|
|
||||||
|
WINDOW.fill((150, 150, 150))
|
||||||
|
|
||||||
|
for guy in guys:
|
||||||
|
guy.draw()
|
||||||
|
|
||||||
|
pygame.display.flip()
|
||||||
|
|
||||||
|
for event in pygame.event.get():
|
||||||
|
if event.type == pygame.QUIT:
|
||||||
|
gameOn = False
|
||||||
|
pygame.quit()
|
||||||
|
elif event.type == pygame.MOUSEBUTTONDOWN:
|
||||||
|
if 0 in pygame.mouse.get_pressed():
|
||||||
|
# Left button pressed
|
||||||
|
guys.append(Guy(pygame.mouse.get_pos()))
|
||||||
BIN
__pycache__/main.cpython-311.pyc
Normal file
37
config/features.json
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"fullscreen": {
|
||||||
|
"libs": {
|
||||||
|
"pygame": {
|
||||||
|
"ver_implemented": [2, 0, 0]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"is_active": false
|
||||||
|
},
|
||||||
|
|
||||||
|
"vsync": {
|
||||||
|
"libs": {
|
||||||
|
"pygame": {
|
||||||
|
"ver_implemented": [2, 0, 0]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"is_active": false
|
||||||
|
},
|
||||||
|
|
||||||
|
"matchcase": {
|
||||||
|
"libs": {
|
||||||
|
"python": {
|
||||||
|
"ver_implemented": [3, 10, 0]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"is_active": false
|
||||||
|
},
|
||||||
|
|
||||||
|
"resizeable": {
|
||||||
|
"libs": {
|
||||||
|
"pygame": {
|
||||||
|
"ver_implemented": [2, 0, 0]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"is_active": false
|
||||||
|
}
|
||||||
|
}
|
||||||
9
config/settings/default.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"window": {
|
||||||
|
"framerate": 30,
|
||||||
|
"size": {
|
||||||
|
"width": 1440,
|
||||||
|
"height": 720
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
26
config/settings/user.json
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"window": {
|
||||||
|
"framerate": 165,
|
||||||
|
"size": {
|
||||||
|
"width": 2280,
|
||||||
|
"height": 1440
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"controls": {
|
||||||
|
"keyboard": {
|
||||||
|
"move_left": "K_LEFT",
|
||||||
|
"move_right": "K_RIGHT",
|
||||||
|
"move_up": "K_UP",
|
||||||
|
"move_down": "K_DOWN"
|
||||||
|
},
|
||||||
|
|
||||||
|
"mouse": {
|
||||||
|
"is_inverted":
|
||||||
|
false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"active_features": [
|
||||||
|
"fullscreen"
|
||||||
|
]
|
||||||
|
}
|
||||||
58
data/credits.txt
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
Coding:
|
||||||
|
|
||||||
|
- Olivia Brooks (Cutieguwu)
|
||||||
|
|
||||||
|
|
||||||
|
StackOverflow Thanks:
|
||||||
|
|
||||||
|
https://stackoverflow.com/questions/1225057/how-can-i-determine-the-monitor-refresh-rate
|
||||||
|
|
||||||
|
- Glyph (StackOverflow)
|
||||||
|
- Eevee (StackOverflow)
|
||||||
|
- Anurag Uniyal (StackOverflow)
|
||||||
|
|
||||||
|
https://stackoverflow.com/questions/46419607/how-to-automatically-install-required-packages-from-a-python-script-as-necessary
|
||||||
|
|
||||||
|
- Serge Stroobandt (StackOverflow)
|
||||||
|
|
||||||
|
|
||||||
|
Conceptualisation:
|
||||||
|
|
||||||
|
- Olivia Brooks
|
||||||
|
- Jayde Paquette
|
||||||
|
|
||||||
|
|
||||||
|
Artwork:
|
||||||
|
|
||||||
|
- Jayde Paquette (Lead)
|
||||||
|
- Olivia Brooks (Development Images)
|
||||||
|
- Mojang (Development Images)
|
||||||
|
|
||||||
|
|
||||||
|
Open Libraries:
|
||||||
|
|
||||||
|
Used in the Making
|
||||||
|
|
||||||
|
- Pygame
|
||||||
|
- IceCream
|
||||||
|
- Python built-ins and packaged libs
|
||||||
|
|
||||||
|
|
||||||
|
Sounds and Effects:
|
||||||
|
|
||||||
|
Soundbible.com
|
||||||
|
|
||||||
|
- WEL
|
||||||
|
- Jim Rogers
|
||||||
|
- Mark DiAngelo
|
||||||
|
- GoodSoundForYou
|
||||||
|
- Marcel
|
||||||
|
- Mike Koenig
|
||||||
|
- FreqMan
|
||||||
|
- thecheeseman
|
||||||
|
- Vladimir
|
||||||
|
|
||||||
|
Voiceover
|
||||||
|
|
||||||
|
- Jayde Paquette (Commencing Slaughter)
|
||||||
|
- Jenna Allen (Death Cough)
|
||||||
BIN
data/font/Another_Danger___Demo_Regular.otf
Normal file
BIN
data/font/Domestic_Manners.ttf
Normal file
BIN
data/font/Who_asks_Satan_Regular.ttf
Normal file
BIN
data/image/game/blocks/puddle_blood/puddle_blood_0.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
data/image/game/blocks/puddle_blood/puddle_blood_1.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
data/image/game/blocks/puddle_blood/puddle_blood_2.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
data/image/game/blocks/puddle_blood/puddle_blood_3.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
data/image/game/blocks/puddle_blood/puddle_blood_4.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
data/image/game/blocks/puddle_blood/puddle_blood_neutral.png
Normal file
|
After Width: | Height: | Size: 931 B |
BIN
data/image/game/blocks/puddle_souls/puddle_souls_rich.png
Normal file
|
After Width: | Height: | Size: 360 B |
BIN
data/image/game/blocks/puddle_souls/puddle_souls_spent.png
Normal file
|
After Width: | Height: | Size: 489 B |
BIN
data/image/game/blocks/wool_colored_blue.png
Normal file
|
After Width: | Height: | Size: 482 B |
BIN
data/image/game/blocks/wool_colored_brown.png
Normal file
|
After Width: | Height: | Size: 410 B |
BIN
data/image/game/blocks/wool_colored_cyan.png
Normal file
|
After Width: | Height: | Size: 480 B |
BIN
data/image/game/blocks/wool_colored_gray.png
Normal file
|
After Width: | Height: | Size: 360 B |
BIN
data/image/game/blocks/wool_colored_green.png
Normal file
|
After Width: | Height: | Size: 403 B |
BIN
data/image/game/blocks/wool_colored_light_blue.png
Normal file
|
After Width: | Height: | Size: 509 B |
BIN
data/image/game/blocks/wool_colored_lime.png
Normal file
|
After Width: | Height: | Size: 491 B |
BIN
data/image/game/blocks/wool_colored_magenta.png
Normal file
|
After Width: | Height: | Size: 495 B |
BIN
data/image/game/blocks/wool_colored_orange.png
Normal file
|
After Width: | Height: | Size: 461 B |
BIN
data/image/game/blocks/wool_colored_pink.png
Normal file
|
After Width: | Height: | Size: 513 B |
BIN
data/image/game/blocks/wool_colored_purple.png
Normal file
|
After Width: | Height: | Size: 501 B |
BIN
data/image/game/blocks/wool_colored_red.png
Normal file
|
After Width: | Height: | Size: 464 B |
BIN
data/image/game/blocks/wool_colored_silver.png
Normal file
|
After Width: | Height: | Size: 489 B |
BIN
data/image/game/blocks/wool_colored_white.png
Normal file
|
After Width: | Height: | Size: 508 B |
BIN
data/image/game/blocks/wool_colored_yellow.png
Normal file
|
After Width: | Height: | Size: 480 B |
BIN
data/image/game/entity/unnamed/neutral_1.png
Executable file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
data/image/game/entity/unnamed/neutral_2.png
Executable file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
data/image/game/entity/unnamed/run_d_1.png
Executable file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
data/image/game/entity/unnamed/run_d_2.png
Executable file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
data/image/game/entity/unnamed/run_l_1.png
Executable file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
data/image/game/entity/unnamed/run_l_2.png
Executable file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
data/image/game/entity/unnamed/run_r_1.png
Executable file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
data/image/game/entity/unnamed/run_r_2.png
Executable file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
data/image/game/entity/unnamed/run_u_1.png
Executable file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
data/image/game/entity/unnamed/run_u_2.png
Executable file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
data/image/game/icon.png
Executable file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
data/image/game/player/default_a/base/neutral_1.png
Executable file
|
After Width: | Height: | Size: 861 B |
BIN
data/image/game/player/default_a/base/neutral_2.png
Executable file
|
After Width: | Height: | Size: 860 B |
BIN
data/image/game/player/default_a/base/run_d_1.png
Executable file
|
After Width: | Height: | Size: 870 B |
BIN
data/image/game/player/default_a/base/run_d_2.png
Executable file
|
After Width: | Height: | Size: 877 B |
BIN
data/image/game/player/default_a/base/run_l_1.png
Executable file
|
After Width: | Height: | Size: 801 B |
BIN
data/image/game/player/default_a/base/run_l_2.png
Executable file
|
After Width: | Height: | Size: 776 B |
BIN
data/image/game/player/default_a/base/run_r_1.png
Executable file
|
After Width: | Height: | Size: 813 B |
BIN
data/image/game/player/default_a/base/run_r_2.png
Executable file
|
After Width: | Height: | Size: 796 B |
BIN
data/image/game/player/default_a/base/run_u_1.png
Executable file
|
After Width: | Height: | Size: 805 B |
BIN
data/image/game/player/default_a/base/run_u_2.png
Executable file
|
After Width: | Height: | Size: 818 B |
BIN
data/image/game/player/default_a/war_paint/neutral_1.png
Executable file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
data/image/game/player/default_a/war_paint/neutral_2.png
Executable file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
data/image/game/player/default_a/war_paint/run_d_1.png
Executable file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
data/image/game/player/default_a/war_paint/run_d_2.png
Executable file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
data/image/game/player/default_a/war_paint/run_l_1.png
Executable file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
data/image/game/player/default_a/war_paint/run_l_2.png
Executable file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
data/image/game/player/default_a/war_paint/run_r_1.png
Executable file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
data/image/game/player/default_a/war_paint/run_r_2.png
Executable file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
data/image/game/player/default_a/war_paint/run_u_1.png
Executable file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
data/image/game/player/default_a/war_paint/run_u_2.png
Executable file
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 11 KiB |
BIN
data/image/ui/icons/checkbox_active.png
Normal file
|
After Width: | Height: | Size: 510 B |
BIN
data/image/ui/icons/checkbox_neutral.png
Normal file
|
After Width: | Height: | Size: 232 B |
BIN
data/image/ui/icons/settings_hover.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
data/image/ui/icons/settings_neutral.png
Normal file
|
After Width: | Height: | Size: 5.3 KiB |
BIN
data/image/ui/menu_main/start_hover.png
Normal file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
data/image/ui/menu_main/start_neutral.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
data/image/ui/screen_init/init_bar_clear.png
Normal file
|
After Width: | Height: | Size: 225 B |
BIN
data/image/ui/screen_init/init_bar_fill.png
Normal file
|
After Width: | Height: | Size: 208 B |
BIN
data/image/ui/screen_init/init_bar_left.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
data/image/ui/screen_init/init_bar_right.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
data/image/ui/screen_init/mushroom_silhouette_1.png
Executable file
|
After Width: | Height: | Size: 1005 B |
BIN
data/image/ui/screen_init/mushroom_silhouette_2.png
Executable file
|
After Width: | Height: | Size: 964 B |