ENTER STADIUM
NEXT PITCH
NEXT PITCH
EV MPH LA °

DYNAMIC DIFFICULTY LEVEL: ( )
PROJECTED HR DISTANCE
FT ( FT)
 
EXIT VELOCITY
MPH
 
LAUNCH ANGLE
DEG
 
HANG TIME
SEC
 
 
APEX HEIGHT: FT
POWER BOOSTS
Announcements
Google Chrome was/is the primary test browser during development and is recommended. Microsoft Edge seems to run it very well too. Firefox isn't recommended.

To qualify for the leaderboard and earn points to increase your player level, you have to have an account and play the game on "Simulation" difficulty. Click the options button at the bottom.
Top 3 Sluggers
Development Log
09/10/2022 -
  • rewriting net code for head to head games
04/13/2023
  • firework particles are now scaled based on resolution multiplier
10/02/2022
  • stadium colors automatically saved after they've been randomly generated
09/29/2022
  • balls on field automatically clear every 4th round
  • fixed a batting glitch that would happen if player didn't move hit reticle during incoming pitch
09/16/2022
  • employed low poly collision models for statues in power alleys (fixed slowdown around them and higher poly models are visible now)
09/15/2022
  • tweaked bat aimer
  • players can now use next pitch (right click) on 9th out (fixes backstop bug too)
09/14/2022
  • increased accuracy for projected distances
  • adjusted pitches ( less inside, more range to lower ones )
09/06/2022
  • made best contact angle dynamic based on pitch Y location
  • completely reworked pitching (fixed a major bug that affected consistency)
  • pulled back batting camera
09/05/2022
  • major changes to in-air ball physics to make hang times and flight paths more realistic
09/01/2022
  • pixel density can now be set to values above 1 in options menu (values above 1 clean up graphics a lot)
09/03/2021
  • tweaked air density and altitude factors
09/01/2021
  • tweaked launch angle power factor
05/04/2021
  • worked on collision accuracy
04/20/2021
  • stadium model changes - pow blocks location, UV maps, outfield wall height, LF stands, added mountain
03/20/2021
  • increased power for players who don't have a profile / players just starting from level 0
03/12/2021
  • fixed mysql errors that were preventing game from loading
02/11/2021
  • started implementing touch screen controls for mobile
  • increased power to opposite field
02/06/2021
  • tweaked ball physics
02/02/2021
  • added "top 3 sluggers"
01/28/2021
  • improved collision detection
  • tweaked contact system
01/27/2021
  • tweaked contact system
  • worked on stadium model
01/26/2021
  • tweaked contact system
01/24/2021
  • finished re-developing contact system (launch angles, exit velos, apex heights, trajectories, etc.. - this is a major improvement)
01/21/2021
  • completed major stadium remodel (added upper deck, remodeled right and left field stands, changed left and right field walls)
  • worked on contact code
  • fixed major bug in contact code that caused incorrect launch angle and power results
01/19/2021
  • started major stadium remodel
01/18/2021
  • decreased the power penalties for "push" and "out in front"
01/17/2021
  • tweaked contact code
  • worked on stadium model (lights, dirt UVs)
01/16/2021
  • started rewriting contact code for more natural feel
  • decreased tail movement
Donations will help me dedicate time to develop the game further. I have lots of improvements in mind! Also, If you choose to donate 2 or more bucks I'll make your account a level 100 if you want.
x
Game Options
Difficulty Level:
EASY
NORMAL
SIMULATION
 
Graphics Options
Postprocessing: ON
High Impact
FPS:
Resolution Multiplier:
High Impact
Crowd Detail:
High Impact
AntiAliasing: ON
Moderate Impact
Shadow Resolution:
moderate impact
Time Left: 5:00
Ball Cam
REPLAY
FEATURES:
This game is currently in development.
If game isn't loading or anything appears strange clearing cache will most likely fix that.
Developed by MFZ
Copyright 2017
x
HOW TO PLAY:
CONTROLS:

Clicking the right mouse button while the ball is in play will fast forward to the next pitch. This can speed up a round dramatically. If you fast forward before the ball has been counted as a HR, it's counted as an out. Balls are counted as home runs as soon as they contact something over the wall.

