starting refactoring

This commit is contained in:
Louis Vallat 2018-12-30 15:20:24 +01:00
parent a8015bf2b0
commit 9a68a21930
6 changed files with 643 additions and 296 deletions

BIN
.vs/EXODUS/v15/.suo Normal file

Binary file not shown.

8
EXODUS.pyperf Normal file
View 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
View 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
View 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

652
core.py

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
##Coded by SergentThomasKelly
# Coded by SergentThomasKelly
################################################################################
# INITIALISATION #
################################################################################
@ -23,6 +23,8 @@ playerCoordinates = {"female":{"down":{1:(2,0,30,33), 2:(32,0,33,32), 3:(64,0,31
################################################################################
# PLAYER ANIMATION #
################################################################################
def playerAnimation(direction, gender):
global playerCoordinates, playerAnimationLoop
playerAnimationLoop += 2