starting refactoring
This commit is contained in:
parent
a8015bf2b0
commit
9a68a21930
BIN
.vs/EXODUS/v15/.suo
Normal file
BIN
.vs/EXODUS/v15/.suo
Normal file
Binary file not shown.
8
EXODUS.pyperf
Normal file
8
EXODUS.pyperf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<ProfilingTarget xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||||
|
<ProjectTarget>
|
||||||
|
<TargetProject>cf93a377-56fe-4882-a1f8-eaf0951d4499</TargetProject>
|
||||||
|
<FriendlyName>EXODUS</FriendlyName>
|
||||||
|
</ProjectTarget>
|
||||||
|
<Reports />
|
||||||
|
</ProfilingTarget>
|
58
EXODUS.pyproj
Normal file
58
EXODUS.pyproj
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
|
<ProjectGuid>{cf93a377-56fe-4882-a1f8-eaf0951d4499}</ProjectGuid>
|
||||||
|
<ProjectHome />
|
||||||
|
<StartupFile>core.py</StartupFile>
|
||||||
|
<SearchPath />
|
||||||
|
<WorkingDirectory>.</WorkingDirectory>
|
||||||
|
<OutputPath>.</OutputPath>
|
||||||
|
<ProjectTypeGuids>{888888a0-9f3d-457c-b088-3a5042f75d52}</ProjectTypeGuids>
|
||||||
|
<LaunchProvider>Standard Python launcher</LaunchProvider>
|
||||||
|
<InterpreterId />
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)' == 'Debug'" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)' == 'Release'" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<VisualStudioVersion Condition=" '$(VisualStudioVersion)' == '' ">10.0</VisualStudioVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="core.py" />
|
||||||
|
<Compile Include="savesystem.py" />
|
||||||
|
<Compile Include="settings.py" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="map\l1.png" />
|
||||||
|
<Content Include="music\credits.txt" />
|
||||||
|
<Content Include="sprites\icon\icon2.png" />
|
||||||
|
<Content Include="sprites\loading\loading.png" />
|
||||||
|
<Content Include="sprites\loading\warn.png" />
|
||||||
|
<Content Include="sprites\menus\main.jpg" />
|
||||||
|
<Content Include="sprites\menus\music.jpg" />
|
||||||
|
<Content Include="sprites\menus\play.jpg" />
|
||||||
|
<Content Include="sprites\menus\settings.jpg" />
|
||||||
|
<Content Include="sprites\menus\ui.png" />
|
||||||
|
<Content Include="sprites\player\female.png" />
|
||||||
|
<Content Include="sprites\player\female\ante.png" />
|
||||||
|
<Content Include="sprites\player\female\postWithBag.png" />
|
||||||
|
<Content Include="sprites\player\female\postWithoutBag.png" />
|
||||||
|
<Content Include="sprites\player\male.png" />
|
||||||
|
<Content Include="sprites\player\male\ante.png" />
|
||||||
|
<Content Include="sprites\player\male\postWithBag.png" />
|
||||||
|
<Content Include="sprites\player\male\postWithoutBag.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="map" />
|
||||||
|
<Folder Include="music" />
|
||||||
|
<Folder Include="sprites\" />
|
||||||
|
<Folder Include="sprites\icon" />
|
||||||
|
<Folder Include="sprites\loading" />
|
||||||
|
<Folder Include="sprites\menus" />
|
||||||
|
<Folder Include="sprites\player" />
|
||||||
|
<Folder Include="sprites\player\female" />
|
||||||
|
<Folder Include="sprites\player\male" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets" />
|
||||||
|
</Project>
|
23
EXODUS.sln
Normal file
23
EXODUS.sln
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio 15
|
||||||
|
VisualStudioVersion = 15.0.28307.168
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "EXODUS", "EXODUS.pyproj", "{CF93A377-56FE-4882-A1F8-EAF0951D4499}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{CF93A377-56FE-4882-A1F8-EAF0951D4499}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{CF93A377-56FE-4882-A1F8-EAF0951D4499}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {DEF92828-376F-453B-971C-331B92C9A760}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
154
settings.py
154
settings.py
@ -1,4 +1,4 @@
|
|||||||
##Coded by SergentThomasKelly
|
# Coded by SergentThomasKelly
|
||||||
################################################################################
|
################################################################################
|
||||||
# INITIALISATION #
|
# INITIALISATION #
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -9,20 +9,22 @@ HEIGHT = 720
|
|||||||
TITLE = "EXODUS (PRE-BETA RELEASE -- GITHUB EDITION)"
|
TITLE = "EXODUS (PRE-BETA RELEASE -- GITHUB EDITION)"
|
||||||
playerAnimationLoop = 1
|
playerAnimationLoop = 1
|
||||||
leaveRoomTrigger = bathBloodHorrorTrigger = False
|
leaveRoomTrigger = bathBloodHorrorTrigger = False
|
||||||
L1EVENTLIST = [leaveRoomTrigger,bathBloodHorrorTrigger]
|
L1EVENTLIST = [leaveRoomTrigger, bathBloodHorrorTrigger]
|
||||||
playerCoordinates = {"female":{"down":{1:(2,0,30,33), 2:(32,0,33,32), 3:(64,0,31,33)},
|
playerCoordinates = {"female": {"down": {1: (2, 0, 30, 33), 2: (32, 0, 33, 32), 3: (64, 0, 31, 33)},
|
||||||
"left":{1:(4,33,27,31), 2:(36,32,25,33), 3:(68,33,24,31)},
|
"left": {1: (4, 33, 27, 31), 2: (36, 32, 25, 33), 3: (68, 33, 24, 31)},
|
||||||
"right":{1:(1,65,27,31), 2:(35,64,25,32), 3:(68,65,24,31)},
|
"right": {1: (1, 65, 27, 31), 2: (35, 64, 25, 32), 3: (68, 65, 24, 31)},
|
||||||
"up":{1:(3,97,28,31), 2:(33,96,31,32), 3:(66,97,28,31)}},
|
"up": {1: (3, 97, 28, 31), 2: (33, 96, 31, 32), 3: (66, 97, 28, 31)}},
|
||||||
"male":{"down":{1:(4,1,26,31), 2:(35,0,27,32), 3:(68,0,26,32)},
|
"male": {"down": {1: (4, 1, 26, 31), 2: (35, 0, 27, 32), 3: (68, 0, 26, 32)},
|
||||||
"left":{1:(3,33,25,31), 2:(35,32,25,32), 3:(67,33,25,31)},
|
"left": {1: (3, 33, 25, 31), 2: (35, 32, 25, 32), 3: (67, 33, 25, 31)},
|
||||||
"right":{1:(4,65,25,31), 2:(36,64,25,32), 3:(68,65,25,31)},
|
"right": {1: (4, 65, 25, 31), 2: (36, 64, 25, 32), 3: (68, 65, 25, 31)},
|
||||||
"up":{1:(3,97,26,31), 2:(35,96,26,32), 3:(67,97,26,31)}}
|
"up": {1: (3, 97, 26, 31), 2: (35, 96, 26, 32), 3: (67, 97, 26, 31)}}
|
||||||
}
|
}
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# PLAYER ANIMATION #
|
# PLAYER ANIMATION #
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
|
||||||
def playerAnimation(direction, gender):
|
def playerAnimation(direction, gender):
|
||||||
global playerCoordinates, playerAnimationLoop
|
global playerCoordinates, playerAnimationLoop
|
||||||
playerAnimationLoop += 2
|
playerAnimationLoop += 2
|
||||||
@ -30,8 +32,8 @@ def playerAnimation(direction, gender):
|
|||||||
playerAnimationLoop = 1
|
playerAnimationLoop = 1
|
||||||
playerCoordinatesLast = playerCoordinates[gender]
|
playerCoordinatesLast = playerCoordinates[gender]
|
||||||
if direction == 'down' or direction == 'up' or direction == 'left' or direction == 'right':
|
if direction == 'down' or direction == 'up' or direction == 'left' or direction == 'right':
|
||||||
playerCoordinatesLast = playerCoordinatesLast[direction]
|
playerCoordinatesLast = playerCoordinatesLast[direction]
|
||||||
return playerCoordinatesLast[playerAnimationLoop]
|
return playerCoordinatesLast[playerAnimationLoop]
|
||||||
elif direction == 'noneDown':
|
elif direction == 'noneDown':
|
||||||
playerCoordinatesLast = playerCoordinatesLast["down"]
|
playerCoordinatesLast = playerCoordinatesLast["down"]
|
||||||
return playerCoordinatesLast[2]
|
return playerCoordinatesLast[2]
|
||||||
@ -46,67 +48,67 @@ def playerAnimation(direction, gender):
|
|||||||
return playerCoordinatesLast[2]
|
return playerCoordinatesLast[2]
|
||||||
|
|
||||||
|
|
||||||
POS = (753.00,143.67)
|
POS = (753.00, 143.67)
|
||||||
|
|
||||||
WALLS=[(176.0,32.0,765.333,79.6667),
|
WALLS = [(176.0, 32.0, 765.333, 79.6667),
|
||||||
(178.667,33.3333,26.6667,268.0),
|
(178.667, 33.3333, 26.6667, 268.0),
|
||||||
(50.6667,146.667,154.667,155.333),
|
(50.6667, 146.667, 154.667, 155.333),
|
||||||
(48.0,144.0,29.3333,1054.67),
|
(48.0, 144.0, 29.3333, 1054.67),
|
||||||
(180.0,222.667,73.3333,79.0),
|
(180.0, 222.667, 73.3333, 79.0),
|
||||||
(305.333,224.0,154.833,77.0),
|
(305.333, 224.0, 154.833, 77.0),
|
||||||
(337.333,34.6667,26.0,265.667),
|
(337.333, 34.6667, 26.0, 265.667),
|
||||||
(526.667,34.6667,33.3333,266.333),
|
(526.667, 34.6667, 33.3333, 266.333),
|
||||||
(512.167,223.333,141.667,80.0),
|
(512.167, 223.333, 141.667, 80.0),
|
||||||
(704.0,228.333,138.5,74.1667),
|
(704.0, 228.333, 138.5, 74.1667),
|
||||||
(724.333,34.6667,25.0,265.0),
|
(724.333, 34.6667, 25.0, 265.0),
|
||||||
(916.0,35.0,26.6667,1162.34),
|
(916.0, 35.0, 26.6667, 1162.34),
|
||||||
(899.5,229.334,41.8333,73.0),
|
(899.5, 229.334, 41.8333, 73.0),
|
||||||
(177.333,417.333,188.0,93.3333),
|
(177.333, 417.333, 188.0, 93.3333),
|
||||||
(176.0,416.0,29.3333,282.333),
|
(176.0, 416.0, 29.3333, 282.333),
|
||||||
(178.667,592.0,317.333,80.3333),
|
(178.667, 592.0, 317.333, 80.3333),
|
||||||
(431.333,421.667,493.0,74.0),
|
(431.333, 421.667, 493.0, 74.0),
|
||||||
(465.0,421.334,29.3333,601.0),
|
(465.0, 421.334, 29.3333, 601.0),
|
||||||
(470.667,641.333,313.333,109.0),
|
(470.667, 641.333, 313.333, 109.0),
|
||||||
(848.0,640.0,93.3333,92.6667),
|
(848.0, 640.0, 93.3333, 92.6667),
|
||||||
(177.333,754.667,28.0,265.667),
|
(177.333, 754.667, 28.0, 265.667),
|
||||||
(182.667,833.333,598.667,76.3333),
|
(182.667, 833.333, 598.667, 76.3333),
|
||||||
(848.0,832.0,94.6667,78.3333),
|
(848.0, 832.0, 94.6667, 78.3333),
|
||||||
(49.3333,1108.0,638.667,90.6667),
|
(49.3333, 1108.0, 638.667, 90.6667),
|
||||||
(785.333,1106.67,158.667,90.6667),
|
(785.333, 1106.67, 158.667, 90.6667),
|
||||||
(362.0,450.0,78.0,61.0),
|
(362.0, 450.0, 78.0, 61.0),
|
||||||
(207.0,112.0,134.0,31.0),
|
(207.0, 112.0, 134.0, 31.0),
|
||||||
(305.0,103.0,33.0,56.0),
|
(305.0, 103.0, 33.0, 56.0),
|
||||||
(402.0,114.0,57.0,43.0),
|
(402.0, 114.0, 57.0, 43.0),
|
||||||
(361.0,201.0,85.0,50.0),
|
(361.0, 201.0, 85.0, 50.0),
|
||||||
(503.0,152.0,26.0,21.0),
|
(503.0, 152.0, 26.0, 21.0),
|
||||||
(594.0,114.5,54.0,42.0),
|
(594.0, 114.5, 54.0, 42.0),
|
||||||
(550.0,201.5,89.0,50.0),
|
(550.0, 201.5, 89.0, 50.0),
|
||||||
(692.0,152.5,26.0,21.0),
|
(692.0, 152.5, 26.0, 21.0),
|
||||||
(786.0,115.5,57.0,41.0),
|
(786.0, 115.5, 57.0, 41.0),
|
||||||
(745.0,202.5,89.0,50.0),
|
(745.0, 202.5, 89.0, 50.0),
|
||||||
(886.0,152.5,26.0,10.0),
|
(886.0, 152.5, 26.0, 10.0),
|
||||||
(258.0,771.0,88.0,24.0),
|
(258.0, 771.0, 88.0, 24.0),
|
||||||
(205.0,663.0,64.0,36.0),
|
(205.0, 663.0, 64.0, 36.0),
|
||||||
(369.0,665.0,104.0,40.0),
|
(369.0, 665.0, 104.0, 40.0),
|
||||||
(370.0,697.0,64.0,103.0),
|
(370.0, 697.0, 64.0, 103.0),
|
||||||
(484.0,790.0,43.0,48.0),
|
(484.0, 790.0, 43.0, 48.0),
|
||||||
(686.0,1197.0,104.0,32.0),
|
(686.0, 1197.0, 104.0, 32.0),
|
||||||
(280.0,898.0,51.0,109.0),
|
(280.0, 898.0, 51.0, 109.0),
|
||||||
(198.0,898.0,40.0,93.0),
|
(198.0, 898.0, 40.0, 93.0),
|
||||||
(369.0,880.0,75.0,46.0),
|
(369.0, 880.0, 75.0, 46.0),
|
||||||
(369.0,961.0,27.0,46.0),
|
(369.0, 961.0, 27.0, 46.0),
|
||||||
(439.0,897.0,29.0,111.0),
|
(439.0, 897.0, 29.0, 111.0),
|
||||||
(483.0,882.0,122.0,107.0),
|
(483.0, 882.0, 122.0, 107.0),
|
||||||
(696.0,892.0,55.0,33.0),
|
(696.0, 892.0, 55.0, 33.0),
|
||||||
(524.0,816.0,180.0,22.0),
|
(524.0, 816.0, 180.0, 22.0),
|
||||||
(880.0,705.0,36.0,60.0),
|
(880.0, 705.0, 36.0, 60.0),
|
||||||
(495.0,470.0,286.0,42.0),
|
(495.0, 470.0, 286.0, 42.0),
|
||||||
(495.0,509.0,206.0,56.0),
|
(495.0, 509.0, 206.0, 56.0),
|
||||||
(491.0,616.0,213.0,25.0),
|
(491.0, 616.0, 213.0, 25.0),
|
||||||
(492.0,566.0,260.0,51.0),
|
(492.0, 566.0, 260.0, 51.0),
|
||||||
(750.0,579.0,31.0,25.0),
|
(750.0, 579.0, 31.0, 25.0),
|
||||||
(885.0,517.0,27.0,44.0),
|
(885.0, 517.0, 27.0, 44.0),
|
||||||
(887.0,907.0,29.0,201.0),
|
(887.0, 907.0, 29.0, 201.0),
|
||||||
(602.0,901.0,38.0,26.0),
|
(602.0, 901.0, 38.0, 26.0),
|
||||||
(641.0,901.0,87.0,91.0),
|
(641.0, 901.0, 87.0, 91.0),
|
||||||
(78.0,1088.0,400.0,15.0)]
|
(78.0, 1088.0, 400.0, 15.0)]
|
||||||
|
Loading…
Reference in New Issue
Block a user