GithubHelp home page GithubHelp logo

111116 / webosu Goto Github PK

View Code? Open in Web Editor NEW
630.0 8.0 107.0 46.15 MB

➤⓵ web rhythm game (unofficial osu!) http://osugame.online/

License: MIT License

HTML 20.45% Shell 0.40% JavaScript 73.65% CSS 5.50%
osu rhythm-game webgl-game pixi javascript html5

webosu's Introduction

¡nso

A browser rhythm game where players click circles following rhythm of the music.

Powered by PixiJS. Beatmap source: Sayobot.

Note: This is an unofficial implementation of osu!. Scoring and judgement rules differ from official versions. Some music might not be perfectly syncing. Modes other than osu! (std) are unsupported.

Screenshots

web page:

webpage

game in action:

webpage

Hosting

Set up a web server with root directory located where index.html is in.

To host a separate live score, redirect send/fetch api requests to localhost:3000/3001 respectively, and change the api url in index.html and scripts/overlay/score.js accordingly. Then run:

nohup node api.js &

Todos (probably)

  • beatmap hitsounds
  • pp & user system

License Notes

Some media files are copyrighted by ppy and other people. Check their respective license before you use them.

webosu's People

Contributors

111116 avatar ddevault avatar indefined avatar mmai avatar nyanpasu avatar rosespy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webosu's Issues

Hitsound not loading

Firefox Nightly 80.0a1(64位)卡Hitsound加载
Chrome正常
铺面ID:(随便试了几个)
1154585、1152106、1095376
控制台输出:

某些 Cookie 滥用“SameSite”属性,无法正常工作 3
Uncaught (in promise) TypeError: can't access property "length", window.liked_sid_set_callbacks is undefined
    checkdep http://osugame.online/scripts/jsloader.js:54
    h https://osugame.sayobot.cn/scripts/lib/localforage.min.js:7
    promise callback*h https://osugame.sayobot.cn/scripts/lib/localforage.min.js:7
    ja https://osugame.sayobot.cn/scripts/lib/localforage.min.js:7
    ra/a[b]/< https://osugame.sayobot.cn/scripts/lib/localforage.min.js:7
    promise callback*ra/a[b] https://osugame.sayobot.cn/scripts/lib/localforage.min.js:7
    checkdep http://osugame.online/scripts/jsloader.js:48
    loadScript http://osugame.online/scripts/jsloader.js:7
    beatmaplistLoadedCallback http://osugame.online/scripts/jsloader.js:24
    setTimeout handler*window.beatmaplistLoadedCallback http://osugame.online/scripts/jsloader.js:19
    <anonymous> http://osugame.online/preview.html?sid=1152106&bid=2432571:164
jsloader.js:54:37
    checkdep http://osugame.online/scripts/jsloader.js:54
    h https://osugame.sayobot.cn/scripts/lib/localforage.min.js:7
    (异步:promise callback)
    h https://osugame.sayobot.cn/scripts/lib/localforage.min.js:7
    ja https://osugame.sayobot.cn/scripts/lib/localforage.min.js:7
    ra/a[b]/< https://osugame.sayobot.cn/scripts/lib/localforage.min.js:7
    (异步:promise callback)
    b https://osugame.sayobot.cn/scripts/lib/localforage.min.js:7
    checkdep http://osugame.online/scripts/jsloader.js:48
    (异步:EventHandlerNonNull)
    loadScript http://osugame.online/scripts/jsloader.js:7
    beatmaplistLoadedCallback http://osugame.online/scripts/jsloader.js:24
    (异步:setTimeout handler)
    beatmaplistLoadedCallback http://osugame.online/scripts/jsloader.js:19
    <anonymous> http://osugame.online/preview.html?sid=1152106&bid=2432571:164