The person playing is 100% responsible for the resulting hit. Nothing is predetermined. Hits are completely based on user input. If a 450+ ft. monster HR is hit, you will feel like you hit it because your hand–eye coordination and reflexes made it happen!


FEATURES:
LEADERBOARD:

The leaderboard refreshes automatically when needed. It's programmed to detect when the information on your screen is different from the information in the database and updates it. All HR distances are projected distances ( not impact distances ). Stats are recorded and processed after each round.


METRICS:

Round stats are at the lower right part of the screen. Detailed hit metrics are on the lower left part of the screen. These are self explanatory.


GENERAL INFORMATION:

The game is still a WIP.

HRD is a physics driven home run derby game created with PhysiJS, ThreeJS, PHP, HTML and Javascript.

I focused on emulating the real physics of baseball. The Magnus effect is a big part of that. The Magnus effect is the commonly observed effect in which a spinning ball (or cylinder) curves away from its principal flight path. You will see that clearly in the hit trajectories. Balls will tail in a realistic manner based on factors like swing power, bat angle at point of impact, and the arc of the hit.

PhysiJS by itself was not robust enough to create the level of physics in HRD. How the ball tails in the air and how it rolls on grass and other surfaces are routines programmed by myself using JavaScript.


GAME DEVELOPMENT

All JavaScript, PHP, GLSL, and HTML by MFZ

ThreeJS originally developed by Ricardo Cabello AKA Mr. Doob

PhysiJS developed by chandlerprall

HowlerJS developed by James Simpson AKA goldfire

Fireworks developed by Lallassu

Pool water in centerfield ported by me using this ThreeJS example.



TEXTURES COURTESY OF PIXABAY
Bullet Holes Target Shooting Gunshot by Clker-Free-Vector-Images from Pixabay
Seamless Wood by TheDigitalArtist from Pixabay
black-white-pattern-glass-crack by DreamDigitalArtist from Pixabay
tropical-beach-sunset-palm-trees by TheDigitalArtist from Pixabay
SOUND EFFECTS COURTESY OF FREESOUNDS.ORG
WALLA Ballpark Organ Music Various by AshFox (edited)
Baseball Catch by http://www.freesfx.co.uk
RBH_Chain Link Fence 03.wav by RHumphries
Impact-Misc_Tools-0003.wav by DWOBoyle
Plastic Impact 1 by Sophia_C
Large_crowd_medium_distance_stereo.wav by eguobyte
Hitting 2 by Hornetan1 (edited)
Man getting hit by Under7dude
Ouch.wav by pyro13djt (edited)
OuchPain.flac Copyright 2013 Iwan Gabovitch, CC-BY3 license. (edited)
Crowd Ouch.wav by Adam_N (edited)
SOUND EFFECTS COURTESY OF SOUNDBIBLE.COM
Play Ball Umpire by Mike Koenig
Metal Gong by Mike Koenig
SOUND EFFECTS COURTESY OF https://quicksounds.com
SOME CROWD AND VENDOR SOUND EFFECTS
SOUND EFFECTS COURTESY OF PIXABAY
HIT Brutal Puncher | Cinematic Trailer Sound Effects by SUBMORITY from Pixabay
Hitting Wood by Pixabay from Pixabay
Metal Hit 10 by floraphonic from Pixabay
Glass Hit by UNIVERSFIELD from Pixabay
LaserRocket from Pixabay
Free Crowd Cheering Sounds - 04 - Strong cheering - II - Short by Gregor Quendel from Pixabay
Free Crowd Cheering Sounds - 03 - Strong cheering - I by Gregor Quendel from Pixabay
SOUND EFFECTS COURTESY OF Zapsplat
Massive stadium crowd, thousands of people talking, walla
ICONS
Mouse 3 Icon by IconsMind (edited)
baseball-field-sports-stadium-park by Kievinay
baseball-bats-crossed-wood-play by OpenClipart-Vectors
LICENSES
MIT License
Create Common License (Attribution 3.0)
Create Common License (CC0 1.0 Universal)
Linkware License