Updates for fireball bullet.

This commit is contained in:
genxium
2023-01-11 18:09:18 +08:00
parent 9725fb9df2
commit 934a495d47
26 changed files with 9367 additions and 868 deletions

View File

@@ -865,10 +865,11 @@ func ApplyInputFrameDownsyncDynamicsOnSingleRenderFrame(inputsBuffer *RingBuffer
}
return &RoomDownsyncFrame{
Id: currRenderFrame.Id + 1,
PlayersArr: nextRenderFramePlayers,
MeleeBullets: nextRenderFrameMeleeBullets,
FireballBullets: nextRenderFrameFireballBullets,
Id: currRenderFrame.Id + 1,
PlayersArr: nextRenderFramePlayers,
BulletLocalIdCounter: bulletLocalId,
MeleeBullets: nextRenderFrameMeleeBullets,
FireballBullets: nextRenderFrameFireballBullets,
}
}

View File

@@ -122,7 +122,7 @@ var Characters = map[int]*CharacterConfig{
GetUpFramesToRecover: int32(30),
Speed: int32(float64(1.0) * WORLD_TO_VIRTUAL_GRID_RATIO),
JumpingInitVelY: int32(float64(9) * WORLD_TO_VIRTUAL_GRID_RATIO),
JumpingInitVelY: int32(float64(7.5) * WORLD_TO_VIRTUAL_GRID_RATIO),
SkillMapper: func(patternId int, currPlayerDownsync *PlayerDownsync) int {
if 1 == patternId {
@@ -434,7 +434,8 @@ var skills = map[int]*Skill{
BoundChState: ATK_CHARACTER_STATE_ATK4,
Hits: []interface{}{
&FireballBullet{
Speed: int32(float64(8) * WORLD_TO_VIRTUAL_GRID_RATIO),
SpeciesId: int32(1),
Speed: int32(float64(8) * WORLD_TO_VIRTUAL_GRID_RATIO),
Bullet: Bullet{
StartupFrames: int32(15),
ActiveFrames: MAX_INT32,

View File

@@ -33,6 +33,7 @@ type PlayerDownsync struct {
MaxHp int32
CharacterState int32
InAir bool
OnWall bool
ActiveSkillId int32
ActiveSkillHit int32
@@ -104,6 +105,7 @@ type FireballBullet struct {
VelX int32
VelY int32
Speed int32
SpeciesId int32
Bullet
}