๐ Devlog #6: Velocity Puck Character Select, SFX, Haptics, and a Glowing Title Screen!
Hey puck pros! โก In this sixth devlog, weโre introducing powerful updates that improve the onboarding experience, game feel, and customizability. This is our most polished version yet, and hereโs whatโs new!
๐ญ 1. Dedicated Character Selection Screen
Gone is the old inline menu—now you get a full character selection screen (#characterSelectionScreen
) after clicking "Single Player" from the main menu.
๐น๏ธ Features:
-
Preview icons for each paddle type (Classic, Robot, Ninja, Alien).
-
Hover and click animations.
-
A clear Start Game button once your pick is locked in.
๐ง Under the Hood:
js document.querySelectorAll('.characterBtn').forEach(btn => { btn.addEventListener('click', function() { document.querySelectorAll('.characterBtn').forEach(b => b.classList.remove('selected')); this.classList.add('selected'); }); });
Upon hitting Start Game, the system hides the selection screen, stores the chosen character, and loads into gameplay:
js document.getElementById('startGameButton').addEventListener('click', function() { ... const selectedCharacter = document.querySelector('.characterBtn.selected').getAttribute('data-character'); updateCharacterStyle(selectedCharacter); gameStarted = true; animate(); });
๐ 2. Added Sound Effects ๐ง
Weโve introduced two key sound effects:
-
Hit sound when the puck is struck
-
Goal sound when a point is scored
Audio levels are customizable in the Options โ Audio menu using sliders.
๐ Assets:
-
/hit2.ogg
-
/goal1.ogg
๐๏ธ Volume Controls:
js document.getElementById('sfxVolume').addEventListener('input', function(e) { const volume = e.target.value / 100; hitSound.volume = volume; goalSound.volume = volume; });
๐ Real-time Audio Playback:
js hitSound.currentTime = 0; hitSound.play().catch(e => console.log("Audio play failed:", e));
๐ณ 3. Haptic Feedback: Feel the Impact
For mobile players, vibration feedback (haptics) makes every hit and goal more satisfying.
๐ฅ Events That Trigger Vibration:
-
Wall collisions:
vibrate(50)
-
Paddle strikes:
vibrate(100)
-
Goals:
vibrate([100, 50, 200])
๐ฒ Vibration Code:
js function vibrate(pattern) { if ('vibrate' in navigator) { navigator.vibrate(pattern); } }
This works on supported browsers/devices and falls back silently if unsupported.
โ๏ธ 4. Options Is Now Its Own Screen
Weโve broken Options out into its own clean, full-screen interface.
๐ Inside Options (#optionsScreen
):
-
Colors
-
Audio
-
Toggle Theme
-
Back to Menu
Each submenu—like #colorsScreen
and #audioScreen
—is now a standalone screen, keeping things focused and user-friendly.
js document.getElementById('audioButton').addEventListener('click', function() { document.getElementById('optionsScreen').style.display = 'none'; document.getElementById('audioScreen').style.display = 'flex'; });
๐ 5. Animated Title Screen Background
The new title screen is fully alive with:
-
Floating pucks & SVG hockey icons
-
Glow-in-the-dark neon typography
-
Inspirational hockey quotes on a rotating timer
๐ก Background Setup:
html <div class="hockey-elements"></div>
๐จ JavaScript-Generated Elements:
js function createPuck() { ... } function createHockeyIcon() { ... }
10 icons and 8 pucks float gently across the screen using:
css @keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0; } ... }
Quotes rotate every 10 seconds:
js setInterval(rotateQuotes, 10000);
โ Summary of Whatโs New:
-
๐ญ Full Character Selection screen
-
๐ Sound effects for strikes and goals
-
๐ณ Haptic feedback on mobile (vibration API)
-
โ๏ธ Clean and separate Options screen
-
๐ Glowing, animated title screen with floating elements and quotes
Thanks for all your support! Keep sending feedback and tag us if you're playing online! ๐ง
— Jordon McClain
Steel Cyclone Studios ๐ฅ
Velocity Puck
Air Hockey Arcade Reimagined
Status | In development |
Author | SteelCycloneStudios |
Genre | Sports |
Tags | 3D, air-hockey, Casual, hockey, mobile, one-button, Physics, Singleplayer, Touch-Friendly |
More posts
- ๐ฎ Devlog #7: Velocity Puck's 3D Character Selection, Fixed UI Arrows & Intera...3 days ago
- ๐ Devlog #5: Velocity Puck's Title Screen, Menus, Camera Magic & More!9 days ago
- ๐ฎ Devlog #4: Velocity Puck's Robot Paddle, Character Selection, and Animation...9 days ago
- ๐ง Devlog #3 โ The Jump to 3D, Smarter Pucks, and a Brighter Arena23 days ago
- ๐ Devlog #2 โ Bringing Order to Chaos: Building the Velocity Puck Menu Syst...36 days ago
- Devlog #1 โ How Velocity Puck Started (From 2D Beginnings)37 days ago
Leave a comment
Log in with itch.io to leave a comment.