Skip to content

A game framework written with osu! in mind.

License

Notifications You must be signed in to change notification settings

UselessToucan/osu-framework

This branch is 88 commits ahead of, 6925 commits behind ppy/osu-framework:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b5753e8 · Aug 15, 2021
Jun 15, 2021
Jun 29, 2021
Apr 9, 2021
Jan 18, 2021
Jun 8, 2021
Nov 20, 2019
Mar 11, 2021
Jun 26, 2020
Nov 20, 2019
Nov 15, 2019
Jun 14, 2021
Aug 4, 2021
Aug 11, 2021
Aug 4, 2021
Aug 1, 2021
Jun 2, 2020
Jun 26, 2020
Aug 11, 2021
Aug 4, 2021
Aug 15, 2021
Feb 18, 2020
Apr 28, 2021
Apr 11, 2018
Nov 12, 2020
Apr 11, 2018
Feb 25, 2021
Jun 15, 2021
Jun 15, 2021
Jan 6, 2021
Aug 9, 2021
Oct 18, 2019
Oct 21, 2019
Oct 21, 2019
Oct 15, 2019
Oct 15, 2019
Feb 19, 2019
Oct 15, 2019
Nov 27, 2019
Nov 20, 2019
Jan 24, 2019
Jan 14, 2021
Aug 6, 2021
Aug 6, 2021
Aug 10, 2021

Repository files navigation

osu!framework

Build status GitHub release CodeFactor dev chat

A game framework written with osu! in mind.

Requirements

  • A desktop platform with the .NET 5.0 SDK or higher installed.
  • When running on linux, please have a system-wide ffmpeg installation available to support video decoding.
  • When running on Windows 7 or 8.1, additional prerequisites* may be required to correctly run .NET 5 applications if your operating system is not up-to-date with the latest service packs.
  • When working with the codebase, we recommend using an IDE with intellisense and syntax highlighting, such as Visual Studio 2019+, Jetbrains Rider or Visual Studio Code.

Objectives

This framework is intended to take steps beyond what you would normally expect from a game framework. This means things like basic UI elements, text rendering, advanced input handling (textboxes) and performance overlays are provided out-of-the-box. Any of the osu! code that is deemed useful to other game projects will live in this framework project.

  • Anywhere we implement graphical components, they will be displayed with a generic design and will be derivable for further customisation.
  • Common elements used by games (texture caching, font loading) will be automatically initialised at runtime.
  • Allow for isolated development of components via a solid testing environment (VisualTests and TestCases). Check the wiki for more information on how these can be used to streamline development.

Building

Build configurations for the recommended IDEs (listed above) are included. You should use the provided Build/Run functionality of your IDE to get things going. When testing or building new components, it's highly encouraged you use the VisualTests project/configuration. More information on this provided below.

  • Visual Studio / Rider users should load the project via one of the platform-specific .slnf files, rather than the main .sln. This will allow access to template run configurations.

Code analysis

Code analysis can be run with powershell ./InspectCode.ps1 or InspectCode.sh.

Contributing

Contributions can be made via pull requests to this repository.

If you're unsure of what you can help with, check out the list of open issues (especially those with the "good first issue" label).

Before starting, please make sure you are familiar with the development and testing procedure we have set up. New component development, and where possible, bug fixing and debugging existing components should always be done under VisualTests.

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. We welcome all feedback so we can make contributing to this project as pain-free as possible.

For those interested, we love to reward quality contributions via bounties, paid out via paypal or osu! supporter tags. Don't hesitate to request a bounty for your work on this project.

Licence

This framework is licensed under the MIT licence. Please see the licence file for more information. tl;dr you can do whatever you want as long as you include the original copyright and license notice in any copy of the software/source.

The BASS audio library (a dependency of this framework) is a commercial product. While it is free for non-commercial use, please ensure to obtain a valid licence if you plan on distributing any application using it commercially.

Developing a game using osu!framework

If you want to get started making your own game project using osu!framework, check out our project templates. You can either start off from an empty project, or take a peek at a working sample game. Either way, full project structure, cross-platform support, and testing setup are included!

Projects that use osu!framework

osu! – rhythm is just a click away!

GDEdit - A third-party Geometry Dash editor.

Vignette - An OpenCV-based facial recognition software for Live2D

IWBTM - A platform game with level editor based off of "I Wanna..." games

About

A game framework written with osu! in mind.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.8%
  • Other 0.2%