Jump to content
View in the app

A better way to browse. Learn more.

ClassiCube Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

I have a idea how to add more sounds to web client, including music

Introduction

Recently I found that in the ClassiCube web client only exists the grass sound. So I made two ZIPs with the sounds and the music, and I found a manner for play it.

How I think that we can play the sounds

I'm a programmer, and I found a manner how to replay the sounds.

This script on JavaScript can play the sounds:

function playSounds() {
	const playSound = () => {
		new Audio({/*change this in the file direction.*/}).play();
	}
	
	playSound();
    intervalId = setInterval(playAudio, 100);
}

This script plays a sound that is in this new Audio component.

Obviously, is required to change it.

ZIPs with the sounds

How I talked, the ClassiCube web client can only replay the grass sounds, but no music or other sounds.

So, I made 2 ZIPs. One is with sounds, and the second is with the music..

Here is the ZIPs:

First ZIP

Second ZIP

I know that you can copy the original files in the app folder, but, I made this ZIPs for a better ORGANIZING.

Thanks for read

-Nico1Monte

Featured Replies

Dude the reason why sounds, and especially music have not been implemented on the web client is due to copyright reasons, its not that they don't know how to implement them.

  • Author
Just now, Nico1Monte said:

Introduction

Recently I found that in the ClassiCube web client only exists the grass sound. So I made two ZIPs with the sounds and the music, and I found a manner for play it.

How I think that we can play the sounds

I'm a programmer, and I found a manner how to replay the sounds.

This script on JavaScript can play the sounds:

function playSounds() {
	const playSound = () => {
		new Audio({/*change this in the file direction.*/}).play();
	}
	
	playSound();
    intervalId = setInterval(playAudio, 100);
}

This script plays a sound that is in this new Audio component.

Obviously, is required to change it.

ZIPs with the sounds

How I talked, the ClassiCube web client can only replay the grass sounds, but no music or other sounds.

So, I made 2 ZIPs. One is with sounds, and the second is with the music..

Here is the ZIPs:

First ZIP

Second ZIP

I know that you can copy the original files in the app folder, but, I made this ZIPs for a better ORGANIZING.

Just now, Android_c10 said:

Dude the reason why sounds, and especially music have not been implemented on the web client is due to copyright reasons, its not that they don't know how to implement them.

Ok yes, but I don't want to only sound grass, thats very boring

READ THE RULES BEFORE YOU POST

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.