Object { data: {…}, status: 0 }
preview.html:97:29
一个 AudioContext 被禁止自动开始。它必须在用户于此页面上有所动作后创建或继续。 sound.js:169:11
WebGL context was lost. pixi.min.js:8:32862
Loading sounds.. sound.js:224:13
源映射错误:Error: request failed with status 404
源 URL:https://osugame.sayobot.cn/scripts/lib/pixi.min.js
源映射 URL:pixi.min.js.map 2
源映射错误:Error: request failed with status 404
源 URL:https://osugame.sayobot.cn/scripts/lib/underscore.js
源映射 URL:underscore-min.map

UYOh5R.md.png

Wrong slider SV bug

If you play the map "The Guinea Pig Is In Your Mind" on the top difficulty, then the last slider of the map has a velocity which is way too low. It causes the map to go on for a full 40 seconds after the song ended. This slider isn't so slow on the normal osu!

無法使用 Chrome 遊玩

錯誤訊息:

Uncaught Error: WebGL unsupported in this browser, use "pixi.js-legacy" for fallback canvas2d support.

錯誤

Google Chrome Version 80.0.3987.106 (Official Build) (64-bit) (目前最新)
image

Chromium Version 80.0.3987.87 (Official Build) Built on Ubuntu , running on Ubuntu 18.04 (64-bit)
image

正常(對照)

Firefox Browser 73.0 (64-bit)
image

Epiphany 3.28.6
image

游戏无法进行

左上角显示谱面已下载,音效和皮肤长时间处于加载中
光标选择难度时显示繁忙(转圈)无法进入

无法显示难度列表

