KAZIK/src_graphics/bowling_play_data.inc
Artvasil09 3150d217b5 feat: add playable bowling match mode and calibrate rooftop character scaling
- Add playable ten-frame bowling against bot with two timing gates (direction/power) and fixed-step physics

- Add lane match interaction, shaded ball surface, pin collisions, bonus balls, and live score sheet

- Scale rooftop terrace visitor sprites to eye level according to the taller rooftop standing eye height

- Resolve mode and interaction ID conflicts with Hell FPS (MODE_BOWLING=30, INTERACT_BOWL_PLAY=56)

- Update launcher hash, installer package, and expansion regression test suites
2026-11-01 22:50:33 +03:00

80 lines
2.1 KiB
PHP

MODE_BOWLING equ 30
INTERACT_BOWL_PLAY equ 56
BP_DIRECTION equ 0
BP_POWER equ 1
BP_RELEASE equ 2
BP_ROLL equ 3
BP_SETTLE equ 4
BP_BOT equ 5
BP_FINISHED equ 6
BeginBowlingPlay3D PROTO :DWORD
LeaveBowlingPlay3D PROTO
ResetBowlingPlay3D PROTO
BowlingPlayStartAim3D PROTO
HandleBowlingPlay3D PROTO
RenderBowlingPlay3D PROTO
BowlingPlayRack3D PROTO
BowlingPlayLaunch3D PROTO
BowlingPlayStep3D PROTO
BowlingPlayFinishRoll3D PROTO
BowlingPlayNext3D PROTO
BowlingPlayHit3D PROTO :DWORD,:DWORD,:DWORD
DrawBowlingPlayPin3D PROTO :DWORD,:DWORD
BowlingFrameTotal3D PROTO :DWORD,:DWORD
DrawBowlingPlayScores3D PROTO
InitBowlingBallSurface3D PROTO
DrawBowlingGaugeLine3D PROTO :DWORD,:DWORD,:DWORD,:DWORD
.data
bpActive3D dd 0
bpLane3D dd 1
bpTarget3D dd 1
bpState3D dd BP_DIRECTION
bpClock3D dd 0
bpTime3D dd 0
bpAim3D dd 0
bpPower3D dd 50
bpLockedAim3D dd 0
bpLockedPower3D dd 50
bpLast3D dd 0
bpLastKind3D dd 0
bpGutter3D dd 0
bpAccumulator3D dd 0
bpScoreOpen3D dd 0
bpBallX3D dd 0
bpBallY3D dd 0
bpBallVX3D dd 0
bpBallVY3D dd 0
bpHitMask3D dd 0
bpPinX3D dd 10 dup(0)
bpPinY3D dd 10 dup(0)
bpPinVX3D dd 10 dup(0)
bpPinVY3D dd 10 dup(0)
bpCentre3D dd 0
bpHomeX3D dd 0
bpHomeY3D dd 0
bpHomeAngle3D dd 0
bpText3D db 24 dup(0)
bpMonitorTexts3D dd OFFSET bpDirectionText,OFFSET bpPowerText,OFFSET bpRollText,OFFSET bpRollText
dd OFFSET bpResultText,OFFSET bpBot,OFFSET bpScoreText
.data?
bpBallSurface3D dd 64*64 dup(?)
.data
bpPlayPrompt db 200,195,208,192,210,220,32,194,32,193,206,211,203,200,205,195,0
bpTitle db 193,206,211,203,200,205,195,0
bpYou db 194,219,0
bpBot db 204,192,202,209,0
bpDirectionText db 205,192,207,208,192,194,203,197,205,200,197,0
bpPowerText db 209,200,203,192,0
bpRollText db 193,208,206,209,206,202,0
bpResultText db 209,193,200,210,206,0
bpWinText db 194,219,32,207,206,193,197,196,200,203,200,0
bpLoseText db 207,206,193,197,196,200,203,32,204,192,202,209,0
bpDrawText db 205,200,215,220,223,0
bpAgainText db 209,205,206,194,192,0
bpExitText db 194,219,201,210,200,0
bpFrameText db 212,208,197,201,204,0
bpScoreText db 209,215,168,210,0
bpGutterText db 198,197,203,206,193,0
bpStrikeText db 209,210,208,192,201,202,0
bpSpareText db 209,207,221,208,0
.code