branchsbox-battlebugs/maincancel
54 Commits over 61 Days - 0.04cph!
Fix GameHud render tree building
More build tree NREs
Fix PlayerHud NRE on chat message
Fix lobby list buttons not working
Display 2 instead of MaxMembers since people can spectate
Make turn length 15s instead of 10s
Update .sbproj
Fixed spectating CPU games creating boards for spectators
Show GameHud as a spectator with some different text
Fix Bot Matches not working
Don't show hints to spectators.
Fixed AttackRandomly not working as non-host
Show player count in lobby. Remove lobby status until it can be properly implemented.
Return to Main Menu button on ResultsHud
Change starting scene to mainmenu.scene
Added timer between turns, forcing you to take your turn after some time.
UI Cleanup
Better UI folder structure.
Added LobbyList to Play Menu
Added Lobby Icons
Various font size fixes
Refactored a few panels so they're split up better
StatsPanel styling
SidePanel styling
Made CPUs attack more fairly
Make SFX less ear-piercing
Add cursors to Resource Files
Remove unneeded assets
Singleplayer/Multiplayer buttons on Main Menu + Minor styling changes
Added Stats (Games Played/Won/Lost, Coins Spent/Earned, Bugs Killed, Damage Dealt)
Added Pause Menu
More MainMenu styling, added content-panel for stats
Add MainMenu to Battlebugs namespace
Added StatsPanel
Removing in PlacementInput doesnt give opponent money anymore
Fix score percent value in pre-playing state(s)
Replace Weak Rock weapon with Double Rock. Start with 3 of each Weapon now.
Don't show default rock in shop. Disable scrolling.
Updated description on all weapons
Created PlayerHud component from GameHud and added chat support (bubbles beneath each player)
Playtest Balancing
Hint Notification SFX
Coin SFX
Added weighted bar to the top of the screen to show who's currently ahead
Made Cell colours more vibrant
Game End State
Split BugListHud into SidePanel and BugList
Revealing a cell has a chance to drop coins
Apply angular damping to rock as well
Created ResultsHud + Some various polish and bugfixes
Fix typos
Rocks properly detect when they have come to a complete stop
Make BroadcastHit an Authority call
Apply friction to rocks once they've hit the ground
Added "Place Bugs For Me" button
Basic Hint System. Give hints for the different revealed cell colours.
Finished Shop and it's functionality. Can purchase new weapons from the shop with earned coins.
Remove more debug logs
Bugs only drop coins on death, not on deletion
Player Coins
Add to coin count on bug death
Fix segment order on InspectorPanel
Don't consume pebble HitCount when hitting an already hit cell
Added Cost to WeaponResource
More coin drop fixes
Created ShopPanel and button to open Shop
AttackingInput does nothing when in Shop
Added Weak Rock Weapon
Remove CPU debug log
Mantis -> Dragonfly
Update Thumbnails & Thumbnail Generation
CPU fires more accurately at revealed bugs
Started support for CPU Board/Opponent
CPU Boards save their bug references properly
CPU Opponents now attack on their turn, chosing a random weapon when attacking.
Fixed lingering highlight component when hovering multiple bugs quickly
Create Coin Prefab and Component
Spawn Coins on Bug Death
Remove some unneeded debug logs
Position bugs on their cell properly
Bees float on sin wave with offset based on cell position
Remove unnecessary collisions from game_environment prefab
Model references in BugResource
Thumbnail generation Editor Tool for BugList UI
PlacingHud now shows bug thumbnails instead of coloured icons
Draw thumbnail icons on BugList, drawing correct segment type
Display thumbnail icons in inspector panel
Don't tint the bugs to their colour anymore.
Reposition body in prefabs, give each proper colliders
Determines head/body/corner/tail pieces and the needed rotational offset
Added BugListSegment to BugListEntry
Hovering a BugListSegment highlights the segment on the board if visible (and shows its inspector)
Assign categories to Bug GameResource
Rename Bug -> BugResource
Rename Weapon -> WeaponResource
BugResource now has definitions for different body part prefabs.
PlacingInput now determines which prefab to use on each cell when placing.
Fixed issues with calculating segment rotation on creation.
Disabled the environment camera object
PlacingHud orders by segment count
Rock spawning bug fixes
Store relevant references/information of initial bug setup per-player
Basic BugList UI that shows remaining segments for both players.
Disable the game_environment camera
Started HintPanel and added it to game Scene
Lower board pieces a little bit
Cells are created with random rotation
Fix InspectorPanel spacing/height
Change all "dev" resources to their new names with adjusted values
Copied the dev_scene content into the game Scene.
InspectorPanel highlights the current segment in segment list
Update Flat Top description to be more accurate
Add soundscape to game scene
Start with 3 Pebble Smashes instead of 2
Created Prefab and GameResource for Flat Top Weapon
Add HitCount so some rocks can hit multiple bugs/cells
Changed Pebble Splash amount from 4-6 -> 5-6
Start with 2 flat tops instead of 3
Created InspectInput, active during Playing state. Highlights visible segments on hover
Created InspectorPanel. Highlighting a visible bug shows info in a floating panel.
Store segment index. Display missing segments on InspectorPanel
Fix MainHudPanel BuildHash
Healthbar colour changes based on amount
Removing a bug after readying will unready
Cells mark as orange when hit and occupied. Green once empty.
Fling rock SFX
Clear all bugs SFX
Only clear cells in Playing State
Outdoor ambience
Player join SFX
Rock break SFX
Reticle Click/Cancel SFX
Reticle Aiming SFX
Add bug splat particle on death
Set some prefabs to Never Network in snapshot
Damage Number Prefab + Component
SelectedWeapon, defaults to weapon with unlimited shots
Started Pebble Splash weapon. Can change selected weapon from hud now.
Deplete from weapon inventory on use. Can't select weapon with 0 left
Finished PebbleSplash Weapon. Each weapon has its own thrown prefab.
Remove a bunch of debug logs
Update some timings. Segments also linger for a sec before dying if they die in 1 hit
Pebbles no longer destroy each other on collision
Can't ready up until you've placed all bugs
Added StartingHealth to Bug Resource
Segment Healthbars. Fades in after taking damage
Added WeaponHud, only displays when your turn in Playing State
Created Weapon GameResource and starting Rock weapon
Added Icon to Weapon resource
Player WeaponInventory, WeaponHud now has WeaponButtons for each weapon in inv
Segments share a unique ID when from the same bug.
Highlighting occupied cell highlights all of the bug's segments
Right Click to pick up bug in placing phase
Removing bug marks cell(s) as unoccupied
More networking fixes
Create boards in dev_scene
PlacingHud more visually readable and makes more sense
Custom Voice Component that ignores spectators
Bugs become semi-transparent on game start
Added colliders to bug segments
Added Bug Health and Pebble Damage. Segments reveal when damaged
GameHud pulls players from active Boards so we can support spectators
Basic Spectator Support with no UI
Don't allow spectators to select cells
Hit cells highlight red
Cell States are networked properly. Fixed some underlying issues
Show GameHub in Placing *and* Playing states.
Reposition PlacingHud since GameHud draws at the same time now
Added ControlsPanel w InputGlyphs that contextually shows controls
Update GameHud BuildHash
Reset AttackingInput state when disabled
Thrown Pebbles networked properly
Fix camera weirdly looking at last shot position
Fixed ControlsPanel BuildHash
Added Pebble Prefab. Pebble is thrown w/ physics on Fire.
Fix pebble collisions
Camera Follows pebble after thrown
Pebbles destroy on hit or after timer. Break particle on destroy.
Swap to the other players turn after tossing pebble
Added AttackingInput. Enables when your turn in Playing state. Creates reticle at mouse position
Began ReticleState. Can no longer target your own board when attacking.
Added Reticle Aiming with timed X/Y sin movement
BroadcastFire Authority call for finalizing attack
Fix checkerboard pattern since I changed some other stuff 😅
Focus camera on the opponents board when your turn
GameHud Header changes text based on state
2nd player banner now properly shows opponent info
Rename GameInput -> PlacementInput. Disable the Component when not needed.
Networked BugSegments now position themselves properly
Don't create more boards if more than 1 player joins the lobby.
Opponents bugs are hidden when created
Added Local Player to Player Hud
Finished basic header UI for GameHud
Remove plane from Board Prefab
Include UI assets in resource files
Fix checkerboard pattern for networked opponents.
Created a few UI sounds
Implement sounds for selecting, deselecting and placing
Resetting Bugs resets the state of Board Cells
Added Reset Bugs and Ready/Un-Ready Buttons to PlacingHud
Game starts when both players are Ready
Pick starting player on game start. Focus camera on the active player
GameInput ignores Cells that aren't owned locally
Added GameHud panel for Playing State
Move starting amount to Bug Resource. BugInventory is now a Dictionary
Allow selection in Placing State
Created Bugs are now Networked.
Don't allow player to start a selection on an existing segment
Adjust bug colours to not be confused with selection/occupied colours.
Added ResultsHud. GameHud -> MainHudPanel.
Added Drawn debug to board gizmo