Dino Buster
A 3D dinosaur egg-smashing game with multiplayer support, a custom weapon hotbar, roar powers, and explosive egg reactions.
Details
Why I built this
I used Dino Egg Buster to learn how real JavaScript changes a game. I edited variables, built a roar power with object properties, and started organizing weapons as objects inside an array.
Bugs and breakthroughs
- Edited key code and saw the game change immediately.
- Built a Roar Power feature by changing object properties like size, waves, damage, and color.
- Used weapon objects to describe the Hammer and Blaster in the hotbar.
- Practiced planning new game features and spotting bugs before the next build.
Proud code
let roarPower = {
size: 3,
waves: 3,
shake: 10,
damage: 3,
explosion: 15,
color: "#337A9E"
};
This object groups Sean's roar settings so changing one property changes the roar effect in the game.
let myWeapons = [
{
name: "Hammer",
type: "Melee",
damage: 1,
size: 3,
speed: 5
},
{
name: "Blaster",
type: "Range",
damage: 1,
projectileColor: "#7cff4f",
fireRate: 5
}
];
Sean practiced arrays of objects by treating each weapon as its own data card.