forked from ppy/osu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6cbbeaa
Showing
31 changed files
with
2,167 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# EditorConfig is awesome: http://editorconfig.org | ||
root = true | ||
|
||
[*.cs] | ||
end_of_line = crlf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# This won't normalise line endings, but it will ensure that merge drivers use CRLF | ||
* -text eol=crlf | ||
|
||
# Currently in-use binary file extensions | ||
*.blend binary | ||
*.bmp binary | ||
*.dll binary | ||
*.exe binary | ||
*.icns binary | ||
*.ico binary | ||
*.jpg binary | ||
*.osz2 binary | ||
*.pdn binary | ||
*.psd binary | ||
*.PSD binary | ||
*.tga binary | ||
*.ttf binary | ||
*.wav binary | ||
*.xnb binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
*.pfx | ||
*.user | ||
*DS_Store* | ||
*/bin/ | ||
*/obj/ | ||
*/Build/ | ||
*.suo | ||
*.idea | ||
*.dmg | ||
|
||
*.docstates | ||
|
||
Staging/ | ||
|
||
.dropbox | ||
*desktop.ini | ||
*Icon | ||
|
||
*.dpkg-dist | ||
*.ucf-dist | ||
|
||
packages/* | ||
!packages/repositories.config | ||
.vs/* | ||
|
||
*.userprefs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[submodule "osu-framework"] | ||
path = osu-framework | ||
url = https://github.com/ppy/osu-framework | ||
[submodule "osu-resources"] | ||
path = osu-resources | ||
url = https://github.com/ppy/osu-resources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
language: csharp | ||
solution: osu.sln |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License | ||
|
||
Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# osu! | ||
[osu! on the web](https://osu.ppy.sh) | [dev chat](https://discord.gg/ppy) | ||
|
||
Rhythm is just a *click* away. The future of osu! and the beginning of an open era! | ||
|
||
# Requirements | ||
|
||
- A desktop platform which can compile .NET 4.5. | ||
- Visual Studio or MonoDevelop is recommended. | ||
|
||
# Contributing | ||
|
||
We welcome all contributions, but keep in mind that we already have a lot of the UI designed. If you wish to work on something with the intention on having it included in the official distribution, please open an issue for discussion and we will give you what you need from a design perspective to proceed. If you want to make *changes* to the design, we recommend you open an issue with your intentions before spending too much time, to ensure no effort is wasted. | ||
|
||
Contributions can be made via pull requests to this repository. We hope to credit and reward larger contributions via a [bounty system](https://goo.gl/nFdoyI). If you're unsure of what you can help with, check out the [list](https://github.com/ppy/osu/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+label%3Abounty) of available issues with bounty. | ||
|
||
Note that while we already have certain standards in place, nothing is set in stone. If you have an issue with the way code is structured; with any libraries we are using; with any processes involved with contributing, *please* bring it up. I welcome all feedback so we can make contributing to this project as pain-free as possible. | ||
|
||
# Licence | ||
|
||
The osu! client code and framework are licensed under the [MIT licence](https://opensource.org/licenses/MIT). Please see [the licence file](LICENCE) for more information. [tl;dr](https://tldrlegal.com/license/mit-license) you can do whatever you want as long as you include the original copyright and license notice in any copy of the software/source. | ||
|
||
Please note that this *does not cover* the usage of the "osu!" or "ppy" branding in any software, resources, advertising or promotion, as this is protected by trademark law. | ||
|
||
Please also note that game resources are covered by a separate licence. Please see the [ppy/osu-resources](https://github.com/ppy/osu-resources) repository for clarifications. |
Submodule osu-framework
added at
f3d007
Submodule osu-resources
added at
8c3cc1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>. | ||
//Licensed under the MIT License - https://raw.githubusercontent.com/ppy/osu/master/LICENCE | ||
|
||
using System; | ||
using osu.Framework.Desktop; | ||
using osu.Framework.Framework; | ||
using osu.Game; | ||
|
||
namespace osu.Desktop | ||
{ | ||
public static class Program | ||
{ | ||
[STAThread] | ||
public static void Main() | ||
{ | ||
BasicGameHost host = Host.GetSuitableHost(); | ||
host.Load(new OsuGame()); | ||
host.Run(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"> | ||
<assemblyIdentity version="1.0.0.0" name="osu!" /> | ||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> | ||
<security> | ||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> | ||
<!-- UAC Manifest Options | ||
If you want to change the Windows User Account Control level replace the | ||
requestedExecutionLevel node with one of the following. | ||
<requestedExecutionLevel level="asInvoker" uiAccess="false" /> | ||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> | ||
<requestedExecutionLevel level="highestAvailable" uiAccess="false" /> | ||
If you want to utilize File and Registry Virtualization for backward | ||
compatibility then delete the requestedExecutionLevel node. | ||
--> | ||
<requestedExecutionLevel level="asInvoker" uiAccess="false" /> | ||
</requestedPrivileges> | ||
<applicationRequestMinimum> | ||
<defaultAssemblyRequest permissionSetReference="Custom" /> | ||
<PermissionSet class="System.Security.PermissionSet" version="1" Unrestricted="true" ID="Custom" SameSite="site" /> | ||
</applicationRequestMinimum> | ||
</security> | ||
</trustInfo> | ||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> | ||
<application> | ||
* <!-- Windows 8.1 --> | ||
* <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/> | ||
<!-- Windows Vista --> | ||
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/> | ||
<!-- Windows 7 --> | ||
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/> | ||
<!-- Windows 8 --> | ||
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/> | ||
</application> | ||
</compatibility> | ||
<asmv3:application> | ||
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings"> | ||
<dpiAware>true</dpiAware> | ||
</asmv3:windowsSettings> | ||
</asmv3:application> | ||
</asmv1:assembly> |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
<PropertyGroup> | ||
<ProjectGuid>{2A66DD92-ADB1-4994-89E2-C94E04ACDA0D}</ProjectGuid> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<OutputType>WinExe</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>osu.Desktop</RootNamespace> | ||
<AssemblyName>osu!</AssemblyName> | ||
<ManifestCertificateThumbprint>3CF060CD28877D0E3112948951A64B2A7CEEC909</ManifestCertificateThumbprint> | ||
<ManifestKeyFile>codesigning.pfx</ManifestKeyFile> | ||
<GenerateManifests>false</GenerateManifests> | ||
<SignManifests>false</SignManifests> | ||
<IsWebBootstrapper>false</IsWebBootstrapper> | ||
<FileUpgradeFlags> | ||
</FileUpgradeFlags> | ||
<OldToolsVersion>3.5</OldToolsVersion> | ||
<UpgradeBackupLocation> | ||
</UpgradeBackupLocation> | ||
<StartupObject>osu.Desktop.Program</StartupObject> | ||
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent> | ||
<SignAssembly>false</SignAssembly> | ||
<TargetZone>LocalIntranet</TargetZone> | ||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | ||
<PublishUrl>publish\</PublishUrl> | ||
<Install>true</Install> | ||
<InstallFrom>Disk</InstallFrom> | ||
<UpdateEnabled>false</UpdateEnabled> | ||
<UpdateMode>Foreground</UpdateMode> | ||
<UpdateInterval>7</UpdateInterval> | ||
<UpdateIntervalUnits>Days</UpdateIntervalUnits> | ||
<UpdatePeriodically>false</UpdatePeriodically> | ||
<UpdateRequired>false</UpdateRequired> | ||
<MapFileExtensions>true</MapFileExtensions> | ||
<ApplicationRevision>2</ApplicationRevision> | ||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion> | ||
<UseApplicationTrust>false</UseApplicationTrust> | ||
<BootstrapperEnabled>true</BootstrapperEnabled> | ||
<ProductVersion>12.0.0</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<TargetFrameworkProfile> | ||
</TargetFrameworkProfile> | ||
<NuGetPackageImportStamp> | ||
</NuGetPackageImportStamp> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>0</WarningLevel> | ||
<NoStdLib>true</NoStdLib> | ||
<UseVSHostingProcess>false</UseVSHostingProcess> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> | ||
<RunCodeAnalysis>false</RunCodeAnalysis> | ||
<Prefer32Bit>true</Prefer32Bit> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>none</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>CuttingEdge NoUpdate</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<NoStdLib>true</NoStdLib> | ||
<UseVSHostingProcess>false</UseVSHostingProcess> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<Win32Resource>osu!.res</Win32Resource> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Deploy|AnyCPU'"> | ||
<OutputPath>bin\Deploy\</OutputPath> | ||
<DefineConstants>CuttingEdge</DefineConstants> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<Optimize>true</Optimize> | ||
<NoStdLib>true</NoStdLib> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<UseVSHostingProcess>false</UseVSHostingProcess> | ||
<ErrorReport>prompt</ErrorReport> | ||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="mscorlib" /> | ||
<Reference Include="System" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="..\osu.licenseheader"> | ||
<Link>osu.licenseheader</Link> | ||
</None> | ||
<None Include="osu!.res" /> | ||
<None Include="Properties\app.manifest" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5"> | ||
<Visible>False</Visible> | ||
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName> | ||
<Install>false</Install> | ||
</BootstrapperPackage> | ||
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0"> | ||
<Visible>False</Visible> | ||
<ProductName>.NET Framework 2.0 %28x86%29</ProductName> | ||
<Install>true</Install> | ||
</BootstrapperPackage> | ||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0"> | ||
<Visible>False</Visible> | ||
<ProductName>.NET Framework 3.0 %28x86%29</ProductName> | ||
<Install>false</Install> | ||
</BootstrapperPackage> | ||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5"> | ||
<Visible>False</Visible> | ||
<ProductName>.NET Framework 3.5</ProductName> | ||
<Install>false</Install> | ||
</BootstrapperPackage> | ||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> | ||
<Visible>False</Visible> | ||
<ProductName>.NET Framework 3.5 SP1</ProductName> | ||
<Install>false</Install> | ||
</BootstrapperPackage> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\osu-framework\osu.Framework.Desktop\osu.Framework.Desktop.csproj"> | ||
<Project>{65dc628f-a640-4111-ab35-3a5652bc1e17}</Project> | ||
<Name>osu.Framework.Desktop</Name> | ||
</ProjectReference> | ||
<ProjectReference Include="..\osu-framework\osu.Framework\osu.Framework.csproj"> | ||
<Project>{c76bf5b3-985e-4d39-95fe-97c9c879b83a}</Project> | ||
<Name>osu.Framework</Name> | ||
</ProjectReference> | ||
<ProjectReference Include="..\osu-resources\osu.Game.Resources\osu.Game.Resources.csproj"> | ||
<Project>{d9a367c9-4c1a-489f-9b05-a0cea2b53b58}</Project> | ||
<Name>osu.Game.Resources</Name> | ||
</ProjectReference> | ||
<ProjectReference Include="..\osu.Game\osu.Game.csproj"> | ||
<Project>{0d3fbf8a-7464-4cf7-8c90-3e7886df2d4d}</Project> | ||
<Name>osu.Game</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Program.cs" /> | ||
</ItemGroup> | ||
<ItemGroup /> | ||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
<ProjectExtensions> | ||
<VisualStudio> | ||
</VisualStudio> | ||
</ProjectExtensions> | ||
<PropertyGroup> | ||
<PreBuildEvent> | ||
</PreBuildEvent> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<PostBuildEvent> | ||
</PostBuildEvent> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>. | ||
//Licensed under the MIT License - https://raw.githubusercontent.com/ppy/osu/master/LICENCE | ||
|
||
using osu.Framework.Configuration; | ||
|
||
namespace osu.Game.Configuration | ||
{ | ||
class OsuConfigManager : ConfigManager<OsuConfig> | ||
{ | ||
protected override void InitialiseDefaults() | ||
{ | ||
Set(OsuConfig.Width, 1366); | ||
Set(OsuConfig.Height, 768); | ||
Set(OsuConfig.MouseSensitivity, 1.0); | ||
} | ||
} | ||
|
||
enum OsuConfig | ||
{ | ||
Width, | ||
Height, | ||
MouseSensitivity, | ||
} | ||
} |
Oops, something went wrong.