Skip to content

Commit

Permalink
- Made the abstraction of graphic, audio and input devices. Now Direc…
Browse files Browse the repository at this point in the history
…tX9 for example is no longer tightly coupled to the engine. This refactoring will allow other implementations of the engine to be made, for example, a version using OpenGL or even WebGL (allowing it to run in browsers).

- Updated external dependencies to their latest versions.

- XSharp project is no longer a program, but a class library. The demo program is now contained on the prokect XSharpDemo.

- Huge refactoring of whole code.
  • Loading branch information
sharivan committed Nov 28, 2023
1 parent 5d676b1 commit 6351b9f
Show file tree
Hide file tree
Showing 158 changed files with 27,778 additions and 1,937 deletions.
2 changes: 1 addition & 1 deletion MegaEDXCore/MegaEDX/CompressionCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static MatchPair Find(byte[] src, int srcOff, uint windowStart, uint unco
uint i, m;
int[] table = new int[MAX_LENGTH];

ComputeKMP(src, (int) uncompStart, table, (int) System.Math.Min(size - uncompStart, MAX_LENGTH));
ComputeKMP(src, (int) uncompStart, table, (int) Math.Min(size - uncompStart, MAX_LENGTH));

match.length = 0;
match.offset = 0;
Expand Down
4 changes: 2 additions & 2 deletions MegaEDXCore/MegaEDX/MMXCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -922,10 +922,10 @@ public void SortTiles()
// do nothing
break;
case ESort.SORT_MIN:
tileInfo[i].value = System.Math.Min(tileInfo[i].value, value);
tileInfo[i].value = Math.Min(tileInfo[i].value, value);
break;
case ESort.SORT_MAX:
tileInfo[i].value = System.Math.Max(tileInfo[i].value, value);
tileInfo[i].value = Math.Max(tileInfo[i].value, value);
break;
case ESort.SORT_MEDIAN:
tileInfo[i].count[value]++;
Expand Down
54 changes: 36 additions & 18 deletions XSharp.sln
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
XSharp.png = XSharp.png
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XSharpDemo", "XSharpDemo\XSharpDemo.csproj", "{3C6F05FC-975F-4227-9F5D-09AE6D9E10FD}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XSharpShared", "XSharpShared\XSharpShared.csproj", "{BFD8029F-00BF-4CE9-85AB-58859E87E003}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XSharpLevelEditor", "XSharpLevelEditor\XSharpLevelEditor.csproj", "{9D0EEF6C-AC19-465C-85BB-D6D5CBE2425D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XSharpDemo", "XSharpDemo\XSharpDemo.csproj", "{11ABA47A-7A66-4726-AE39-427F346C4C27}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XSharpDX9", "XSharpDX9\XSharpDX9.csproj", "{4EBE64C6-D50A-4A93-B79F-EF66DA34B4C4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -100,22 +102,6 @@ Global
{76F4C615-086F-4BBA-82DA-7F6C33E4993A}.Release|x64.Build.0 = Release|Any CPU
{76F4C615-086F-4BBA-82DA-7F6C33E4993A}.Release|x86.ActiveCfg = Release|Any CPU
{76F4C615-086F-4BBA-82DA-7F6C33E4993A}.Release|x86.Build.0 = Release|Any CPU
{3C6F05FC-975F-4227-9F5D-09AE6D9E10FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3C6F05FC-975F-4227-9F5D-09AE6D9E10FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3C6F05FC-975F-4227-9F5D-09AE6D9E10FD}.Debug|ARM.ActiveCfg = Debug|Any CPU
{3C6F05FC-975F-4227-9F5D-09AE6D9E10FD}.Debug|ARM.Build.0 = Debug|Any CPU
{3C6F05FC-975F-4227-9F5D-09AE6D9E10FD}.Debug|x64.ActiveCfg = Debug|Any CPU
{3C6F05FC-975F-4227-9F5D-09AE6D9E10FD}.Debug|x64.Build.0 = Debug|Any CPU
{3C6F05FC-975F-4227-9F5D-09AE6D9E10FD}.Debug|x86.ActiveCfg = Debug|Any CPU
{3C6F05FC-975F-4227-9F5D-09AE6D9E10FD}.Debug|x86.Build.0 = Debug|Any CPU
{3C6F05FC-975F-4227-9F5D-09AE6D9E10FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3C6F05FC-975F-4227-9F5D-09AE6D9E10FD}.Release|Any CPU.Build.0 = Release|Any CPU
{3C6F05FC-975F-4227-9F5D-09AE6D9E10FD}.Release|ARM.ActiveCfg = Release|Any CPU
{3C6F05FC-975F-4227-9F5D-09AE6D9E10FD}.Release|ARM.Build.0 = Release|Any CPU
{3C6F05FC-975F-4227-9F5D-09AE6D9E10FD}.Release|x64.ActiveCfg = Release|Any CPU
{3C6F05FC-975F-4227-9F5D-09AE6D9E10FD}.Release|x64.Build.0 = Release|Any CPU
{3C6F05FC-975F-4227-9F5D-09AE6D9E10FD}.Release|x86.ActiveCfg = Release|Any CPU
{3C6F05FC-975F-4227-9F5D-09AE6D9E10FD}.Release|x86.Build.0 = Release|Any CPU
{BFD8029F-00BF-4CE9-85AB-58859E87E003}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BFD8029F-00BF-4CE9-85AB-58859E87E003}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BFD8029F-00BF-4CE9-85AB-58859E87E003}.Debug|ARM.ActiveCfg = Debug|Any CPU
Expand Down Expand Up @@ -148,6 +134,38 @@ Global
{9D0EEF6C-AC19-465C-85BB-D6D5CBE2425D}.Release|x64.Build.0 = Release|Any CPU
{9D0EEF6C-AC19-465C-85BB-D6D5CBE2425D}.Release|x86.ActiveCfg = Release|Any CPU
{9D0EEF6C-AC19-465C-85BB-D6D5CBE2425D}.Release|x86.Build.0 = Release|Any CPU
{11ABA47A-7A66-4726-AE39-427F346C4C27}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{11ABA47A-7A66-4726-AE39-427F346C4C27}.Debug|Any CPU.Build.0 = Debug|Any CPU
{11ABA47A-7A66-4726-AE39-427F346C4C27}.Debug|ARM.ActiveCfg = Debug|Any CPU
{11ABA47A-7A66-4726-AE39-427F346C4C27}.Debug|ARM.Build.0 = Debug|Any CPU
{11ABA47A-7A66-4726-AE39-427F346C4C27}.Debug|x64.ActiveCfg = Debug|Any CPU
{11ABA47A-7A66-4726-AE39-427F346C4C27}.Debug|x64.Build.0 = Debug|Any CPU
{11ABA47A-7A66-4726-AE39-427F346C4C27}.Debug|x86.ActiveCfg = Debug|Any CPU
{11ABA47A-7A66-4726-AE39-427F346C4C27}.Debug|x86.Build.0 = Debug|Any CPU
{11ABA47A-7A66-4726-AE39-427F346C4C27}.Release|Any CPU.ActiveCfg = Release|Any CPU
{11ABA47A-7A66-4726-AE39-427F346C4C27}.Release|Any CPU.Build.0 = Release|Any CPU
{11ABA47A-7A66-4726-AE39-427F346C4C27}.Release|ARM.ActiveCfg = Release|Any CPU
{11ABA47A-7A66-4726-AE39-427F346C4C27}.Release|ARM.Build.0 = Release|Any CPU
{11ABA47A-7A66-4726-AE39-427F346C4C27}.Release|x64.ActiveCfg = Release|Any CPU
{11ABA47A-7A66-4726-AE39-427F346C4C27}.Release|x64.Build.0 = Release|Any CPU
{11ABA47A-7A66-4726-AE39-427F346C4C27}.Release|x86.ActiveCfg = Release|Any CPU
{11ABA47A-7A66-4726-AE39-427F346C4C27}.Release|x86.Build.0 = Release|Any CPU
{4EBE64C6-D50A-4A93-B79F-EF66DA34B4C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4EBE64C6-D50A-4A93-B79F-EF66DA34B4C4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4EBE64C6-D50A-4A93-B79F-EF66DA34B4C4}.Debug|ARM.ActiveCfg = Debug|Any CPU
{4EBE64C6-D50A-4A93-B79F-EF66DA34B4C4}.Debug|ARM.Build.0 = Debug|Any CPU
{4EBE64C6-D50A-4A93-B79F-EF66DA34B4C4}.Debug|x64.ActiveCfg = Debug|Any CPU
{4EBE64C6-D50A-4A93-B79F-EF66DA34B4C4}.Debug|x64.Build.0 = Debug|Any CPU
{4EBE64C6-D50A-4A93-B79F-EF66DA34B4C4}.Debug|x86.ActiveCfg = Debug|Any CPU
{4EBE64C6-D50A-4A93-B79F-EF66DA34B4C4}.Debug|x86.Build.0 = Debug|Any CPU
{4EBE64C6-D50A-4A93-B79F-EF66DA34B4C4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4EBE64C6-D50A-4A93-B79F-EF66DA34B4C4}.Release|Any CPU.Build.0 = Release|Any CPU
{4EBE64C6-D50A-4A93-B79F-EF66DA34B4C4}.Release|ARM.ActiveCfg = Release|Any CPU
{4EBE64C6-D50A-4A93-B79F-EF66DA34B4C4}.Release|ARM.Build.0 = Release|Any CPU
{4EBE64C6-D50A-4A93-B79F-EF66DA34B4C4}.Release|x64.ActiveCfg = Release|Any CPU
{4EBE64C6-D50A-4A93-B79F-EF66DA34B4C4}.Release|x64.Build.0 = Release|Any CPU
{4EBE64C6-D50A-4A93-B79F-EF66DA34B4C4}.Release|x86.ActiveCfg = Release|Any CPU
{4EBE64C6-D50A-4A93-B79F-EF66DA34B4C4}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Binary file modified XSharp/Assets/Sprites/Enemies/Bosses/X1/Sigma.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 modified XSharp/Assets/Sprites/Enemies/Bosses/X3/GodKarMachine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6351b9f

Please sign in to comment.