• Stars
    star
    1,570
  • Rank 28,650 (Top 0.6 %)
  • Language
    C#
  • License
    MIT License
  • Created over 7 years ago
  • Updated 6 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A game framework written with osu! in mind.

osu!framework

Build status GitHub release CodeFactor dev chat

A game framework written with osu! in mind.

Developing a game using osu!framework

If you are interested in creating a project using the framework, please start from the getting started wiki resources (or jump straight over to the 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 a testing setup are included!

The rest of the information on this page is related to working on the framework, not using it!

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.

Requirements

  • A desktop platform with the .NET 6.0 SDK.
  • 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 6 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 with the EditorConfig and C# plugin installed.

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.

We love to reward quality contributions. If you have made a large contribution, or are a regular contributor, you are welcome to submit an expense via opencollective. If you have any questions, feel free to reach out to peppy before doing so.

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.

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

DeltaDash - A multi-direction, lane-based scroller rhythm game

fluXis - A community-driven rhythm game with a focus on creativity and expression

More Repositories

1

osu

rhythm is just a *click* away!
C#
14,315
star
2

osu-web

the browser-facing portion of osu!
PHP
946
star
3

osu-wiki

home of the osu! wiki
Markdown
462
star
4

osu-api

Public API for accessing osu! related data.
319
star
5

osu-performance

Calculates user performance aggregates from scores
C++
239
star
6

osu-resources

assets used by osu!
C#
220
star
7

osu-stream

tap, slide, hold and spin to a beat you can feel!
C#
158
star
8

osu-wine

Wine container for running osu! on OS X. http://osx.ppy.sh
Shell
140
star
9

osu-tools

command line tools to get stuff done
C#
99
star
10

osu-difficulty-calculator

Processes raw beatmaps and saves difficulty attributes to a database backend
C#
67
star
11

osu-server-spectator

osu! spectator server
C#
65
star
12

osu-stable-issues

Report critical osu-stable issues here
59
star
13

osu-deploy

Deploy script for lazer
C#
45
star
14

osu-infrastructure

36
star
15

osu-templates

Get up and running quickly to extend osu!
33
star
16

osu-iPhone

A dated iPhone port by nuudles
Objective-C
29
star
17

s3-nginx-proxy

A lightweight kubernetes deployable nginx-based caching reverse proxy
JavaScript
25
star
18

email-templates

Various email templates we use
19
star
19

osu-artwork

17
star
20

SDL3-CS

C#
17
star
21

osu-notification-server

TypeScript
16
star
22

ppy.github.io

ppy.sh static landing page
HTML
13
star
23

osu-queue-score-statistics

A queue processor to handle updating general statistics updates from user scores
C#
12
star
24

osu-global-rank-lookup-cache

Caching layer for the most expensive of database operations
C#
11
star
25

helm-charts

Kubernetes helm charts
Smarty
9
star
26

osu-elastic-indexer

MySQL -> Elasticsearch score pump
C#
9
star
27

osu-onlinedb-generator

A lightweight program to generate the online.db beatmaps cache file for the osu! game client.
C#
9
star
28

osu-queue-processor

C#
8
star
29

osu-localisation-analyser

.NET analyser for localisation in osu!
C#
7
star
30

osu-queue-mania-key-rank-processor

C#
6
star
31

opentk-legacy

old thing
C#
5
star
32

osu-beatmap-difficulty-lookup-cache

C#
4
star
33

kubernetes-cloudflare-certificates-uploader

JavaScript
4
star
34

osu-framework-bindables

3
star
35

kubernetes-secrets-exporter

JavaScript
3
star
36

helms

3
star
37

shared-tags

A collection of shared tags to be used across all repos
2
star
38

osu-performance-datasets-generator

Shell
2
star