RUVIDEO
Поделитесь видео 🙏

SOUNDS - Episode #25 - Platformer Tutorial Java

00:00 Intro
01:16 Recap
02:16 AudioPlayer and Audio Import
06:41 Clip Explained (kinda)
08:05 GetClip Method
16:30 UpdateVolume Method
22:29 Toggle Mute
25:44 Play Sounds
36:40 setGamestate Method
41:49 AudioOptions Work
48:14 Adding Effects
45:38 Final Test
56:34 Outro

Hello!
Today we add sounds in our game. Using Clip that comes along with java by default we can get a very basic, but functional sound system in our game.
Use the .Wav files in github or on my website. If you were to add your own, make sure to use wav files that can be controlled with volume and mute.
clip.getControls() will tell you what controls you have access to for each clip / sound. Store the return array in a control array and then syso each index to see what the control is. Clip documentation can tell you more.

https://docs.oracle.com/javase/7/docs/api/javax/sound/sampled/Clip.html

I found a few .wav files not working as I wanted. The solution(debatable) was to keep the Bitrate of the .wav file to 1411 kbps or less, and 44100 hz in sample rate.

Best approach to adding sounds to your own game, would be to use an external library with faster response time and also more file formats.
This episode is to give you a taste of working with sound.
Good Luck!


*** LINKS ***
Support me at - https://www.buymeacoffee.com/kaaringaming
Website - https://www.kaaringaming.com/
gitHub - https://github.com/KaarinGaming
Discord - https://discord.gg/NPQy5UQkJZ
Twitter - https://twitter.com/KaarinGaming
Art Maker - https://pixelfrog-assets.itch.io/
*************

Want to make a platformer game? And in Java?
We build this one from scratch. No gameengine or shortcuts.
This is for beginners of game development, or those who just started.
Some of the things we will cover are:
- GameWindow
- Gameloop
- Inputs
- Animations
- Line of Sight
- Enemies
- Collisions
- Event handling
- Rendering
and much more.

Don't forget to subscribe and like the video.
If there is anything that's unclear, post a comment or join us on discord and ask it there.
Hope you enjoy this episode and good luck!

#java #tutorial #development

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «SOUNDS - Episode #25 - Platformer Tutorial Java», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.