Skip to content

Commit

Permalink
bump osu version
Browse files Browse the repository at this point in the history
  • Loading branch information
Flutterish committed May 28, 2022
1 parent 801d33a commit f81b568
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
13 changes: 8 additions & 5 deletions Hitokori/TextureGeneration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ namespace osu.Game.Rulesets.Hitokori {
public static class TextureGeneration {
public static TextureUpload Generate ( int width, int height, Func<int, int, Rgba32> generator ) {
Image<Rgba32> image = new Image<Rgba32>( width, height );
for ( int y = 0; y < height; y++ ) {
var span = image.GetPixelRowSpan( y );
for ( int x = 0; x < width; x++ ) {
span[ x ] = generator( x, height - y - 1 );
image.ProcessPixelRows( rows => {
for ( int y = 0; y < height; y++ ) {
var span = rows.GetRowSpan( y );
for ( int x = 0; x < width; x++ ) {
span[x] = generator( x, height - y - 1 );
}
}
}
} );

return new TextureUpload( image );
}

Expand Down
4 changes: 2 additions & 2 deletions Hitokori/osu.Game.Rulesets.Hitokori.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>preview</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ppy.osu.Game" Version="2022.216.0" />
<PackageReference Include="ppy.osu.Game" Version="2022.523.0" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions Tests/osu.Game.Rulesets.Hitokori.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
</PropertyGroup>
<ItemGroup Label="Package References">
<PackageReference Include="Appveyor.TestLogger" Version="2.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0-preview-20211109-03" />
<PackageReference Include="NUnit" Version="3.13.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Update="Microsoft.EntityFrameworkCore.Sqlite" Version="2.1.4" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Hitokori\osu.Game.Rulesets.Hitokori.csproj" />
</ItemGroup>
<PropertyGroup Label="Project">
<OutputType>WinExe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<RootNamespace>osu.Game.Rulesets.Hitokori.Tests</RootNamespace>
</PropertyGroup>
</Project>

0 comments on commit f81b568

Please sign in to comment.