addbeatmaplist.js:77 
Uncaught DOMException: Failed to execute 'add' on 'DOMTokenList': The token provided must not be empty.
    at createDifficultyList (http://osugame.online/scripts/addbeatmaplist.js:77:24)
    at HTMLDivElement.box.onclick (http://osugame.online/scripts/addbeatmaplist.js:355:13)
  • screenshot:

Failed to create difficulty list for sid=632870

Clicking on the box for sid=632870 fails to create a difficulty list, and throws the following error in the console:

Uncaught TypeError: Cannot read property 'length' of undefined
    at createDifficultyList (addbeatmaplist.js:67)
    at HTMLDivElement.box.onclick (addbeatmaplist.js:371)
createDifficultyList @ addbeatmaplist.js:67
box.onclick @ addbeatmaplist.js:371

按太早不会miss

在一个note上从缩圈开始出现时连打,都不会出现因为按太早而出现的miss,这不osu,也不音游。

skin support

i really like osu web (its also the only way i can play osu) but there is only one problem and its no skin support i cant play that much well with the lazer skin

some issue on macOS

  1. Mac 上 f11并不能进入全屏 。
  2. 在窗口大小改变的时候,cpu占用极高。
  3. Safari 无法加载Hit Sounds
  4. 某些beatmap难度列表过长

触控支持

只能用鼠标操作有些难受,也难以发挥出web版本的优势(跨平台),要是能在pad上游玩就好了

diff of beatmap sid=529749 loading failed.

console log:

playback.js:523 Uncaught TypeError: Cannot read property 'y' of undefined
    at Playback.createSlider (playback.js:523)
    at Playback.populateHit (playback.js:645)
    at new Playback (playback.js:677)
    at launchOSU (launchgame.js:105)
    at Osu.osu.ondecoded (launchgame.js:139)
    at Track.Osu.track_decoded [as ondecoded] (osu.js:278)
    at Track.decode (osu.js:260)
    at osu.js:297
    at FileReader.reader.onload (zip.js:225)

at line 729 in witch's slave - artefatto vita (09kami) [Master].osu
48,40,119920,6,0,L|56:42,4,4.49999988079071,8|0|0|0|0,0:0|0:0|0:0|0:0|0:0,0:0:0:0:

Audio issue

It's as if I can hear one part of the music, but the other part, usually the actually singing, can barely be heard, it also messes with the hit sounds.

Unable to load hitsounds on iOS devices 无法在苹果移动设备上载入hitsounds

I am an iOS device user and I ran into a problem that happens on all of my iOS devices. On Safari browser, when I open the site, the hitsounds loading status freezes on that "loading circle" but my iPad status bar suggests that no internet activity is in progress(no loading icon). Please fix this as this is really bad.

我是一个iOS设备用户,而近期我遇到了一个发生在我所有iOS设备上的问题。在系统自带的Safari浏览器里,当我打开网站时,hitsounds的加载状态一直卡在“转圈”,但是我的iPad的状态栏显示目前没有网络活动(没有转圈)。这问题很严重,请尽快修复。蟹蟹。

跨域请求被拦截

请求api.osugame.online时会被CORS拦截

Access-Control-Allow-Origin: https://api.osugame.online

列表重复问题

点击开始下载任意map,当map下载失败后,在第二次点击下载时,会新增加一个相同的项在下载列表,失败的项会一直停留在原位

连接被重置

搜索别的谱没问题,就是搜FD会显示连接被重置,要等2分钟才能再进去
tfqwvT.png

Won't load

The hitsounds, skin, and scripts will not load causing me to not be able to play whatsoever. Does it have to do with the domain change and everything?

Skip function doesn't work

系统 macOS 10.13.6 浏览器是 Google Chrome 84.0.4147.105(正式版本) (64 位)
随便试了几个谱面(前奏长度大于30秒),后来改了快捷键还是不行
希望能增加跳过前奏的视觉提示~

need to alert in case beatmap unmatch

When trying to download a beatmap it shows that it's completely downloaded and the audio seems to be fine however, when trying to select the difficulties for beatmaps, it doesn't want to seem to load the map even though, it completely downloaded.

Chrome 装了扩展导致浏览器报错:audios[i].softstop is not a function

downloader.js:11
Uncaught TypeError: audios[i].softstop is not a function
at startpreview (downloader.js:11)
at startdownload (downloader.js:44)
at HTMLDivElement.box.onclick (addbeatmaplist.js:366)

扩展举例:有道词典Chrome划词插件
应该是扩展的 标签早于页面加载导致,把扩展关了就好了。
可能需要在调用 softstop 前加个非空判断?

一些歌搜索不了

比如搜索
Don't say "lazy" (Full ver.)
Hisaka Yokomapped by DJPop这首歌关键词Don't say "lazy"
包含了"lazy"搜索界面就会空白
同时如果有玩家游玩了这一首铺面并且结算出现在了首页,其他玩家点击这首歌想要游玩的时候会出现undefined

一首歌显示出问题

Depopulated Zone-VacuumTrack
这首歌在首页会这样显示
TIM截图20200224164035
Depopulated Zone-VacuumTrack [undefined] | undefinedx | NaN | undefined |   | NaN:

游戏中alert弹窗问题

当同时下载两张地图,地图1完成后并进入游戏内,游戏游玩过程中,地图2下载失败,这时候游戏内会弹出下载失败的alert框,影响正在游玩的地图1

手机端帧率低

Android 8.1.0; vivo X20 Chrome/73.0.3683.0 Mobile Edge/44.11.2.4122
分辨率无论是降到最低还是拉到最高,帧率是差不多的,所以感觉不是分辨率问题

Audio offset 设置疑似不起作用

调 offset 的过程中发现怎么调都感觉不到差别,试着分别调到 +80 和 -80 并只注意听歌不在意判定圈各打了一把,确实没有差别

是因为这项功能仍在 TODO 吗

Game wont download the songs

Everytime i try to download a song it just freezes the download or it wont download at all. not eve the pictures on the beatmaps will show up. it worked yesterday but now today it stopped working for me.
Screenshot 2020-09-15 at 9 19 48 AM

Map won't load

It does everything right until I click on the difficulty I want to play.
No matter which one I press it doesn't work.
It could be because I'm on a school pc.

Change project name to avoid confusion / trademark issues

Really cool project!

Unfortunately, you've named it the same as the official game. Highly appreciated if this could be changed. You are free to mention that it is a game that "plays like osu!" or "based on osu!" something like this, but if it isn't changed by trademark law I will be required to file a formal complaint.

I'd also advise changing the domain name.

You seem to have included the copyright mention, but overlooked the trademark clause.

Please share an email with me if you would like to discuss further.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.