Skip to content

Battle/test - Flipper style game - #1694

Draft
Topi3 wants to merge 25 commits into
mainfrom
Battle/test/FlipperStyleGame
Draft

Battle/test - Flipper style game#1694
Topi3 wants to merge 25 commits into
mainfrom
Battle/test/FlipperStyleGame

Conversation

@Topi3

@Topi3 Topi3 commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Updated GameOver logic.
Added flipper style game mode where all 3 characters are on the field.
Updated spawn and despawn logic to handle both the old game mode and the new flipper game mode.
Updated bot logic to work with the flipper game mode.
Updated class logic to work with both the old and new game modes.

BattlePlayerClass100Data.qtn

  • Added enum BattlePlayerClass100State.
  • Added ClassState to BattlePlayerClass100DataQComponent.

BattlePlayerCharacterState.qtn

  • Added OutOfPlay, OutOfPlayDead, InPlay and InPlaySelected.
  • Removed Alive and Dead.

BattlePlayerData.qtn

  • Added int CharacterNumber and FP BotCharacterSwapTimer to BattlePlayerDataQComponent.

BattleQConfig.cs

  • Added bool IsFlipperGameTest and its getter.

BattlePlayerBotQSpec.cs

  • Added FP CharacterSwapTimerSecMin and Max.

BattleGameControlQSystem.cs

  • Split OnGameOver to OnGameOverGoal and OnGameOverGiveUp.
  • Added private HandleGameOver method.

BattlePlayerClass100Test.cs

  • Added OnCreate method.
  • Updated OnSpawn, OnDespawn, OnUpdate and OnGameStart logic to work with the flipper game mode.

BattlePlayerClass400.cs

  • Added IsFlipperGameTest check before updating AllowCharacterSwapping.

BattlePlayerClass600Test.cs

  • Added IsFlipperGameTest check before updating AllowCharacterSwapping.

BattlePlayerBotController.cs

  • Added BotInputData struct.
  • Updated logic to use new struct and handle flipper game mode.

BattlePlayerClassManager.cs

  • Added Spawn and DespawnEventType enums.
  • Added enums to OnSpawn and OnDespawn methods.

BattlePlayerManager.cs

  • Updated both public and private Spawn and DespawnPlayer methods to handle flipper game mode.

BattlePlayerManagerPlayerHandle.cs

  • Added GetCharacterEntityRef, SetAllCharacterNumbers, GetCharacterDefaultPosition and DevAssertIsValidCharacterNumber methods.
  • Updated all methods with a characterNumber parameter to call DevAssertIsValidCharacterNumber.

BattlePlayerQSystem.cs

  • Updated SpawnPlayers to spawn all characters when flipper game mode is chosen.
  • Updated give up logic.
  • Added UpdateData class and updated all update related methods to use it.
  • Added HandleCharacterUpdate and HandleNonCharacterUpdate methods.
  • Removed HandleInPlay and HandleOutOfPlay methods.
  • Refactored player update logic.
  • Updated player logic to handle flipper game mode.

BattleProjectileQSystem.cs

  • Updated love projectile logic to only happen when flipper game mode isnt chosen.

Topi3 added 16 commits August 31, 2026 18:13
…erUpdate methods #1691

Removed HandleInPlay and HandleOutOfPlay methods
Updated Update method to use the new methods
Removed DespawnPlayer call from private SpawnPlayer
Added FP BotCharacterSwapTimer
…1691

Added GetCharacterDefaultSpawnPosition method
Added DevAssertIsValidCharacterNumber method
@Topi3 Topi3 linked an issue Sep 7, 2026 that may be closed by this pull request
29 tasks
Added ClassState to BattlePlayerClass100DataQComponent
Added enums as parameters to spawn and despawn methods
Updated placement logic to handle flipper game mode
…rSwapping assignment #1691

BattlePlayerClass600Test: Added IsFlipperGameTest checks to AllowCharacterSwapping assignments
Updated OnGameStart to call every characters OnGameStart class method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Task: FlipperStyleGame

1 participant