Skip to content
/ iosu Public

A proof-of-concept iOS port of osu!

License

Notifications You must be signed in to change notification settings

imxieyi/iosu

Repository files navigation

iosu!

Build Status

Introduction

This is an ios port of the rhythm game osu!. It is written in Swift based on SpriteKit framework. It is just a hobby project for fun. So don't expect that I can make it full functional in a short time.

Updated 2019-05-15: The official osu!lazer is already playable on iOS devices.

Demo Video (Game+Storyboard)

https://youtu.be/RjuJyxciYkg

What has been done

  • Scan beatmaps imported by iTunes
  • Decode .osu file (partly)
  • Timing with Quartz
  • Render background image & Background dim
  • Draw Plain HitCircle & Judge
  • Draw Sliders & Judge
  • Play with backgound video
  • Play with StoryBoard
  • Play with skin in beatmap bundle

About UI design

The sketch file of the UI design is available here. The implementation is available at iosu_ui. This project also includes database and thumbnial cache implementation.

About default skin

According to the licence of osu! default skin, the skin derived from osu! cannot be used here. So the skin used in this project is designed from scratch. All of the source files can be found under assets/. In the future sound effects will also be replaced in order to prevent possible violations.

Compilation

  1. Install the latest version of XCode.
  2. Install CocoaPods.
  3. Run the following commands:
git clone https://github.com/imxieyi/iosu.git
cd iosu
pod install
  1. Open iosu.xcworkspace in the project directory.
  2. Build.

Installation Through Cydia Impactor (Not recommended) (iOS 10.0+ required)

  1. Download Cydia Impactor.
  2. Download latest ipa artifact from my personal gitlab server. (Direct link to ipa file: https://git.imxieyi.com/xieyi/iosu/-/jobs/artifacts/v0.3.1/download?job=archive_project)
  3. Connect your iDevice and run Cydia Impactor.
  4. Drag .ipa file to Cydia Impactor window.
  5. Input your Apple ID info.
  6. Wait until it finishes.

Import Beatmap

Both osu and osb files should be contained in directories shown in the iTunes. Directly importing directories in Songs on your PC (can be found in osu! installation path) should work fine.

Notice

  1. This project is still at super early stage, there are plenty of bugs among the whole application. So don't worry if it crashes constantly on your device. If you want to report, please attach the link to the beatmap on osu.ppy.sh while creating an issue.
  2. Currently there is no database, so please do not import too many beatmaps.
  3. It's okay to play a beatmap with too complicated storyboard as background now. However due to thread synchronization issue, unused SKNodes will not be released during gameplay. This would result in more memory usage depending on beatmap and storyboard.
  4. The patched PlaySoundFileNamed function has some bugs that may crash the application, I'm still finding the solution. (should have been fixed in 43e862)
  5. I have an iPhone6s and an iPad Pro 10.5 to test, so it may works well on all iDevices.
  6. If the framerate drops under 10, the timing will be inaccurate. So do not try to run it in the simulator. If that happens on your device, maybe you can consider update it because of low performance.
  7. I have modified the SpriteKitEasingSwift framework to meet the need of osu! storyboard. The modified version can also be installed by CocoaPods.
  8. With the help of image buffer, you can load any complicated storyboard with acceptable memory usage. But be sure to correct storyboard image paths because in Unix-like system file name is case sensitive. Also, there are still some bugs in the render and processor. But in most of the time it works well.
  9. StoryBoard support for Cheat Sheet is incomplete. Loading such storyboards might crash the application.
  10. I'm new to iOS development, Swift and SpriteKit. And I don't like to insert a lot of comments. So please tolerate my awful code.

Selection View Screenshot

GamePlay Screenshot

With background image:

beatmap: fourfolium - Now Loading!!!!

With skin in beatmap bundle:

beatmap: DJ Okawari - Flower Dance

With background video:

beatmap: Hatsune Miku - Ievan Polkka

With background storyboard:

beatmap: fhana - Outside of Melancholy Yuuutsu no Mukougawa

StoryBoard Screenshot

beatmap: Tatsumi Megumi featured by Sano Hiroaki - Tsubomi (Long Version)

beatmap: Kana Nishino - Sweet Dreams (11t dnb mix)

beatmap: DM vs. POCKET - uNDeRWoRLD MoNaRCHy

Credit

Packages

No packages published

Languages