japanese-drum-game/public/src/js/assets.js
LoveEevee 3fea149353 ImportSongs: Add Google Drive support
- Adds a new page for importing custom songs, where it is possible to pick a local folder (desktop only) or a Google Drive folder (desktop and Android)
  - This feature is disabled on iOS due to the lack of OGG audio support in the browser
- In order to not get rate limited, a TJA file is parsed for metadata only when the song is clicked in the song selection, rather than all at once at import time
- The instance maintainer will need to provide the API credentials in the config.py file to enable this feature
  - This requires a new project to be created at console.cloud.google.com
  - Drive API will have to be enabled
  - API and OAuth keys should be created
    - API key can be restricted to only have Google Drive and Google Picker APIs
    - OAuth Client ID should have Web Application type and JavaScript origins set
    - Editing the OAuth consent screen to have a name and icon is recommended
      - It is semi-required to submit the consent screen for verification as the permission to download all of the Drive files will be asked.
      - Note that the email of the maintainer is publicly visible on the consent screen
  - The project number can be found in the IAM & Admin settings page
2020-10-29 08:07:56 +03:00

161 lines
2.8 KiB
JavaScript

var assets = {
"js": [
"lib/md5.min.js",
"loadsong.js",
"parseosu.js",
"titlescreen.js",
"scoresheet.js",
"songselect.js",
"keyboard.js",
"gameinput.js",
"game.js",
"controller.js",
"circle.js",
"view.js",
"mekadon.js",
"gamepad.js",
"tutorial.js",
"soundbuffer.js",
"p2.js",
"canvasasset.js",
"viewassets.js",
"gamerules.js",
"canvasdraw.js",
"canvastest.js",
"canvascache.js",
"parsetja.js",
"autoscore.js",
"about.js",
"debug.js",
"session.js",
"importsongs.js",
"logo.js",
"settings.js",
"scorestorage.js",
"account.js",
"lyrics.js",
"customsongs.js",
"abstractfile.js"
],
"css": [
"main.css",
"titlescreen.css",
"loadsong.css",
"game.css",
"debug.css",
"songbg.css",
"view.css"
],
"assetsCss": [
"img/img.css"
],
"img": [
"title-screen.png",
"notes.png",
"notes_drumroll.png",
"notes_hit.png",
"notes_explosion.png",
"balloon.png",
"taiko.png",
"dancing-don.gif",
"bg-pattern-1.png",
"difficulty.png",
"don_anim_normal_a.png",
"don_anim_normal_b1.png",
"don_anim_normal_b2.png",
"don_anim_10combo_a.png",
"don_anim_10combo_b1.png",
"don_anim_10combo_b2.png",
"don_anim_gogo_a.png",
"don_anim_gogo_b1.png",
"don_anim_gogo_b2.png",
"don_anim_gogostart_a.png",
"don_anim_gogostart_b1.png",
"don_anim_gogostart_b2.png",
"don_anim_clear_a.png",
"don_anim_clear_b1.png",
"don_anim_clear_b2.png",
"fire_anim.png",
"fireworks_anim.png",
"bg_genre_def.png",
"bg_score_p1.png",
"bg_score_p2.png",
"bg_settings.png",
"bg_pause.png",
"badge_auto.png",
"touch_pause.png",
"touch_fullscreen.png",
"mimizu.png",
"results_flowers.png",
"results_mikoshi.png",
"results_tetsuohana.png",
"results_tetsuohana2.png",
"settings_gamepad.png"
],
"audioSfx": [
"se_pause.wav",
"se_calibration.wav",
"v_results.wav",
"v_sanka.wav",
"v_songsel.wav",
"v_start.wav",
"v_title.wav"
],
"audioSfxLR": [
"neiro_1_don.wav",
"neiro_1_ka.wav",
"se_cancel.wav",
"se_don.wav",
"se_ka.wav",
"se_jump.wav",
"se_balloon.wav",
"se_gameclear.wav",
"se_gamefail.wav",
"se_gamefullcombo.wav",
"se_results_countup.wav",
"se_results_crown.wav",
"v_fullcombo.wav",
"v_renda.wav",
"v_results_fullcombo.wav",
"v_results_fullcombo2.wav"
],
"audioSfxLoud": [
"v_diffsel.wav"
],
"audioMusic": [
"bgm_songsel.mp3",
"bgm_result.mp3",
"bgm_setsume.mp3",
"bgm_settings.mp3"
],
"fonts": {
"Kozuka": "Kozuka.otf",
"TnT": "TnT.ttf"
},
"views": [
"game.html",
"loadsong.html",
"songselect.html",
"titlescreen.html",
"tutorial.html",
"about.html",
"debug.html",
"session.html",
"settings.html",
"account.html",
"login.html",
"customsongs.html"
],
"songs": [],
"sounds": {},
"image": {},
"pages": {},
"categories": []
}
var gameConfig = {}