diff --git a/.gitignore b/.gitignore deleted file mode 100644 index c98a93d..0000000 --- a/.gitignore +++ /dev/null @@ -1,30 +0,0 @@ -# Build intermediate files -*.obj -*.pdb -*.ilk -*.tmp -*.res - -# Large zip archives & installer payloads (>100MB) -*.zip -PokerGameSetup.exe -PokerGameSetup_*.exe - -# Legacy backups folder (kept locally) -backups/ - -# Generated frames & temporary video tools (270MB) -tools/generated_frames/ -__pycache__/ -*.pyc - -# Local debug / test captures -*_test*.png -debug_render.png -render_view.png -*.log - -# Tool and runtime generated outputs -graphify-out/ -runtime/*.dat -runtime/*.stop diff --git a/backups/casino3d_before_enginefix_20260924_220800.inc b/backups/casino3d_before_enginefix_20260924_220800.inc new file mode 100644 index 0000000..80abf4c --- /dev/null +++ b/backups/casino3d_before_enginefix_20260924_220800.inc @@ -0,0 +1,2975 @@ + +; ============================================================================== +; CASINO 2.5D - MASM32 SOFTWARE RAYCASTER (CP1251) +; Graphical migration; this is not id Software's Doom engine. +; ============================================================================== + +includelib gdi32.lib +includelib winmm.lib + +CreateWindowExA PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD +RegisterClassExA PROTO :DWORD +DefWindowProcA PROTO :DWORD,:DWORD,:DWORD,:DWORD +ShowWindow PROTO :DWORD,:DWORD +UpdateWindow PROTO :DWORD +GetDC PROTO :DWORD +ReleaseDC PROTO :DWORD,:DWORD +StretchDIBits PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD +PeekMessageA PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD +TranslateMessage PROTO :DWORD +DispatchMessageA PROTO :DWORD +PostQuitMessage PROTO :DWORD +DestroyWindow PROTO :DWORD +SetWindowTextA PROTO :DWORD,:DWORD +SetForegroundWindow PROTO :DWORD +GetConsoleWindow PROTO +GetSystemMetrics PROTO :DWORD +CreateFileA PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD +ReadFile PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD +CloseHandle PROTO :DWORD +GetAsyncKeyState PROTO :DWORD +PlaySoundA PROTO :DWORD,:DWORD,:DWORD +GetModuleFileNameA PROTO :DWORD,:DWORD,:DWORD +Sleep PROTO :DWORD + +C3D_POINT STRUCT + x dd ? + y dd ? +C3D_POINT ENDS + +C3D_MSG STRUCT + hwnd dd ? + message dd ? + wParam dd ? + lParam dd ? + time dd ? + pt C3D_POINT <> +C3D_MSG ENDS + +C3D_WNDCLASSEX STRUCT + cbSize dd ? + style dd ? + lpfnWndProc dd ? + cbClsExtra dd ? + cbWndExtra dd ? + hInstance dd ? + hIcon dd ? + hCursor dd ? + hbrBackground dd ? + lpszMenuName dd ? + lpszClassName dd ? + hIconSm dd ? +C3D_WNDCLASSEX ENDS + +C3D_BITMAPINFOHEADER STRUCT + biSize dd ? + biWidth dd ? + biHeight dd ? + biPlanes dw ? + biBitCount dw ? + biCompression dd ? + biSizeImage dd ? + biXPelsPerMeter dd ? + biYPelsPerMeter dd ? + biClrUsed dd ? + biClrImportant dd ? +C3D_BITMAPINFOHEADER ENDS + +C3D_BITMAPINFO STRUCT + bmiHeader C3D_BITMAPINFOHEADER <> + bmiColors dd ? +C3D_BITMAPINFO ENDS + +SpriteObject STRUCT + posX dd ? + posY dd ? + baseTexId dd ? + frameCount dd ? + curFrame dd ? + animTimer dd ? + animSpeed dd ? + interactId dd ? + promptPtr dd ? + distSq dd ? +SpriteObject ENDS + +SCREEN_W equ 640 +SCREEN_H equ 480 +HALF_W equ 320 +HALF_H equ 240 +SCREEN_SIZE equ (SCREEN_W * SCREEN_H) +WIN_SCALE equ 1 +WINDOW_W equ (SCREEN_W * WIN_SCALE) +WINDOW_H equ (SCREEN_H * WIN_SCALE) + +FP_1 equ 65536 +FP_HALF equ 32768 +CHROMA_KEY equ 00FF00FFh + +MODE_WALK equ 0 +MODE_SLOTS equ 1 +MODE_BLACKJACK equ 2 +MODE_ROULETTE equ 3 +MODE_SHOP equ 4 +MODE_ATM equ 5 + +WS_OVERLAPPEDWINDOW equ 00CF0000h +SW_SHOW equ 5 +SW_HIDE equ 0 +PM_REMOVE equ 1 +WM_DESTROY equ 0002h +WM_CLOSE equ 0010h +WM_QUIT equ 0012h +CS_HREDRAW equ 2 +CS_VREDRAW equ 1 +DIB_RGB_COLORS equ 0 +SRCCOPY equ 00CC0020h +INVALID_FILE_HANDLE equ -1 + +include casino3d_data.inc +include font8x8.inc +include src_graphics\platform_data.inc + +.data +ALIGN 4 +h3DInst dd 0 +h3DWnd dd 0 +h3DDC dd 0 +hCasinoConsole dd 0 + +bmi3D C3D_BITMAPINFO <> +msg3D C3D_MSG <> +wc3D C3D_WNDCLASSEX <> + +sz3DClassName db "Casino3DRetroClass",0 +sz3DWindowTitle db "Assembler Casino - 2.5D",0 +szTexturesRelPath db "assets\textures\casino3d-hd.bin",0 +szTexturesFullPath db 260 dup(0) + +soundCoin db "assets\audio\Çâîí ïàäàþùåé ìîíåòû.wav",0 +soundCards db "assets\audio\playing_cards_deck_flick_through_001_20485.wav",0 +soundRoulette db "assets\audio\roulette-wheel-throw-2.wav",0 +soundJackpot db "assets\audio\Äæåêïîò.wav",0 +soundClick db "assets\audio\b05e1ac8be34248.wav",0 + +playerX dd (16 * FP_1 + FP_HALF) +playerY dd (16 * FP_1 + FP_HALF) +playerAngle dd 384 +playerDirX dd 0 +playerDirY dd -FP_1 +playerPlaneX dd (FP_1 * 66 / 100) +playerPlaneY dd 0 + +engineMode dd 0 +interactTargetId dd 0 +interactPromptPtr dd 0 +dancerLuckBuff dd 0 +flashTimer dd 0 +flashMessage db 128 dup(0) + +promptDancer db "[E] CABARET - TIP $100",0 +promptSlot1 db "[E] SLOTS 777",0 +promptSlot2 db "[E] SLOTS 777",0 +promptBlackjack db "[E] BLACKJACK / 21",0 +promptPoker db "POKER - UNDER CONSTRUCTION",0 +promptRoulette db "[E] ROULETTE",0 +promptShop db "[E] BOUTIQUE",0 +promptATM db "[E] CASHIER",0 +promptBackroom db "BACKROOM - UNDER CONSTRUCTION",0 +promptDurak db "DURAK - UNDER CONSTRUCTION",0 +promptHell db "TOWER - UNDER CONSTRUCTION",0 + +msgDancerTipped db "Âû áðîñèëè $100 òàíöîâùèöå! ÓÄÀ×À ÀÊÒÈÂÈÐÎÂÀÍÀ!",0 +msgNeedMoney db "Íåäîñòàòî÷íî äåíåã â êîøåëüêå!",0 +statusHUDFormat db "ÁÀÍÊÐÎËË: $",0 +targetHUDFormat db " ÖÅËÜ: $",0 +luckHUDFormat db " ÓÄÀ×À: +",0 +controlsHUD db "WASD/Ñòðåëêè: Õîäüáà | E: Äåéñòâèå | ESC: Ìåíþ",0 + +NUM_SPRITES equ 13 +ALIGN 4 +casinoSprites SpriteObject NUM_SPRITES dup(<>) +sortedSprites dd NUM_SPRITES dup(0) + +rowDistTable dd 120 dup(0) +rngSeed3D dd 12345678h + +slotBet dd 50 +slotReel1 dd 0 +slotReel2 dd 1 +slotReel3 dd 2 +slotSpinState dd 0 +slotSpinTimer dd 0 +slotWinAmount dd 0 +slotWinMsg db 64 dup(0) + +bjState dd 0 +bjBet dd 100 +bjPlayerCards dd 10 dup(0) +bjPlayerCardCount dd 0 +bjPlayerScore dd 0 +bjDealerCards dd 10 dup(0) +bjDealerCardCount dd 0 +bjDealerScore dd 0 +bjDealerHideHole dd 1 +bjOutcomeMsg db 64 dup(0) + +roulState dd 0 +roulBetType dd 1 +roulBetAmount dd 100 +roulWheelAngle dd 0 +roulBallAngle dd 0 +roulSpinTimer dd 0 +roulWinningNum dd 0 +roulPayout dd 0 +roulOutcomeMsg db 64 dup(0) + +shopMsg db 128 dup(0) +atmMsg db 128 dup(0) + +strWin db "ÏÎÁÅÄÀ! +$",0 +strLose db "ÏÐÎÈÃÐÛØ",0 +strJackpot db "ÄÆÅÊÏÎÒ! +$",0 +strPush db "ÍÈ×Üß (PUSH)",0 +strDealerBust db "ÄÈËÅÐ ÏÅÐÅÁÐÀË! ÏÎÁÅÄÀ! +$",0 +strPlayerBust db "ÏÅÐÅÁÎÐ (>21)! ÏÐÎÈÃÐÛØ",0 + +sym7 db " 777 ",0 +symBar db " BAR ",0 +symBell db " BELL",0 +symCherry db "CHERRY",0 +symClover db "CLOVER",0 +symGem db " GEM ",0 +symCrown db "CROWN",0 + +cardRankStr db "A ",0,"2 ",0,"3 ",0,"4 ",0,"5 ",0,"6 ",0,"7 ",0,"8 ",0,"9 ",0,"10",0,"J ",0,"Q ",0,"K ",0 + +.data? +ALIGN 4 +screenBuffer dd SCREEN_SIZE dup(?) +ALIGN 4 +zBuffer dd SCREEN_W dup(?) +ALIGN 4 +texturesBuffer dd (48 * 128 * 128) dup(?) + +hudNumBuffer db 32 dup(?) + +.code + +; --- 3D Window Procedure --- +Casino3DWndProc PROC hwnd:DWORD, uMsg:DWORD, wParam:DWORD, lParam:DWORD + invoke WindowEvents3D, hwnd, uMsg, wParam, lParam + ret +Casino3DWndProc ENDP + +; --- Random Generator --- +RandomRange3D PROC maxVal:DWORD + mov eax, rngSeed3D + imul eax, 1103515245 + add eax, 12345 + mov rngSeed3D, eax + shr eax, 16 + and eax, 7FFFh + xor edx, edx + div maxVal + mov eax, edx + ret +RandomRange3D ENDP + +; --- Copy String --- +CopyString3D PROC src:DWORD, dst:DWORD + push esi + push edi + mov esi, src + mov edi, dst +@@: + mov al, [esi] + mov [edi], al + test al, al + jz @F + inc esi + inc edi + jmp @B +@@: + pop edi + pop esi + ret +CopyString3D ENDP + +; --- Format Number to Decimal String --- +FormatNumber PROC num:DWORD, buf:DWORD + push ebx + push esi + push edi + mov eax, num + mov edi, buf + test eax, eax + jns fn_pos + mov BYTE PTR [edi], '-' + inc edi + neg eax +fn_pos: + mov ebx, 10 + push 0 +fn_div: + xor edx, edx + div ebx + add dl, '0' + push edx + test eax, eax + jnz fn_div +fn_pop: + pop eax + test al, al + jz fn_done + mov [edi], al + inc edi + jmp fn_pop +fn_done: + mov BYTE PTR [edi], 0 + pop edi + pop esi + pop ebx + ret +FormatNumber ENDP + +; --- Fast 2D Drawing Primitives --- +DrawBox PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD + +DrawPixel PROC x:DWORD, y:DWORD, color:DWORD + invoke DrawBox, x, y, 1, 1, color + ret +DrawPixel ENDP + +DrawBox PROC x:DWORD, y:DWORD, w:DWORD, h:DWORD, color:DWORD + shl x, 1 + shl y, 1 + shl w, 1 + shl h, 1 + push ebx + push esi + push edi + mov edi, y +box_row_loop: + mov eax, y + add eax, h + cmp edi, eax + jge box_done + cmp edi, 0 + jl next_box_row + cmp edi, SCREEN_H + jge box_done + + mov esi, x +box_col_loop: + mov eax, x + add eax, w + cmp esi, eax + jge next_box_row + cmp esi, 0 + jl next_box_col + cmp esi, SCREEN_W + jge next_box_row + + mov ecx, edi + imul ecx, SCREEN_W + add ecx, esi + mov edx, color + mov [screenBuffer + ecx*4], edx + +next_box_col: + inc esi + jmp box_col_loop + +next_box_row: + inc edi + jmp box_row_loop + +box_done: + pop edi + pop esi + pop ebx + ret +DrawBox ENDP + +DrawBoxBorder PROC uses ebx x:DWORD, y:DWORD, w:DWORD, h:DWORD, fillColor:DWORD, borderColor:DWORD, bWidth:DWORD + invoke DrawBox, x, y, w, h, borderColor + mov eax, x + add eax, bWidth + mov edx, y + add edx, bWidth + mov ecx, w + sub ecx, bWidth + sub ecx, bWidth + mov ebx, h + sub ebx, bWidth + sub ebx, bWidth + invoke DrawBox, eax, edx, ecx, ebx, fillColor + ret +DrawBoxBorder ENDP + +DrawCircle PROC cxVal:DWORD, cyVal:DWORD, radius:DWORD, color:DWORD + push ebx + push esi + push edi + mov eax, radius + neg eax + mov edi, eax +circ_y: + cmp edi, radius + jg circ_done + mov eax, radius + neg eax + mov esi, eax +circ_x: + cmp esi, radius + jg next_circ_y + + mov eax, esi + imul eax, eax + mov ebx, edi + imul ebx, ebx + add eax, ebx + mov edx, radius + imul edx, edx + cmp eax, edx + jg next_circ_x + + mov eax, cxVal + add eax, esi + mov ecx, cyVal + add ecx, edi + invoke DrawPixel, eax, ecx, color + +next_circ_x: + inc esi + jmp circ_x +next_circ_y: + inc edi + jmp circ_y +circ_done: + pop edi + pop esi + pop ebx + ret +DrawCircle ENDP + +DrawChar8x8 PROC uses ebx esi edi x:DWORD, y:DWORD, chVal:DWORD, color:DWORD + local column:DWORD + mov eax, chVal + and eax, 255 + lea esi, [font8x8 + eax*8] + xor edi, edi +glyph_row: + movzx ebx, BYTE PTR [esi+edi] + mov column, 0 +glyph_col: + test ebx, 80h + jz glyph_next + mov eax, x + add eax, column + mov edx, y + add edx, edi + invoke DrawPixel, eax, edx, color +glyph_next: + shl ebx, 1 + inc column + cmp column, 8 + jl glyph_col + inc edi + cmp edi, 8 + jl glyph_row + ret +DrawChar8x8 ENDP + +DrawString8x8 PROC x:DWORD, y:DWORD, strPtr:DWORD, color:DWORD + push ebx + push esi + mov esi, strPtr + mov ebx, x +str_loop: + movzx eax, BYTE PTR [esi] + test al, al + jz str_done + invoke DrawChar8x8, ebx, y, eax, color + add ebx, 8 + inc esi + jmp str_loop +str_done: + pop esi + pop ebx + ret +DrawString8x8 ENDP + +; --- True 3D Perspective Floor & Ceiling Rendering --- +RenderCeilingAndFloor PROC uses ebx esi edi + local floorRow:DWORD + local pDist:DWORD + local fStepX:DWORD + local fStepY:DWORD + local fX:DWORD + local fY:DWORD + local shade:DWORD + local cShade:DWORD + + ; Horizon line: row 120 + mov edi, HALF_H +floor_scanlines: + cmp edi, SCREEN_H + jge floor_done + mov floorRow, edi + + ; Distance = (HALF_H * FP_1) / (y - HALF_H) + mov eax, edi + sub eax, HALF_H + inc eax + mov ecx, eax + mov eax, HALF_H * FP_1 + cdq + idiv ecx + mov pDist, eax + + ; Distance shading (closer is brighter, far horizon is dark) + mov edx, pDist + shr edx, 13 + mov eax, 255 + sub eax, edx + cmp eax, 35 + jge @F + mov eax, 35 +@@: + mov shade, eax + mov edx, eax + sub edx, 25 + cmp edx, 20 + jge @F + mov edx, 20 +@@: + mov cShade, edx + + ; Step along scanline: (2 * playerPlane) * pDist / SCREEN_W + mov eax, playerPlaneX + shl eax, 1 + imul pDist + shrd eax, edx, 16 + cdq + mov ecx, SCREEN_W + idiv ecx + mov fStepX, eax + + mov eax, playerPlaneY + shl eax, 1 + imul pDist + shrd eax, edx, 16 + cdq + mov ecx, SCREEN_W + idiv ecx + mov fStepY, eax + + ; Starting floor coordinates at x=0: + ; player + pDist * (playerDir - playerPlane) + mov eax, playerDirX + sub eax, playerPlaneX + imul pDist + shrd eax, edx, 16 + add eax, playerX + mov fX, eax + + mov eax, playerDirY + sub eax, playerPlaneY + imul pDist + shrd eax, edx, 16 + add eax, playerY + mov fY, eax + + ; Fill scanline for floor (y) and ceiling (SCREEN_H - 1 - y) + xor esi, esi +col_floor_loop: + cmp esi, SCREEN_W + jge next_floor_row + + ; Carpet Texture (Slot 3: 3 * 4096 * 4 = 49152 bytes) + mov eax, fX + shr eax, 9 + and eax, 127 + mov edx, fY + shr edx, 9 + and edx, 127 + shl edx, 7 + add edx, eax + + mov eax, [texturesBuffer + (3 * 128 * 128 * 4) + edx*4] + + ; Shade Floor RGB + mov ebx, shade + movzx ecx, al + imul ecx, ebx + shr ecx, 8 + push ecx + + movzx ecx, ah + imul ecx, ebx + shr ecx, 8 + shl ecx, 8 + + shr eax, 16 + movzx eax, al + imul eax, ebx + shr eax, 8 + shl eax, 16 + or eax, ecx + pop ecx + or eax, ecx + + ; Store to Floor pixel + mov ecx, floorRow + imul ecx, SCREEN_W + add ecx, esi + mov [screenBuffer + ecx*4], eax + + ; Ceiling Spotlight Texture (Slot 5: 5 * 4096 * 4 = 81920 bytes) + mov eax, [texturesBuffer + (5 * 128 * 128 * 4) + edx*4] + mov ebx, cShade + movzx ecx, al + imul ecx, ebx + shr ecx, 8 + push ecx + + movzx ecx, ah + imul ecx, ebx + shr ecx, 8 + shl ecx, 8 + + shr eax, 16 + movzx eax, al + imul eax, ebx + shr eax, 8 + shl eax, 16 + or eax, ecx + pop ecx + or eax, ecx + + ; Store to Ceiling pixel: (SCREEN_H - 1 - floorRow) + mov ecx, SCREEN_H - 1 + sub ecx, floorRow + imul ecx, SCREEN_W + add ecx, esi + mov [screenBuffer + ecx*4], eax + + mov eax, fStepX + add fX, eax + mov eax, fStepY + add fY, eax + inc esi + jmp col_floor_loop + +next_floor_row: + inc edi + jmp floor_scanlines + +floor_done: + ret +RenderCeilingAndFloor ENDP + +; --- DDA Raycasting Walls --- +RenderWalls PROC + local col:DWORD + local camX:DWORD + local rayDirX:DWORD + local rayDirY:DWORD + local mapX:DWORD + local mapY:DWORD + local deltaDistX:DWORD + local deltaDistY:DWORD + local stepX:DWORD + local stepY:DWORD + local sideDistX:DWORD + local sideDistY:DWORD + local side:DWORD + local perpWallDist:DWORD + local lineH:DWORD + local drawStart:DWORD + local drawEnd:DWORD + local wallHit:DWORD + local texX:DWORD + local texId:DWORD + local shade:DWORD + + push ebx + push esi + push edi + + mov eax, playerAngle + and eax, 511 + mov ebx, [tableCos + eax*4] + mov playerDirX, ebx + mov ebx, [tableSin + eax*4] + mov playerDirY, ebx + + mov eax, ebx + imul eax, -66 + cdq + mov ecx, 100 + idiv ecx + mov playerPlaneX, eax + + mov eax, playerDirX + imul eax, 66 + cdq + idiv ecx + mov playerPlaneY, eax + + mov col, 0 +col_loop: + cmp col, SCREEN_W + jge walls_done + + mov eax, col + shl eax, 1 + sub eax, SCREEN_W + imul eax, FP_1 + cdq + mov ecx, SCREEN_W + idiv ecx + mov camX, eax + + mov eax, playerPlaneX + imul camX + shrd eax, edx, 16 + add eax, playerDirX + mov rayDirX, eax + + mov eax, playerPlaneY + imul camX + shrd eax, edx, 16 + add eax, playerDirY + mov rayDirY, eax + + mov eax, playerX + sar eax, 16 + mov mapX, eax + mov eax, playerY + sar eax, 16 + mov mapY, eax + + mov eax, rayDirX + test eax, eax + jnz calc_delta_x + mov deltaDistX, 7FFFFFFFh + jmp calc_delta_y +calc_delta_x: + test eax, eax + jns @F + neg eax +@@: + mov ebx, eax + ; 2^32 needs the full EDX:EAX dividend, not a truncated multiply. + xor eax, eax + mov edx, 1 + idiv ebx + mov deltaDistX, eax + +calc_delta_y: + mov eax, rayDirY + test eax, eax + jnz calc_delta_y_ok + mov deltaDistY, 7FFFFFFFh + jmp check_step +calc_delta_y_ok: + test eax, eax + jns @F + neg eax +@@: + mov ebx, eax + ; 2^32 needs the full EDX:EAX dividend, not a truncated multiply. + xor eax, eax + mov edx, 1 + idiv ebx + mov deltaDistY, eax + +check_step: + cmp rayDirX, 0 + jge step_x_pos + mov stepX, -1 + mov eax, playerX + mov edx, mapX + shl edx, 16 + sub eax, edx + imul deltaDistX + shrd eax, edx, 16 + mov sideDistX, eax + jmp check_step_y +step_x_pos: + mov stepX, 1 + mov eax, mapX + inc eax + shl eax, 16 + sub eax, playerX + imul deltaDistX + shrd eax, edx, 16 + mov sideDistX, eax + +check_step_y: + cmp rayDirY, 0 + jge step_y_pos + mov stepY, -1 + mov eax, playerY + mov edx, mapY + shl edx, 16 + sub eax, edx + imul deltaDistY + shrd eax, edx, 16 + mov sideDistY, eax + jmp dda_start +step_y_pos: + mov stepY, 1 + mov eax, mapY + inc eax + shl eax, 16 + sub eax, playerY + imul deltaDistY + shrd eax, edx, 16 + mov sideDistY, eax + +dda_start: + xor ecx, ecx +dda_step_loop: + inc ecx + cmp ecx, 64 + jge hit_wall + + mov eax, sideDistX + cmp eax, sideDistY + jge step_in_y + + mov eax, deltaDistX + add sideDistX, eax + mov eax, stepX + add mapX, eax + mov side, 0 + jmp check_tile + +step_in_y: + mov eax, deltaDistY + add sideDistY, eax + mov eax, stepY + add mapY, eax + mov side, 1 + +check_tile: + cmp mapX, 0 + jl hit_wall + cmp mapX, MAP_WIDTH + jge hit_wall + cmp mapY, 0 + jl hit_wall + cmp mapY, MAP_HEIGHT + jge hit_wall + + mov eax, mapY + shl eax, 5 + add eax, mapX + movzx eax, BYTE PTR [casinoMap + eax] + test eax, eax + jnz hit_wall + jmp dda_step_loop + +hit_wall: + cmp side, 0 + jne perp_y + mov eax, sideDistX + sub eax, deltaDistX + mov perpWallDist, eax + jmp perp_done +perp_y: + mov eax, sideDistY + sub eax, deltaDistY + mov perpWallDist, eax + +perp_done: + cmp perpWallDist, 2048 + jge @F + mov perpWallDist, 2048 +@@: + mov eax, col + mov edx, perpWallDist + mov [zBuffer + eax*4], edx + + ; High casino ceiling: lineH = (SCREEN_H * FP_1 * 180 / 240) / perpWallDist + mov eax, SCREEN_H + imul eax, FP_1 + cdq + idiv perpWallDist + mov lineH, eax + + mov eax, lineH + shr eax, 1 + mov ecx, HALF_H + sub ecx, eax + mov drawStart, ecx + + mov eax, lineH + shr eax, 1 + mov ecx, HALF_H + add ecx, eax + mov drawEnd, ecx + + cmp side, 0 + jne hit_side_y + mov eax, perpWallDist + imul rayDirY + shrd eax, edx, 16 + add eax, playerY + mov wallHit, eax + jmp calc_tex_x +hit_side_y: + mov eax, perpWallDist + imul rayDirX + shrd eax, edx, 16 + add eax, playerX + mov wallHit, eax + +calc_tex_x: + ; MASK WITH 0FFFFh to prevent texture scrambling! + mov eax, wallHit + and eax, 0FFFFh + shr eax, 9 + and eax, 127 + mov texX, eax + + cmp side, 0 + jne @F + cmp rayDirX, 0 + jle @F + mov eax, 127 + sub eax, texX + mov texX, eax +@@: + cmp side, 1 + jne select_tex + cmp rayDirY, 0 + jge select_tex + mov eax, 127 + sub eax, texX + mov texX, eax + +select_tex: + mov eax, mapY + shl eax, 5 + add eax, mapX + movzx eax, BYTE PTR [casinoMap + eax] + mov texId, eax + cmp texId, 0 + jne @F + mov texId, 1 +@@: + + mov eax, perpWallDist + shr eax, 13 + mov edx, 256 + sub edx, eax + cmp edx, 75 + jge @F + mov edx, 75 +@@: + cmp side, 1 + jne @F + imul edx, 3 + shr edx, 2 +@@: + mov shade, edx + + cmp drawStart, 0 + jge @F + mov drawStart, 0 +@@: + cmp drawEnd, SCREEN_H + jl @F + mov drawEnd, SCREEN_H - 1 +@@: + + mov eax, 128 * FP_1 + cdq + idiv lineH + mov esi, eax ; stepY + + mov eax, lineH + shr eax, 1 + add eax, drawStart + sub eax, HALF_H + imul eax, esi + mov edi, eax ; texPos + + mov ecx, drawStart +draw_stripe_loop: + cmp ecx, drawEnd + jg next_col + + mov eax, edi + shr eax, 16 + and eax, 127 + shl eax, 7 + add eax, texX + + mov edx, texId + shl edx, 14 + add eax, edx + mov eax, [texturesBuffer + eax*4] + + ; Shade wall pixel + mov ebx, shade + movzx edx, al + imul edx, ebx + shr edx, 8 + push edx + + movzx edx, ah + imul edx, ebx + shr edx, 8 + shl edx, 8 + + shr eax, 16 + movzx eax, al + imul eax, ebx + shr eax, 8 + shl eax, 16 + or eax, edx + pop edx + or eax, edx + + mov edx, ecx + imul edx, SCREEN_W + add edx, col + mov [screenBuffer + edx*4], eax + + add edi, esi + inc ecx + jmp draw_stripe_loop + +next_col: + inc col + jmp col_loop + +walls_done: + pop edi + pop esi + pop ebx + ret +RenderWalls ENDP + +; --- Render 3D Billboard Sprites --- +RenderSprites PROC + local sprIdx:DWORD + local relX:DWORD + local relY:DWORD + local invDet:DWORD + local transX:DWORD + local transY:DWORD + local sprScreenX:DWORD + local sprH:DWORD + local sprW:DWORD + local drawStartY:DWORD + local drawEndY:DWORD + local drawStartX:DWORD + local drawEndX:DWORD + local stripe:DWORD + local texX:DWORD + local texY:DWORD + local shade:DWORD + local texSlot:DWORD + + push ebx + push esi + push edi + + xor esi, esi +calc_dist_loop: + cmp esi, NUM_SPRITES + jge sort_sprites + mov eax, esi + imul eax, SIZEOF SpriteObject + + mov edx, [casinoSprites + eax].posX + sub edx, playerX + sar edx, 8 + imul edx, edx + mov ebx, edx + + mov edx, [casinoSprites + eax].posY + sub edx, playerY + sar edx, 8 + imul edx, edx + add ebx, edx + + mov [casinoSprites + eax].distSq, ebx + mov [sortedSprites + esi*4], esi + inc esi + jmp calc_dist_loop + +sort_sprites: + xor esi, esi +sort_outer: + cmp esi, NUM_SPRITES - 1 + jge render_sorted_sprites + mov edi, esi + inc edi +sort_inner: + cmp edi, NUM_SPRITES + jge next_sort_outer + + mov eax, [sortedSprites + esi*4] + imul eax, SIZEOF SpriteObject + mov eax, [casinoSprites + eax].distSq + + mov ebx, [sortedSprites + edi*4] + imul ebx, SIZEOF SpriteObject + mov ebx, [casinoSprites + ebx].distSq + + cmp eax, ebx + jge @F + mov ecx, [sortedSprites + esi*4] + mov edx, [sortedSprites + edi*4] + mov [sortedSprites + esi*4], edx + mov [sortedSprites + edi*4], ecx +@@: + inc edi + jmp sort_inner +next_sort_outer: + inc esi + jmp sort_outer + +render_sorted_sprites: + xor esi, esi +draw_spr_loop: + cmp esi, NUM_SPRITES + jge sprites_rendered + + mov eax, [sortedSprites + esi*4] + mov sprIdx, eax + imul eax, SIZEOF SpriteObject + + ; Sample animation by elapsed time. Pausing freezes the clock. + push eax + mov ecx, [casinoSprites + eax].animSpeed + imul ecx, 40 + mov eax, animationClock3D + xor edx, edx + div ecx + pop ebx + xor edx, edx + div [casinoSprites + ebx].frameCount + mov [casinoSprites + ebx].curFrame, edx + mov eax, ebx + + cmp [casinoSprites + eax].distSq, 16 + jle next_spr + + mov edx, [casinoSprites + eax].posX + sub edx, playerX + mov relX, edx + + mov edx, [casinoSprites + eax].posY + sub edx, playerY + mov relY, edx + + mov eax, playerPlaneX + imul playerDirY + shrd eax, edx, 16 + mov ebx, eax + + mov eax, playerDirX + imul playerPlaneY + shrd eax, edx, 16 + sub ebx, eax + test ebx, ebx + jz next_spr + + ; 2^32 needs the full EDX:EAX dividend, not a truncated multiply. + xor eax, eax + mov edx, 1 + idiv ebx + mov invDet, eax + + mov eax, playerDirY + imul relX + shrd eax, edx, 16 + mov ebx, eax + + mov eax, playerDirX + imul relY + shrd eax, edx, 16 + sub ebx, eax + + mov eax, ebx + imul invDet + shrd eax, edx, 16 + mov transX, eax + + mov eax, playerPlaneY + neg eax + imul relX + shrd eax, edx, 16 + mov ebx, eax + + mov eax, playerPlaneX + imul relY + shrd eax, edx, 16 + add ebx, eax + + mov eax, ebx + imul invDet + shrd eax, edx, 16 + mov transY, eax + + cmp transY, 4096 + jle next_spr + + mov eax, transX + imul eax, HALF_W + cdq + idiv transY + add eax, HALF_W + mov sprScreenX, eax + + mov eax, SCREEN_H + imul eax, FP_1 + cdq + idiv transY + test eax, eax + jns @F + neg eax +@@: + cmp eax, SCREEN_H * 2 + jle @F + mov eax, SCREEN_H * 2 +@@: + mov sprH, eax + mov sprW, eax + + mov eax, HALF_H + mov ebx, sprH + shr ebx, 1 + sub eax, ebx + mov drawStartY, eax + add eax, sprH + mov drawEndY, eax + + mov eax, sprScreenX + mov ebx, sprW + shr ebx, 1 + sub eax, ebx + mov drawStartX, eax + add eax, sprW + mov drawEndX, eax + + cmp drawStartY, 0 + jge @F + mov drawStartY, 0 +@@: + cmp drawEndY, SCREEN_H + jl @F + mov drawEndY, SCREEN_H - 1 +@@: + + mov eax, transY + shr eax, 13 + mov edx, 256 + sub edx, eax + cmp edx, 110 + jge @F + mov edx, 110 +@@: + mov shade, edx + + mov eax, sprIdx + imul eax, SIZEOF SpriteObject + mov edx, [casinoSprites + eax].baseTexId + add edx, [casinoSprites + eax].curFrame + mov texSlot, edx + + mov eax, drawStartX + mov stripe, eax + +spr_stripe_loop: + mov eax, stripe + cmp eax, drawEndX + jge next_spr + + cmp eax, 0 + jl next_spr_stripe + cmp eax, SCREEN_W + jge next_spr + + mov edx, transY + cmp edx, [zBuffer + eax*4] + jge next_spr_stripe + + mov eax, stripe + sub eax, sprScreenX + mov ebx, sprW + shr ebx, 1 + add eax, ebx + shl eax, 7 + cdq + idiv sprW + cmp eax, 0 + jl next_spr_stripe + cmp eax, 128 + jge next_spr_stripe + mov texX, eax + + mov edi, drawStartY +spr_pix_y_loop: + cmp edi, drawEndY + jg next_spr_stripe + + mov eax, edi + sub eax, HALF_H + mov ebx, sprH + shr ebx, 1 + add eax, ebx + shl eax, 7 + cdq + idiv sprH + cmp eax, 0 + jl next_spr_y + cmp eax, 128 + jge next_spr_y + mov texY, eax + + shl eax, 7 + add eax, texX + mov edx, texSlot + shl edx, 14 + add eax, edx + mov eax, [texturesBuffer + eax*4] + + ; Chromakey magenta filter + cmp eax, CHROMA_KEY + je next_spr_y +do_draw_sprite_pix: + mov ebx, shade + movzx edx, al + imul edx, ebx + shr edx, 8 + push edx + + movzx edx, ah + imul edx, ebx + shr edx, 8 + shl edx, 8 + + shr eax, 16 + movzx eax, al + imul eax, ebx + shr eax, 8 + shl eax, 16 + or eax, edx + pop edx + or eax, edx + + mov ecx, edi + imul ecx, SCREEN_W + add ecx, stripe + mov [screenBuffer + ecx*4], eax + +next_spr_y: + inc edi + jmp spr_pix_y_loop + +next_spr_stripe: + inc stripe + jmp spr_stripe_loop + +next_spr: + inc esi + jmp draw_spr_loop + +sprites_rendered: + pop edi + pop esi + pop ebx + ret +RenderSprites ENDP + +; --- HUD & Minimap Radar --- +RenderHUD PROC uses ebx esi edi + invoke DrawBox, 0, 0, 320, 16, 0014191Dh + invoke DrawString8x8, 8, 4, OFFSET textBank3D, 00D8BC6Ah + invoke FormatNumber, bankroll, OFFSET hudNumBuffer + invoke DrawString8x8, 64, 4, OFFSET hudNumBuffer, 00FFFFFFh + invoke DrawString8x8, 176, 4, OFFSET textWindowKeys3D, 00A8B6BBh + invoke DrawBox, 0, 226, 320, 14, 0014191Dh + invoke DrawString8x8, 12, 230, OFFSET textWalkKeys3D, 00A8B6BBh + invoke DrawBox, 159, 118, 2, 5, 00E7DFC8h + invoke DrawBox, 157, 120, 6, 1, 00E7DFC8h + cmp interactPromptPtr, 0 + je @F + invoke DrawBoxBorder, 4, 199, 312, 18, 0014191Dh, 00D8BC6Ah, 1 + invoke DrawString8x8, 10, 204, interactPromptPtr, 00F5E2B0h +@@: + cmp flashTimer, 0 + je hud_finished + dec flashTimer + invoke DrawBox, 4, 22, 312, 16, 0014191Dh + invoke DrawString8x8, 10, 26, OFFSET flashMessage, 00FFFFFFh +hud_finished: + ret +RenderHUD ENDP + +RenderMinimap PROC uses ebx esi edi + local radarX:DWORD + local radarY:DWORD + local radarSize:DWORD + + mov radarX, 320 - 48 + mov radarY, 20 + mov radarSize, 44 + + invoke DrawBoxBorder, radarX, radarY, radarSize, radarSize, 00101510h, 0000D7FFh, 1 + + ; Draw Sprites on radar + xor esi, esi +radar_spr_loop: + cmp esi, NUM_SPRITES + jge draw_player_radar + mov eax, esi + imul eax, SIZEOF SpriteObject + mov eax, [casinoSprites + eax].posX + sar eax, 16 + imul eax, radarSize + shr eax, 5 + add eax, radarX + mov ebx, eax + + mov eax, esi + imul eax, SIZEOF SpriteObject + mov eax, [casinoSprites + eax].posY + sar eax, 16 + imul eax, radarSize + shr eax, 5 + add eax, radarY + + invoke DrawPixel, ebx, eax, 00FFAA00h + inc esi + jmp radar_spr_loop + +draw_player_radar: + mov eax, playerX + sar eax, 16 + imul eax, radarSize + shr eax, 5 + add eax, radarX + mov ebx, eax + + mov eax, playerY + sar eax, 16 + imul eax, radarSize + shr eax, 5 + add eax, radarY + + invoke DrawCircle, ebx, eax, 2, 000000FFh + ret +RenderMinimap ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: SLOTS 777 +; ============================================================================== +HandleSlotsInput PROC + cmp slotSpinState, 1 + je slots_input_done + + invoke Pressed3D, 20h ; SPACE -> Spin + test ah, 80h + jz check_bet_adjust + mov eax, bankroll + cmp eax, slotBet + jl @F + sub eax, slotBet + mov bankroll, eax + mov slotSpinState, 1 + mov slotSpinTimer, 0 + mov slotWinAmount, 0 + invoke PlaySoundA, OFFSET soundClick, 0, 1 + jmp slots_input_done +@@: + invoke CopyString3D, OFFSET msgNeedMoney, OFFSET flashMessage + mov flashTimer, 60 + +check_bet_adjust: + invoke Pressed3D, 26h ; UP / W + test ah, 80h + jnz inc_bet + invoke Pressed3D, 57h + test ah, 80h + jz check_bet_down +inc_bet: + cmp slotBet, 500 + jge slots_input_done + cmp slotBet, 100 + jge @F + cmp slotBet, 50 + jge set_100 + mov slotBet, 50 + jmp slots_input_done +set_100: + mov slotBet, 100 + jmp slots_input_done +@@: + mov slotBet, 500 + jmp slots_input_done + +check_bet_down: + invoke Pressed3D, 28h ; DOWN / S + test ah, 80h + jnz dec_bet + invoke Pressed3D, 53h + test ah, 80h + jz slots_input_done +dec_bet: + cmp slotBet, 50 + jle set_10 + cmp slotBet, 100 + jle set_50 + mov slotBet, 100 + jmp slots_input_done +set_50: + mov slotBet, 50 + jmp slots_input_done +set_10: + mov slotBet, 10 + +slots_input_done: + ret +HandleSlotsInput ENDP + +RenderSlotsGame PROC uses ebx esi edi + ; Cabinet Background (Dark Cherry Wood & Gold) + invoke DrawBox, 0, 0, SCREEN_W, SCREEN_H, 00150A10h + invoke DrawBoxBorder, 10, 10, 300, 220, 00251015h, 0000D7FFh, 3 + + ; Illuminated Top Marquee + invoke DrawBoxBorder, 25, 20, 270, 32, 000A0505h, 0000FFFFh, 2 + invoke DrawString8x8, 55, 32, OFFSET textSlots3D, 0000D7FFh + + ; Spinning Animation Logic + cmp slotSpinState, 1 + jne draw_reels + inc slotSpinTimer + + cmp slotSpinTimer, 22 + jge @F + invoke RandomRange3D, 7 + mov slotReel1, eax +@@: + cmp slotSpinTimer, 36 + jge @F + invoke RandomRange3D, 7 + mov slotReel2, eax +@@: + cmp slotSpinTimer, 50 + jge @F + invoke RandomRange3D, 7 + mov slotReel3, eax +@@: + cmp slotSpinTimer, 50 + jl draw_reels + + ; Spin finished! Check outcome! + mov slotSpinState, 0 + mov eax, slotReel1 + cmp eax, slotReel2 + jne check_pairs + cmp eax, slotReel3 + jne check_pairs + + ; 3 Matching! + cmp eax, 0 ; 777! + jne @F + mov eax, slotBet + imul eax, 25 + mov slotWinAmount, eax + add bankroll, eax + invoke PlaySoundA, OFFSET soundJackpot, 0, 1 + jmp draw_reels +@@: + cmp eax, 6 ; CROWN! + jne @F + mov eax, slotBet + imul eax, 50 + mov slotWinAmount, eax + add bankroll, eax + invoke PlaySoundA, OFFSET soundJackpot, 0, 1 + jmp draw_reels +@@: + mov eax, slotBet + imul eax, 10 + mov slotWinAmount, eax + add bankroll, eax + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + jmp draw_reels + +check_pairs: + mov eax, slotReel1 + cmp eax, slotReel2 + je pair_win + mov eax, slotReel2 + cmp eax, slotReel3 + je pair_win + mov eax, slotReel1 + cmp eax, slotReel3 + je pair_win + jmp draw_reels +pair_win: + mov eax, slotBet + imul eax, 2 + mov slotWinAmount, eax + add bankroll, eax + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + +draw_reels: + ; Reels Window + invoke DrawBoxBorder, 30, 62, 260, 95, 000F0F12h, 0000A5FFh, 2 + + ; Reel 1 (45..105) + invoke DrawBoxBorder, 45, 68, 65, 82, 00F0F0F5h, 00505050h, 2 + mov eax, slotReel1 + call DrawReelSymbolAt1 + + ; Reel 2 (128..188) + invoke DrawBoxBorder, 128, 68, 65, 82, 00F0F0F5h, 00505050h, 2 + mov eax, slotReel2 + call DrawReelSymbolAt2 + + ; Reel 3 (210..270) + invoke DrawBoxBorder, 210, 68, 65, 82, 00F0F0F5h, 00505050h, 2 + mov eax, slotReel3 + call DrawReelSymbolAt3 + + ; Bottom Control Panel + invoke DrawBoxBorder, 20, 165, 280, 58, 00151515h, 0000D7FFh, 1 + + invoke DrawString8x8, 28, 172, OFFSET textBank3D, 0000D7FFh + invoke FormatNumber, bankroll, OFFSET hudNumBuffer + invoke DrawString8x8, 110, 172, OFFSET hudNumBuffer, 0000FFFFh + + invoke DrawString8x8, 175, 172, OFFSET textBet3D, 0000D7FFh + invoke FormatNumber, slotBet, OFFSET hudNumBuffer + invoke DrawString8x8, 240, 172, OFFSET hudNumBuffer, 0050FF50h + + cmp slotWinAmount, 0 + jle draw_slot_ctrls + invoke DrawString8x8, 28, 187, OFFSET strWin, 0000FFFFh + invoke FormatNumber, slotWinAmount, OFFSET hudNumBuffer + invoke DrawString8x8, 110, 187, OFFSET hudNumBuffer, 0000FFFFh + +draw_slot_ctrls: + invoke DrawString8x8, 28, 204, OFFSET textSlotsKeys3D, 00A0A0A0h + ret +RenderSlotsGame ENDP + +DrawReelSymbolAt1 PROC + cmp eax, 0 + jne @F + invoke DrawString8x8, 52, 105, OFFSET sym7, 000000FFh + ret +@@: + cmp eax, 1 + jne @F + invoke DrawString8x8, 52, 105, OFFSET symBar, 00FFAA00h + ret +@@: + cmp eax, 2 + jne @F + invoke DrawString8x8, 52, 105, OFFSET symBell, 0000D7FFh + ret +@@: + cmp eax, 3 + jne @F + invoke DrawString8x8, 48, 105, OFFSET symCherry, 000000D0h + ret +@@: + cmp eax, 4 + jne @F + invoke DrawString8x8, 48, 105, OFFSET symClover, 0000A000h + ret +@@: + cmp eax, 5 + jne @F + invoke DrawString8x8, 52, 105, OFFSET symGem, 00FFFF00h + ret +@@: + invoke DrawString8x8, 52, 105, OFFSET symCrown, 0000D7FFh + ret +DrawReelSymbolAt1 ENDP + +DrawReelSymbolAt2 PROC + cmp eax, 0 + jne @F + invoke DrawString8x8, 135, 105, OFFSET sym7, 000000FFh + ret +@@: + cmp eax, 1 + jne @F + invoke DrawString8x8, 135, 105, OFFSET symBar, 00FFAA00h + ret +@@: + cmp eax, 2 + jne @F + invoke DrawString8x8, 135, 105, OFFSET symBell, 0000D7FFh + ret +@@: + cmp eax, 3 + jne @F + invoke DrawString8x8, 131, 105, OFFSET symCherry, 000000D0h + ret +@@: + cmp eax, 4 + jne @F + invoke DrawString8x8, 131, 105, OFFSET symClover, 0000A000h + ret +@@: + cmp eax, 5 + jne @F + invoke DrawString8x8, 135, 105, OFFSET symGem, 00FFFF00h + ret +@@: + invoke DrawString8x8, 135, 105, OFFSET symCrown, 0000D7FFh + ret +DrawReelSymbolAt2 ENDP + +DrawReelSymbolAt3 PROC + cmp eax, 0 + jne @F + invoke DrawString8x8, 218, 105, OFFSET sym7, 000000FFh + ret +@@: + cmp eax, 1 + jne @F + invoke DrawString8x8, 218, 105, OFFSET symBar, 00FFAA00h + ret +@@: + cmp eax, 2 + jne @F + invoke DrawString8x8, 218, 105, OFFSET symBell, 0000D7FFh + ret +@@: + cmp eax, 3 + jne @F + invoke DrawString8x8, 214, 105, OFFSET symCherry, 000000D0h + ret +@@: + cmp eax, 4 + jne @F + invoke DrawString8x8, 214, 105, OFFSET symClover, 0000A000h + ret +@@: + cmp eax, 5 + jne @F + invoke DrawString8x8, 218, 105, OFFSET symGem, 00FFFF00h + ret +@@: + invoke DrawString8x8, 218, 105, OFFSET symCrown, 0000D7FFh + ret +DrawReelSymbolAt3 ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: BLACKJACK (21) +; ============================================================================== +HandleBlackjackInput PROC uses ebx + cmp bjState, 0 ; Need Deal + jne check_bj_player_turn + invoke Pressed3D, 20h ; SPACE -> Deal + test ah, 80h + jz check_bj_bet_change + mov eax, bankroll + cmp eax, bjBet + jl bj_need_cash + sub eax, bjBet + mov bankroll, eax + + ; Deal 2 cards to player, 2 cards to dealer + mov bjPlayerCardCount, 0 + mov bjDealerCardCount, 0 + mov bjDealerHideHole, 1 + + ; Player Card 1 + invoke RandomRange3D, 13 + inc eax + mov ebx, bjPlayerCardCount + mov [bjPlayerCards + ebx*4], eax + inc bjPlayerCardCount + + ; Dealer Card 1 + invoke RandomRange3D, 13 + inc eax + mov ebx, bjDealerCardCount + mov [bjDealerCards + ebx*4], eax + inc bjDealerCardCount + + ; Player Card 2 + invoke RandomRange3D, 13 + inc eax + mov ebx, bjPlayerCardCount + mov [bjPlayerCards + ebx*4], eax + inc bjPlayerCardCount + + ; Dealer Card 2 (Hole card) + invoke RandomRange3D, 13 + inc eax + mov ebx, bjDealerCardCount + mov [bjDealerCards + ebx*4], eax + inc bjDealerCardCount + + invoke PlaySoundA, OFFSET soundCards, 0, 1 + + ; Calc Player Score + call CalcPlayerBJScore + cmp bjPlayerScore, 21 + jne set_bj_turn + ; Instant Blackjack! + mov bjDealerHideHole, 0 + mov eax, bjBet + imul eax, 5 + shr eax, 1 + add bankroll, eax + invoke CopyString3D, OFFSET strWin, OFFSET bjOutcomeMsg + invoke PlaySoundA, OFFSET soundJackpot, 0, 1 + mov bjState, 2 + ret +set_bj_turn: + mov bjState, 1 + mov BYTE PTR [bjOutcomeMsg], 0 + ret + +bj_need_cash: + invoke CopyString3D, OFFSET msgNeedMoney, OFFSET flashMessage + mov flashTimer, 60 + ret + +check_bj_player_turn: + cmp bjState, 1 + jne check_bj_round_over + + invoke Pressed3D, 48h ; 'H' -> Hit + test ah, 80h + jz check_bj_stand + invoke RandomRange3D, 13 + inc eax + mov ebx, bjPlayerCardCount + cmp ebx, 8 + jge @F + mov [bjPlayerCards + ebx*4], eax + inc bjPlayerCardCount +@@: + invoke PlaySoundA, OFFSET soundCards, 0, 1 + call CalcPlayerBJScore + cmp bjPlayerScore, 21 + jle bj_input_done + ; Bust! + invoke CopyString3D, OFFSET strPlayerBust, OFFSET bjOutcomeMsg + mov bjDealerHideHole, 0 + mov bjState, 2 + ret + +check_bj_stand: + invoke Pressed3D, 53h ; 'S' -> Stand + test ah, 80h + jz bj_input_done + + ; Dealer Turn + mov bjDealerHideHole, 0 +dealer_loop: + call CalcDealerBJScore + cmp bjDealerScore, 17 + jge dealer_finished + invoke RandomRange3D, 13 + inc eax + mov ebx, bjDealerCardCount + cmp ebx, 8 + jge dealer_finished + mov [bjDealerCards + ebx*4], eax + inc bjDealerCardCount + jmp dealer_loop + +dealer_finished: + cmp bjDealerScore, 21 + jle compare_scores + ; Dealer Bust! + mov eax, bjBet + shl eax, 1 + add bankroll, eax + invoke CopyString3D, OFFSET strDealerBust, OFFSET bjOutcomeMsg + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + mov bjState, 2 + ret + +compare_scores: + mov eax, bjPlayerScore + cmp eax, bjDealerScore + jle check_dealer_won + ; Player Won! + mov eax, bjBet + shl eax, 1 + add bankroll, eax + invoke CopyString3D, OFFSET strWin, OFFSET bjOutcomeMsg + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + mov bjState, 2 + ret +check_dealer_won: + cmp eax, bjDealerScore + jl dealer_wins + ; Push (Tie) + mov eax, bjBet + add bankroll, eax + invoke CopyString3D, OFFSET strPush, OFFSET bjOutcomeMsg + mov bjState, 2 + ret +dealer_wins: + invoke CopyString3D, OFFSET strLose, OFFSET bjOutcomeMsg + mov bjState, 2 + ret + +check_bj_round_over: + invoke Pressed3D, 20h ; SPACE -> Next Hand + test ah, 80h + jz bj_input_done + mov bjState, 0 + ret + +check_bj_bet_change: + invoke Pressed3D, 26h ; UP + test ah, 80h + jz @F + cmp bjBet, 500 + jge bj_input_done + add bjBet, 50 + ret +@@: + invoke Pressed3D, 28h ; DOWN + test ah, 80h + jz bj_input_done + cmp bjBet, 50 + jle bj_input_done + sub bjBet, 50 + +bj_input_done: + ret +HandleBlackjackInput ENDP + +CalcPlayerBJScore PROC uses ebx esi + xor eax, eax + xor ebx, ebx + xor esi, esi +calc_p_loop: + cmp esi, bjPlayerCardCount + jge calc_p_done + mov edx, [bjPlayerCards + esi*4] + cmp edx, 10 + jle @F + mov edx, 10 +@@: + cmp edx, 1 + jne add_p_val + inc ebx ; count Aces + add eax, 11 + jmp next_p_card +add_p_val: + add eax, edx +next_p_card: + inc esi + jmp calc_p_loop +calc_p_done: + ; Soft Ace reduction +reduce_p_ace: + cmp eax, 21 + jle store_p_score + test ebx, ebx + jz store_p_score + sub eax, 10 + dec ebx + jmp reduce_p_ace +store_p_score: + mov bjPlayerScore, eax + ret +CalcPlayerBJScore ENDP + +CalcDealerBJScore PROC uses ebx esi + xor eax, eax + xor ebx, ebx + xor esi, esi +calc_d_loop: + cmp esi, bjDealerCardCount + jge calc_d_done + mov edx, [bjDealerCards + esi*4] + cmp edx, 10 + jle @F + mov edx, 10 +@@: + cmp edx, 1 + jne add_d_val + inc ebx + add eax, 11 + jmp next_d_card +add_d_val: + add eax, edx +next_d_card: + inc esi + jmp calc_d_loop +calc_d_done: +reduce_d_ace: + cmp eax, 21 + jle store_d_score + test ebx, ebx + jz store_d_score + sub eax, 10 + dec ebx + jmp reduce_d_ace +store_d_score: + mov bjDealerScore, eax + ret +CalcDealerBJScore ENDP + +RenderBlackjackGame PROC uses ebx esi edi + ; Emerald Felt Table Background + invoke DrawBox, 0, 0, SCREEN_W, SCREEN_H, 000A3015h + invoke DrawBoxBorder, 10, 10, 300, 220, 000D4018h, 0000D7FFh, 3 + + ; Dealer Area Top + invoke DrawString8x8, 25, 20, OFFSET textBJ3D, 0000D7FFh + invoke DrawString8x8, 25, 35, OFFSET textDealer3D, 00FFFFFFh + invoke FormatNumber, bjDealerScore, OFFSET hudNumBuffer + invoke DrawString8x8, 120, 35, OFFSET hudNumBuffer, 0000FFFFh + + ; Dealer Cards + xor esi, esi +draw_dealer_cards: + cmp esi, bjDealerCardCount + jge draw_player_bj_area + mov eax, esi + imul eax, 45 + add eax, 25 + mov ebx, eax + + cmp esi, 1 + jne draw_dealer_face + cmp bjDealerHideHole, 1 + jne draw_dealer_face + ; Face Down Card + mov eax, selectedBack3D + mov eax, cardBackColors3D[eax*4] + invoke DrawBoxBorder, ebx, 48, 38, 52, eax, 00FFFFFFh, 2 + jmp next_dealer_card_draw + +draw_dealer_face: + invoke DrawBoxBorder, ebx, 48, 38, 52, 00F0F0F5h, 00000000h, 2 + mov eax, [bjDealerCards + esi*4] + dec eax + imul eax, 3 + lea edx, [cardRankStr + eax] + mov eax, ebx + add eax, 8 + invoke DrawString8x8, eax, 68, edx, 00000000h + +next_dealer_card_draw: + inc esi + jmp draw_dealer_cards + +draw_player_bj_area: + ; Player Area Bottom + invoke DrawString8x8, 25, 110, OFFSET textPlayer3D, 00FFFFFFh + invoke FormatNumber, bjPlayerScore, OFFSET hudNumBuffer + invoke DrawString8x8, 120, 110, OFFSET hudNumBuffer, 0050FF50h + + ; Player Cards + xor esi, esi +draw_player_cards: + cmp esi, bjPlayerCardCount + jge draw_bj_footer + mov eax, esi + imul eax, 45 + add eax, 25 + mov ebx, eax + + invoke DrawBoxBorder, ebx, 124, 38, 52, 00F0F0F5h, 00000000h, 2 + mov eax, [bjPlayerCards + esi*4] + dec eax + imul eax, 3 + lea edx, [cardRankStr + eax] + mov eax, ebx + add eax, 8 + invoke DrawString8x8, eax, 144, edx, 00000000h + + inc esi + jmp draw_player_cards + +draw_bj_footer: + ; Footer Status & Controls + invoke DrawBoxBorder, 20, 182, 280, 42, 00102010h, 0000D7FFh, 1 + cmp BYTE PTR [bjOutcomeMsg], 0 + je draw_bj_controls + invoke DrawString8x8, 28, 188, OFFSET bjOutcomeMsg, 0000FFFFh + invoke DrawString8x8, 28, 204, OFFSET textNext3D, 00A0A0A0h + ret + +draw_bj_controls: + invoke DrawString8x8, 28, 188, OFFSET textBJKeys3D, 00FFFFFFh + invoke DrawString8x8, 28, 204, OFFSET textDeal3D, 00A0A0A0h + ret +RenderBlackjackGame ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: ROULETTE +; ============================================================================== +HandleRouletteInput PROC uses ebx + cmp roulState, 1 + je roul_input_done + + invoke Pressed3D, 31h ; '1' -> RED + test ah, 80h + jz @F + mov roulBetType, 1 +@@: + invoke Pressed3D, 32h ; '2' -> BLACK + test ah, 80h + jz @F + mov roulBetType, 2 +@@: + invoke Pressed3D, 33h ; '3' -> ZERO (0) + test ah, 80h + jz @F + mov roulBetType, 3 +@@: + invoke Pressed3D, 34h ; '4' -> EVEN + test ah, 80h + jz @F + mov roulBetType, 4 +@@: + invoke Pressed3D, 35h ; '5' -> ODD + test ah, 80h + jz check_roul_spin + mov roulBetType, 5 + +check_roul_spin: + invoke Pressed3D, 20h ; SPACE -> Spin + test ah, 80h + jz roul_input_done + mov eax, bankroll + cmp eax, roulBetAmount + jl roul_no_cash + sub eax, roulBetAmount + mov bankroll, eax + mov roulState, 1 + mov roulSpinTimer, 50 + mov roulPayout, 0 + invoke PlaySoundA, OFFSET soundRoulette, 0, 1 + ret + +roul_no_cash: + invoke CopyString3D, OFFSET msgNeedMoney, OFFSET flashMessage + mov flashTimer, 60 + +roul_input_done: + ret +HandleRouletteInput ENDP + +RenderRouletteGame PROC uses ebx esi edi + ; Table felt background + invoke DrawBox, 0, 0, SCREEN_W, SCREEN_H, 00151525h + invoke DrawBoxBorder, 10, 10, 300, 220, 00201525h, 0000D7FFh, 3 + + ; 2.5D Rotating Wheel on Left + invoke DrawCircle, 85, 110, 65, 00102550h + invoke DrawCircle, 85, 110, 60, 0000D7FFh + invoke DrawCircle, 85, 110, 52, 00101010h + invoke DrawCircle, 85, 110, 22, 0000D7FFh ; Center brass turret + + ; Spinning Wheel / Ball Logic + cmp roulState, 1 + jne draw_roul_ball + dec roulSpinTimer + add roulWheelAngle, 8 + sub roulBallAngle, 14 + cmp roulSpinTimer, 0 + jg draw_roul_ball + + ; Wheel stopped! Determine result! + mov roulState, 2 + invoke RandomRange3D, 37 + mov roulWinningNum, eax + + ; Check bet + cmp roulBetType, 1 ; RED + jne check_ro_black + call IsNumberRed + test eax, eax + jz ro_lost + mov eax, roulBetAmount + shl eax, 1 + mov roulPayout, eax + add bankroll, eax + invoke CopyString3D, OFFSET strWin, OFFSET roulOutcomeMsg + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + jmp draw_roul_ball + +check_ro_black: + cmp roulBetType, 2 ; BLACK + jne check_ro_zero + cmp roulWinningNum, 0 + je ro_lost + call IsNumberRed + test eax, eax + jnz ro_lost + mov eax, roulBetAmount + shl eax, 1 + mov roulPayout, eax + add bankroll, eax + invoke CopyString3D, OFFSET strWin, OFFSET roulOutcomeMsg + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + jmp draw_roul_ball + +check_ro_zero: + cmp roulBetType, 3 ; ZERO + jne check_ro_even + cmp roulWinningNum, 0 + jne ro_lost + mov eax, roulBetAmount + imul eax, 36 + mov roulPayout, eax + add bankroll, eax + invoke CopyString3D, OFFSET strJackpot, OFFSET roulOutcomeMsg + invoke PlaySoundA, OFFSET soundJackpot, 0, 1 + jmp draw_roul_ball + +check_ro_even: + cmp roulBetType, 4 ; EVEN + jne check_ro_odd + mov eax, roulWinningNum + test eax, eax + jz ro_lost + test al, 1 + jnz ro_lost + mov eax, roulBetAmount + shl eax, 1 + mov roulPayout, eax + add bankroll, eax + invoke CopyString3D, OFFSET strWin, OFFSET roulOutcomeMsg + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + jmp draw_roul_ball + +check_ro_odd: + mov eax, roulWinningNum + test eax, eax + jz ro_lost + test al, 1 + jz ro_lost + mov eax, roulBetAmount + shl eax, 1 + mov roulPayout, eax + add bankroll, eax + invoke CopyString3D, OFFSET strWin, OFFSET roulOutcomeMsg + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + jmp draw_roul_ball + +ro_lost: + invoke CopyString3D, OFFSET strLose, OFFSET roulOutcomeMsg + +draw_roul_ball: + ; Draw White Ball on Rim + mov eax, roulBallAngle + and eax, 511 + mov ebx, [tableCos + eax*4] + imul ebx, 42 + sar ebx, 16 + add ebx, 85 + + mov eax, roulBallAngle + and eax, 511 + mov edx, [tableSin + eax*4] + imul edx, 42 + sar edx, 16 + add edx, 110 + invoke DrawCircle, ebx, edx, 3, 00FFFFFFh + + ; Right Betting Board + invoke DrawBoxBorder, 175, 25, 125, 28, 001010C0h, 00FFFFFFh, 2 ; [1] RED + invoke DrawString8x8, 190, 35, OFFSET textRed3D, 00FFFFFFh + + invoke DrawBoxBorder, 175, 60, 125, 28, 00151515h, 00FFFFFFh, 2 ; [2] BLACK + invoke DrawString8x8, 190, 70, OFFSET textBlack3D, 00FFFFFFh + + invoke DrawBoxBorder, 175, 95, 125, 28, 00106010h, 00FFFFFFh, 2 ; [3] ZERO + invoke DrawString8x8, 190, 105, OFFSET textZero3D, 00FFFFFFh + + invoke DrawBoxBorder, 175, 130, 60, 26, 00302020h, 00FFFFFFh, 1 ; [4] EVEN + invoke DrawString8x8, 185, 139, OFFSET textEven3D, 00FFFFFFh + + invoke DrawBoxBorder, 240, 130, 60, 26, 00302020h, 00FFFFFFh, 1 ; [5] ODD + invoke DrawString8x8, 250, 139, OFFSET textOdd3D, 00FFFFFFh + + ; Highlight Active Bet + cmp roulBetType, 1 + jne @F + invoke DrawBoxBorder, 173, 23, 129, 32, 0, 0000FFFFh, 2 +@@: + cmp roulBetType, 2 + jne @F + invoke DrawBoxBorder, 173, 58, 129, 32, 0, 0000FFFFh, 2 +@@: + cmp roulBetType, 3 + jne @F + invoke DrawBoxBorder, 173, 93, 129, 32, 0, 0000FFFFh, 2 +@@: + cmp roulBetType, 4 + jne @F + invoke DrawBoxBorder, 173, 128, 64, 30, 0, 0000FFFFh, 2 +@@: + cmp roulBetType, 5 + jne draw_ro_footer + invoke DrawBoxBorder, 238, 128, 64, 30, 0, 0000FFFFh, 2 + +draw_ro_footer: + invoke DrawBoxBorder, 20, 180, 280, 42, 00101015h, 0000D7FFh, 1 + + cmp roulState, 2 + jne @F + invoke DrawString8x8, 28, 186, OFFSET textResult3D, 0000D7FFh + invoke FormatNumber, roulWinningNum, OFFSET hudNumBuffer + invoke DrawString8x8, 85, 186, OFFSET hudNumBuffer, 0000FFFFh + invoke DrawString8x8, 130, 186, OFFSET roulOutcomeMsg, 0050FF50h +@@: + invoke DrawString8x8, 28, 202, OFFSET textSpin3D, 00A0A0A0h + ret +RenderRouletteGame ENDP + +IsNumberRed PROC + mov eax, roulWinningNum + cmp eax, 1 + je red_yes + cmp eax, 3 + je red_yes + cmp eax, 5 + je red_yes + cmp eax, 7 + je red_yes + cmp eax, 9 + je red_yes + cmp eax, 12 + je red_yes + cmp eax, 14 + je red_yes + cmp eax, 16 + je red_yes + cmp eax, 18 + je red_yes + cmp eax, 19 + je red_yes + cmp eax, 21 + je red_yes + cmp eax, 23 + je red_yes + cmp eax, 25 + je red_yes + cmp eax, 27 + je red_yes + cmp eax, 30 + je red_yes + cmp eax, 32 + je red_yes + cmp eax, 34 + je red_yes + cmp eax, 36 + je red_yes + xor eax, eax + ret +red_yes: + mov eax, 1 + ret +IsNumberRed ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: BAR & SHOP +; ============================================================================== +HandleShopInput PROC uses ebx esi + xor esi, esi +shop_choice: + inc esi + lea eax, [esi+30h] + invoke Pressed3D, eax + test eax, eax + jnz shop_chosen + cmp esi, 3 + jb shop_choice + ret +shop_chosen: + bt ownedBacks3D, esi + jc shop_equip + mov ebx, 1500 + cmp esi, 1 + jne @F + mov ebx, 1000 +@@: + cmp bankroll, ebx + jb shop_no_money + sub bankroll, ebx + bts ownedBacks3D, esi +shop_equip: + mov selectedBack3D, esi + invoke CopyString3D, OFFSET textBought3D, OFFSET shopMsg + call SaveProgress3D + ret +shop_no_money: + invoke CopyString3D, OFFSET textNoCash3D, OFFSET shopMsg + ret +HandleShopInput ENDP + +RenderShopGame PROC + invoke DrawBox, 0, 0, SCREEN_W, SCREEN_H, 00150A0Ah + invoke DrawBoxBorder, 10, 10, 300, 220, 00251515h, 0000D7FFh, 3 + invoke DrawString8x8, 25, 20, OFFSET textShop3D, 0000D7FFh + + invoke DrawBoxBorder, 20, 40, 280, 32, 001A1010h, 00FFFFFFh, 1 + invoke DrawString8x8, 28, 46, OFFSET textItem1_3D, 0000FFFFh + invoke DrawString8x8, 28, 58, OFFSET textShopHint3D, 00A0A0A0h + + invoke DrawBoxBorder, 20, 80, 280, 32, 001A1010h, 00FFFFFFh, 1 + invoke DrawString8x8, 28, 86, OFFSET textItem2_3D, 0000FFFFh + invoke DrawString8x8, 28, 98, OFFSET textShopHint3D, 00A0A0A0h + + invoke DrawBoxBorder, 20, 120, 280, 32, 001A1010h, 00FFFFFFh, 1 + invoke DrawString8x8, 28, 126, OFFSET textItem3_3D, 0000FFFFh + invoke DrawString8x8, 28, 138, OFFSET textShopHint3D, 00A0A0A0h + + invoke DrawBoxBorder, 20, 165, 280, 55, 00100A0Ah, 0000D7FFh, 1 + invoke DrawString8x8, 28, 172, OFFSET textBank3D, 0000D7FFh + invoke FormatNumber, bankroll, OFFSET hudNumBuffer + invoke DrawString8x8, 110, 172, OFFSET hudNumBuffer, 0000FFFFh + + cmp BYTE PTR [shopMsg], 0 + je @F + invoke DrawString8x8, 28, 188, OFFSET shopMsg, 0050FF50h +@@: + invoke DrawString8x8, 28, 204, OFFSET textBack3D, 00A0A0A0h + ret +RenderShopGame ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: ATM TERMINAL +; ============================================================================== +HandleATMInput PROC + ret +HandleATMInput ENDP + +RenderATMGame PROC + invoke DrawBox, 0, 0, 320, 240, 00172120h + invoke DrawString8x8, 24, 30, OFFSET textATM3D, 00D8BC6Ah + invoke DrawString8x8, 24, 70, OFFSET textBank3D, 00FFFFFFh + invoke FormatNumber, bankroll, OFFSET hudNumBuffer + invoke DrawString8x8, 96, 70, OFFSET hudNumBuffer, 0089DAB2h + invoke DrawString8x8, 24, 115, OFFSET textATMNote3D, 00B7C8C1h + invoke DrawString8x8, 24, 140, OFFSET textATMNote2_3D, 00B7C8C1h + invoke DrawString8x8, 24, 208, OFFSET textBack3D, 00D8BC6Ah + ret +RenderATMGame ENDP + +; --- Player Input & Movement Physics --- +HandlePlayerInput PROC uses ebx esi edi + local speed:DWORD + local nextX:DWORD + local nextY:DWORD + mov eax, deltaTime3D + imul eax, 200 + mov speed, eax + cmp keys3D[10h], 0 + je @F + shl speed, 1 +@@: + mov eax, deltaTime3D + shr eax, 2 + inc eax + cmp keys3D[41h], 0 + jne input_turn_left + cmp keys3D[25h], 0 + je input_right +input_turn_left: + sub playerAngle, eax +input_right: + cmp keys3D[44h], 0 + jne input_turn_right + cmp keys3D[27h], 0 + je input_forward +input_turn_right: + add playerAngle, eax +input_forward: + and playerAngle, 511 + call UpdateCamera3D + xor edi, edi + cmp keys3D[57h], 0 + jne input_go_forward + cmp keys3D[26h], 0 + je input_back +input_go_forward: + inc edi +input_back: + cmp keys3D[53h], 0 + jne input_go_back + cmp keys3D[28h], 0 + je input_move +input_go_back: + dec edi +input_move: + test edi, edi + jz input_action + imul edi, speed + mov eax, playerDirX + imul edi + shrd eax, edx, 16 + add eax, playerX + mov nextX, eax + mov eax, playerDirY + imul edi + shrd eax, edx, 16 + add eax, playerY + mov nextY, eax + invoke CanWalk3D, nextX, playerY + test eax, eax + jz @F + mov eax, nextX + mov playerX, eax +@@: + invoke CanWalk3D, playerX, nextY + test eax, eax + jz input_action + mov eax, nextY + mov playerY, eax +input_action: + invoke Pressed3D, 45h + test eax, eax + jz @F + call Trigger3DInteraction +@@: + ret +HandlePlayerInput ENDP + +CheckInteractions PROC uses ebx esi edi + local nearest:DWORD + mov nearest, 262144 + mov interactTargetId, 0 + mov interactPromptPtr, 0 + xor esi, esi +interaction_scan: + cmp esi, NUM_SPRITES + jge interaction_done + imul edi, esi, SIZEOF SpriteObject + cmp [casinoSprites+edi].interactId, 0 + je interaction_next + mov eax, [casinoSprites+edi].posX + sub eax, playerX + sar eax, 8 + mov ebx, eax + imul eax, eax + mov ecx, eax + mov eax, [casinoSprites+edi].posY + sub eax, playerY + sar eax, 8 + mov edx, eax + imul eax, eax + add ecx, eax + cmp ecx, nearest + jae interaction_next + ; Only target objects in front of the camera. + mov eax, playerDirX + sar eax, 8 + imul eax, ebx + mov ebx, playerDirY + sar ebx, 8 + imul ebx, edx + add eax, ebx + cmp eax, 18000 + jl interaction_next + mov nearest, ecx + mov eax, [casinoSprites+edi].interactId + mov interactTargetId, eax + mov eax, [casinoSprites+edi].promptPtr + mov interactPromptPtr, eax +interaction_next: + inc esi + jmp interaction_scan +interaction_done: + ret +CheckInteractions ENDP + +Trigger3DInteraction PROC + mov eax, interactTargetId + test eax, eax + jz @F + + cmp eax, 8 ; DANCER + jne check_target_slots + cmp bankroll, 100 + jl dancer_no_cash + sub bankroll, 100 + inc dancerLuckBuff + ; Tips are cosmetic and must not silently change game odds. + invoke CopyString3D, OFFSET textTips3D, OFFSET flashMessage + mov flashTimer, 100 + invoke PlaySoundA, OFFSET soundJackpot, 0, 1 + ret +dancer_no_cash: + invoke CopyString3D, OFFSET msgNeedMoney, OFFSET flashMessage + mov flashTimer, 60 + ret + +check_target_slots: + cmp eax, 3 ; SLOTS + jne check_target_bj + mov engineMode, MODE_SLOTS + invoke PlaySoundA, OFFSET soundClick, 0, 1 + ret + +check_target_bj: + cmp eax, 1 ; BLACKJACK + jne check_target_roulette + mov engineMode, MODE_BLACKJACK + mov bjState, 0 + ret + +check_target_roulette: + cmp eax, 4 ; ROULETTE + jne check_target_shop + mov engineMode, MODE_ROULETTE + mov roulState, 0 + ret + +check_target_shop: + cmp eax, 6 ; SHOP + jne check_target_atm + mov engineMode, MODE_SHOP + ret + +check_target_atm: + cmp eax, 7 ; ATM + jne target_unported + mov engineMode, MODE_ATM + ret +target_unported: + invoke CopyString3D, OFFSET textUnavailable3D, OFFSET flashMessage + mov flashTimer, 150 +@@: + ret +Trigger3DInteraction ENDP + +; --- Engine Initialization --- +Init3DEngine PROC + local screenCX:DWORD + local screenCY:DWORD + local posX:DWORD + local posY:DWORD + local bytesRead:DWORD + + push ebx + push esi + push edi + + call Create3DWindow + test eax, eax + jz init_failed + call LoadTextures3D + test eax, eax + jz init_failed + +init_sprites_table: + ; Sprite 0: VIP Dancer 1 (Stage Left) + mov casinoSprites[0*SIZEOF SpriteObject].posX, (13 * FP_1 + FP_HALF) + mov casinoSprites[0*SIZEOF SpriteObject].posY, (4 * FP_1) + mov casinoSprites[0*SIZEOF SpriteObject].baseTexId, 10 + mov casinoSprites[0*SIZEOF SpriteObject].frameCount, 12 + mov casinoSprites[0*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[0*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[0*SIZEOF SpriteObject].animSpeed, 5 + mov casinoSprites[0*SIZEOF SpriteObject].interactId, 8 + mov casinoSprites[0*SIZEOF SpriteObject].promptPtr, OFFSET promptDancer + + ; Sprite 1: VIP Dancer 2 (Center Stage Star) + mov casinoSprites[1*SIZEOF SpriteObject].posX, (16 * FP_1 + FP_HALF) + mov casinoSprites[1*SIZEOF SpriteObject].posY, (3 * FP_1 + FP_HALF) + mov casinoSprites[1*SIZEOF SpriteObject].baseTexId, 10 + mov casinoSprites[1*SIZEOF SpriteObject].frameCount, 12 + mov casinoSprites[1*SIZEOF SpriteObject].curFrame, 2 + mov casinoSprites[1*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[1*SIZEOF SpriteObject].animSpeed, 5 + mov casinoSprites[1*SIZEOF SpriteObject].interactId, 8 + mov casinoSprites[1*SIZEOF SpriteObject].promptPtr, OFFSET promptDancer + + ; Sprite 2: VIP Dancer 3 (Stage Right) + mov casinoSprites[2*SIZEOF SpriteObject].posX, (19 * FP_1 + FP_HALF) + mov casinoSprites[2*SIZEOF SpriteObject].posY, (4 * FP_1) + mov casinoSprites[2*SIZEOF SpriteObject].baseTexId, 10 + mov casinoSprites[2*SIZEOF SpriteObject].frameCount, 12 + mov casinoSprites[2*SIZEOF SpriteObject].curFrame, 1 + mov casinoSprites[2*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[2*SIZEOF SpriteObject].animSpeed, 5 + mov casinoSprites[2*SIZEOF SpriteObject].interactId, 8 + mov casinoSprites[2*SIZEOF SpriteObject].promptPtr, OFFSET promptDancer + + ; Sprite 3: Blackjack Table with Dealer (Front Center Left) + mov casinoSprites[3*SIZEOF SpriteObject].posX, (12 * FP_1 + FP_HALF) + mov casinoSprites[3*SIZEOF SpriteObject].posY, (10 * FP_1) + mov casinoSprites[3*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[3*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[3*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[3*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[3*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[3*SIZEOF SpriteObject].interactId, 1 + mov casinoSprites[3*SIZEOF SpriteObject].promptPtr, OFFSET promptBlackjack + + ; Sprite 4: Roulette Table (Front Center) + mov casinoSprites[4*SIZEOF SpriteObject].posX, (16 * FP_1 + FP_HALF) + mov casinoSprites[4*SIZEOF SpriteObject].posY, (10 * FP_1) + mov casinoSprites[4*SIZEOF SpriteObject].baseTexId, 31 + mov casinoSprites[4*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[4*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[4*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[4*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[4*SIZEOF SpriteObject].interactId, 4 + mov casinoSprites[4*SIZEOF SpriteObject].promptPtr, OFFSET promptRoulette + + ; Sprite 5: Poker Table (Front Center Right) + mov casinoSprites[5*SIZEOF SpriteObject].posX, (21 * FP_1) + mov casinoSprites[5*SIZEOF SpriteObject].posY, (10 * FP_1) + mov casinoSprites[5*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[5*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[5*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[5*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[5*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[5*SIZEOF SpriteObject].interactId, 1 + mov casinoSprites[5*SIZEOF SpriteObject].promptPtr, OFFSET promptPoker + + ; Sprite 6: Slot Machine 1 (West Arcade) + mov casinoSprites[6*SIZEOF SpriteObject].posX, (6 * FP_1) + mov casinoSprites[6*SIZEOF SpriteObject].posY, (8 * FP_1) + mov casinoSprites[6*SIZEOF SpriteObject].baseTexId, 24 + mov casinoSprites[6*SIZEOF SpriteObject].frameCount, 3 + mov casinoSprites[6*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[6*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[6*SIZEOF SpriteObject].animSpeed, 8 + mov casinoSprites[6*SIZEOF SpriteObject].interactId, 3 + mov casinoSprites[6*SIZEOF SpriteObject].promptPtr, OFFSET promptSlot1 + + ; Sprite 7: Slot Machine 2 (CloverPit) + mov casinoSprites[7*SIZEOF SpriteObject].posX, (6 * FP_1) + mov casinoSprites[7*SIZEOF SpriteObject].posY, (11 * FP_1) + mov casinoSprites[7*SIZEOF SpriteObject].baseTexId, 24 + mov casinoSprites[7*SIZEOF SpriteObject].frameCount, 3 + mov casinoSprites[7*SIZEOF SpriteObject].curFrame, 1 + mov casinoSprites[7*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[7*SIZEOF SpriteObject].animSpeed, 8 + mov casinoSprites[7*SIZEOF SpriteObject].interactId, 3 + mov casinoSprites[7*SIZEOF SpriteObject].promptPtr, OFFSET promptSlot2 + + ; Sprite 8: Slot Machine 3 + mov casinoSprites[8*SIZEOF SpriteObject].posX, (6 * FP_1) + mov casinoSprites[8*SIZEOF SpriteObject].posY, (14 * FP_1) + mov casinoSprites[8*SIZEOF SpriteObject].baseTexId, 24 + mov casinoSprites[8*SIZEOF SpriteObject].frameCount, 3 + mov casinoSprites[8*SIZEOF SpriteObject].curFrame, 2 + mov casinoSprites[8*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[8*SIZEOF SpriteObject].animSpeed, 8 + mov casinoSprites[8*SIZEOF SpriteObject].interactId, 3 + mov casinoSprites[8*SIZEOF SpriteObject].promptPtr, OFFSET promptSlot1 + + ; Sprite 9: Bartender / Bar Counter (East Wing) + mov casinoSprites[9*SIZEOF SpriteObject].posX, (26 * FP_1) + mov casinoSprites[9*SIZEOF SpriteObject].posY, (12 * FP_1) + mov casinoSprites[9*SIZEOF SpriteObject].baseTexId, 32 + mov casinoSprites[9*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[9*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[9*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[9*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[9*SIZEOF SpriteObject].interactId, 6 + mov casinoSprites[9*SIZEOF SpriteObject].promptPtr, OFFSET promptShop + + ; Sprite 10: ATM Bank Terminal (East Wing) + mov casinoSprites[10*SIZEOF SpriteObject].posX, (26 * FP_1) + mov casinoSprites[10*SIZEOF SpriteObject].posY, (16 * FP_1) + mov casinoSprites[10*SIZEOF SpriteObject].baseTexId, 33 + mov casinoSprites[10*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[10*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[10*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[10*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[10*SIZEOF SpriteObject].interactId, 7 + mov casinoSprites[10*SIZEOF SpriteObject].promptPtr, OFFSET promptATM + + ; Sprite 11: Underground Table (South Wing) + mov casinoSprites[11*SIZEOF SpriteObject].posX, (16 * FP_1 + FP_HALF) + mov casinoSprites[11*SIZEOF SpriteObject].posY, (24 * FP_1) + mov casinoSprites[11*SIZEOF SpriteObject].baseTexId, 34 + mov casinoSprites[11*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[11*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[11*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[11*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[11*SIZEOF SpriteObject].interactId, 5 + mov casinoSprites[11*SIZEOF SpriteObject].promptPtr, OFFSET promptBackroom + + ; Sprite 12: Secret Demon Portal (South Wing) + mov casinoSprites[12*SIZEOF SpriteObject].posX, (16 * FP_1 + FP_HALF) + mov casinoSprites[12*SIZEOF SpriteObject].posY, (29 * FP_1) + mov casinoSprites[12*SIZEOF SpriteObject].baseTexId, 4 + mov casinoSprites[12*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[12*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[12*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[12*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[12*SIZEOF SpriteObject].interactId, 9 + mov casinoSprites[12*SIZEOF SpriteObject].promptPtr, OFFSET promptHell + + mov eax, 1 + jmp init_return +init_failed: + xor eax, eax +init_return: + pop edi + pop esi + pop ebx + ret +Init3DEngine ENDP + +; --- Main Loop of the 3D Casino Engine --- +StartCasino3D PROC uses ebx esi edi + call Init3DEngine + test eax, eax + jz engine_shutdown + invoke GetTickCount + mov rngSeed3D, eax + mov previousTick3D, eax +engine_loop: + invoke PeekMessageA, OFFSET msg3D, 0, 0, 0, PM_REMOVE + test eax, eax + jz dispatch_frame + cmp msg3D.message, WM_QUIT + je engine_shutdown + invoke TranslateMessage, OFFSET msg3D + invoke DispatchMessageA, OFFSET msg3D + jmp engine_loop + +dispatch_frame: + invoke GetTickCount + mov frameStart3D, eax + sub eax, previousTick3D + cmp eax, 50 + jbe @F + mov eax, 50 +@@: + mov deltaTime3D, eax + mov eax, frameStart3D + mov previousTick3D, eax + invoke GetForegroundWindow + cmp eax, h3DWnd + jne engine_idle + invoke IsIconic, h3DWnd + test eax, eax + jnz engine_idle + invoke Pressed3D, 7Ah + test eax, eax + jz @F + call ToggleFullscreen3D +@@: + invoke Pressed3D, 1Bh + test eax, eax + jz engine_tick + cmp engineMode, MODE_WALK + jne leave_table + xor paused3D, 1 + jmp engine_tick +leave_table: + ; An already paid round cannot be skipped or settled twice. + cmp slotSpinState, 1 + je engine_tick + cmp roulState, 1 + je engine_tick + mov engineMode, MODE_WALK +engine_tick: + cmp paused3D, 0 + jne draw_pause + mov eax, deltaTime3D + add animationClock3D, eax + cmp engineMode, MODE_WALK + jne check_slots_mode + call UpdateCamera3D + call CheckInteractions + call HandlePlayerInput + call UpdateCamera3D + call RenderCeilingAndFloor + call RenderWalls + call RenderSprites + call RenderHUD + call RenderMinimap + jmp present_frame +check_slots_mode: + cmp engineMode, MODE_SLOTS + jne check_bj_mode + call HandleSlotsInput + call RenderSlotsGame + jmp present_frame +check_bj_mode: + cmp engineMode, MODE_BLACKJACK + jne check_roul_mode + call HandleBlackjackInput + call RenderBlackjackGame + jmp present_frame +check_roul_mode: + cmp engineMode, MODE_ROULETTE + jne check_shop_mode + call HandleRouletteInput + call RenderRouletteGame + jmp present_frame +check_shop_mode: + cmp engineMode, MODE_SHOP + jne check_atm_mode + call HandleShopInput + call RenderShopGame + jmp present_frame +check_atm_mode: + call HandleATMInput + call RenderATMGame + jmp present_frame +draw_pause: + invoke DrawBoxBorder, 65, 75, 190, 85, 00151C21h, 00D8BC6Ah, 2 + invoke DrawString8x8, 86, 88, OFFSET textPause3D, 00FFFFFFh + invoke DrawString8x8, 78, 111, OFFSET textResume3D, 00D8BC6Ah + invoke DrawString8x8, 78, 131, OFFSET textQuit3D, 00BBBBBBh + invoke Pressed3D, 51h + test eax, eax + jnz engine_shutdown +present_frame: + call Present3D + lea edi, pressedKeys3D + xor eax, eax + mov ecx, 64 + rep stosd + invoke GetTickCount + sub eax, frameStart3D + cmp eax, 16 + jae engine_loop + mov ecx, 16 + sub ecx, eax + invoke Sleep, ecx + jmp engine_loop +engine_idle: + invoke Sleep, 50 + jmp engine_loop +engine_shutdown: + call SaveProgress3D + cmp h3DDC, 0 + je @F + invoke ReleaseDC, h3DWnd, h3DDC + mov h3DDC, 0 +@@: + cmp h3DWnd, 0 + je @F + invoke DestroyWindow, h3DWnd + mov h3DWnd, 0 +@@: + ret +StartCasino3D ENDP + +include src_graphics\platform_code.inc diff --git a/backups/casino3d_before_full_fix.inc b/backups/casino3d_before_full_fix.inc new file mode 100644 index 0000000..549c02a --- /dev/null +++ b/backups/casino3d_before_full_fix.inc @@ -0,0 +1,5228 @@ + +; ============================================================================== +; CASINO 2.5D - MASM32 SOFTWARE RAYCASTER (CP1251) +; Graphical migration; this is not id Software's Doom engine. +; ============================================================================== + +includelib gdi32.lib +includelib winmm.lib + +CreateWindowExA PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD +RegisterClassExA PROTO :DWORD +DefWindowProcA PROTO :DWORD,:DWORD,:DWORD,:DWORD +ShowWindow PROTO :DWORD,:DWORD +UpdateWindow PROTO :DWORD +GetDC PROTO :DWORD +ReleaseDC PROTO :DWORD,:DWORD +StretchDIBits PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD +PeekMessageA PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD +TranslateMessage PROTO :DWORD +DispatchMessageA PROTO :DWORD +PostQuitMessage PROTO :DWORD +DestroyWindow PROTO :DWORD +SetWindowTextA PROTO :DWORD,:DWORD +SetForegroundWindow PROTO :DWORD +GetConsoleWindow PROTO +GetSystemMetrics PROTO :DWORD +CreateFileA PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD +ReadFile PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD +CloseHandle PROTO :DWORD +GetAsyncKeyState PROTO :DWORD +PlaySoundA PROTO :DWORD,:DWORD,:DWORD +GetModuleFileNameA PROTO :DWORD,:DWORD,:DWORD +Sleep PROTO :DWORD + +C3D_POINT STRUCT + x dd ? + y dd ? +C3D_POINT ENDS + +C3D_MSG STRUCT + hwnd dd ? + message dd ? + wParam dd ? + lParam dd ? + time dd ? + pt C3D_POINT <> +C3D_MSG ENDS + +C3D_WNDCLASSEX STRUCT + cbSize dd ? + style dd ? + lpfnWndProc dd ? + cbClsExtra dd ? + cbWndExtra dd ? + hInstance dd ? + hIcon dd ? + hCursor dd ? + hbrBackground dd ? + lpszMenuName dd ? + lpszClassName dd ? + hIconSm dd ? +C3D_WNDCLASSEX ENDS + +C3D_BITMAPINFOHEADER STRUCT + biSize dd ? + biWidth dd ? + biHeight dd ? + biPlanes dw ? + biBitCount dw ? + biCompression dd ? + biSizeImage dd ? + biXPelsPerMeter dd ? + biYPelsPerMeter dd ? + biClrUsed dd ? + biClrImportant dd ? +C3D_BITMAPINFOHEADER ENDS + +C3D_BITMAPINFO STRUCT + bmiHeader C3D_BITMAPINFOHEADER <> + bmiColors dd ? +C3D_BITMAPINFO ENDS + +SpriteObject STRUCT + posX dd ? + posY dd ? + baseTexId dd ? + frameCount dd ? + curFrame dd ? + animTimer dd ? + animSpeed dd ? + interactId dd ? + promptPtr dd ? + distSq dd ? +SpriteObject ENDS + +SCREEN_W equ 640 +SCREEN_H equ 480 +HALF_W equ 320 +HALF_H equ 240 +SCREEN_SIZE equ (SCREEN_W * SCREEN_H) +WIN_SCALE equ 1 +WINDOW_W equ (SCREEN_W * WIN_SCALE) +WINDOW_H equ (SCREEN_H * WIN_SCALE) + +FP_1 equ 65536 +FP_HALF equ 32768 +CHROMA_KEY equ 00FF00FFh + +MODE_WALK equ 0 +MODE_SLOTS equ 1 +MODE_BLACKJACK equ 2 +MODE_ROULETTE equ 3 +MODE_SHOP equ 4 +MODE_ATM equ 5 +MODE_COIN equ 6 +MODE_DICE equ 7 +MODE_SKULLS equ 8 + +WS_OVERLAPPEDWINDOW equ 00CF0000h +SW_SHOW equ 5 +SW_HIDE equ 0 +PM_REMOVE equ 1 +WM_DESTROY equ 0002h +WM_CLOSE equ 0010h +WM_QUIT equ 0012h +CS_HREDRAW equ 2 +CS_VREDRAW equ 1 +DIB_RGB_COLORS equ 0 +SRCCOPY equ 00CC0020h +INVALID_FILE_HANDLE equ -1 + +include casino3d_data.inc +include font8x8.inc +include src_graphics\platform_data.inc + +.data +ALIGN 4 +h3DInst dd 0 +h3DWnd dd 0 +h3DDC dd 0 +hCasinoConsole dd 0 + +bmi3D C3D_BITMAPINFO <> +msg3D C3D_MSG <> +wc3D C3D_WNDCLASSEX <> + +sz3DClassName db "Casino3DRetroClass",0 +sz3DWindowTitle db "Assembler Casino - 2.5D",0 +szTexturesRelPath db "assets\textures\casino3d-hd.bin",0 +szTexturesFullPath db 260 dup(0) + +soundCoin db "assets\audio\Çâóê ìîíåòû áðîøåííîé â âîçäóõ è óïàâøåé íà ïîâåðõíîñòü.wav",0 +soundCoinDing db "assets\audio\Çâóê ìîíåòû â èãðå Ultrakill.wav",0 +soundCards db "assets\audio\playing_cards_deck_flick_through_001_20485.wav",0 +soundRoulette db "assets\audio\roulette-wheel-throw-2.wav",0 +soundJackpot db "assets\audio\Äæýê ïîò.wav",0 +soundVictory db "assets\audio\victory-tf2.wav",0 +soundClick db "assets\audio\revolverdryfirec.wav",0 +soundShuffle db "assets\audio\moving-stone.wav",0 +soundLose db "assets\audio\Ïðîèãðûø.wav",0 + +playerX dd (16 * FP_1 + FP_HALF) +playerY dd (16 * FP_1 + FP_HALF) +playerAngle dd 384 +playerDirX dd 0 +playerDirY dd -FP_1 +playerPlaneX dd (FP_1 * 66 / 100) +playerPlaneY dd 0 + +engineMode dd 0 +interactTargetId dd 0 +interactPromptPtr dd 0 +dancerLuckBuff dd 0 +flashTimer dd 0 +flashMessage db 128 dup(0) + +promptDancer db "[E] ÊÀÁÀÐÅ - ×ÀÅÂÛÅ $100",0 +promptBlackjack db "[E] ÁËÝÊÄÆÅÊ (21)",0 +promptPoker db "[E] ÏÎÊÅÐ (TEXAS HOLD'EM)",0 +promptDurak db "[E] ÊÀÐÒÛ: ÏÎÄÊÈÄÍÎÉ ÄÓÐÀÊ",0 +promptCasinoRoulette db "[E] ÅÂÐÎÏÅÉÑÊÀß ÐÓËÅÒÊÀ",0 +promptClassicSlot db "[E] ÊËÀÑÑÈ×ÅÑÊÈÅ ÑËÎÒÛ 777",0 +promptCloverSlot db "[E] ÑËÎÒÛ CLOVERPIT (5x3)",0 +promptDice db "[E] ÈÃÐÀ  ÊÎÑÒÈ (CRAPS)",0 +promptSkulls db "[E] ÍÀϨÐÑÒÊÈ (×ÅÐÅÏÀ)",0 +promptCoin db "[E] ÌÎÍÅÒÊÀ (ÎШË/ÐÅØÊÀ)",0 +promptSkillCheck db "[E] ÒÐÅÍÈÐÎÂÊÀ ÐÅÀÊÖÈÈ",0 +promptBuckshot db "[E] BUCKSHOT ROULETTE",0 +promptRussianRoulette db "[E] ÐÓÑÑÊÀß ÐÓËÅÒÊÀ (VIP)",0 +promptOnlineRR db "[E] ÑÅÒÅÂÀß ÐÓËÅÒÊÀ (NET)",0 +promptUmamusume db "[E] ÑÊÀ×ÊÈ ÓÌÀÌÓÑÓÌÝ",0 +promptHellTower db "[E] ÁÀØÍß ÀÄÀ (10 ÝÒÀÆÅÉ)",0 +promptShop db "[E] ÁÓÒÈÊ È ÒÀËÈÑÌÀÍÛ",0 +promptATM db "[E] ÁÀÍÊÎÌÀÒ È ÁÀËÀÍÑ",0 +promptPlayerTerminal db "[E] ÒÅÐÌÈÍÀË: ÑÒÀÒÛ È À×ÈÂÊÈ",0 +promptObserver db "[E] ÐÅÆÈÌ ÍÀÁËÞÄÀÒÅËß (ÈÈ)",0 + +szTitleBlackjack db "[KAZIK 3D CASINO] - ÁËÝÊÄÆÅÊ (21)",0 +szTitlePoker db "[KAZIK 3D CASINO] - ÏÎÊÅÐ (TEXAS HOLD'EM)",0 +szTitleDurak db "[KAZIK 3D CASINO] - ÏÎÄÊÈÄÍÎÉ ÄÓÐÀÊ",0 +szTitleCasinoRoulette db "[KAZIK 3D CASINO] - ÅÂÐÎÏÅÉÑÊÀß ÐÓËÅÒÊÀ",0 +szTitleClassicSlot db "[KAZIK 3D CASINO] - ÊËÀÑÑÈ×ÅÑÊÈÅ ÑËÎÒÛ 777",0 +szTitleCloverSlot db "[KAZIK 3D CASINO] - ÑËÎÒ-ÌÀØÈÍÀ CLOVERPIT (5x3)",0 +szTitleDice db "[KAZIK 3D CASINO] - ÈÃÐÀ  ÊÎÑÒÈ (CRAPS)",0 +szTitleSkulls db "[KAZIK 3D CASINO] - ÍÀϨÐÑÒÊÈ",0 +szTitleCoin db "[KAZIK 3D CASINO] - ÌÎÍÅÒÊÀ (ÎШË/ÐÅØÊÀ)",0 +szTitleSkillCheck db "[KAZIK 3D CASINO] - ÏÐÎÂÅÐÊÀ ÐÅÀÊÖÈÈ",0 +szTitleBuckshot db "[KAZIK 3D CASINO] - BUCKSHOT ROULETTE",0 +szTitleRussianRoulette db "[KAZIK 3D CASINO] - ÐÓÑÑÊÀß ÐÓËÅÒÊÀ",0 +szTitleOnlineRR db "[KAZIK 3D CASINO] - ÑÅÒÅÂÀß ÐÓÑÑÊÀß ÐÓËÅÒÊÀ",0 +szTitleUmamusume db "[KAZIK 3D CASINO] - ÑÊÀ×ÊÈ ÓÌÀÌÓÑÓÌÝ",0 +szTitleHellTower db "[KAZIK 3D CASINO] - ÁÀØÍß ÀÄÀ (ÒÓÐÍÈÐ)",0 +szTitleShop db "[KAZIK 3D CASINO] - ÁÓÒÈÊ È ÒÀËÈÑÌÀÍÛ",0 +szTitleATM db "[KAZIK 3D CASINO] - ÁÀÍÊÎÌÀÒ",0 +szTitleTerminal db "[KAZIK 3D CASINO] - ÒÅÐÌÈÍÀË ÈÃÐÎÊÀ",0 +szTitleObserver db "[KAZIK 3D CASINO] - ÐÅÆÈÌ ÍÀÁËÞÄÀÒÅËß (ÈÈ)",0 +textCabinetFooter db "[ ÂÛÕÎÄ: ÂÂÅÄÈÒÅ 0 / ÂÛÁÅÐÈÒÅ 'N' ÄËß ÂÎÇÂÐÀÒÀ  ÇÀË ]",0 + +msgDancerTipped db "Âû áðîñèëè $100 òàíöîâùèöå! ÓÄÀ×À ÀÊÒÈÂÈÐÎÂÀÍÀ!",0 +msgNeedMoney db "Íåäîñòàòî÷íî äåíåã â êîøåëüêå!",0 +statusHUDFormat db "ÁÀÍÊÐÎËË: $",0 +targetHUDFormat db " ÖÅËÜ: $",0 +luckHUDFormat db " ÓÄÀ×À: +",0 +controlsHUD db "WASD/Ñòðåëêè: Õîäüáà | E: Äåéñòâèå | ESC: Ìåíþ",0 + +NUM_SPRITES equ 22 + +INTERACT_NONE equ 0 +INTERACT_BLACKJACK equ 1 +INTERACT_POKER equ 2 +INTERACT_SLOTS_777 equ 3 +INTERACT_ROULETTE equ 4 +INTERACT_SKULLS equ 5 +INTERACT_SHOP equ 6 +INTERACT_ATM equ 7 +INTERACT_DANCER equ 8 +INTERACT_HELL_TOWER equ 9 +INTERACT_DURAK equ 10 +INTERACT_BUCKSHOT equ 11 +INTERACT_COIN equ 12 +INTERACT_DICE equ 13 +INTERACT_SLOTS_CLOVER equ 14 +INTERACT_UMAMUSUME equ 15 +INTERACT_OBSERVER equ 16 +INTERACT_TERMINAL equ 17 +INTERACT_ONLINE_RR equ 18 +INTERACT_RUSSIAN_ROULETTE equ 19 +INTERACT_SKILL_CHECK equ 20 +ALIGN 4 +casinoSprites SpriteObject NUM_SPRITES dup(<>) +sortedSprites dd NUM_SPRITES dup(0) + +rowDistTable dd 120 dup(0) +rngSeed3D dd 12345678h + +slotBet dd 50 +slotReel1 dd 0 +slotReel2 dd 1 +slotReel3 dd 2 +slotSpinState dd 0 +slotSpinTimer dd 0 +slotWinAmount dd 0 +slotWinMsg db 64 dup(0) + +bjState dd 0 +bjBet dd 100 +bjPlayerCards dd 10 dup(0) +bjPlayerCardCount dd 0 +bjPlayerScore dd 0 +bjDealerCards dd 10 dup(0) +bjDealerCardCount dd 0 +bjDealerScore dd 0 +bjDealerHideHole dd 1 +bjOutcomeMsg db 64 dup(0) + +roulState dd 0 +roulBetType dd 1 +roulBetAmount dd 100 +roulWheelAngle dd 0 +roulBallAngle dd 0 +roulSpinTimer dd 0 +roulWinningNum dd 0 +roulPayout dd 0 +roulOutcomeMsg db 64 dup(0) + +; --- Native 2.5D Coin Flip Game --- +coin3d_bet dd 50 +coin3d_side dd 1 ; 1 = Îð¸ë, 2 = Ðåøêà +coin3d_state dd 0 ; 0 = Idle, 1 = Flipping, 2 = Result +coin3d_timer dd 0 +coin3d_result dd 1 ; 1 = Îð¸ë, 2 = Ðåøêà +coin3d_streak dd 0 +coin3d_win dd 0 + +coinRxAnimTable db 26, 22, 16, 6, 16, 22, 26, 22, 16, 6 + +; --- Native 2.5D Coin Flip --- +textCoinTitle db "* * * Ç Î Ë Î Ò À ß Ì Î Í Å Ò À * * *",0 +textCoinHeads db "ÎШË",0 +textCoinTails db "ÐÅØÊÀ",0 +textCoinStreak db "ÑÅÐÈß: ",0 +textCoinSide1 db "[1] ÎШË",0 +textCoinSide2 db "[2] ÐÅØÊÀ",0 +textCoinFlipping db "ÌÎÍÅÒÀ  ÏÎ˨ÒÅ...",0 +textCoinWin db "ÂÛÈÃÐÛØ: +$",0 +textCoinLose db "ÍÅ ÓÃÀÄÀË!",0 +textCoinKey1 db "1:ÎШË",0 +textCoinKey2 db "2:ÐÅØÊÀ",0 +textCoinKeySpace db "ÏÐÎÁÅË:ÁÐÎÑÎÊ",0 +textCoinStreakFmt db "ÑÅÐÈß: [X] [X] [X] [ ] [ ] x4!",0 + +; --- Native 2.5D Dice Game --- +dice3d_bet dd 50 +dice3d_choice dd 1 ; 1 = ׸ò, 2 = Íå÷åò +dice3d_state dd 0 ; 0 = Idle, 1 = Rolling, 2 = Result +dice3d_timer dd 0 +dice3d_val1 dd 4 +dice3d_val2 dd 6 +dice3d_sum dd 10 +dice3d_win dd 0 + +textDiceTitle db "=== G R A N D C R A P S ===",0 +textDiceSubtitle db "[ PASS LINE ] [ ANY CRAPS ]",0 +textDiceEven db "[1] רÒ",0 +textDiceOdd db "[2] ÍÅ×ÅÒ",0 +textDiceEvenNums db "2 4 6 8 10",0 +textDiceOddNums db "3 5 7 9 11",0 +textDiceSumHdr db "ÑÓÌÌÀ: ",0 +textDicePlus db " + ",0 +textDiceEqual db " = ",0 +textDiceEvenResult db " (רÒ)",0 +textDiceOddResult db " (ÍÅ×ÅÒ)",0 +textDiceRolling db "ÊÎÑÒÈ ËÅÒßÒ ÏÎ ÑÓÊÍÓ...",0 +textDiceWin db "ÂÛÈÃÐÛØ: +$",0 +textDiceWinMult db "! (x2)",0 +textDiceLose db "ÏÐÎÈÃÐÛØ!",0 +textDiceKey1 db "1:רÒ",0 +textDiceKey2 db "2:ÍÅ×ÅÒ",0 +textDiceKeySpace db "ÏÐÎÁÅË:ÁÐÎÑÎÊ",0 + +; --- Native 2.5D Skulls Game --- +skulls3d_bet dd 50 +skulls3d_state dd 0 ; 0 = Idle, 1 = Show ball, 2 = Shuffle, 3 = Pick, 4 = Reveal +skulls3d_timer dd 0 +skulls3d_ballPos dd 1 ; 0, 1, 2 +skulls3d_choice dd 1 ; 0, 1, 2 +skulls3d_win dd 0 +skulls3d_swapPair0 dd 0 +skulls3d_swapPair1 dd 1 +skulls3d_swapPair2 dd 2 + +textSkullsTitle db "+ + + Í À Ï ¨ Ð Ñ Ò Ê È + + +",0 +textSkullsPhase0 db "ÄÅËÀÉ ÑÒÀÂÊÓ È ÆÌÈ [ÏÐÎÁÅË]",0 +textSkullsPhase1 db "ÑÌÎÒÐÈ, ÃÄÅ ÇÎËÎÒÎÉ ØÀÐ...",0 +textSkullsPhase2 db "ÊÐÓ×Ó, ÂÅÐ×Ó, ÇÀÏÓÒÀÒÜ ÕÎ×Ó...",0 +textSkullsPhase3 db "ÃÄÅ ØÀÐ? ÂÛÁÈÐÀÉ: [1], [2] ÈËÈ [3]!",0 +textSkullsWin db "ÂÅÐÍÎ! ÂÛÏËÀÒÀ x3! +$",0 +textSkullsLose db "ÌÈÌÎ! ØÀÐ ÁÛË Â ÄÐÓÃÎÌ ÌÅÑÒÅ!",0 +textSkullsAgain db "[ÏÐÎÁÅË] - ÑÛÃÐÀÒÜ Å٨ ÐÀÇ",0 +textSkullsKey1 db "1:ÊÓÁÎÊ",0 +textSkullsKey2 db "2:ÊÓÁÎÊ",0 +textSkullsKey3 db "3:ÊÓÁÎÊ",0 +textSkullsKeySpace db "ÏÐÎÁÅË",0 + +; --- Shared UI Strings --- +textKeyEsc db "ESC",0 +textBankPrompt db "ÁÀÍÊ: $",0 +textBetPrompt db "ÑÒÀÂÊÀ: $",0 +textBetHint db " [W/S]",0 + +shopMsg db 128 dup(0) +atmMsg db 128 dup(0) + +strWin db "ÏÎÁÅÄÀ! +$",0 +strLose db "ÏÐÎÈÃÐÛØ",0 +strJackpot db "ÄÆÅÊÏÎÒ! +$",0 +strPush db "ÍÈ×Üß (PUSH)",0 +strDealerBust db "ÄÈËÅÐ ÏÅÐÅÁÐÀË! ÏÎÁÅÄÀ! +$",0 +strPlayerBust db "ÏÅÐÅÁÎÐ (>21)! ÏÐÎÈÃÐÛØ",0 + +sym7 db " 777 ",0 +symBar db " BAR ",0 +symBell db " BELL",0 +symCherry db "CHERRY",0 +symClover db "CLOVER",0 +symGem db " GEM ",0 +symCrown db "CROWN",0 + +cardRankStr db "A ",0,"2 ",0,"3 ",0,"4 ",0,"5 ",0,"6 ",0,"7 ",0,"8 ",0,"9 ",0,"10",0,"J ",0,"Q ",0,"K ",0 + +.data? +ALIGN 4 +screenBuffer dd SCREEN_SIZE dup(?) +ALIGN 4 +zBuffer dd SCREEN_W dup(?) +ALIGN 4 +texturesBuffer dd (48 * 128 * 128) dup(?) + +hudNumBuffer db 32 dup(?) + +.code + +; --- 3D Window Procedure --- +Casino3DWndProc PROC hwnd:DWORD, uMsg:DWORD, wParam:DWORD, lParam:DWORD + invoke WindowEvents3D, hwnd, uMsg, wParam, lParam + ret +Casino3DWndProc ENDP + +; --- Random Generator --- +RandomRange3D PROC maxVal:DWORD + mov eax, rngSeed3D + imul eax, 1103515245 + add eax, 12345 + mov rngSeed3D, eax + shr eax, 16 + and eax, 7FFFh + xor edx, edx + div maxVal + mov eax, edx + ret +RandomRange3D ENDP + +; --- Copy String --- +CopyString3D PROC src:DWORD, dst:DWORD + push esi + push edi + mov esi, src + mov edi, dst +@@: + mov al, [esi] + mov [edi], al + test al, al + jz @F + inc esi + inc edi + jmp @B +@@: + pop edi + pop esi + ret +CopyString3D ENDP + +; --- Format Number to Decimal String --- +FormatNumber PROC num:DWORD, buf:DWORD + push ebx + push esi + push edi + mov eax, num + mov edi, buf + test eax, eax + jns fn_pos + mov BYTE PTR [edi], '-' + inc edi + neg eax +fn_pos: + mov ebx, 10 + push 0 +fn_div: + xor edx, edx + div ebx + add dl, '0' + push edx + test eax, eax + jnz fn_div +fn_pop: + pop eax + test al, al + jz fn_done + mov [edi], al + inc edi + jmp fn_pop +fn_done: + mov BYTE PTR [edi], 0 + pop edi + pop esi + pop ebx + ret +FormatNumber ENDP + +; --- Fast 2D Drawing Primitives --- +DrawBox PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD + +DrawPixel PROC x:DWORD, y:DWORD, color:DWORD + invoke DrawBox, x, y, 1, 1, color + ret +DrawPixel ENDP + +DrawBox PROC x:DWORD, y:DWORD, w:DWORD, h:DWORD, color:DWORD + shl x, 1 + shl y, 1 + shl w, 1 + shl h, 1 + push ebx + push esi + push edi + mov edi, y +box_row_loop: + mov eax, y + add eax, h + cmp edi, eax + jge box_done + cmp edi, 0 + jl next_box_row + cmp edi, SCREEN_H + jge box_done + + mov esi, x +box_col_loop: + mov eax, x + add eax, w + cmp esi, eax + jge next_box_row + cmp esi, 0 + jl next_box_col + cmp esi, SCREEN_W + jge next_box_row + + mov ecx, edi + imul ecx, SCREEN_W + add ecx, esi + mov edx, color + mov [screenBuffer + ecx*4], edx + +next_box_col: + inc esi + jmp box_col_loop + +next_box_row: + inc edi + jmp box_row_loop + +box_done: + pop edi + pop esi + pop ebx + ret +DrawBox ENDP + +DrawBoxBorder PROC uses ebx x:DWORD, y:DWORD, w:DWORD, h:DWORD, fillColor:DWORD, borderColor:DWORD, bWidth:DWORD + invoke DrawBox, x, y, w, h, borderColor + mov eax, x + add eax, bWidth + mov edx, y + add edx, bWidth + mov ecx, w + sub ecx, bWidth + sub ecx, bWidth + mov ebx, h + sub ebx, bWidth + sub ebx, bWidth + invoke DrawBox, eax, edx, ecx, ebx, fillColor + ret +DrawBoxBorder ENDP + +DrawCircle PROC cxVal:DWORD, cyVal:DWORD, radius:DWORD, color:DWORD + push ebx + push esi + push edi + mov eax, radius + neg eax + mov edi, eax +circ_y: + cmp edi, radius + jg circ_done + mov eax, radius + neg eax + mov esi, eax +circ_x: + cmp esi, radius + jg next_circ_y + + mov eax, esi + imul eax, eax + mov ebx, edi + imul ebx, ebx + add eax, ebx + mov edx, radius + imul edx, edx + cmp eax, edx + jg next_circ_x + + mov eax, cxVal + add eax, esi + mov ecx, cyVal + add ecx, edi + invoke DrawPixel, eax, ecx, color + +next_circ_x: + inc esi + jmp circ_x +next_circ_y: + inc edi + jmp circ_y +circ_done: + pop edi + pop esi + pop ebx + ret +DrawCircle ENDP + +DrawChar8x8 PROC uses ebx esi edi x:DWORD, y:DWORD, chVal:DWORD, color:DWORD + local column:DWORD + mov eax, chVal + and eax, 255 + lea esi, [font8x8 + eax*8] + xor edi, edi +glyph_row: + movzx ebx, BYTE PTR [esi+edi] + mov column, 0 +glyph_col: + test ebx, 80h + jz glyph_next + mov eax, x + add eax, column + mov edx, y + add edx, edi + invoke DrawPixel, eax, edx, color +glyph_next: + shl ebx, 1 + inc column + cmp column, 8 + jl glyph_col + inc edi + cmp edi, 8 + jl glyph_row + ret +DrawChar8x8 ENDP + +DrawString8x8 PROC x:DWORD, y:DWORD, strPtr:DWORD, color:DWORD + push ebx + push esi + mov esi, strPtr + mov ebx, x +str_loop: + movzx eax, BYTE PTR [esi] + test al, al + jz str_done + invoke DrawChar8x8, ebx, y, eax, color + add ebx, 8 + inc esi + jmp str_loop +str_done: + pop esi + pop ebx + ret +DrawString8x8 ENDP + +; --- True 3D Perspective Floor & Ceiling Rendering --- +RenderCeilingAndFloor PROC uses ebx esi edi + local floorRow:DWORD + local pDist:DWORD + local fStepX:DWORD + local fStepY:DWORD + local fX:DWORD + local fY:DWORD + local shade:DWORD + local cShade:DWORD + + ; Horizon line: row 120 + mov edi, HALF_H +floor_scanlines: + cmp edi, SCREEN_H + jge floor_done + mov floorRow, edi + + ; Distance = (HALF_H * FP_1) / (y - HALF_H) + mov eax, edi + sub eax, HALF_H + inc eax + mov ecx, eax + mov eax, HALF_H * FP_1 + cdq + idiv ecx + mov pDist, eax + + ; Distance shading (closer is brighter, far horizon is dark) + mov edx, pDist + shr edx, 13 + mov eax, 255 + sub eax, edx + cmp eax, 35 + jge @F + mov eax, 35 +@@: + mov shade, eax + mov edx, eax + sub edx, 25 + cmp edx, 20 + jge @F + mov edx, 20 +@@: + mov cShade, edx + + ; Step along scanline: (2 * playerPlane) * pDist / SCREEN_W + mov eax, playerPlaneX + shl eax, 1 + imul pDist + shrd eax, edx, 16 + cdq + mov ecx, SCREEN_W + idiv ecx + mov fStepX, eax + + mov eax, playerPlaneY + shl eax, 1 + imul pDist + shrd eax, edx, 16 + cdq + mov ecx, SCREEN_W + idiv ecx + mov fStepY, eax + + ; Starting floor coordinates at x=0: + ; player + pDist * (playerDir - playerPlane) + mov eax, playerDirX + sub eax, playerPlaneX + imul pDist + shrd eax, edx, 16 + add eax, playerX + mov fX, eax + + mov eax, playerDirY + sub eax, playerPlaneY + imul pDist + shrd eax, edx, 16 + add eax, playerY + mov fY, eax + + ; Fill scanline for floor (y) and ceiling (SCREEN_H - 1 - y) + xor esi, esi +col_floor_loop: + cmp esi, SCREEN_W + jge next_floor_row + + ; Carpet Texture (Slot 3: 3 * 4096 * 4 = 49152 bytes) + mov eax, fX + shr eax, 9 + and eax, 127 + mov edx, fY + shr edx, 9 + and edx, 127 + shl edx, 7 + add edx, eax + + mov eax, [texturesBuffer + (3 * 128 * 128 * 4) + edx*4] + + ; Shade Floor RGB + mov ebx, shade + movzx ecx, al + imul ecx, ebx + shr ecx, 8 + push ecx + + movzx ecx, ah + imul ecx, ebx + shr ecx, 8 + shl ecx, 8 + + shr eax, 16 + movzx eax, al + imul eax, ebx + shr eax, 8 + shl eax, 16 + or eax, ecx + pop ecx + or eax, ecx + + ; Store to Floor pixel + mov ecx, floorRow + imul ecx, SCREEN_W + add ecx, esi + mov [screenBuffer + ecx*4], eax + + ; Ceiling Spotlight Texture (Slot 5: 5 * 4096 * 4 = 81920 bytes) + mov eax, [texturesBuffer + (5 * 128 * 128 * 4) + edx*4] + mov ebx, cShade + movzx ecx, al + imul ecx, ebx + shr ecx, 8 + push ecx + + movzx ecx, ah + imul ecx, ebx + shr ecx, 8 + shl ecx, 8 + + shr eax, 16 + movzx eax, al + imul eax, ebx + shr eax, 8 + shl eax, 16 + or eax, ecx + pop ecx + or eax, ecx + + ; Store to Ceiling pixel: (SCREEN_H - 1 - floorRow) + mov ecx, SCREEN_H - 1 + sub ecx, floorRow + imul ecx, SCREEN_W + add ecx, esi + mov [screenBuffer + ecx*4], eax + + mov eax, fStepX + add fX, eax + mov eax, fStepY + add fY, eax + inc esi + jmp col_floor_loop + +next_floor_row: + inc edi + jmp floor_scanlines + +floor_done: + ret +RenderCeilingAndFloor ENDP + +; --- DDA Raycasting Walls --- +RenderWalls PROC + local col:DWORD + local camX:DWORD + local rayDirX:DWORD + local rayDirY:DWORD + local mapX:DWORD + local mapY:DWORD + local deltaDistX:DWORD + local deltaDistY:DWORD + local stepX:DWORD + local stepY:DWORD + local sideDistX:DWORD + local sideDistY:DWORD + local side:DWORD + local perpWallDist:DWORD + local lineH:DWORD + local drawStart:DWORD + local drawEnd:DWORD + local wallHit:DWORD + local texX:DWORD + local texId:DWORD + local shade:DWORD + + push ebx + push esi + push edi + + mov eax, playerAngle + and eax, 511 + mov ebx, [tableCos + eax*4] + mov playerDirX, ebx + mov ebx, [tableSin + eax*4] + mov playerDirY, ebx + + mov eax, ebx + imul eax, -66 + cdq + mov ecx, 100 + idiv ecx + mov playerPlaneX, eax + + mov eax, playerDirX + imul eax, 66 + cdq + idiv ecx + mov playerPlaneY, eax + + mov col, 0 +col_loop: + cmp col, SCREEN_W + jge walls_done + + mov eax, col + shl eax, 1 + sub eax, SCREEN_W + imul eax, FP_1 + cdq + mov ecx, SCREEN_W + idiv ecx + mov camX, eax + + mov eax, playerPlaneX + imul camX + shrd eax, edx, 16 + add eax, playerDirX + mov rayDirX, eax + + mov eax, playerPlaneY + imul camX + shrd eax, edx, 16 + add eax, playerDirY + mov rayDirY, eax + + mov eax, playerX + sar eax, 16 + mov mapX, eax + mov eax, playerY + sar eax, 16 + mov mapY, eax + + mov eax, rayDirX + test eax, eax + jnz calc_delta_x + mov deltaDistX, 7FFFFFFFh + jmp calc_delta_y +calc_delta_x: + test eax, eax + jns @F + neg eax +@@: + mov ebx, eax + cmp ebx, 4 + jbe delta_x_clamp + xor eax, eax + mov edx, 1 + div ebx + mov deltaDistX, eax + jmp calc_delta_y +delta_x_clamp: + mov deltaDistX, 7FFFFFFFh + +calc_delta_y: + mov eax, rayDirY + test eax, eax + jnz calc_delta_y_ok + mov deltaDistY, 7FFFFFFFh + jmp check_step +calc_delta_y_ok: + test eax, eax + jns @F + neg eax +@@: + mov ebx, eax + cmp ebx, 4 + jbe delta_y_clamp + xor eax, eax + mov edx, 1 + div ebx + mov deltaDistY, eax + jmp check_step +delta_y_clamp: + mov deltaDistY, 7FFFFFFFh + +check_step: + cmp rayDirX, 0 + jge step_x_pos + mov stepX, -1 + mov eax, playerX + mov edx, mapX + shl edx, 16 + sub eax, edx + imul deltaDistX + shrd eax, edx, 16 + mov sideDistX, eax + jmp check_step_y +step_x_pos: + mov stepX, 1 + mov eax, mapX + inc eax + shl eax, 16 + sub eax, playerX + imul deltaDistX + shrd eax, edx, 16 + mov sideDistX, eax + +check_step_y: + cmp rayDirY, 0 + jge step_y_pos + mov stepY, -1 + mov eax, playerY + mov edx, mapY + shl edx, 16 + sub eax, edx + imul deltaDistY + shrd eax, edx, 16 + mov sideDistY, eax + jmp dda_start +step_y_pos: + mov stepY, 1 + mov eax, mapY + inc eax + shl eax, 16 + sub eax, playerY + imul deltaDistY + shrd eax, edx, 16 + mov sideDistY, eax + +dda_start: + xor ecx, ecx +dda_step_loop: + inc ecx + cmp ecx, 64 + jge hit_wall + + mov eax, sideDistX + cmp eax, sideDistY + jge step_in_y + + mov eax, deltaDistX + add sideDistX, eax + mov eax, stepX + add mapX, eax + mov side, 0 + jmp check_tile + +step_in_y: + mov eax, deltaDistY + add sideDistY, eax + mov eax, stepY + add mapY, eax + mov side, 1 + +check_tile: + cmp mapX, 0 + jl hit_wall + cmp mapX, MAP_WIDTH + jge hit_wall + cmp mapY, 0 + jl hit_wall + cmp mapY, MAP_HEIGHT + jge hit_wall + + mov eax, mapY + shl eax, 5 + add eax, mapX + movzx eax, BYTE PTR [casinoMap + eax] + test eax, eax + jnz hit_wall + jmp dda_step_loop + +hit_wall: + cmp side, 0 + jne perp_y + mov eax, sideDistX + sub eax, deltaDistX + mov perpWallDist, eax + jmp perp_done +perp_y: + mov eax, sideDistY + sub eax, deltaDistY + mov perpWallDist, eax + +perp_done: + cmp perpWallDist, 2048 + jge @F + mov perpWallDist, 2048 +@@: + mov eax, col + mov edx, perpWallDist + mov [zBuffer + eax*4], edx + + ; High casino ceiling: lineH = (SCREEN_H * FP_1 * 180 / 240) / perpWallDist + mov eax, SCREEN_H + imul eax, FP_1 + cdq + idiv perpWallDist + mov lineH, eax + + mov eax, lineH + shr eax, 1 + mov ecx, HALF_H + sub ecx, eax + mov drawStart, ecx + + mov eax, lineH + shr eax, 1 + mov ecx, HALF_H + add ecx, eax + mov drawEnd, ecx + + cmp side, 0 + jne hit_side_y + mov eax, perpWallDist + imul rayDirY + shrd eax, edx, 16 + add eax, playerY + mov wallHit, eax + jmp calc_tex_x +hit_side_y: + mov eax, perpWallDist + imul rayDirX + shrd eax, edx, 16 + add eax, playerX + mov wallHit, eax + +calc_tex_x: + ; MASK WITH 0FFFFh to prevent texture scrambling! + mov eax, wallHit + and eax, 0FFFFh + shr eax, 9 + and eax, 127 + mov texX, eax + + cmp side, 0 + jne @F + cmp rayDirX, 0 + jle @F + mov eax, 127 + sub eax, texX + mov texX, eax +@@: + cmp side, 1 + jne select_tex + cmp rayDirY, 0 + jge select_tex + mov eax, 127 + sub eax, texX + mov texX, eax + +select_tex: + mov eax, mapY + shl eax, 5 + add eax, mapX + movzx eax, BYTE PTR [casinoMap + eax] + mov texId, eax + cmp texId, 0 + jne @F + mov texId, 1 +@@: + + mov eax, perpWallDist + shr eax, 13 + mov edx, 256 + sub edx, eax + cmp edx, 75 + jge @F + mov edx, 75 +@@: + cmp side, 1 + jne @F + imul edx, 3 + shr edx, 2 +@@: + mov shade, edx + + cmp drawStart, 0 + jge @F + mov drawStart, 0 +@@: + cmp drawEnd, SCREEN_H + jl @F + mov drawEnd, SCREEN_H - 1 +@@: + + mov eax, lineH + cmp eax, 1 + jge @F + mov eax, 1 + mov lineH, eax +@@: + + mov eax, 128 * FP_1 + cdq + idiv lineH + mov esi, eax ; stepY + + mov eax, lineH + shr eax, 1 + add eax, drawStart + sub eax, HALF_H + imul eax, esi + mov edi, eax ; texPos + + mov ecx, drawStart +draw_stripe_loop: + cmp ecx, drawEnd + jg next_col + + mov eax, edi + shr eax, 16 + and eax, 127 + shl eax, 7 + add eax, texX + + mov edx, texId + shl edx, 14 + add eax, edx + mov eax, [texturesBuffer + eax*4] + + ; Shade wall pixel + mov ebx, shade + movzx edx, al + imul edx, ebx + shr edx, 8 + push edx + + movzx edx, ah + imul edx, ebx + shr edx, 8 + shl edx, 8 + + shr eax, 16 + movzx eax, al + imul eax, ebx + shr eax, 8 + shl eax, 16 + or eax, edx + pop edx + or eax, edx + + mov edx, ecx + imul edx, SCREEN_W + add edx, col + mov [screenBuffer + edx*4], eax + + add edi, esi + inc ecx + jmp draw_stripe_loop + +next_col: + inc col + jmp col_loop + +walls_done: + pop edi + pop esi + pop ebx + ret +RenderWalls ENDP + +; --- Render 3D Billboard Sprites --- +RenderSprites PROC + local sprIdx:DWORD + local relX:DWORD + local relY:DWORD + local invDet:DWORD + local transX:DWORD + local transY:DWORD + local sprScreenX:DWORD + local sprH:DWORD + local sprW:DWORD + local drawStartY:DWORD + local drawEndY:DWORD + local drawStartX:DWORD + local drawEndX:DWORD + local stripe:DWORD + local texX:DWORD + local texY:DWORD + local shade:DWORD + local texSlot:DWORD + + push ebx + push esi + push edi + + xor esi, esi +calc_dist_loop: + cmp esi, NUM_SPRITES + jge sort_sprites + mov eax, esi + imul eax, SIZEOF SpriteObject + + mov edx, [casinoSprites + eax].posX + sub edx, playerX + sar edx, 8 + imul edx, edx + mov ebx, edx + + mov edx, [casinoSprites + eax].posY + sub edx, playerY + sar edx, 8 + imul edx, edx + add ebx, edx + + mov [casinoSprites + eax].distSq, ebx + mov [sortedSprites + esi*4], esi + inc esi + jmp calc_dist_loop + +sort_sprites: + xor esi, esi +sort_outer: + cmp esi, NUM_SPRITES - 1 + jge render_sorted_sprites + mov edi, esi + inc edi +sort_inner: + cmp edi, NUM_SPRITES + jge next_sort_outer + + mov eax, [sortedSprites + esi*4] + imul eax, SIZEOF SpriteObject + mov eax, [casinoSprites + eax].distSq + + mov ebx, [sortedSprites + edi*4] + imul ebx, SIZEOF SpriteObject + mov ebx, [casinoSprites + ebx].distSq + + cmp eax, ebx + jge @F + mov ecx, [sortedSprites + esi*4] + mov edx, [sortedSprites + edi*4] + mov [sortedSprites + esi*4], edx + mov [sortedSprites + edi*4], ecx +@@: + inc edi + jmp sort_inner +next_sort_outer: + inc esi + jmp sort_outer + +render_sorted_sprites: + xor esi, esi +draw_spr_loop: + cmp esi, NUM_SPRITES + jge sprites_rendered + + mov eax, [sortedSprites + esi*4] + mov sprIdx, eax + imul eax, SIZEOF SpriteObject + + ; Sample animation by elapsed time. Pausing freezes the clock. + push eax + mov ecx, [casinoSprites + eax].animSpeed + cmp ecx, 0 + jg @F + mov ecx, 1 +@@: + imul ecx, 40 + mov eax, animationClock3D + xor edx, edx + div ecx + pop ebx + mov ecx, [casinoSprites + ebx].frameCount + cmp ecx, 0 + jg @F + mov ecx, 1 +@@: + xor edx, edx + div ecx + mov [casinoSprites + ebx].curFrame, edx + mov eax, ebx + + cmp [casinoSprites + eax].distSq, 16 + jle next_spr + + mov edx, [casinoSprites + eax].posX + sub edx, playerX + mov relX, edx + + mov edx, [casinoSprites + eax].posY + sub edx, playerY + mov relY, edx + + mov eax, playerPlaneX + imul playerDirY + shrd eax, edx, 16 + mov ebx, eax + + mov eax, playerDirX + imul playerPlaneY + shrd eax, edx, 16 + sub ebx, eax + + mov eax, ebx + test eax, eax + jns @F + neg eax +@@: + cmp eax, 4 + jbe next_spr + + ; 2^32 needs the full EDX:EAX dividend, not a truncated multiply. + xor eax, eax + mov edx, 1 + idiv ebx + mov invDet, eax + + mov eax, playerDirY + imul relX + shrd eax, edx, 16 + mov ebx, eax + + mov eax, playerDirX + imul relY + shrd eax, edx, 16 + sub ebx, eax + + mov eax, ebx + imul invDet + shrd eax, edx, 16 + mov transX, eax + + mov eax, playerPlaneY + neg eax + imul relX + shrd eax, edx, 16 + mov ebx, eax + + mov eax, playerPlaneX + imul relY + shrd eax, edx, 16 + add ebx, eax + + mov eax, ebx + imul invDet + shrd eax, edx, 16 + mov transY, eax + + cmp transY, 4096 + jle next_spr + + mov eax, transX + imul eax, HALF_W + cdq + idiv transY + add eax, HALF_W + mov sprScreenX, eax + + mov eax, SCREEN_H + imul eax, FP_1 + cdq + idiv transY + test eax, eax + jns @F + neg eax +@@: + cmp eax, 1 + jge @F + jmp next_spr +@@: + cmp eax, SCREEN_H * 2 + jle @F + mov eax, SCREEN_H * 2 +@@: + mov sprH, eax + mov sprW, eax + + mov eax, HALF_H + mov ebx, sprH + shr ebx, 1 + sub eax, ebx + mov drawStartY, eax + add eax, sprH + mov drawEndY, eax + + mov eax, sprScreenX + mov ebx, sprW + shr ebx, 1 + sub eax, ebx + mov drawStartX, eax + add eax, sprW + mov drawEndX, eax + + cmp drawStartY, 0 + jge @F + mov drawStartY, 0 +@@: + cmp drawEndY, SCREEN_H + jl @F + mov drawEndY, SCREEN_H - 1 +@@: + + mov eax, transY + shr eax, 13 + mov edx, 256 + sub edx, eax + cmp edx, 110 + jge @F + mov edx, 110 +@@: + mov shade, edx + + mov eax, sprIdx + imul eax, SIZEOF SpriteObject + mov edx, [casinoSprites + eax].baseTexId + add edx, [casinoSprites + eax].curFrame + mov texSlot, edx + + mov eax, drawStartX + mov stripe, eax + +spr_stripe_loop: + mov eax, stripe + cmp eax, drawEndX + jge next_spr + + cmp eax, 0 + jl next_spr_stripe + cmp eax, SCREEN_W + jge next_spr + + mov edx, transY + cmp edx, [zBuffer + eax*4] + jge next_spr_stripe + + mov eax, stripe + sub eax, sprScreenX + mov ebx, sprW + shr ebx, 1 + add eax, ebx + shl eax, 7 + cdq + idiv sprW + cmp eax, 0 + jl next_spr_stripe + cmp eax, 128 + jge next_spr_stripe + mov texX, eax + + mov edi, drawStartY +spr_pix_y_loop: + cmp edi, drawEndY + jg next_spr_stripe + + mov eax, edi + sub eax, HALF_H + mov ebx, sprH + shr ebx, 1 + add eax, ebx + shl eax, 7 + cdq + idiv sprH + cmp eax, 0 + jl next_spr_y + cmp eax, 128 + jge next_spr_y + mov texY, eax + + shl eax, 7 + add eax, texX + mov edx, texSlot + shl edx, 14 + add eax, edx + mov eax, [texturesBuffer + eax*4] + + ; Chromakey magenta filter + cmp eax, CHROMA_KEY + je next_spr_y +do_draw_sprite_pix: + mov ebx, shade + movzx edx, al + imul edx, ebx + shr edx, 8 + push edx + + movzx edx, ah + imul edx, ebx + shr edx, 8 + shl edx, 8 + + shr eax, 16 + movzx eax, al + imul eax, ebx + shr eax, 8 + shl eax, 16 + or eax, edx + pop edx + or eax, edx + + mov ecx, edi + imul ecx, SCREEN_W + add ecx, stripe + mov [screenBuffer + ecx*4], eax + +next_spr_y: + inc edi + jmp spr_pix_y_loop + +next_spr_stripe: + inc stripe + jmp spr_stripe_loop + +next_spr: + inc esi + jmp draw_spr_loop + +sprites_rendered: + pop edi + pop esi + pop ebx + ret +RenderSprites ENDP + +; --- HUD & Minimap Radar --- +RenderHUD PROC uses ebx esi edi + invoke DrawBox, 0, 0, 320, 16, 0014191Dh + invoke DrawString8x8, 8, 4, OFFSET textBank3D, 00D8BC6Ah + invoke FormatNumber, bankroll, OFFSET hudNumBuffer + invoke DrawString8x8, 64, 4, OFFSET hudNumBuffer, 00FFFFFFh + invoke DrawString8x8, 176, 4, OFFSET textWindowKeys3D, 00A8B6BBh + invoke DrawBox, 0, 226, 320, 14, 0014191Dh + invoke DrawString8x8, 12, 230, OFFSET textWalkKeys3D, 00A8B6BBh + invoke DrawBox, 159, 118, 2, 5, 00E7DFC8h + invoke DrawBox, 157, 120, 6, 1, 00E7DFC8h + cmp interactPromptPtr, 0 + je @F + invoke DrawBoxBorder, 4, 199, 312, 18, 0014191Dh, 00D8BC6Ah, 1 + invoke DrawString8x8, 10, 204, interactPromptPtr, 00F5E2B0h +@@: + cmp flashTimer, 0 + je hud_finished + dec flashTimer + invoke DrawBox, 4, 22, 312, 16, 0014191Dh + invoke DrawString8x8, 10, 26, OFFSET flashMessage, 00FFFFFFh +hud_finished: + ret +RenderHUD ENDP + +RenderMinimap PROC uses ebx esi edi + local radarX:DWORD + local radarY:DWORD + local radarSize:DWORD + + mov radarX, 320 - 48 + mov radarY, 20 + mov radarSize, 44 + + invoke DrawBoxBorder, radarX, radarY, radarSize, radarSize, 00101510h, 0000D7FFh, 1 + + ; Draw Sprites on radar + xor esi, esi +radar_spr_loop: + cmp esi, NUM_SPRITES + jge draw_player_radar + mov eax, esi + imul eax, SIZEOF SpriteObject + mov eax, [casinoSprites + eax].posX + sar eax, 16 + imul eax, radarSize + shr eax, 5 + add eax, radarX + mov ebx, eax + + mov eax, esi + imul eax, SIZEOF SpriteObject + mov eax, [casinoSprites + eax].posY + sar eax, 16 + imul eax, radarSize + shr eax, 5 + add eax, radarY + + invoke DrawPixel, ebx, eax, 00FFAA00h + inc esi + jmp radar_spr_loop + +draw_player_radar: + mov eax, playerX + sar eax, 16 + imul eax, radarSize + shr eax, 5 + add eax, radarX + mov ebx, eax + + mov eax, playerY + sar eax, 16 + imul eax, radarSize + shr eax, 5 + add eax, radarY + + invoke DrawCircle, ebx, eax, 2, 000000FFh + ret +RenderMinimap ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: SLOTS 777 +; ============================================================================== +HandleSlotsInput PROC + cmp slotSpinState, 1 + je slots_input_done + + invoke Pressed3D, 20h ; SPACE -> Spin + test ah, 80h + jz check_bet_adjust + mov eax, bankroll + cmp eax, slotBet + jl @F + sub eax, slotBet + mov bankroll, eax + mov slotSpinState, 1 + mov slotSpinTimer, 0 + mov slotWinAmount, 0 + invoke PlaySoundA, OFFSET soundClick, 0, 1 + jmp slots_input_done +@@: + invoke CopyString3D, OFFSET msgNeedMoney, OFFSET flashMessage + mov flashTimer, 60 + +check_bet_adjust: + invoke Pressed3D, 26h ; UP / W + test ah, 80h + jnz inc_bet + invoke Pressed3D, 57h + test ah, 80h + jz check_bet_down +inc_bet: + cmp slotBet, 500 + jge slots_input_done + cmp slotBet, 100 + jge @F + cmp slotBet, 50 + jge set_100 + mov slotBet, 50 + jmp slots_input_done +set_100: + mov slotBet, 100 + jmp slots_input_done +@@: + mov slotBet, 500 + jmp slots_input_done + +check_bet_down: + invoke Pressed3D, 28h ; DOWN / S + test ah, 80h + jnz dec_bet + invoke Pressed3D, 53h + test ah, 80h + jz slots_input_done +dec_bet: + cmp slotBet, 50 + jle set_10 + cmp slotBet, 100 + jle set_50 + mov slotBet, 100 + jmp slots_input_done +set_50: + mov slotBet, 50 + jmp slots_input_done +set_10: + mov slotBet, 10 + +slots_input_done: + ret +HandleSlotsInput ENDP + +RenderSlotsGame PROC uses ebx esi edi + ; Cabinet Background (Dark Cherry Wood & Gold) + invoke DrawBox, 0, 0, SCREEN_W, SCREEN_H, 00150A10h + invoke DrawBoxBorder, 10, 10, 300, 220, 00251015h, 0000D7FFh, 3 + + ; Illuminated Top Marquee + invoke DrawBoxBorder, 25, 20, 270, 32, 000A0505h, 0000FFFFh, 2 + invoke DrawString8x8, 55, 32, OFFSET textSlots3D, 0000D7FFh + + ; Spinning Animation Logic + cmp slotSpinState, 1 + jne draw_reels + inc slotSpinTimer + + cmp slotSpinTimer, 22 + jge @F + invoke RandomRange3D, 7 + mov slotReel1, eax +@@: + cmp slotSpinTimer, 36 + jge @F + invoke RandomRange3D, 7 + mov slotReel2, eax +@@: + cmp slotSpinTimer, 50 + jge @F + invoke RandomRange3D, 7 + mov slotReel3, eax +@@: + cmp slotSpinTimer, 50 + jl draw_reels + + ; Spin finished! Check outcome! + mov slotSpinState, 0 + mov eax, slotReel1 + cmp eax, slotReel2 + jne check_pairs + cmp eax, slotReel3 + jne check_pairs + + ; 3 Matching! + cmp eax, 0 ; 777! + jne @F + mov eax, slotBet + imul eax, 25 + mov slotWinAmount, eax + add bankroll, eax + invoke PlaySoundA, OFFSET soundJackpot, 0, 1 + jmp draw_reels +@@: + cmp eax, 6 ; CROWN! + jne @F + mov eax, slotBet + imul eax, 50 + mov slotWinAmount, eax + add bankroll, eax + invoke PlaySoundA, OFFSET soundJackpot, 0, 1 + jmp draw_reels +@@: + mov eax, slotBet + imul eax, 10 + mov slotWinAmount, eax + add bankroll, eax + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + jmp draw_reels + +check_pairs: + mov eax, slotReel1 + cmp eax, slotReel2 + je pair_win + mov eax, slotReel2 + cmp eax, slotReel3 + je pair_win + mov eax, slotReel1 + cmp eax, slotReel3 + je pair_win + jmp draw_reels +pair_win: + mov eax, slotBet + imul eax, 2 + mov slotWinAmount, eax + add bankroll, eax + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + +draw_reels: + ; Reels Window + invoke DrawBoxBorder, 30, 62, 260, 95, 000F0F12h, 0000A5FFh, 2 + + ; Reel 1 (45..105) + invoke DrawBoxBorder, 45, 68, 65, 82, 00F0F0F5h, 00505050h, 2 + mov eax, slotReel1 + call DrawReelSymbolAt1 + + ; Reel 2 (128..188) + invoke DrawBoxBorder, 128, 68, 65, 82, 00F0F0F5h, 00505050h, 2 + mov eax, slotReel2 + call DrawReelSymbolAt2 + + ; Reel 3 (210..270) + invoke DrawBoxBorder, 210, 68, 65, 82, 00F0F0F5h, 00505050h, 2 + mov eax, slotReel3 + call DrawReelSymbolAt3 + + ; Bottom Control Panel + invoke DrawBoxBorder, 20, 165, 280, 58, 00151515h, 0000D7FFh, 1 + + invoke DrawString8x8, 28, 172, OFFSET textBank3D, 0000D7FFh + invoke FormatNumber, bankroll, OFFSET hudNumBuffer + invoke DrawString8x8, 110, 172, OFFSET hudNumBuffer, 0000FFFFh + + invoke DrawString8x8, 175, 172, OFFSET textBet3D, 0000D7FFh + invoke FormatNumber, slotBet, OFFSET hudNumBuffer + invoke DrawString8x8, 240, 172, OFFSET hudNumBuffer, 0050FF50h + + cmp slotWinAmount, 0 + jle draw_slot_ctrls + invoke DrawString8x8, 28, 187, OFFSET strWin, 0000FFFFh + invoke FormatNumber, slotWinAmount, OFFSET hudNumBuffer + invoke DrawString8x8, 110, 187, OFFSET hudNumBuffer, 0000FFFFh + +draw_slot_ctrls: + invoke DrawString8x8, 28, 204, OFFSET textSlotsKeys3D, 00A0A0A0h + ret +RenderSlotsGame ENDP + +DrawReelSymbolAt1 PROC + cmp eax, 0 + jne @F + invoke DrawString8x8, 52, 105, OFFSET sym7, 000000FFh + ret +@@: + cmp eax, 1 + jne @F + invoke DrawString8x8, 52, 105, OFFSET symBar, 00FFAA00h + ret +@@: + cmp eax, 2 + jne @F + invoke DrawString8x8, 52, 105, OFFSET symBell, 0000D7FFh + ret +@@: + cmp eax, 3 + jne @F + invoke DrawString8x8, 48, 105, OFFSET symCherry, 000000D0h + ret +@@: + cmp eax, 4 + jne @F + invoke DrawString8x8, 48, 105, OFFSET symClover, 0000A000h + ret +@@: + cmp eax, 5 + jne @F + invoke DrawString8x8, 52, 105, OFFSET symGem, 00FFFF00h + ret +@@: + invoke DrawString8x8, 52, 105, OFFSET symCrown, 0000D7FFh + ret +DrawReelSymbolAt1 ENDP + +DrawReelSymbolAt2 PROC + cmp eax, 0 + jne @F + invoke DrawString8x8, 135, 105, OFFSET sym7, 000000FFh + ret +@@: + cmp eax, 1 + jne @F + invoke DrawString8x8, 135, 105, OFFSET symBar, 00FFAA00h + ret +@@: + cmp eax, 2 + jne @F + invoke DrawString8x8, 135, 105, OFFSET symBell, 0000D7FFh + ret +@@: + cmp eax, 3 + jne @F + invoke DrawString8x8, 131, 105, OFFSET symCherry, 000000D0h + ret +@@: + cmp eax, 4 + jne @F + invoke DrawString8x8, 131, 105, OFFSET symClover, 0000A000h + ret +@@: + cmp eax, 5 + jne @F + invoke DrawString8x8, 135, 105, OFFSET symGem, 00FFFF00h + ret +@@: + invoke DrawString8x8, 135, 105, OFFSET symCrown, 0000D7FFh + ret +DrawReelSymbolAt2 ENDP + +DrawReelSymbolAt3 PROC + cmp eax, 0 + jne @F + invoke DrawString8x8, 218, 105, OFFSET sym7, 000000FFh + ret +@@: + cmp eax, 1 + jne @F + invoke DrawString8x8, 218, 105, OFFSET symBar, 00FFAA00h + ret +@@: + cmp eax, 2 + jne @F + invoke DrawString8x8, 218, 105, OFFSET symBell, 0000D7FFh + ret +@@: + cmp eax, 3 + jne @F + invoke DrawString8x8, 214, 105, OFFSET symCherry, 000000D0h + ret +@@: + cmp eax, 4 + jne @F + invoke DrawString8x8, 214, 105, OFFSET symClover, 0000A000h + ret +@@: + cmp eax, 5 + jne @F + invoke DrawString8x8, 218, 105, OFFSET symGem, 00FFFF00h + ret +@@: + invoke DrawString8x8, 218, 105, OFFSET symCrown, 0000D7FFh + ret +DrawReelSymbolAt3 ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: BLACKJACK (21) +; ============================================================================== +HandleBlackjackInput PROC uses ebx + cmp bjState, 0 ; Need Deal + jne check_bj_player_turn + invoke Pressed3D, 20h ; SPACE -> Deal + test ah, 80h + jz check_bj_bet_change + mov eax, bankroll + cmp eax, bjBet + jl bj_need_cash + sub eax, bjBet + mov bankroll, eax + + ; Deal 2 cards to player, 2 cards to dealer + mov bjPlayerCardCount, 0 + mov bjDealerCardCount, 0 + mov bjDealerHideHole, 1 + + ; Player Card 1 + invoke RandomRange3D, 13 + inc eax + mov ebx, bjPlayerCardCount + mov [bjPlayerCards + ebx*4], eax + inc bjPlayerCardCount + + ; Dealer Card 1 + invoke RandomRange3D, 13 + inc eax + mov ebx, bjDealerCardCount + mov [bjDealerCards + ebx*4], eax + inc bjDealerCardCount + + ; Player Card 2 + invoke RandomRange3D, 13 + inc eax + mov ebx, bjPlayerCardCount + mov [bjPlayerCards + ebx*4], eax + inc bjPlayerCardCount + + ; Dealer Card 2 (Hole card) + invoke RandomRange3D, 13 + inc eax + mov ebx, bjDealerCardCount + mov [bjDealerCards + ebx*4], eax + inc bjDealerCardCount + + invoke PlaySoundA, OFFSET soundCards, 0, 1 + + ; Calc Player Score + call CalcPlayerBJScore + cmp bjPlayerScore, 21 + jne set_bj_turn + ; Instant Blackjack! + mov bjDealerHideHole, 0 + mov eax, bjBet + imul eax, 5 + shr eax, 1 + add bankroll, eax + invoke CopyString3D, OFFSET strWin, OFFSET bjOutcomeMsg + invoke PlaySoundA, OFFSET soundJackpot, 0, 1 + mov bjState, 2 + ret +set_bj_turn: + mov bjState, 1 + mov BYTE PTR [bjOutcomeMsg], 0 + ret + +bj_need_cash: + invoke CopyString3D, OFFSET msgNeedMoney, OFFSET flashMessage + mov flashTimer, 60 + ret + +check_bj_player_turn: + cmp bjState, 1 + jne check_bj_round_over + + invoke Pressed3D, 48h ; 'H' -> Hit + test ah, 80h + jz check_bj_stand + invoke RandomRange3D, 13 + inc eax + mov ebx, bjPlayerCardCount + cmp ebx, 8 + jge @F + mov [bjPlayerCards + ebx*4], eax + inc bjPlayerCardCount +@@: + invoke PlaySoundA, OFFSET soundCards, 0, 1 + call CalcPlayerBJScore + cmp bjPlayerScore, 21 + jle bj_input_done + ; Bust! + invoke CopyString3D, OFFSET strPlayerBust, OFFSET bjOutcomeMsg + mov bjDealerHideHole, 0 + mov bjState, 2 + ret + +check_bj_stand: + invoke Pressed3D, 53h ; 'S' -> Stand + test ah, 80h + jz bj_input_done + + ; Dealer Turn + mov bjDealerHideHole, 0 +dealer_loop: + call CalcDealerBJScore + cmp bjDealerScore, 17 + jge dealer_finished + invoke RandomRange3D, 13 + inc eax + mov ebx, bjDealerCardCount + cmp ebx, 8 + jge dealer_finished + mov [bjDealerCards + ebx*4], eax + inc bjDealerCardCount + jmp dealer_loop + +dealer_finished: + cmp bjDealerScore, 21 + jle compare_scores + ; Dealer Bust! + mov eax, bjBet + shl eax, 1 + add bankroll, eax + invoke CopyString3D, OFFSET strDealerBust, OFFSET bjOutcomeMsg + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + mov bjState, 2 + ret + +compare_scores: + mov eax, bjPlayerScore + cmp eax, bjDealerScore + jle check_dealer_won + ; Player Won! + mov eax, bjBet + shl eax, 1 + add bankroll, eax + invoke CopyString3D, OFFSET strWin, OFFSET bjOutcomeMsg + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + mov bjState, 2 + ret +check_dealer_won: + cmp eax, bjDealerScore + jl dealer_wins + ; Push (Tie) + mov eax, bjBet + add bankroll, eax + invoke CopyString3D, OFFSET strPush, OFFSET bjOutcomeMsg + mov bjState, 2 + ret +dealer_wins: + invoke CopyString3D, OFFSET strLose, OFFSET bjOutcomeMsg + mov bjState, 2 + ret + +check_bj_round_over: + invoke Pressed3D, 20h ; SPACE -> Next Hand + test ah, 80h + jz bj_input_done + mov bjState, 0 + ret + +check_bj_bet_change: + invoke Pressed3D, 26h ; UP + test ah, 80h + jz @F + cmp bjBet, 500 + jge bj_input_done + add bjBet, 50 + ret +@@: + invoke Pressed3D, 28h ; DOWN + test ah, 80h + jz bj_input_done + cmp bjBet, 50 + jle bj_input_done + sub bjBet, 50 + +bj_input_done: + ret +HandleBlackjackInput ENDP + +CalcPlayerBJScore PROC uses ebx esi + xor eax, eax + xor ebx, ebx + xor esi, esi +calc_p_loop: + cmp esi, bjPlayerCardCount + jge calc_p_done + mov edx, [bjPlayerCards + esi*4] + cmp edx, 10 + jle @F + mov edx, 10 +@@: + cmp edx, 1 + jne add_p_val + inc ebx ; count Aces + add eax, 11 + jmp next_p_card +add_p_val: + add eax, edx +next_p_card: + inc esi + jmp calc_p_loop +calc_p_done: + ; Soft Ace reduction +reduce_p_ace: + cmp eax, 21 + jle store_p_score + test ebx, ebx + jz store_p_score + sub eax, 10 + dec ebx + jmp reduce_p_ace +store_p_score: + mov bjPlayerScore, eax + ret +CalcPlayerBJScore ENDP + +CalcDealerBJScore PROC uses ebx esi + xor eax, eax + xor ebx, ebx + xor esi, esi +calc_d_loop: + cmp esi, bjDealerCardCount + jge calc_d_done + mov edx, [bjDealerCards + esi*4] + cmp edx, 10 + jle @F + mov edx, 10 +@@: + cmp edx, 1 + jne add_d_val + inc ebx + add eax, 11 + jmp next_d_card +add_d_val: + add eax, edx +next_d_card: + inc esi + jmp calc_d_loop +calc_d_done: +reduce_d_ace: + cmp eax, 21 + jle store_d_score + test ebx, ebx + jz store_d_score + sub eax, 10 + dec ebx + jmp reduce_d_ace +store_d_score: + mov bjDealerScore, eax + ret +CalcDealerBJScore ENDP + +RenderBlackjackGame PROC uses ebx esi edi + ; Emerald Felt Table Background + invoke DrawBox, 0, 0, SCREEN_W, SCREEN_H, 000A3015h + invoke DrawBoxBorder, 10, 10, 300, 220, 000D4018h, 0000D7FFh, 3 + + ; Dealer Area Top + invoke DrawString8x8, 25, 20, OFFSET textBJ3D, 0000D7FFh + invoke DrawString8x8, 25, 35, OFFSET textDealer3D, 00FFFFFFh + invoke FormatNumber, bjDealerScore, OFFSET hudNumBuffer + invoke DrawString8x8, 120, 35, OFFSET hudNumBuffer, 0000FFFFh + + ; Dealer Cards + xor esi, esi +draw_dealer_cards: + cmp esi, bjDealerCardCount + jge draw_player_bj_area + mov eax, esi + imul eax, 45 + add eax, 25 + mov ebx, eax + + cmp esi, 1 + jne draw_dealer_face + cmp bjDealerHideHole, 1 + jne draw_dealer_face + ; Face Down Card + mov eax, selectedBack3D + mov eax, cardBackColors3D[eax*4] + invoke DrawBoxBorder, ebx, 48, 38, 52, eax, 00FFFFFFh, 2 + jmp next_dealer_card_draw + +draw_dealer_face: + invoke DrawBoxBorder, ebx, 48, 38, 52, 00F0F0F5h, 00000000h, 2 + mov eax, [bjDealerCards + esi*4] + dec eax + imul eax, 3 + lea edx, [cardRankStr + eax] + mov eax, ebx + add eax, 8 + invoke DrawString8x8, eax, 68, edx, 00000000h + +next_dealer_card_draw: + inc esi + jmp draw_dealer_cards + +draw_player_bj_area: + ; Player Area Bottom + invoke DrawString8x8, 25, 110, OFFSET textPlayer3D, 00FFFFFFh + invoke FormatNumber, bjPlayerScore, OFFSET hudNumBuffer + invoke DrawString8x8, 120, 110, OFFSET hudNumBuffer, 0050FF50h + + ; Player Cards + xor esi, esi +draw_player_cards: + cmp esi, bjPlayerCardCount + jge draw_bj_footer + mov eax, esi + imul eax, 45 + add eax, 25 + mov ebx, eax + + invoke DrawBoxBorder, ebx, 124, 38, 52, 00F0F0F5h, 00000000h, 2 + mov eax, [bjPlayerCards + esi*4] + dec eax + imul eax, 3 + lea edx, [cardRankStr + eax] + mov eax, ebx + add eax, 8 + invoke DrawString8x8, eax, 144, edx, 00000000h + + inc esi + jmp draw_player_cards + +draw_bj_footer: + ; Footer Status & Controls + invoke DrawBoxBorder, 20, 182, 280, 42, 00102010h, 0000D7FFh, 1 + cmp BYTE PTR [bjOutcomeMsg], 0 + je draw_bj_controls + invoke DrawString8x8, 28, 188, OFFSET bjOutcomeMsg, 0000FFFFh + invoke DrawString8x8, 28, 204, OFFSET textNext3D, 00A0A0A0h + ret + +draw_bj_controls: + invoke DrawString8x8, 28, 188, OFFSET textBJKeys3D, 00FFFFFFh + invoke DrawString8x8, 28, 204, OFFSET textDeal3D, 00A0A0A0h + ret +RenderBlackjackGame ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: ROULETTE +; ============================================================================== +HandleRouletteInput PROC uses ebx + cmp roulState, 1 + je roul_input_done + + invoke Pressed3D, 31h ; '1' -> RED + test ah, 80h + jz @F + mov roulBetType, 1 +@@: + invoke Pressed3D, 32h ; '2' -> BLACK + test ah, 80h + jz @F + mov roulBetType, 2 +@@: + invoke Pressed3D, 33h ; '3' -> ZERO (0) + test ah, 80h + jz @F + mov roulBetType, 3 +@@: + invoke Pressed3D, 34h ; '4' -> EVEN + test ah, 80h + jz @F + mov roulBetType, 4 +@@: + invoke Pressed3D, 35h ; '5' -> ODD + test ah, 80h + jz check_roul_spin + mov roulBetType, 5 + +check_roul_spin: + invoke Pressed3D, 20h ; SPACE -> Spin + test ah, 80h + jz roul_input_done + mov eax, bankroll + cmp eax, roulBetAmount + jl roul_no_cash + sub eax, roulBetAmount + mov bankroll, eax + mov roulState, 1 + mov roulSpinTimer, 50 + mov roulPayout, 0 + invoke PlaySoundA, OFFSET soundRoulette, 0, 1 + ret + +roul_no_cash: + invoke CopyString3D, OFFSET msgNeedMoney, OFFSET flashMessage + mov flashTimer, 60 + +roul_input_done: + ret +HandleRouletteInput ENDP + +RenderRouletteGame PROC uses ebx esi edi + ; Table felt background + invoke DrawBox, 0, 0, SCREEN_W, SCREEN_H, 00151525h + invoke DrawBoxBorder, 10, 10, 300, 220, 00201525h, 0000D7FFh, 3 + + ; 2.5D Rotating Wheel on Left + invoke DrawCircle, 85, 110, 65, 00102550h + invoke DrawCircle, 85, 110, 60, 0000D7FFh + invoke DrawCircle, 85, 110, 52, 00101010h + invoke DrawCircle, 85, 110, 22, 0000D7FFh ; Center brass turret + + ; Spinning Wheel / Ball Logic + cmp roulState, 1 + jne draw_roul_ball + dec roulSpinTimer + add roulWheelAngle, 8 + sub roulBallAngle, 14 + cmp roulSpinTimer, 0 + jg draw_roul_ball + + ; Wheel stopped! Determine result! + mov roulState, 2 + invoke RandomRange3D, 37 + mov roulWinningNum, eax + + ; Check bet + cmp roulBetType, 1 ; RED + jne check_ro_black + call IsNumberRed + test eax, eax + jz ro_lost + mov eax, roulBetAmount + shl eax, 1 + mov roulPayout, eax + add bankroll, eax + invoke CopyString3D, OFFSET strWin, OFFSET roulOutcomeMsg + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + jmp draw_roul_ball + +check_ro_black: + cmp roulBetType, 2 ; BLACK + jne check_ro_zero + cmp roulWinningNum, 0 + je ro_lost + call IsNumberRed + test eax, eax + jnz ro_lost + mov eax, roulBetAmount + shl eax, 1 + mov roulPayout, eax + add bankroll, eax + invoke CopyString3D, OFFSET strWin, OFFSET roulOutcomeMsg + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + jmp draw_roul_ball + +check_ro_zero: + cmp roulBetType, 3 ; ZERO + jne check_ro_even + cmp roulWinningNum, 0 + jne ro_lost + mov eax, roulBetAmount + imul eax, 36 + mov roulPayout, eax + add bankroll, eax + invoke CopyString3D, OFFSET strJackpot, OFFSET roulOutcomeMsg + invoke PlaySoundA, OFFSET soundJackpot, 0, 1 + jmp draw_roul_ball + +check_ro_even: + cmp roulBetType, 4 ; EVEN + jne check_ro_odd + mov eax, roulWinningNum + test eax, eax + jz ro_lost + test al, 1 + jnz ro_lost + mov eax, roulBetAmount + shl eax, 1 + mov roulPayout, eax + add bankroll, eax + invoke CopyString3D, OFFSET strWin, OFFSET roulOutcomeMsg + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + jmp draw_roul_ball + +check_ro_odd: + mov eax, roulWinningNum + test eax, eax + jz ro_lost + test al, 1 + jz ro_lost + mov eax, roulBetAmount + shl eax, 1 + mov roulPayout, eax + add bankroll, eax + invoke CopyString3D, OFFSET strWin, OFFSET roulOutcomeMsg + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + jmp draw_roul_ball + +ro_lost: + invoke CopyString3D, OFFSET strLose, OFFSET roulOutcomeMsg + +draw_roul_ball: + ; Draw White Ball on Rim + mov eax, roulBallAngle + and eax, 511 + mov ebx, [tableCos + eax*4] + imul ebx, 42 + sar ebx, 16 + add ebx, 85 + + mov eax, roulBallAngle + and eax, 511 + mov edx, [tableSin + eax*4] + imul edx, 42 + sar edx, 16 + add edx, 110 + invoke DrawCircle, ebx, edx, 3, 00FFFFFFh + + ; Right Betting Board + invoke DrawBoxBorder, 175, 25, 125, 28, 001010C0h, 00FFFFFFh, 2 ; [1] RED + invoke DrawString8x8, 190, 35, OFFSET textRed3D, 00FFFFFFh + + invoke DrawBoxBorder, 175, 60, 125, 28, 00151515h, 00FFFFFFh, 2 ; [2] BLACK + invoke DrawString8x8, 190, 70, OFFSET textBlack3D, 00FFFFFFh + + invoke DrawBoxBorder, 175, 95, 125, 28, 00106010h, 00FFFFFFh, 2 ; [3] ZERO + invoke DrawString8x8, 190, 105, OFFSET textZero3D, 00FFFFFFh + + invoke DrawBoxBorder, 175, 130, 60, 26, 00302020h, 00FFFFFFh, 1 ; [4] EVEN + invoke DrawString8x8, 185, 139, OFFSET textEven3D, 00FFFFFFh + + invoke DrawBoxBorder, 240, 130, 60, 26, 00302020h, 00FFFFFFh, 1 ; [5] ODD + invoke DrawString8x8, 250, 139, OFFSET textOdd3D, 00FFFFFFh + + ; Highlight Active Bet + cmp roulBetType, 1 + jne @F + invoke DrawBoxBorder, 173, 23, 129, 32, 0, 0000FFFFh, 2 +@@: + cmp roulBetType, 2 + jne @F + invoke DrawBoxBorder, 173, 58, 129, 32, 0, 0000FFFFh, 2 +@@: + cmp roulBetType, 3 + jne @F + invoke DrawBoxBorder, 173, 93, 129, 32, 0, 0000FFFFh, 2 +@@: + cmp roulBetType, 4 + jne @F + invoke DrawBoxBorder, 173, 128, 64, 30, 0, 0000FFFFh, 2 +@@: + cmp roulBetType, 5 + jne draw_ro_footer + invoke DrawBoxBorder, 238, 128, 64, 30, 0, 0000FFFFh, 2 + +draw_ro_footer: + invoke DrawBoxBorder, 20, 180, 280, 42, 00101015h, 0000D7FFh, 1 + + cmp roulState, 2 + jne @F + invoke DrawString8x8, 28, 186, OFFSET textResult3D, 0000D7FFh + invoke FormatNumber, roulWinningNum, OFFSET hudNumBuffer + invoke DrawString8x8, 85, 186, OFFSET hudNumBuffer, 0000FFFFh + invoke DrawString8x8, 130, 186, OFFSET roulOutcomeMsg, 0050FF50h +@@: + invoke DrawString8x8, 28, 202, OFFSET textSpin3D, 00A0A0A0h + ret +RenderRouletteGame ENDP + +IsNumberRed PROC + mov eax, roulWinningNum + cmp eax, 1 + je red_yes + cmp eax, 3 + je red_yes + cmp eax, 5 + je red_yes + cmp eax, 7 + je red_yes + cmp eax, 9 + je red_yes + cmp eax, 12 + je red_yes + cmp eax, 14 + je red_yes + cmp eax, 16 + je red_yes + cmp eax, 18 + je red_yes + cmp eax, 19 + je red_yes + cmp eax, 21 + je red_yes + cmp eax, 23 + je red_yes + cmp eax, 25 + je red_yes + cmp eax, 27 + je red_yes + cmp eax, 30 + je red_yes + cmp eax, 32 + je red_yes + cmp eax, 34 + je red_yes + cmp eax, 36 + je red_yes + xor eax, eax + ret +red_yes: + mov eax, 1 + ret +IsNumberRed ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: BAR & SHOP +; ============================================================================== +HandleShopInput PROC uses ebx esi + xor esi, esi +shop_choice: + inc esi + lea eax, [esi+30h] + invoke Pressed3D, eax + test eax, eax + jnz shop_chosen + cmp esi, 3 + jb shop_choice + ret +shop_chosen: + bt ownedBacks3D, esi + jc shop_equip + mov ebx, 1500 + cmp esi, 1 + jne @F + mov ebx, 1000 +@@: + cmp bankroll, ebx + jb shop_no_money + sub bankroll, ebx + bts ownedBacks3D, esi +shop_equip: + mov selectedBack3D, esi + invoke CopyString3D, OFFSET textBought3D, OFFSET shopMsg + call SaveProgress3D + ret +shop_no_money: + invoke CopyString3D, OFFSET textNoCash3D, OFFSET shopMsg + ret +HandleShopInput ENDP + +RenderShopGame PROC + invoke DrawBox, 0, 0, SCREEN_W, SCREEN_H, 00150A0Ah + invoke DrawBoxBorder, 10, 10, 300, 220, 00251515h, 0000D7FFh, 3 + invoke DrawString8x8, 25, 20, OFFSET textShop3D, 0000D7FFh + + invoke DrawBoxBorder, 20, 40, 280, 32, 001A1010h, 00FFFFFFh, 1 + invoke DrawString8x8, 28, 46, OFFSET textItem1_3D, 0000FFFFh + invoke DrawString8x8, 28, 58, OFFSET textShopHint3D, 00A0A0A0h + + invoke DrawBoxBorder, 20, 80, 280, 32, 001A1010h, 00FFFFFFh, 1 + invoke DrawString8x8, 28, 86, OFFSET textItem2_3D, 0000FFFFh + invoke DrawString8x8, 28, 98, OFFSET textShopHint3D, 00A0A0A0h + + invoke DrawBoxBorder, 20, 120, 280, 32, 001A1010h, 00FFFFFFh, 1 + invoke DrawString8x8, 28, 126, OFFSET textItem3_3D, 0000FFFFh + invoke DrawString8x8, 28, 138, OFFSET textShopHint3D, 00A0A0A0h + + invoke DrawBoxBorder, 20, 165, 280, 55, 00100A0Ah, 0000D7FFh, 1 + invoke DrawString8x8, 28, 172, OFFSET textBank3D, 0000D7FFh + invoke FormatNumber, bankroll, OFFSET hudNumBuffer + invoke DrawString8x8, 110, 172, OFFSET hudNumBuffer, 0000FFFFh + + cmp BYTE PTR [shopMsg], 0 + je @F + invoke DrawString8x8, 28, 188, OFFSET shopMsg, 0050FF50h +@@: + invoke DrawString8x8, 28, 204, OFFSET textBack3D, 00A0A0A0h + ret +RenderShopGame ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: ATM TERMINAL +; ============================================================================== +HandleATMInput PROC + ret +HandleATMInput ENDP + +RenderATMGame PROC + invoke DrawBox, 0, 0, 320, 240, 00172120h + invoke DrawString8x8, 24, 30, OFFSET textATM3D, 00D8BC6Ah + invoke DrawString8x8, 24, 70, OFFSET textBank3D, 00FFFFFFh + invoke FormatNumber, bankroll, OFFSET hudNumBuffer + invoke DrawString8x8, 96, 70, OFFSET hudNumBuffer, 0089DAB2h + invoke DrawString8x8, 24, 115, OFFSET textATMNote3D, 00B7C8C1h + invoke DrawString8x8, 24, 140, OFFSET textATMNote2_3D, 00B7C8C1h + invoke DrawString8x8, 24, 208, OFFSET textBack3D, 00D8BC6Ah + ret +RenderATMGame ENDP + +; ============================================================================== +; ============================================================================== +; SHARED RICH UI PROCEDURES +; ============================================================================== +DrawKeycap3D PROC uses ebx esi edi, x:DWORD, y:DWORD, strPtr:DWORD, isActive:DWORD + LOCAL capW:DWORD + ; Compute string length + mov esi, strPtr + xor ecx, ecx +@@: + mov al, [esi+ecx] + test al, al + jz @F + inc ecx + jmp @B +@@: + shl ecx, 3 ; length * 8 + add ecx, 8 ; padding 8px + mov capW, ecx + + ; Drop shadow + mov eax, x + mov edx, y + add edx, 2 + invoke DrawBox, eax, edx, capW, 13, 0008080Ch + + ; Body & Border + mov eax, 00606870h ; default border + mov edx, 001A1C22h ; default fill + cmp isActive, 0 + je @F + mov eax, 0000FFFFh ; active gold border + mov edx, 001B4B22h ; active dark green fill +@@: + invoke DrawBoxBorder, x, y, capW, 13, edx, eax, 1 + + ; String text + mov eax, 00D0D8E0h + cmp isActive, 0 + je @F + mov eax, 0000FFFFh +@@: + mov edx, x + add edx, 4 + mov ecx, y + add ecx, 3 + invoke DrawString8x8, edx, ecx, strPtr, eax + mov eax, capW + ret +DrawKeycap3D ENDP + +DrawChipStack PROC uses ebx esi edi, x:DWORD, y:DWORD, chipCount:DWORD + xor esi, esi +chip_loop: + cmp esi, chipCount + jge chip_done + mov eax, esi + shl eax, 2 ; esi * 4 + mov edx, y + sub edx, eax ; cy = y - esi*4 + + ; Shadow + mov eax, x + add eax, 2 + mov ecx, edx + add ecx, 5 + invoke DrawBox, eax, ecx, 20, 2, 00041006h + + ; Chip body + invoke DrawBoxBorder, x, edx, 24, 6, 001515B8h, 00FFFFFFh, 1 + + ; White stripe inlays + mov eax, x + add eax, 4 + mov ecx, edx + add ecx, 1 + invoke DrawBox, eax, ecx, 3, 4, 00FFFFFFh + mov eax, x + add eax, 17 + invoke DrawBox, eax, ecx, 3, 4, 00FFFFFFh + + inc esi + jmp chip_loop +chip_done: + ret +DrawChipStack ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: COIN FLIP (ÌÎÍÅÒÊÀ) +; ============================================================================== +DrawDetailedCoin PROC uses ebx esi edi, cxVal:DWORD, cyVal:DWORD, rxVal:DWORD, ryVal:DWORD, outerColor:DWORD, innerColor:DWORD, reliefType:DWORD + LOCAL curDY:DWORD, curDX:DWORD, rxSq:DWORD, rySq:DWORD, rxRySq:DWORD, threshSq:DWORD + cmp rxVal, 0 + jle coin_draw_ret + cmp ryVal, 0 + jle coin_draw_ret + + mov eax, rxVal + imul eax, eax + mov rxSq, eax + + mov eax, ryVal + imul eax, eax + mov rySq, eax + + mov eax, rxSq + imul eax, rySq + mov rxRySq, eax + + mov eax, rxRySq + shr eax, 2 + imul eax, 3 + mov threshSq, eax + + mov eax, ryVal + neg eax + mov curDY, eax + +coin_y_loop: + mov eax, curDY + cmp eax, ryVal + jg check_coin_relief + + mov eax, rxVal + neg eax + mov curDX, eax + +coin_x_loop: + mov eax, curDX + cmp eax, rxVal + jg next_coin_y + + mov eax, curDX + imul eax, eax + imul eax, rySq + mov ebx, curDY + imul ebx, ebx + imul ebx, rxSq + add eax, ebx + cmp eax, rxRySq + jg next_coin_x + + mov ecx, innerColor + cmp eax, threshSq + jb @F + mov ecx, outerColor +@@: + mov eax, cxVal + add eax, curDX + mov edx, cyVal + add edx, curDY + invoke DrawPixel, eax, edx, ecx + +next_coin_x: + inc curDX + jmp coin_x_loop + +next_coin_y: + inc curDY + jmp coin_y_loop + +check_coin_relief: + cmp rxVal, 14 + jl coin_draw_ret + cmp reliefType, 1 + je draw_eagle_relief + cmp reliefType, 2 + je draw_wreath_relief + jmp coin_draw_ret + +draw_eagle_relief: + ; Crown + mov eax, cxVal + sub eax, 3 + mov edx, cyVal + sub edx, 14 + invoke DrawBox, eax, edx, 7, 2, 00007A9Ah + mov eax, cxVal + sub eax, 4 + mov edx, cyVal + sub edx, 12 + invoke DrawBox, eax, edx, 9, 2, 00007A9Ah + + ; Body & Head + mov eax, cxVal + sub eax, 2 + mov edx, cyVal + sub edx, 9 + invoke DrawBox, eax, edx, 5, 12, 00007A9Ah + mov eax, cxVal + dec eax + mov edx, cyVal + sub edx, 8 + invoke DrawBox, eax, edx, 3, 10, 0000D7FFh + + ; Wings + mov eax, cxVal + sub eax, 10 + mov edx, cyVal + sub edx, 8 + invoke DrawBox, eax, edx, 7, 3, 00007A9Ah + mov eax, cxVal + sub eax, 13 + mov edx, cyVal + sub edx, 5 + invoke DrawBox, eax, edx, 10, 3, 00007A9Ah + mov eax, cxVal + sub eax, 11 + mov edx, cyVal + sub edx, 2 + invoke DrawBox, eax, edx, 7, 3, 00007A9Ah + + mov eax, cxVal + add eax, 4 + mov edx, cyVal + sub edx, 8 + invoke DrawBox, eax, edx, 7, 3, 00007A9Ah + mov eax, cxVal + add eax, 4 + mov edx, cyVal + sub edx, 5 + invoke DrawBox, eax, edx, 10, 3, 00007A9Ah + mov eax, cxVal + add eax, 5 + mov edx, cyVal + sub edx, 2 + invoke DrawBox, eax, edx, 7, 3, 00007A9Ah + + ; Tail + mov eax, cxVal + sub eax, 4 + mov edx, cyVal + add edx, 4 + invoke DrawBox, eax, edx, 9, 3, 00007A9Ah + mov eax, cxVal + sub eax, 3 + mov edx, cyVal + add edx, 7 + invoke DrawBox, eax, edx, 7, 3, 00007A9Ah + jmp coin_draw_ret + +draw_wreath_relief: + ; Roman numeral 'I' + mov eax, cxVal + sub eax, 5 + mov edx, cyVal + sub edx, 10 + invoke DrawBox, eax, edx, 11, 3, 00007A9Ah + mov eax, cxVal + sub eax, 2 + mov edx, cyVal + sub edx, 7 + invoke DrawBox, eax, edx, 5, 14, 00007A9Ah + mov eax, cxVal + dec eax + mov edx, cyVal + sub edx, 6 + invoke DrawBox, eax, edx, 3, 12, 0000D7FFh + mov eax, cxVal + sub eax, 6 + mov edx, cyVal + add edx, 7 + invoke DrawBox, eax, edx, 13, 3, 00007A9Ah + + ; Laurel dots left & right + mov eax, cxVal + sub eax, 12 + mov edx, cyVal + sub edx, 10 + invoke DrawBox, eax, edx, 2, 2, 00007A9Ah + mov eax, cxVal + add eax, 11 + mov edx, cyVal + sub edx, 10 + invoke DrawBox, eax, edx, 2, 2, 00007A9Ah + + mov eax, cxVal + sub eax, 12 + mov edx, cyVal + sub edx, 5 + invoke DrawBox, eax, edx, 2, 2, 00007A9Ah + mov eax, cxVal + add eax, 11 + mov edx, cyVal + sub edx, 5 + invoke DrawBox, eax, edx, 2, 2, 00007A9Ah + + mov eax, cxVal + sub eax, 12 + mov edx, cyVal + invoke DrawBox, eax, edx, 2, 2, 00007A9Ah + mov eax, cxVal + add eax, 11 + mov edx, cyVal + invoke DrawBox, eax, edx, 2, 2, 00007A9Ah + + mov eax, cxVal + sub eax, 12 + mov edx, cyVal + add edx, 5 + invoke DrawBox, eax, edx, 2, 2, 00007A9Ah + mov eax, cxVal + add eax, 11 + mov edx, cyVal + add edx, 5 + invoke DrawBox, eax, edx, 2, 2, 00007A9Ah + +coin_draw_ret: + ret +DrawDetailedCoin ENDP + +InitCoinGame PROC + mov coin3d_state, 0 + mov coin3d_timer, 0 + mov coin3d_win, 0 + cmp coin3d_bet, 10 + jge @F + mov coin3d_bet, 50 +@@: + ret +InitCoinGame ENDP + +HandleCoinInput PROC + cmp coin3d_state, 1 + je coin_input_done + + invoke Pressed3D, 20h ; SPACE -> Flip! + test eax, eax + jz check_coin_side + mov eax, bankroll + cmp eax, coin3d_bet + jl coin_no_cash + sub eax, coin3d_bet + mov bankroll, eax + mov coin3d_state, 1 + mov coin3d_timer, 0 + mov coin3d_win, 0 + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + jmp coin_input_done + +coin_no_cash: + invoke CopyString3D, OFFSET msgNeedMoney, OFFSET flashMessage + mov flashTimer, 60 + invoke PlaySoundA, OFFSET soundClick, 0, 1 + jmp coin_input_done + +check_coin_side: + invoke Pressed3D, 31h ; '1' + test eax, eax + jz @F + mov coin3d_side, 1 + invoke PlaySoundA, OFFSET soundClick, 0, 1 +@@: + invoke Pressed3D, 32h ; '2' + test eax, eax + jz check_coin_bet_adjust + mov coin3d_side, 2 + invoke PlaySoundA, OFFSET soundClick, 0, 1 + +check_coin_bet_adjust: + invoke Pressed3D, 26h ; UP + test eax, eax + jnz coin_inc_bet + invoke Pressed3D, 57h ; W + test eax, eax + jz check_coin_bet_down +coin_inc_bet: + invoke PlaySoundA, OFFSET soundClick, 0, 1 + cmp coin3d_bet, 500 + jge coin_input_done + cmp coin3d_bet, 250 + jge coin_set_500 + cmp coin3d_bet, 100 + jge coin_set_250 + cmp coin3d_bet, 50 + jge coin_set_100 + cmp coin3d_bet, 25 + jge coin_set_50 + jmp coin_set_25 +coin_set_500: + mov coin3d_bet, 500 + jmp coin_input_done +coin_set_250: + mov coin3d_bet, 250 + jmp coin_input_done +coin_set_100: + mov coin3d_bet, 100 + jmp coin_input_done +coin_set_50: + mov coin3d_bet, 50 + jmp coin_input_done +coin_set_25: + mov coin3d_bet, 25 + jmp coin_input_done + +check_coin_bet_down: + invoke Pressed3D, 28h ; DOWN + test eax, eax + jnz coin_dec_bet + invoke Pressed3D, 53h ; S + test eax, eax + jz coin_input_done +coin_dec_bet: + invoke PlaySoundA, OFFSET soundClick, 0, 1 + cmp coin3d_bet, 25 + jle coin_set_10 + cmp coin3d_bet, 50 + jle coin_set_25 + cmp coin3d_bet, 100 + jle coin_set_50 + cmp coin3d_bet, 250 + jle coin_set_100 + mov coin3d_bet, 250 + jmp coin_input_done +coin_set_10: + mov coin3d_bet, 10 + +coin_input_done: + ret +HandleCoinInput ENDP + +RenderCoinGame PROC uses ebx esi edi + LOCAL cyVal:DWORD, rxVal:DWORD, curX:DWORD + + ; Cabinet Bezel (Mahogany wood & leather) + invoke DrawBox, 0, 0, 320, 240, 00060914h + invoke DrawBoxBorder, 6, 6, 308, 228, 000F1522h, 001B2E48h, 3 + + ; Corner Brass Rivets + invoke DrawBox, 12, 12, 3, 3, 0000D7FFh + invoke DrawPixel, 13, 13, 00FFFFFFh + invoke DrawBox, 306, 12, 3, 3, 0000D7FFh + invoke DrawPixel, 307, 13, 00FFFFFFh + invoke DrawBox, 12, 226, 3, 3, 0000D7FFh + invoke DrawPixel, 13, 227, 00FFFFFFh + invoke DrawBox, 306, 226, 3, 3, 0000D7FFh + invoke DrawPixel, 307, 227, 00FFFFFFh + + ; Illuminated Marquee Header + invoke DrawBoxBorder, 24, 12, 272, 26, 000A101Ch, 0000D7FFh, 2 + invoke DrawString8x8, 48, 21, OFFSET textCoinTitle, 0000FFFFh + + ; Bulb lights on marquee border + mov curX, 28 +coin_bulbs: + cmp curX, 292 + jge coin_meters + invoke DrawPixel, curX, 13, 0000FFFFh + invoke DrawPixel, curX, 36, 0000D7FFh + add curX, 12 + jmp coin_bulbs + +coin_meters: + ; Status Meters: Bank & Bet + invoke DrawBoxBorder, 20, 44, 114, 18, 000A1A0Eh, 001A4B22h, 1 + invoke DrawString8x8, 24, 49, OFFSET textBankPrompt, 0050FF50h + invoke FormatNumber, bankroll, OFFSET hudNumBuffer + invoke DrawString8x8, 72, 49, OFFSET hudNumBuffer, 0050FF50h + + invoke DrawBoxBorder, 186, 44, 114, 18, 001A100Ah, 003A2814h, 1 + invoke DrawString8x8, 190, 49, OFFSET textBetPrompt, 0000D7FFh + invoke FormatNumber, coin3d_bet, OFFSET hudNumBuffer + invoke DrawString8x8, 254, 49, OFFSET hudNumBuffer, 0000D7FFh + invoke DrawString8x8, 278, 49, OFFSET textBetHint, 00808080h + + ; Center Velvet Platter + invoke DrawCircle, 160, 110, 46, 000090C0h + invoke DrawCircle, 160, 110, 44, 0000D7FFh + invoke DrawCircle, 160, 110, 41, 00180824h + + ; Selection Podiums: [1] ÎШË + mov eax, 00121620h + mov edx, 00404855h + mov ecx, 0090A0B0h + cmp coin3d_side, 1 + jne @F + mov eax, 001C3822h + mov edx, 0000FFFFh + mov ecx, 0000FFFFh +@@: + push ecx + invoke DrawBoxBorder, 20, 72, 76, 52, eax, edx, 2 + pop ecx + invoke DrawString8x8, 28, 78, OFFSET textCoinSide1, ecx + invoke DrawDetailedCoin, 58, 106, 12, 12, 0000A0D0h, 0000D7FFh, 1 + + ; Selection Podiums: [2] ÐÅØÊÀ + mov eax, 00121620h + mov edx, 00404855h + mov ecx, 0090A0B0h + cmp coin3d_side, 2 + jne @F + mov eax, 001C3822h + mov edx, 0000FFFFh + mov ecx, 0000FFFFh +@@: + push ecx + invoke DrawBoxBorder, 224, 72, 76, 52, eax, edx, 2 + pop ecx + invoke DrawString8x8, 232, 78, OFFSET textCoinSide2, ecx + invoke DrawDetailedCoin, 262, 106, 12, 12, 000080A0h, 0000B0D0h, 2 + + ; Flipping animation logic + cmp coin3d_state, 1 + jne coin_at_rest + + inc coin3d_timer + + ; Parabolic toss: cy = 110 - (t * (40 - t)) / 14 + mov eax, coin3d_timer + mov ecx, 40 + sub ecx, eax + imul eax, ecx + xor edx, edx + mov ecx, 14 + div ecx + mov edx, 110 + sub edx, eax + mov cyVal, edx + + ; Width rx from lookup table: (t % 10) + mov eax, coin3d_timer + xor edx, edx + mov ecx, 10 + div ecx + movzx eax, BYTE PTR [coinRxAnimTable + edx] + mov rxVal, eax + + invoke DrawDetailedCoin, 160, cyVal, rxVal, 26, 0000A0D0h, 0000D7FFh, 0 + invoke DrawString8x8, 88, 160, OFFSET textCoinFlipping, 0000FFFFh + + cmp coin3d_timer, 40 + jl coin_draw_controls + + ; Flip complete! + mov coin3d_state, 2 + invoke RandomRange3D, 2 + inc eax + mov coin3d_result, eax + + mov eax, coin3d_result + cmp eax, coin3d_side + jne coin_flip_lost + + ; Won! + mov eax, coin3d_bet + shl eax, 1 + mov coin3d_win, eax + add bankroll, eax + inc coin3d_streak + cmp coin3d_streak, 3 + jl @F + invoke PlaySoundA, OFFSET soundVictory, 0, 1 + jmp coin_draw_controls +@@: + invoke PlaySoundA, OFFSET soundCoinDing, 0, 1 + jmp coin_draw_controls + +coin_flip_lost: + mov coin3d_streak, 0 + mov coin3d_win, 0 + invoke PlaySoundA, OFFSET soundLose, 0, 1 + jmp coin_draw_controls + +coin_at_rest: + ; Draw coin resting in velvet dish + mov edx, coin3d_side + cmp coin3d_state, 2 + jne @F + mov edx, coin3d_result +@@: + invoke DrawDetailedCoin, 160, 110, 26, 26, 0000A0D0h, 0000D7FFh, edx + + ; Outcome / Streak Display + cmp coin3d_state, 2 + jne coin_show_streak + + cmp coin3d_win, 0 + je coin_show_lose + invoke DrawBoxBorder, 44, 154, 232, 20, 000E141Eh, 0050FF50h, 1 + invoke DrawString8x8, 64, 160, OFFSET textCoinWin, 0050FF50h + invoke FormatNumber, coin3d_win, OFFSET hudNumBuffer + invoke DrawString8x8, 152, 160, OFFSET hudNumBuffer, 0050FF50h + jmp coin_draw_controls + +coin_show_lose: + invoke DrawBoxBorder, 44, 154, 232, 20, 000E141Eh, 000000FFh, 1 + invoke DrawString8x8, 114, 160, OFFSET textCoinLose, 008080FFh + jmp coin_draw_controls + +coin_show_streak: + invoke DrawBoxBorder, 44, 154, 232, 20, 000E141Eh, 0000D7FFh, 1 + invoke DrawString8x8, 52, 160, OFFSET textCoinStreakFmt, 0000FFFFh + +coin_draw_controls: + ; Keycaps Control Bar + invoke DrawBox, 16, 194, 288, 1, 001E2E40h + + mov eax, 0 + cmp coin3d_side, 1 + sete al + invoke DrawKeycap3D, 22, 202, OFFSET textCoinKey1, eax + + mov eax, 0 + cmp coin3d_side, 2 + sete al + invoke DrawKeycap3D, 88, 202, OFFSET textCoinKey2, eax + + invoke DrawKeycap3D, 160, 202, OFFSET textCoinKeySpace, 1 + invoke DrawKeycap3D, 274, 202, OFFSET textKeyEsc, 0 + ret +RenderCoinGame ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: DICE / CRAPS (ÊÎÑÒÈ) +; ============================================================================== +DrawCrapsDie PROC uses ebx esi edi, x:DWORD, y:DWORD, sizeVal:DWORD, valNum:DWORD + ; Drop shadow on green felt + mov eax, x + add eax, 3 + mov edx, y + add edx, sizeVal + invoke DrawBox, eax, edx, sizeVal, 3, 00031408h + mov eax, x + add eax, sizeVal + mov edx, y + add edx, 3 + invoke DrawBox, eax, edx, 3, sizeVal, 00031408h + + ; Ivory body & dark border + invoke DrawBoxBorder, x, y, sizeVal, sizeVal, 00F0F4FAh, 00353540h, 1 + + ; Bevel highlight top & left + mov eax, sizeVal + sub eax, 2 + mov edx, x + inc edx + mov ecx, y + inc ecx + invoke DrawBox, edx, ecx, eax, 1, 00FFFFFFh + invoke DrawBox, edx, ecx, 1, eax, 00FFFFFFh + + ; Bevel shadow bottom & right + mov edx, x + inc edx + mov ecx, y + add ecx, sizeVal + sub ecx, 2 + invoke DrawBox, edx, ecx, eax, 1, 00C0C6D0h + mov edx, x + add edx, sizeVal + sub edx, 2 + mov ecx, y + inc ecx + invoke DrawBox, edx, ecx, 1, eax, 00C0C6D0h + + ; Casino Ruby Red circular pips (radius 3) + cmp valNum, 1 + je draw_die_c + cmp valNum, 3 + je draw_die_c + cmp valNum, 5 + je draw_die_c + jmp check_die_pips_corners + +draw_die_c: + mov eax, x + add eax, 18 + mov edx, y + add edx, 18 + invoke DrawCircle, eax, edx, 3, 001515C8h + dec eax + dec edx + invoke DrawPixel, eax, edx, 00FFFFFFh + +check_die_pips_corners: + cmp valNum, 2 + jl die_pips_done + mov eax, x + add eax, 9 + mov edx, y + add edx, 9 + invoke DrawCircle, eax, edx, 3, 001515C8h + mov eax, x + add eax, sizeVal + sub eax, 10 + mov edx, y + add edx, sizeVal + sub edx, 10 + invoke DrawCircle, eax, edx, 3, 001515C8h + + cmp valNum, 4 + jl die_pips_done + mov eax, x + add eax, sizeVal + sub eax, 10 + mov edx, y + add edx, 9 + invoke DrawCircle, eax, edx, 3, 001515C8h + mov eax, x + add eax, 9 + mov edx, y + add edx, sizeVal + sub edx, 10 + invoke DrawCircle, eax, edx, 3, 001515C8h + + cmp valNum, 6 + jl die_pips_done + mov eax, x + add eax, 9 + mov edx, y + add edx, 18 + invoke DrawCircle, eax, edx, 3, 001515C8h + mov eax, x + add eax, sizeVal + sub eax, 10 + mov edx, y + add edx, 18 + invoke DrawCircle, eax, edx, 3, 001515C8h + +die_pips_done: + ret +DrawCrapsDie ENDP + +InitDiceGame PROC + mov dice3d_state, 0 + mov dice3d_timer, 0 + mov dice3d_win, 0 + cmp dice3d_bet, 10 + jge @F + mov dice3d_bet, 50 +@@: + ret +InitDiceGame ENDP + +HandleDiceInput PROC + cmp dice3d_state, 1 + je dice_input_done + + invoke Pressed3D, 20h ; SPACE -> Roll! + test eax, eax + jz check_dice_choice + mov eax, bankroll + cmp eax, dice3d_bet + jl dice_no_cash + sub eax, dice3d_bet + mov bankroll, eax + mov dice3d_state, 1 + mov dice3d_timer, 0 + mov dice3d_win, 0 + invoke PlaySoundA, OFFSET soundCards, 0, 1 + jmp dice_input_done + +dice_no_cash: + invoke CopyString3D, OFFSET msgNeedMoney, OFFSET flashMessage + mov flashTimer, 60 + invoke PlaySoundA, OFFSET soundClick, 0, 1 + jmp dice_input_done + +check_dice_choice: + invoke Pressed3D, 31h ; '1' + test eax, eax + jz @F + mov dice3d_choice, 1 + invoke PlaySoundA, OFFSET soundClick, 0, 1 +@@: + invoke Pressed3D, 32h ; '2' + test eax, eax + jz check_dice_bet_adjust + mov dice3d_choice, 2 + invoke PlaySoundA, OFFSET soundClick, 0, 1 + +check_dice_bet_adjust: + invoke Pressed3D, 26h ; UP + test eax, eax + jnz dice_inc_bet + invoke Pressed3D, 57h ; W + test eax, eax + jz check_dice_bet_down +dice_inc_bet: + invoke PlaySoundA, OFFSET soundClick, 0, 1 + cmp dice3d_bet, 500 + jge dice_input_done + cmp dice3d_bet, 250 + jge dice_set_500 + cmp dice3d_bet, 100 + jge dice_set_250 + cmp dice3d_bet, 50 + jge dice_set_100 + cmp dice3d_bet, 25 + jge dice_set_50 + jmp dice_set_25 +dice_set_500: + mov dice3d_bet, 500 + jmp dice_input_done +dice_set_250: + mov dice3d_bet, 250 + jmp dice_input_done +dice_set_100: + mov dice3d_bet, 100 + jmp dice_input_done +dice_set_50: + mov dice3d_bet, 50 + jmp dice_input_done +dice_set_25: + mov dice3d_bet, 25 + jmp dice_input_done + +check_dice_bet_down: + invoke Pressed3D, 28h ; DOWN + test eax, eax + jnz dice_dec_bet + invoke Pressed3D, 53h ; S + test eax, eax + jz dice_input_done +dice_dec_bet: + invoke PlaySoundA, OFFSET soundClick, 0, 1 + cmp dice3d_bet, 25 + jle dice_set_10 + cmp dice3d_bet, 50 + jle dice_set_25 + cmp dice3d_bet, 100 + jle dice_set_50 + cmp dice3d_bet, 250 + jle dice_set_100 + mov dice3d_bet, 250 + jmp dice_input_done +dice_set_10: + mov dice3d_bet, 10 + +dice_input_done: + ret +HandleDiceInput ENDP + +RenderDiceGame PROC uses ebx esi edi + LOCAL d1X:DWORD, d1Y:DWORD, d2X:DWORD, d2Y:DWORD, bxX:DWORD + + ; Craps Emerald Felt & Oak Armrest + invoke DrawBox, 0, 0, 320, 240, 00082E12h + invoke DrawBoxBorder, 4, 4, 312, 232, 00093816h, 00122244h, 3 + invoke DrawBoxBorder, 8, 8, 304, 224, 000A3F19h, 0005140Ah, 2 + + ; Pyramidal diamond craps backboard texture + mov bxX, 12 +craps_bumper: + cmp bxX, 308 + jge craps_felt_markings + mov eax, bxX + add eax, 4 + invoke DrawBox, eax, 11, 4, 4, 00041006h + mov eax, bxX + add eax, 5 + invoke DrawPixel, eax, 12, 000F4820h + add bxX, 12 + jmp craps_bumper + +craps_felt_markings: + ; Table Markings printed in gold directly on felt + invoke DrawString8x8, 72, 20, OFFSET textDiceTitle, 0000D7FFh + invoke DrawString8x8, 68, 32, OFFSET textDiceSubtitle, 0000B0A0h + + ; Meters: Bank & Bet + invoke DrawBoxBorder, 16, 46, 108, 16, 0006240Eh, 000E5022h, 1 + invoke DrawString8x8, 20, 50, OFFSET textBankPrompt, 0050FF50h + invoke FormatNumber, bankroll, OFFSET hudNumBuffer + invoke DrawString8x8, 68, 50, OFFSET hudNumBuffer, 0050FF50h + + invoke DrawBoxBorder, 196, 46, 108, 16, 0006240Eh, 000E5022h, 1 + invoke DrawString8x8, 200, 50, OFFSET textBetPrompt, 0000D7FFh + invoke FormatNumber, dice3d_bet, OFFSET hudNumBuffer + invoke DrawString8x8, 264, 50, OFFSET hudNumBuffer, 0000D7FFh + + ; Betting Zone Left: [1] רÒ + mov eax, 00073014h + mov edx, 001A602Ah + mov ecx, 0080B090h + cmp dice3d_choice, 1 + jne @F + mov eax, 000B441Dh + mov edx, 0000FFFFh + mov ecx, 0000FFFFh +@@: + push ecx + invoke DrawBoxBorder, 16, 68, 88, 54, eax, edx, 2 + pop ecx + invoke DrawString8x8, 24, 74, OFFSET textDiceEven, ecx + invoke DrawString8x8, 20, 86, OFFSET textDiceEvenNums, 0000D7FFh + cmp dice3d_choice, 1 + jne @F + invoke DrawChipStack, 48, 110, 4 +@@: + + ; Betting Zone Right: [2] ÍÅ×ÅÒ + mov eax, 00073014h + mov edx, 001A602Ah + mov ecx, 0080B090h + cmp dice3d_choice, 2 + jne @F + mov eax, 000B441Dh + mov edx, 0000FFFFh + mov ecx, 0000FFFFh +@@: + push ecx + invoke DrawBoxBorder, 216, 68, 88, 54, eax, edx, 2 + pop ecx + invoke DrawString8x8, 224, 74, OFFSET textDiceOdd, ecx + invoke DrawString8x8, 224, 86, OFFSET textDiceOddNums, 00508060h + cmp dice3d_choice, 2 + jne @F + invoke DrawChipStack, 248, 110, 4 +@@: + + ; Center Dice Field + invoke DrawBoxBorder, 112, 68, 96, 54, 00072E13h, 00145826h, 1 + + ; Rolling Animation Logic + cmp dice3d_state, 1 + jne dice_at_rest + + inc dice3d_timer + + ; Tumbling jitter offsets + mov eax, dice3d_timer + and eax, 3 + sub eax, 1 + + mov edx, 120 + add edx, eax + mov d1X, edx + mov edx, 76 + sub edx, eax + mov d1Y, edx + + mov edx, 164 + sub edx, eax + mov d2X, edx + mov edx, 78 + add edx, eax + mov d2Y, edx + + test dice3d_timer, 1 + jz @F + invoke RandomRange3D, 6 + inc eax + mov dice3d_val1, eax + invoke RandomRange3D, 6 + inc eax + mov dice3d_val2, eax +@@: + invoke DrawCrapsDie, d1X, d1Y, 36, dice3d_val1 + invoke DrawCrapsDie, d2X, d2Y, 36, dice3d_val2 + invoke DrawString8x8, 76, 138, OFFSET textDiceRolling, 0000FFFFh + + cmp dice3d_timer, 36 + jl dice_draw_controls + + ; Settle dice! + mov dice3d_state, 2 + invoke RandomRange3D, 6 + inc eax + mov dice3d_val1, eax + invoke RandomRange3D, 6 + inc eax + mov dice3d_val2, eax + + mov eax, dice3d_val1 + add eax, dice3d_val2 + mov dice3d_sum, eax + + ; Check choice vs sum parity + mov eax, dice3d_sum + test eax, 1 + jz dice_sum_is_even + + ; Odd + cmp dice3d_choice, 2 + je dice_roll_won + jmp dice_roll_lost + +dice_sum_is_even: + cmp dice3d_choice, 1 + je dice_roll_won + +dice_roll_lost: + mov dice3d_win, 0 + invoke PlaySoundA, OFFSET soundLose, 0, 1 + jmp dice_draw_controls + +dice_roll_won: + mov eax, dice3d_bet + shl eax, 1 + mov dice3d_win, eax + add bankroll, eax + invoke PlaySoundA, OFFSET soundVictory, 0, 1 + jmp dice_draw_controls + +dice_at_rest: + invoke DrawCrapsDie, 120, 76, 36, dice3d_val1 + invoke DrawCrapsDie, 164, 76, 36, dice3d_val2 + + cmp dice3d_state, 2 + jne dice_draw_controls + + ; Scoreboard Plaque + invoke DrawBoxBorder, 36, 130, 248, 30, 00051D0Ch, 0000D7FFh, 1 + invoke DrawString8x8, 44, 135, OFFSET textDiceSumHdr, 0000D7FFh + invoke FormatNumber, dice3d_val1, OFFSET hudNumBuffer + invoke DrawString8x8, 100, 135, OFFSET hudNumBuffer, 00FFFFFFh + invoke DrawString8x8, 110, 135, OFFSET textDicePlus, 0000D7FFh + invoke FormatNumber, dice3d_val2, OFFSET hudNumBuffer + invoke DrawString8x8, 134, 135, OFFSET hudNumBuffer, 00FFFFFFh + invoke DrawString8x8, 144, 135, OFFSET textDiceEqual, 0000D7FFh + invoke FormatNumber, dice3d_sum, OFFSET hudNumBuffer + invoke DrawString8x8, 168, 135, OFFSET hudNumBuffer, 0000FFFFh + + mov eax, dice3d_sum + test eax, 1 + jnz @F + invoke DrawString8x8, 186, 135, OFFSET textDiceEvenResult, 0080FF80h + jmp dice_show_win_msg +@@: + invoke DrawString8x8, 186, 135, OFFSET textDiceOddResult, 00FF8080h + +dice_show_win_msg: + cmp dice3d_win, 0 + je dice_show_loss + invoke DrawString8x8, 68, 147, OFFSET textDiceWin, 0050FF50h + invoke FormatNumber, dice3d_win, OFFSET hudNumBuffer + invoke DrawString8x8, 156, 147, OFFSET hudNumBuffer, 0050FF50h + invoke DrawString8x8, 188, 147, OFFSET textDiceWinMult, 0050FF50h + jmp dice_draw_controls + +dice_show_loss: + invoke DrawString8x8, 116, 147, OFFSET textDiceLose, 008080FFh + +dice_draw_controls: + invoke DrawBox, 16, 188, 288, 1, 00104820h + + mov eax, 0 + cmp dice3d_choice, 1 + sete al + invoke DrawKeycap3D, 20, 198, OFFSET textDiceKey1, eax + + mov eax, 0 + cmp dice3d_choice, 2 + sete al + invoke DrawKeycap3D, 82, 198, OFFSET textDiceKey2, eax + + invoke DrawKeycap3D, 160, 198, OFFSET textDiceKeySpace, 1 + invoke DrawKeycap3D, 274, 198, OFFSET textKeyEsc, 0 + ret +RenderDiceGame ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: SKULLS & CUPS (ÍÀϨÐÑÒÊÈ) +; ============================================================================== +DrawGlowingOrb PROC uses ebx esi edi, cxVal:DWORD, cyVal:DWORD + invoke DrawCircle, cxVal, cyVal, 14, 00081E2Eh + invoke DrawCircle, cxVal, cyVal, 11, 00103A58h + invoke DrawCircle, cxVal, cyVal, 8, 001A588Ah + invoke DrawCircle, cxVal, cyVal, 6, 0000B0E0h + invoke DrawCircle, cxVal, cyVal, 4, 0000E0FFh + mov eax, cxVal + dec eax + mov edx, cyVal + dec edx + invoke DrawCircle, eax, edx, 2, 00A0FFFFh + mov eax, cxVal + sub eax, 2 + mov edx, cyVal + sub edx, 2 + invoke DrawPixel, eax, edx, 00FFFFFFh + ret +DrawGlowingOrb ENDP + +DrawGothicCup PROC uses ebx esi edi, x:DWORD, y:DWORD, cupId:DWORD, isLifted:DWORD, hasBall:DWORD + LOCAL liftY:DWORD + + mov eax, y + cmp isLifted, 0 + je @F + sub eax, 28 +@@: + mov liftY, eax + + ; Drop shadow on purple velvet + cmp isLifted, 0 + jne @F + mov eax, x + add eax, 6 + mov edx, y + add edx, 42 + invoke DrawBox, eax, edx, 36, 4, 000A0410h + jmp draw_cup_body +@@: + mov eax, x + add eax, 10 + mov edx, y + add edx, 42 + invoke DrawBox, eax, edx, 28, 2, 0012061Ah + + ; Draw orb if lifted and has ball + cmp hasBall, 0 + je draw_cup_body + mov eax, x + add eax, 24 + mov edx, y + add edx, 26 + invoke DrawGlowingOrb, eax, edx + +draw_cup_body: + ; Base + mov eax, x + add eax, 6 + mov edx, liftY + add edx, 36 + invoke DrawBoxBorder, eax, edx, 36, 6, 00221A30h, 0000B0D0h, 1 + + ; Stem + mov eax, x + add eax, 18 + mov edx, liftY + add edx, 28 + invoke DrawBox, eax, edx, 12, 8, 00332545h + mov eax, x + add eax, 22 + mov edx, liftY + add edx, 28 + invoke DrawBox, eax, edx, 4, 8, 0055406Eh + + ; Bowl + mov eax, x + add eax, 8 + mov edx, liftY + add edx, 8 + invoke DrawBoxBorder, eax, edx, 32, 20, 002D1E40h, 0000D7FFh, 1 + mov eax, x + add eax, 14 + mov edx, liftY + add edx, 10 + invoke DrawBox, eax, edx, 6, 16, 00503570h + mov eax, x + add eax, 17 + mov edx, liftY + add edx, 10 + invoke DrawBox, eax, edx, 3, 16, 007850A0h + + ; Flared Rim + mov eax, x + add eax, 4 + mov edx, liftY + add edx, 2 + invoke DrawBoxBorder, eax, edx, 40, 7, 00150A20h, 0000FFFFh, 1 + mov eax, x + add eax, 12 + mov edx, liftY + add edx, 4 + invoke DrawBox, eax, edx, 16, 2, 0000FFFFh + + ; Skull Insignia on Bowl + mov eax, x + add eax, 21 + mov edx, liftY + add edx, 12 + invoke DrawBox, eax, edx, 6, 5, 0000D7FFh + mov eax, x + add eax, 22 + mov edx, liftY + add edx, 17 + invoke DrawBox, eax, edx, 4, 3, 0000D7FFh + mov eax, x + add eax, 22 + mov edx, liftY + add edx, 14 + invoke DrawPixel, eax, edx, 00150A20h + mov eax, x + add eax, 24 + mov edx, liftY + add edx, 14 + invoke DrawPixel, eax, edx, 00150A20h + + ; Cup ID Badge + mov eax, x + add eax, 21 + mov edx, liftY + add edx, 24 + mov ecx, cupId + add ecx, '0' + invoke DrawChar8x8, eax, edx, ecx, 0000FFFFh + ret +DrawGothicCup ENDP + +InitSkullsGame PROC + mov skulls3d_state, 0 + mov skulls3d_timer, 0 + mov skulls3d_win, 0 + cmp skulls3d_bet, 10 + jge @F + mov skulls3d_bet, 50 +@@: + invoke RandomRange3D, 3 + mov skulls3d_ballPos, eax + ret +InitSkullsGame ENDP + +FinalizeSkullsGuess PROC uses ebx + mov skulls3d_state, 4 + mov eax, skulls3d_choice + cmp eax, skulls3d_ballPos + jne skulls_guess_lost + + ; Won 3x! + mov eax, skulls3d_bet + imul eax, 3 + mov skulls3d_win, eax + add bankroll, eax + invoke PlaySoundA, OFFSET soundVictory, 0, 1 + ret + +skulls_guess_lost: + mov skulls3d_win, 0 + invoke PlaySoundA, OFFSET soundLose, 0, 1 + ret +FinalizeSkullsGuess ENDP + +HandleSkullsInput PROC + cmp skulls3d_state, 1 + je skulls_input_done + cmp skulls3d_state, 2 + je skulls_input_done + + cmp skulls3d_state, 3 + je check_skulls_pick + + ; State 0 or 4: Can start new round or adjust bet + invoke Pressed3D, 20h ; SPACE + test eax, eax + jz check_skulls_bet_adjust + + mov eax, bankroll + cmp eax, skulls3d_bet + jl skulls_no_cash + sub eax, skulls3d_bet + mov bankroll, eax + + invoke RandomRange3D, 3 + mov skulls3d_ballPos, eax + + invoke RandomRange3D, 3 + mov skulls3d_swapPair0, eax + invoke RandomRange3D, 3 + mov skulls3d_swapPair1, eax + invoke RandomRange3D, 3 + mov skulls3d_swapPair2, eax + + mov skulls3d_state, 1 + mov skulls3d_timer, 0 + mov skulls3d_win, 0 + invoke PlaySoundA, OFFSET soundShuffle, 0, 1 + jmp skulls_input_done + +skulls_no_cash: + invoke CopyString3D, OFFSET msgNeedMoney, OFFSET flashMessage + mov flashTimer, 60 + invoke PlaySoundA, OFFSET soundClick, 0, 1 + jmp skulls_input_done + +check_skulls_pick: + invoke Pressed3D, 31h ; '1' + test eax, eax + jz @F + mov skulls3d_choice, 0 + call FinalizeSkullsGuess + jmp skulls_input_done +@@: + invoke Pressed3D, 32h ; '2' + test eax, eax + jz @F + mov skulls3d_choice, 1 + call FinalizeSkullsGuess + jmp skulls_input_done +@@: + invoke Pressed3D, 33h ; '3' + test eax, eax + jz skulls_input_done + mov skulls3d_choice, 2 + call FinalizeSkullsGuess + jmp skulls_input_done + +check_skulls_bet_adjust: + invoke Pressed3D, 26h ; UP + test eax, eax + jnz skulls_inc_bet + invoke Pressed3D, 57h ; W + test eax, eax + jz check_skulls_bet_down +skulls_inc_bet: + invoke PlaySoundA, OFFSET soundClick, 0, 1 + cmp skulls3d_bet, 500 + jge skulls_input_done + cmp skulls3d_bet, 250 + jge skulls_set_500 + cmp skulls3d_bet, 100 + jge skulls_set_250 + cmp skulls3d_bet, 50 + jge skulls_set_100 + cmp skulls3d_bet, 25 + jge skulls_set_50 + jmp skulls_set_25 +skulls_set_500: + mov skulls3d_bet, 500 + jmp skulls_input_done +skulls_set_250: + mov skulls3d_bet, 250 + jmp skulls_input_done +skulls_set_100: + mov skulls3d_bet, 100 + jmp skulls_input_done +skulls_set_50: + mov skulls3d_bet, 50 + jmp skulls_input_done +skulls_set_25: + mov skulls3d_bet, 25 + jmp skulls_input_done + +check_skulls_bet_down: + invoke Pressed3D, 28h ; DOWN + test eax, eax + jnz skulls_dec_bet + invoke Pressed3D, 53h ; S + test eax, eax + jz skulls_input_done +skulls_dec_bet: + invoke PlaySoundA, OFFSET soundClick, 0, 1 + cmp skulls3d_bet, 25 + jle skulls_set_10 + cmp skulls3d_bet, 50 + jle skulls_set_25 + cmp skulls3d_bet, 100 + jle skulls_set_50 + cmp skulls3d_bet, 250 + jle skulls_set_100 + mov skulls3d_bet, 250 + jmp skulls_input_done +skulls_set_10: + mov skulls3d_bet, 10 + +skulls_input_done: + ret +HandleSkullsInput ENDP + +RenderSkullsGame PROC uses ebx esi edi + LOCAL passTick:DWORD, curPair:DWORD, swapSlotA:DWORD, swapSlotB:DWORD + LOCAL xA:DWORD, xB:DWORD, curXA:DWORD, curXB:DWORD, curYA:DWORD, curYB:DWORD + LOCAL distX:DWORD, dxVal:DWORD, archY:DWORD + + ; Dark Gothic Tavern Table with Royal Velvet + invoke DrawBox, 0, 0, 320, 240, 000D0612h + invoke DrawBoxBorder, 4, 4, 312, 232, 00160B20h, 00321845h, 3 + invoke DrawBoxBorder, 8, 8, 304, 224, 00220F30h, 0000D7FFh, 1 + + ; Header + invoke DrawBoxBorder, 24, 12, 272, 24, 0012081Ah, 0000D7FFh, 2 + invoke DrawString8x8, 64, 20, OFFSET textSkullsTitle, 0000FFFFh + + ; Meters: Bank & Bet + invoke DrawBoxBorder, 20, 42, 114, 16, 000D0616h, 00401858h, 1 + invoke DrawString8x8, 24, 46, OFFSET textBankPrompt, 0050FF50h + invoke FormatNumber, bankroll, OFFSET hudNumBuffer + invoke DrawString8x8, 72, 46, OFFSET hudNumBuffer, 0050FF50h + + invoke DrawBoxBorder, 186, 42, 114, 16, 000D0616h, 00401858h, 1 + invoke DrawString8x8, 190, 46, OFFSET textBetPrompt, 0000D7FFh + invoke FormatNumber, skulls3d_bet, OFFSET hudNumBuffer + invoke DrawString8x8, 254, 46, OFFSET hudNumBuffer, 0000D7FFh + + ; Velvet Table Runner + invoke DrawBoxBorder, 16, 64, 288, 120, 001A0B25h, 00452060h, 1 + + ; Dispatch based on phase + cmp skulls3d_state, 1 + je skulls_render_phase1 + cmp skulls3d_state, 2 + je skulls_render_phase2 + cmp skulls3d_state, 3 + je skulls_render_phase3 + cmp skulls3d_state, 4 + je skulls_render_phase4 + + ; Phase 0: Idle / Betting + invoke DrawString8x8, 56, 70, OFFSET textSkullsPhase0, 0000D7FFh + invoke DrawGothicCup, 48, 108, 1, 0, 0 + invoke DrawGothicCup, 136, 108, 2, 0, 0 + invoke DrawGothicCup, 224, 108, 3, 0, 0 + jmp skulls_draw_controls + +skulls_render_phase1: + inc skulls3d_timer + invoke DrawString8x8, 56, 70, OFFSET textSkullsPhase1, 0000FFFFh + + ; Draw cups with ballPos cup lifted + mov eax, 0 + cmp skulls3d_ballPos, 0 + sete al + invoke DrawGothicCup, 48, 108, 1, eax, eax + + mov eax, 0 + cmp skulls3d_ballPos, 1 + sete al + invoke DrawGothicCup, 136, 108, 2, eax, eax + + mov eax, 0 + cmp skulls3d_ballPos, 2 + sete al + invoke DrawGothicCup, 224, 108, 3, eax, eax + + cmp skulls3d_timer, 40 + jl skulls_draw_controls + + ; Start Phase 2 (Shuffle) + mov skulls3d_state, 2 + mov skulls3d_timer, 0 + invoke PlaySoundA, OFFSET soundShuffle, 0, 1 + jmp skulls_draw_controls + +skulls_render_phase2: + inc skulls3d_timer + + mov eax, skulls3d_timer + cmp eax, 20 + jbe pass_0 + cmp eax, 40 + jbe pass_1 + sub eax, 41 + mov passTick, eax + mov eax, skulls3d_swapPair2 + mov curPair, eax + jmp setup_pass_pair + +pass_0: + dec eax + mov passTick, eax + mov eax, skulls3d_swapPair0 + mov curPair, eax + jmp setup_pass_pair + +pass_1: + sub eax, 21 + mov passTick, eax + mov eax, skulls3d_swapPair1 + mov curPair, eax + +setup_pass_pair: + cmp curPair, 1 + je pair_1 + cmp curPair, 2 + je pair_2 + mov swapSlotA, 0 + mov swapSlotB, 1 + mov xA, 48 + mov xB, 136 + jmp calc_swap_coords +pair_1: + mov swapSlotA, 1 + mov swapSlotB, 2 + mov xA, 136 + mov xB, 224 + jmp calc_swap_coords +pair_2: + mov swapSlotA, 0 + mov swapSlotB, 2 + mov xA, 48 + mov xB, 224 + +calc_swap_coords: + mov eax, xB + sub eax, xA + mov distX, eax + + mov eax, distX + imul eax, passTick + xor edx, edx + mov ecx, 20 + div ecx + mov dxVal, eax + + mov eax, xA + add eax, dxVal + mov curXA, eax + + mov eax, xB + sub eax, dxVal + mov curXB, eax + + ; Arch height: archY = (t * (20 - t)) / 25 + mov eax, passTick + mov ecx, 20 + sub ecx, eax + imul eax, ecx + xor edx, edx + mov ecx, 25 + div ecx + mov archY, eax + + mov edx, 108 + sub edx, archY + mov curYA, edx ; upper arc + + mov edx, 108 + add edx, archY + mov curYB, edx ; lower arc + + invoke DrawString8x8, 56, 70, OFFSET textSkullsPhase2, 0000FFFFh + + ; Depth sorted rendering: Background cup (upper arc) draws FIRST, Foreground cup (lower arc) draws OVER it! + invoke DrawGothicCup, curXA, curYA, 1, 0, 0 + invoke DrawGothicCup, curXB, curYB, 2, 0, 0 + + ; Draw remaining static cup + cmp curPair, 1 + je draw_stat_0 + cmp curPair, 2 + je draw_stat_1 + invoke DrawGothicCup, 224, 108, 3, 0, 0 + jmp check_pass_finish +draw_stat_0: + invoke DrawGothicCup, 48, 108, 1, 0, 0 + jmp check_pass_finish +draw_stat_1: + invoke DrawGothicCup, 136, 108, 2, 0, 0 + +check_pass_finish: + cmp skulls3d_timer, 20 + je do_pass_swap + cmp skulls3d_timer, 40 + je do_pass_swap + cmp skulls3d_timer, 60 + je do_pass_swap + jmp skulls_draw_controls + +do_pass_swap: + ; Update ballPos if involved in swap + mov eax, skulls3d_ballPos + cmp eax, swapSlotA + jne check_swap_b + mov eax, swapSlotB + mov skulls3d_ballPos, eax + jmp ball_swap_done +check_swap_b: + cmp eax, swapSlotB + jne ball_swap_done + mov eax, swapSlotA + mov skulls3d_ballPos, eax + +ball_swap_done: + invoke PlaySoundA, OFFSET soundShuffle, 0, 1 + + cmp skulls3d_timer, 60 + jl skulls_draw_controls + + ; Shuffle complete -> Move to Pick phase + mov skulls3d_state, 3 + mov skulls3d_timer, 0 + jmp skulls_draw_controls + +skulls_render_phase3: + invoke DrawString8x8, 40, 70, OFFSET textSkullsPhase3, 0000FFFFh + invoke DrawGothicCup, 48, 108, 1, 0, 0 + invoke DrawGothicCup, 136, 108, 2, 0, 0 + invoke DrawGothicCup, 224, 108, 3, 0, 0 + jmp skulls_draw_controls + +skulls_render_phase4: + ; Reveal phase + cmp skulls3d_win, 0 + je skulls_show_loss + invoke DrawString8x8, 48, 70, OFFSET textSkullsWin, 0050FF50h + invoke FormatNumber, skulls3d_win, OFFSET hudNumBuffer + invoke DrawString8x8, 216, 70, OFFSET hudNumBuffer, 0050FF50h + jmp skulls_p4_cups + +skulls_show_loss: + invoke DrawString8x8, 40, 70, OFFSET textSkullsLose, 008080FFh + +skulls_p4_cups: + ; Draw chosen cup lifted + mov eax, 0 + cmp skulls3d_choice, 0 + sete al + mov edx, 0 + cmp skulls3d_ballPos, 0 + sete dl + invoke DrawGothicCup, 48, 108, 1, eax, edx + + mov eax, 0 + cmp skulls3d_choice, 1 + sete al + mov edx, 0 + cmp skulls3d_ballPos, 1 + sete dl + invoke DrawGothicCup, 136, 108, 2, eax, edx + + mov eax, 0 + cmp skulls3d_choice, 2 + sete al + mov edx, 0 + cmp skulls3d_ballPos, 2 + sete dl + invoke DrawGothicCup, 224, 108, 3, eax, edx + + invoke DrawString8x8, 64, 168, OFFSET textSkullsAgain, 0000D7FFh + +skulls_draw_controls: + invoke DrawBox, 16, 190, 288, 1, 003A1850h + + mov eax, 0 + cmp skulls3d_choice, 0 + sete al + invoke DrawKeycap3D, 18, 200, OFFSET textSkullsKey1, eax + + mov eax, 0 + cmp skulls3d_choice, 1 + sete al + invoke DrawKeycap3D, 82, 200, OFFSET textSkullsKey2, eax + + mov eax, 0 + cmp skulls3d_choice, 2 + sete al + invoke DrawKeycap3D, 146, 200, OFFSET textSkullsKey3, eax + + invoke DrawKeycap3D, 212, 200, OFFSET textSkullsKeySpace, 1 + invoke DrawKeycap3D, 274, 200, OFFSET textKeyEsc, 0 + ret +RenderSkullsGame ENDP + +HandlePlayerInput PROC uses ebx esi edi + local speed:DWORD + local nextX:DWORD + local nextY:DWORD + mov eax, deltaTime3D + imul eax, 200 + mov speed, eax + cmp keys3D[10h], 0 + je @F + shl speed, 1 +@@: + mov eax, deltaTime3D + shr eax, 2 + inc eax + cmp keys3D[41h], 0 + jne input_turn_left + cmp keys3D[25h], 0 + je input_right +input_turn_left: + sub playerAngle, eax +input_right: + cmp keys3D[44h], 0 + jne input_turn_right + cmp keys3D[27h], 0 + je input_forward +input_turn_right: + add playerAngle, eax +input_forward: + and playerAngle, 511 + call UpdateCamera3D + xor edi, edi + cmp keys3D[57h], 0 + jne input_go_forward + cmp keys3D[26h], 0 + je input_back +input_go_forward: + inc edi +input_back: + cmp keys3D[53h], 0 + jne input_go_back + cmp keys3D[28h], 0 + je input_move +input_go_back: + dec edi +input_move: + test edi, edi + jz input_action + imul edi, speed + mov eax, playerDirX + imul edi + shrd eax, edx, 16 + add eax, playerX + mov nextX, eax + mov eax, playerDirY + imul edi + shrd eax, edx, 16 + add eax, playerY + mov nextY, eax + invoke CanWalk3D, nextX, playerY + test eax, eax + jz @F + mov eax, nextX + mov playerX, eax +@@: + invoke CanWalk3D, playerX, nextY + test eax, eax + jz input_action + mov eax, nextY + mov playerY, eax +input_action: + invoke Pressed3D, 45h + test eax, eax + jz @F + call Trigger3DInteraction +@@: + ret +HandlePlayerInput ENDP + +CheckInteractions PROC uses ebx esi edi + local nearest:DWORD + mov nearest, 262144 + mov interactTargetId, 0 + mov interactPromptPtr, 0 + xor esi, esi +interaction_scan: + cmp esi, NUM_SPRITES + jge interaction_done + imul edi, esi, SIZEOF SpriteObject + cmp [casinoSprites+edi].interactId, 0 + je interaction_next + mov eax, [casinoSprites+edi].posX + sub eax, playerX + sar eax, 8 + mov ebx, eax + imul eax, eax + mov ecx, eax + mov eax, [casinoSprites+edi].posY + sub eax, playerY + sar eax, 8 + mov edx, eax + imul eax, eax + add ecx, eax + cmp ecx, nearest + jae interaction_next + ; Only target objects in front of the camera. + mov eax, playerDirX + sar eax, 8 + imul eax, ebx + mov ebx, playerDirY + sar ebx, 8 + imul ebx, edx + add eax, ebx + cmp eax, 18000 + jl interaction_next + mov nearest, ecx + mov eax, [casinoSprites+edi].interactId + mov interactTargetId, eax + mov eax, [casinoSprites+edi].promptPtr + mov interactPromptPtr, eax +interaction_next: + inc esi + jmp interaction_scan +interaction_done: + ret +CheckInteractions ENDP + +; --- RenderCabinetBezel: Îòðèñîâêà àðêàäíîãî áåçåëÿ òåðìèíàëà íà 3D ýêðàíå --- +RenderCabinetBezel PROC uses ebx esi edi, pTitle:DWORD + ; Çàòåìíÿåì 3D-çàë â áóôåðå êàäðà (äåëèì ÿðêîñòü ïîïîëàì) + mov ecx, SCREEN_SIZE + xor esi, esi +dim_bezel_loop: + mov eax, [screenBuffer + esi*4] + shr eax, 1 + and eax, 007F7F7Fh + mov [screenBuffer + esi*4], eax + inc esi + loop dim_bezel_loop + + ; Âíåøíÿÿ çîëîòàÿ ðàìêà òåðìèíàëà + invoke DrawBoxBorder, 10, 14, 300, 212, 000C0E14h, 00D8BC6Ah, 2 + + ; Øàïêà òåðìèíàëà ñ íàçâàíèåì èãðû + invoke DrawBox, 12, 16, 296, 16, 00221A10h + invoke DrawString8x8, 20, 20, pTitle, 00F5E2B0h + + ; Ïîäâàëüíàÿ ïëàøêà ñ ïîäñêàçêîé ïî âûõîäó + invoke DrawBox, 12, 210, 296, 14, 00141416h + invoke DrawString8x8, 20, 213, OFFSET textCabinetFooter, 00AAAAAAh + + ; Âûâîäèì êàäð áåçåëÿ â îêíî + call Present3D + ret +RenderCabinetBezel ENDP + +; --- LaunchClassicGame: Âñòðàèâàíèå èãðû â UI òåðìèíàëà êàçèíî --- +LaunchClassicGame PROC uses ebx esi edi, pGameProc:DWORD, gameId:DWORD, pTitle:DWORD + LOCAL rcClient[16]:BYTE + LOCAL ptScreen[8]:BYTE + LOCAL fontInfo[84]:BYTE + LOCAL conWnd:DWORD + LOCAL conW:DWORD, conH:DWORD, conX:DWORD, conY:DWORD + LOCAL viewW:DWORD, viewH:DWORD + LOCAL offsetX:DWORD, offsetY:DWORD + + mov eax, gameId + mov currentGameId, eax + + ; 1. Ðèñóåì çîëîòîé áåçåëü òåðìèíàëà íà 3D ýêðàíå + cmp pTitle, 0 + je @F + invoke RenderCabinetBezel, pTitle +@@: + + ; 2. Âûäåëÿåì êîíñîëü + invoke AllocConsole + test eax, eax + jz launch_ret + + invoke GetStdHandle, STD_OUTPUT_HANDLE + mov hOut, eax + invoke GetStdHandle, STD_INPUT_HANDLE + mov hIn, eax + + invoke SetConsoleCP, 1251 + invoke SetConsoleOutputCP, 1251 + + cmp pTitle, 0 + je @F + invoke SetConsoleTitleA, pTitle +@@: + call EnableAnsi + call ConfigureConsoleSize + + ; 3. Íàñòðàèâàåì øðèôò Consolas Bold 16pt + lea edi, fontInfo + xor eax, eax + mov ecx, 21 + rep stosd + mov dword ptr fontInfo[0], 84 ; cbSize + mov word ptr fontInfo[8], 0 ; dwFontSize.X + mov word ptr fontInfo[10], 16 ; dwFontSize.Y + mov dword ptr fontInfo[16], 700 ; FontWeight = FW_BOLD + mov word ptr fontInfo[20], 'C' + mov word ptr fontInfo[22], 'o' + mov word ptr fontInfo[24], 'n' + mov word ptr fontInfo[26], 's' + mov word ptr fontInfo[28], 'o' + mov word ptr fontInfo[30], 'l' + mov word ptr fontInfo[32], 'a' + mov word ptr fontInfo[34], 's' + mov word ptr fontInfo[36], 0 + lea eax, fontInfo + invoke SetCurrentConsoleFontEx, hOut, 0, eax + + ; 4. Ïîëó÷àåì äåñêðèïòîð îêíà êîíñîëè + invoke GetConsoleWindow + mov conWnd, eax + test eax, eax + jz run_game_body + + ; 5. Ñíèìàåì ñèñòåìíóþ ðàìêó Windows è çàãîëîâîê ñ êíîïêàìè çàêðûòèÿ/ñâîðà÷èâàíèÿ + invoke GetWindowLongA, conWnd, -16 ; GWL_STYLE + and eax, NOT (00C00000h or 00040000h or 00080000h or 00010000h or 00020000h) + or eax, 80000000h ; WS_POPUP + invoke SetWindowLongA, conWnd, -16, eax + + ; Ñâÿçûâàåì êàê äî÷åðíåå/ïðèíàäëåæàùåå îêíî ê îêíó èãðû + cmp h3DWnd, 0 + je show_con_fallback + invoke SetWindowLongA, conWnd, -8, h3DWnd ; GWL_HWNDPARENT + + ; 6. Âû÷èñëÿåì òî÷íûå êîîðäèíàòû äëÿ ïîñàäêè ýêðàíà âíóòðü áåçåëÿ + lea eax, rcClient + invoke GetClientRect, h3DWnd, eax + mov esi, dword ptr rcClient[8] ; øèðèíà êëèåíòñêîé îáëàñòè + mov edi, dword ptr rcClient[12] ; âûñîòà êëèåíòñêîé îáëàñòè + test esi, esi + jz show_con_fallback + test edi, edi + jz show_con_fallback + + ; Ðàñ÷åò âüþïîðòà 4:3 òî÷íî êàê â Present3D + mov viewW, esi + mov eax, esi + imul eax, 3 + shr eax, 2 + cmp eax, edi + jle calc_view_h + mov eax, edi + imul eax, 4 + xor edx, edx + mov ecx, 3 + div ecx + mov viewW, eax + mov eax, edi +calc_view_h: + mov viewH, eax + + mov ebx, esi + sub ebx, viewW + shr ebx, 1 + mov offsetX, ebx + + mov ebx, edi + sub ebx, viewH + shr ebx, 1 + mov offsetY, ebx + + ; Ýêðàííûå êîîðäèíàòû ëåâîãî âåðõíåãî óãëà êëèåíòñêîé îáëàñòè + mov dword ptr ptScreen[0], 0 + mov dword ptr ptScreen[4], 0 + lea eax, ptScreen + invoke ClientToScreen, h3DWnd, eax + + ; conW = viewW * 280 / 320 (âíóòðåííåå îêíî áåçåëÿ) + mov eax, viewW + imul eax, 280 + xor edx, edx + mov ecx, 320 + div ecx + mov conW, eax + + ; conH = viewH * 168 / 240 + mov eax, viewH + imul eax, 168 + xor edx, edx + mov ecx, 240 + div ecx + mov conH, eax + + ; conX = ptScreen.x + offsetX + (viewW * 20 / 320) + mov eax, viewW + imul eax, 20 + xor edx, edx + mov ecx, 320 + div ecx + add eax, offsetX + add eax, dword ptr ptScreen[0] + mov conX, eax + + ; conY = ptScreen.y + offsetY + (viewH * 38 / 240) + mov eax, viewH + imul eax, 38 + xor edx, edx + mov ecx, 240 + div ecx + add eax, offsetY + add eax, dword ptr ptScreen[4] + mov conY, eax + + ; Ïîçèöèîíèðóåì áåçðàìî÷íûé ýêðàí òî÷íî âíóòðü çîëîòîé ðàìêè áåçåëÿ + invoke SetWindowPos, conWnd, 0, conX, conY, conW, conH, 20h or 40h ; SWP_FRAMECHANGED | SWP_SHOWWINDOW + jmp set_con_focus + +show_con_fallback: + invoke ShowWindow, conWnd, 5 ; SW_SHOW +set_con_focus: + invoke SetForegroundWindow, conWnd + invoke SetFocus, conWnd + +run_game_body: + ; Çàïóñê îðèãèíàëüíîé èãðû! + call pGameProc + + ; Çàêðûâàåì êîíñîëü + invoke FreeConsole + mov hOut, 0 + mov hIn, 0 + + ; Âîçâðàùàåì ôîêóñ â îêíî 3D èãðû + cmp h3DWnd, 0 + je cleanup_game_input + invoke SetForegroundWindow, h3DWnd + invoke SetFocus, h3DWnd + +cleanup_game_input: + mov ecx, 256 + xor eax, eax + lea edi, keys3D + rep stosb + mov ecx, 256 + lea edi, pressedKeys3D + rep stosb + + invoke GetTickCount + mov previousTick3D, eax + mov frameStart3D, eax + mov deltaTime3D, 0 + + call SaveProgress3D + +launch_ret: + ret +LaunchClassicGame ENDP + +Trigger3DInteraction PROC + mov eax, interactTargetId + test eax, eax + jz trigger_done + + cmp eax, INTERACT_DANCER + jne check_target_bj + cmp bankroll, 100 + jl dancer_no_cash + sub bankroll, 100 + inc dancerLuckBuff + invoke CopyString3D, OFFSET textTips3D, OFFSET flashMessage + mov flashTimer, 100 + invoke PlaySoundA, OFFSET soundJackpot, 0, 1 + ret +dancer_no_cash: + invoke CopyString3D, OFFSET msgNeedMoney, OFFSET flashMessage + mov flashTimer, 60 + ret + +check_target_bj: + cmp eax, INTERACT_BLACKJACK + jne check_target_poker + invoke LaunchClassicGame, OFFSET Game21, 1, OFFSET szTitleBlackjack + ret + +check_target_poker: + cmp eax, INTERACT_POKER + jne check_target_durak + invoke LaunchClassicGame, OFFSET GamePoker, 2, OFFSET szTitlePoker + ret + +check_target_durak: + cmp eax, INTERACT_DURAK + jne check_target_slots777 + invoke LaunchClassicGame, OFFSET GameDurak, 10, OFFSET szTitleDurak + ret + +check_target_slots777: + cmp eax, INTERACT_SLOTS_777 + jne check_target_slots_clover + invoke LaunchClassicGame, OFFSET GameClassicSlot, 9, OFFSET szTitleClassicSlot + ret + +check_target_slots_clover: + cmp eax, INTERACT_SLOTS_CLOVER + jne check_target_roulette + invoke LaunchClassicGame, OFFSET GameSlot, 3, OFFSET szTitleCloverSlot + ret + +check_target_roulette: + cmp eax, INTERACT_ROULETTE + jne check_target_dice + invoke LaunchClassicGame, OFFSET GameCasinoRoulette, 8, OFFSET szTitleCasinoRoulette + ret + +check_target_dice: + cmp eax, INTERACT_DICE + jne check_target_skulls + call InitDiceGame + mov engineMode, MODE_DICE + ret + +check_target_skulls: + cmp eax, INTERACT_SKULLS + jne check_target_coin + call InitSkullsGame + mov engineMode, MODE_SKULLS + ret + +check_target_coin: + cmp eax, INTERACT_COIN + jne check_target_skill + call InitCoinGame + mov engineMode, MODE_COIN + ret + +check_target_skill: + cmp eax, INTERACT_SKILL_CHECK + jne check_target_buckshot + invoke LaunchClassicGame, OFFSET GameSkillCheck, 11, OFFSET szTitleSkillCheck + ret + +check_target_buckshot: + cmp eax, INTERACT_BUCKSHOT + jne check_target_rr + invoke LaunchClassicGame, OFFSET GameBuckshot, 13, OFFSET szTitleBuckshot + ret + +check_target_rr: + cmp eax, INTERACT_RUSSIAN_ROULETTE + jne check_target_online_rr + invoke LaunchClassicGame, OFFSET GameRoulette, 4, OFFSET szTitleRussianRoulette + ret + +check_target_online_rr: + cmp eax, INTERACT_ONLINE_RR + jne check_target_umamusume + invoke LaunchClassicGame, OFFSET GameOnlineCasino, 20, OFFSET szTitleOnlineRR + ret + +check_target_umamusume: + cmp eax, INTERACT_UMAMUSUME + jne check_target_hell + invoke LaunchClassicGame, OFFSET GameUmamusume, 21, OFFSET szTitleUmamusume + ret + +check_target_hell: + cmp eax, INTERACT_HELL_TOWER + jne check_target_shop + invoke LaunchClassicGame, OFFSET GameTournament, 666, OFFSET szTitleHellTower + ret + +check_target_shop: + cmp eax, INTERACT_SHOP + jne check_target_atm + invoke LaunchClassicGame, OFFSET GameShop, 0, OFFSET szTitleShop + ret + +check_target_atm: + cmp eax, INTERACT_ATM + jne check_target_terminal + mov engineMode, MODE_ATM + ret + +check_target_terminal: + cmp eax, INTERACT_TERMINAL + jne check_target_observer + invoke LaunchClassicGame, OFFSET GamePlayerTerminal, 0, OFFSET szTitleTerminal + ret + +check_target_observer: + cmp eax, INTERACT_OBSERVER + jne target_unported + invoke LaunchClassicGame, OFFSET GameObserver, 14, OFFSET szTitleObserver + ret + +target_unported: + invoke CopyString3D, OFFSET textUnavailable3D, OFFSET flashMessage + mov flashTimer, 150 +trigger_done: + ret +Trigger3DInteraction ENDP + +; --- Engine Initialization --- +Init3DEngine PROC + local screenCX:DWORD + local screenCY:DWORD + local posX:DWORD + local posY:DWORD + local bytesRead:DWORD + + push ebx + push esi + push edi + + call Create3DWindow + test eax, eax + jz init_failed + call LoadTextures3D + test eax, eax + jz init_failed + +init_sprites_table: + ; Sprite 0: VIP Dancer 1 (Stage Left) + mov casinoSprites[0*SIZEOF SpriteObject].posX, (13 * FP_1 + FP_HALF) + mov casinoSprites[0*SIZEOF SpriteObject].posY, (4 * FP_1) + mov casinoSprites[0*SIZEOF SpriteObject].baseTexId, 10 + mov casinoSprites[0*SIZEOF SpriteObject].frameCount, 12 + mov casinoSprites[0*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[0*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[0*SIZEOF SpriteObject].animSpeed, 5 + mov casinoSprites[0*SIZEOF SpriteObject].interactId, INTERACT_DANCER + mov casinoSprites[0*SIZEOF SpriteObject].promptPtr, OFFSET promptDancer + + ; Sprite 1: VIP Dancer 2 (Center Stage Star) + mov casinoSprites[1*SIZEOF SpriteObject].posX, (16 * FP_1 + FP_HALF) + mov casinoSprites[1*SIZEOF SpriteObject].posY, (3 * FP_1 + FP_HALF) + mov casinoSprites[1*SIZEOF SpriteObject].baseTexId, 10 + mov casinoSprites[1*SIZEOF SpriteObject].frameCount, 12 + mov casinoSprites[1*SIZEOF SpriteObject].curFrame, 2 + mov casinoSprites[1*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[1*SIZEOF SpriteObject].animSpeed, 5 + mov casinoSprites[1*SIZEOF SpriteObject].interactId, INTERACT_DANCER + mov casinoSprites[1*SIZEOF SpriteObject].promptPtr, OFFSET promptDancer + + ; Sprite 2: VIP Dancer 3 (Stage Right) + mov casinoSprites[2*SIZEOF SpriteObject].posX, (19 * FP_1 + FP_HALF) + mov casinoSprites[2*SIZEOF SpriteObject].posY, (4 * FP_1) + mov casinoSprites[2*SIZEOF SpriteObject].baseTexId, 10 + mov casinoSprites[2*SIZEOF SpriteObject].frameCount, 12 + mov casinoSprites[2*SIZEOF SpriteObject].curFrame, 1 + mov casinoSprites[2*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[2*SIZEOF SpriteObject].animSpeed, 5 + mov casinoSprites[2*SIZEOF SpriteObject].interactId, INTERACT_DANCER + mov casinoSprites[2*SIZEOF SpriteObject].promptPtr, OFFSET promptDancer + + ; Sprite 3: VIP Blackjack (Front Center Left) + mov casinoSprites[3*SIZEOF SpriteObject].posX, (12 * FP_1 + FP_HALF) + mov casinoSprites[3*SIZEOF SpriteObject].posY, (8 * FP_1) + mov casinoSprites[3*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[3*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[3*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[3*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[3*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[3*SIZEOF SpriteObject].interactId, INTERACT_BLACKJACK + mov casinoSprites[3*SIZEOF SpriteObject].promptPtr, OFFSET promptBlackjack + + ; Sprite 4: European Roulette Table (Front Center) + mov casinoSprites[4*SIZEOF SpriteObject].posX, (16 * FP_1 + FP_HALF) + mov casinoSprites[4*SIZEOF SpriteObject].posY, (10 * FP_1) + mov casinoSprites[4*SIZEOF SpriteObject].baseTexId, 31 + mov casinoSprites[4*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[4*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[4*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[4*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[4*SIZEOF SpriteObject].interactId, INTERACT_ROULETTE + mov casinoSprites[4*SIZEOF SpriteObject].promptPtr, OFFSET promptCasinoRoulette + + ; Sprite 5: Texas Hold'em Poker Table (Front Center Right) + mov casinoSprites[5*SIZEOF SpriteObject].posX, (20 * FP_1 + FP_HALF) + mov casinoSprites[5*SIZEOF SpriteObject].posY, (8 * FP_1) + mov casinoSprites[5*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[5*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[5*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[5*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[5*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[5*SIZEOF SpriteObject].interactId, INTERACT_POKER + mov casinoSprites[5*SIZEOF SpriteObject].promptPtr, OFFSET promptPoker + + ; Sprite 6: Podkidnoy Durak Card Table + mov casinoSprites[6*SIZEOF SpriteObject].posX, (24 * FP_1 + FP_HALF) + mov casinoSprites[6*SIZEOF SpriteObject].posY, (8 * FP_1) + mov casinoSprites[6*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[6*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[6*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[6*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[6*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[6*SIZEOF SpriteObject].interactId, INTERACT_DURAK + mov casinoSprites[6*SIZEOF SpriteObject].promptPtr, OFFSET promptDurak + + ; Sprite 7: Classic Slots 777 (West Arcade 1) + mov casinoSprites[7*SIZEOF SpriteObject].posX, (6 * FP_1) + mov casinoSprites[7*SIZEOF SpriteObject].posY, (8 * FP_1) + mov casinoSprites[7*SIZEOF SpriteObject].baseTexId, 24 + mov casinoSprites[7*SIZEOF SpriteObject].frameCount, 3 + mov casinoSprites[7*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[7*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[7*SIZEOF SpriteObject].animSpeed, 8 + mov casinoSprites[7*SIZEOF SpriteObject].interactId, INTERACT_SLOTS_777 + mov casinoSprites[7*SIZEOF SpriteObject].promptPtr, OFFSET promptClassicSlot + + ; Sprite 8: CloverPit Slots 5x3 (West Arcade 2) + mov casinoSprites[8*SIZEOF SpriteObject].posX, (6 * FP_1) + mov casinoSprites[8*SIZEOF SpriteObject].posY, (11 * FP_1) + mov casinoSprites[8*SIZEOF SpriteObject].baseTexId, 24 + mov casinoSprites[8*SIZEOF SpriteObject].frameCount, 3 + mov casinoSprites[8*SIZEOF SpriteObject].curFrame, 1 + mov casinoSprites[8*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[8*SIZEOF SpriteObject].animSpeed, 8 + mov casinoSprites[8*SIZEOF SpriteObject].interactId, INTERACT_SLOTS_CLOVER + mov casinoSprites[8*SIZEOF SpriteObject].promptPtr, OFFSET promptCloverSlot + + ; Sprite 9: Craps & Dice Table (West Arcade 3) + mov casinoSprites[9*SIZEOF SpriteObject].posX, (6 * FP_1) + mov casinoSprites[9*SIZEOF SpriteObject].posY, (14 * FP_1) + mov casinoSprites[9*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[9*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[9*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[9*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[9*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[9*SIZEOF SpriteObject].interactId, INTERACT_DICE + mov casinoSprites[9*SIZEOF SpriteObject].promptPtr, OFFSET promptDice + + ; Sprite 10: Skulls & Cups Table + mov casinoSprites[10*SIZEOF SpriteObject].posX, (10 * FP_1) + mov casinoSprites[10*SIZEOF SpriteObject].posY, (15 * FP_1) + mov casinoSprites[10*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[10*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[10*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[10*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[10*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[10*SIZEOF SpriteObject].interactId, INTERACT_SKULLS + mov casinoSprites[10*SIZEOF SpriteObject].promptPtr, OFFSET promptSkulls + + ; Sprite 11: Coin Toss Stand + mov casinoSprites[11*SIZEOF SpriteObject].posX, (14 * FP_1) + mov casinoSprites[11*SIZEOF SpriteObject].posY, (15 * FP_1) + mov casinoSprites[11*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[11*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[11*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[11*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[11*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[11*SIZEOF SpriteObject].interactId, INTERACT_COIN + mov casinoSprites[11*SIZEOF SpriteObject].promptPtr, OFFSET promptCoin + + ; Sprite 12: Skill Check Stand + mov casinoSprites[12*SIZEOF SpriteObject].posX, (18 * FP_1) + mov casinoSprites[12*SIZEOF SpriteObject].posY, (15 * FP_1) + mov casinoSprites[12*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[12*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[12*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[12*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[12*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[12*SIZEOF SpriteObject].interactId, INTERACT_SKILL_CHECK + mov casinoSprites[12*SIZEOF SpriteObject].promptPtr, OFFSET promptSkillCheck + + ; Sprite 13: Umamusume Derby Lounge + mov casinoSprites[13*SIZEOF SpriteObject].posX, (22 * FP_1) + mov casinoSprites[13*SIZEOF SpriteObject].posY, (15 * FP_1) + mov casinoSprites[13*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[13*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[13*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[13*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[13*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[13*SIZEOF SpriteObject].interactId, INTERACT_UMAMUSUME + mov casinoSprites[13*SIZEOF SpriteObject].promptPtr, OFFSET promptUmamusume + + ; Sprite 14: Boutique & Shop (East Wing) + mov casinoSprites[14*SIZEOF SpriteObject].posX, (26 * FP_1) + mov casinoSprites[14*SIZEOF SpriteObject].posY, (12 * FP_1) + mov casinoSprites[14*SIZEOF SpriteObject].baseTexId, 32 + mov casinoSprites[14*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[14*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[14*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[14*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[14*SIZEOF SpriteObject].interactId, INTERACT_SHOP + mov casinoSprites[14*SIZEOF SpriteObject].promptPtr, OFFSET promptShop + + ; Sprite 15: Cashier & ATM (East Wing) + mov casinoSprites[15*SIZEOF SpriteObject].posX, (26 * FP_1) + mov casinoSprites[15*SIZEOF SpriteObject].posY, (16 * FP_1) + mov casinoSprites[15*SIZEOF SpriteObject].baseTexId, 33 + mov casinoSprites[15*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[15*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[15*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[15*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[15*SIZEOF SpriteObject].interactId, INTERACT_ATM + mov casinoSprites[15*SIZEOF SpriteObject].promptPtr, OFFSET promptATM + + ; Sprite 16: Player Terminal (East Wing) + mov casinoSprites[16*SIZEOF SpriteObject].posX, (26 * FP_1) + mov casinoSprites[16*SIZEOF SpriteObject].posY, (20 * FP_1) + mov casinoSprites[16*SIZEOF SpriteObject].baseTexId, 33 + mov casinoSprites[16*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[16*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[16*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[16*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[16*SIZEOF SpriteObject].interactId, INTERACT_TERMINAL + mov casinoSprites[16*SIZEOF SpriteObject].promptPtr, OFFSET promptPlayerTerminal + + ; Sprite 17: Buckshot Roulette (South-West) + mov casinoSprites[17*SIZEOF SpriteObject].posX, (12 * FP_1) + mov casinoSprites[17*SIZEOF SpriteObject].posY, (22 * FP_1) + mov casinoSprites[17*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[17*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[17*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[17*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[17*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[17*SIZEOF SpriteObject].interactId, INTERACT_BUCKSHOT + mov casinoSprites[17*SIZEOF SpriteObject].promptPtr, OFFSET promptBuckshot + + ; Sprite 18: Observer Lounge (South-East) + mov casinoSprites[18*SIZEOF SpriteObject].posX, (20 * FP_1) + mov casinoSprites[18*SIZEOF SpriteObject].posY, (22 * FP_1) + mov casinoSprites[18*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[18*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[18*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[18*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[18*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[18*SIZEOF SpriteObject].interactId, INTERACT_OBSERVER + mov casinoSprites[18*SIZEOF SpriteObject].promptPtr, OFFSET promptObserver + + ; Sprite 19: Russian Roulette (Backroom Entrance) + mov casinoSprites[19*SIZEOF SpriteObject].posX, (16 * FP_1) + mov casinoSprites[19*SIZEOF SpriteObject].posY, (25 * FP_1) + mov casinoSprites[19*SIZEOF SpriteObject].baseTexId, 34 + mov casinoSprites[19*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[19*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[19*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[19*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[19*SIZEOF SpriteObject].interactId, INTERACT_RUSSIAN_ROULETTE + mov casinoSprites[19*SIZEOF SpriteObject].promptPtr, OFFSET promptRussianRoulette + + ; Sprite 20: Online Russian Roulette (Backroom Secret Terminal) + mov casinoSprites[20*SIZEOF SpriteObject].posX, (18 * FP_1) + mov casinoSprites[20*SIZEOF SpriteObject].posY, (25 * FP_1) + mov casinoSprites[20*SIZEOF SpriteObject].baseTexId, 34 + mov casinoSprites[20*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[20*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[20*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[20*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[20*SIZEOF SpriteObject].interactId, INTERACT_ONLINE_RR + mov casinoSprites[20*SIZEOF SpriteObject].promptPtr, OFFSET promptOnlineRR + + ; Sprite 21: Hell Tower Portal (South Wing Deep End) + mov casinoSprites[21*SIZEOF SpriteObject].posX, (16 * FP_1 + FP_HALF) + mov casinoSprites[21*SIZEOF SpriteObject].posY, (29 * FP_1) + mov casinoSprites[21*SIZEOF SpriteObject].baseTexId, 4 + mov casinoSprites[21*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[21*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[21*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[21*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[21*SIZEOF SpriteObject].interactId, INTERACT_HELL_TOWER + mov casinoSprites[21*SIZEOF SpriteObject].promptPtr, OFFSET promptHellTower + + mov eax, 1 + jmp init_return +init_failed: + xor eax, eax +init_return: + pop edi + pop esi + pop ebx + ret +Init3DEngine ENDP + +; --- Main Loop of the 3D Casino Engine --- +StartCasino3D PROC uses ebx esi edi + call Init3DEngine + test eax, eax + jz engine_shutdown + invoke GetTickCount + mov rngSeed3D, eax + mov previousTick3D, eax +engine_loop: + invoke PeekMessageA, OFFSET msg3D, 0, 0, 0, PM_REMOVE + test eax, eax + jz dispatch_frame + cmp msg3D.message, WM_QUIT + je engine_shutdown + invoke TranslateMessage, OFFSET msg3D + invoke DispatchMessageA, OFFSET msg3D + jmp engine_loop + +dispatch_frame: + invoke GetTickCount + mov frameStart3D, eax + sub eax, previousTick3D + cmp eax, 50 + jbe @F + mov eax, 50 +@@: + mov deltaTime3D, eax + mov eax, frameStart3D + mov previousTick3D, eax + invoke GetForegroundWindow + cmp eax, h3DWnd + jne engine_idle + invoke IsIconic, h3DWnd + test eax, eax + jnz engine_idle + invoke Pressed3D, 7Ah + test eax, eax + jz @F + call ToggleFullscreen3D +@@: + invoke Pressed3D, 1Bh + test eax, eax + jz engine_tick + cmp engineMode, MODE_WALK + jne leave_table + xor paused3D, 1 + jmp engine_tick +leave_table: + ; An already paid round cannot be skipped or settled twice. + cmp slotSpinState, 1 + je engine_tick + cmp roulState, 1 + je engine_tick + cmp coin3d_state, 1 + je engine_tick + cmp dice3d_state, 1 + je engine_tick + cmp skulls3d_state, 1 + je engine_tick + cmp skulls3d_state, 2 + je engine_tick + mov engineMode, MODE_WALK +engine_tick: + cmp paused3D, 0 + jne draw_pause + mov eax, deltaTime3D + add animationClock3D, eax + cmp engineMode, MODE_WALK + jne check_slots_mode + call UpdateCamera3D + call CheckInteractions + call HandlePlayerInput + call UpdateCamera3D + call RenderCeilingAndFloor + call RenderWalls + call RenderSprites + call RenderHUD + call RenderMinimap + jmp present_frame +check_slots_mode: + cmp engineMode, MODE_SLOTS + jne check_bj_mode + call HandleSlotsInput + call RenderSlotsGame + jmp present_frame +check_bj_mode: + cmp engineMode, MODE_BLACKJACK + jne check_roul_mode + call HandleBlackjackInput + call RenderBlackjackGame + jmp present_frame +check_roul_mode: + cmp engineMode, MODE_ROULETTE + jne check_shop_mode + call HandleRouletteInput + call RenderRouletteGame + jmp present_frame +check_shop_mode: + cmp engineMode, MODE_SHOP + jne check_atm_mode + call HandleShopInput + call RenderShopGame + jmp present_frame +check_atm_mode: + cmp engineMode, MODE_ATM + jne check_coin_mode + call HandleATMInput + call RenderATMGame + jmp present_frame +check_coin_mode: + cmp engineMode, MODE_COIN + jne check_dice_mode + call HandleCoinInput + call RenderCoinGame + jmp present_frame +check_dice_mode: + cmp engineMode, MODE_DICE + jne check_skulls_mode + call HandleDiceInput + call RenderDiceGame + jmp present_frame +check_skulls_mode: + cmp engineMode, MODE_SKULLS + jne present_frame + call HandleSkullsInput + call RenderSkullsGame + jmp present_frame +draw_pause: + invoke DrawBoxBorder, 65, 75, 190, 85, 00151C21h, 00D8BC6Ah, 2 + invoke DrawString8x8, 86, 88, OFFSET textPause3D, 00FFFFFFh + invoke DrawString8x8, 78, 111, OFFSET textResume3D, 00D8BC6Ah + invoke DrawString8x8, 78, 131, OFFSET textQuit3D, 00BBBBBBh + invoke Pressed3D, 51h + test eax, eax + jnz engine_shutdown +present_frame: + call Present3D + lea edi, pressedKeys3D + xor eax, eax + mov ecx, 64 + rep stosd + invoke GetTickCount + sub eax, frameStart3D + cmp eax, 16 + jae engine_loop + mov ecx, 16 + sub ecx, eax + invoke Sleep, ecx + jmp engine_loop +engine_idle: + invoke Sleep, 50 + jmp engine_loop +engine_shutdown: + call SaveProgress3D + cmp h3DDC, 0 + je @F + invoke ReleaseDC, h3DWnd, h3DDC + mov h3DDC, 0 +@@: + cmp h3DWnd, 0 + je @F + invoke DestroyWindow, h3DWnd + mov h3DWnd, 0 +@@: + ret +StartCasino3D ENDP + +include src_graphics\platform_code.inc diff --git a/backups/casino3d_before_rich_ui.inc b/backups/casino3d_before_rich_ui.inc new file mode 100644 index 0000000..96f7064 --- /dev/null +++ b/backups/casino3d_before_rich_ui.inc @@ -0,0 +1,4756 @@ + +; ============================================================================== +; CASINO 2.5D - MASM32 SOFTWARE RAYCASTER (CP1251) +; Graphical migration; this is not id Software's Doom engine. +; ============================================================================== + +includelib gdi32.lib +includelib winmm.lib + +CreateWindowExA PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD +RegisterClassExA PROTO :DWORD +DefWindowProcA PROTO :DWORD,:DWORD,:DWORD,:DWORD +ShowWindow PROTO :DWORD,:DWORD +UpdateWindow PROTO :DWORD +GetDC PROTO :DWORD +ReleaseDC PROTO :DWORD,:DWORD +StretchDIBits PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD +PeekMessageA PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD +TranslateMessage PROTO :DWORD +DispatchMessageA PROTO :DWORD +PostQuitMessage PROTO :DWORD +DestroyWindow PROTO :DWORD +SetWindowTextA PROTO :DWORD,:DWORD +SetForegroundWindow PROTO :DWORD +GetConsoleWindow PROTO +GetSystemMetrics PROTO :DWORD +CreateFileA PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD +ReadFile PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD +CloseHandle PROTO :DWORD +GetAsyncKeyState PROTO :DWORD +PlaySoundA PROTO :DWORD,:DWORD,:DWORD +GetModuleFileNameA PROTO :DWORD,:DWORD,:DWORD +Sleep PROTO :DWORD + +C3D_POINT STRUCT + x dd ? + y dd ? +C3D_POINT ENDS + +C3D_MSG STRUCT + hwnd dd ? + message dd ? + wParam dd ? + lParam dd ? + time dd ? + pt C3D_POINT <> +C3D_MSG ENDS + +C3D_WNDCLASSEX STRUCT + cbSize dd ? + style dd ? + lpfnWndProc dd ? + cbClsExtra dd ? + cbWndExtra dd ? + hInstance dd ? + hIcon dd ? + hCursor dd ? + hbrBackground dd ? + lpszMenuName dd ? + lpszClassName dd ? + hIconSm dd ? +C3D_WNDCLASSEX ENDS + +C3D_BITMAPINFOHEADER STRUCT + biSize dd ? + biWidth dd ? + biHeight dd ? + biPlanes dw ? + biBitCount dw ? + biCompression dd ? + biSizeImage dd ? + biXPelsPerMeter dd ? + biYPelsPerMeter dd ? + biClrUsed dd ? + biClrImportant dd ? +C3D_BITMAPINFOHEADER ENDS + +C3D_BITMAPINFO STRUCT + bmiHeader C3D_BITMAPINFOHEADER <> + bmiColors dd ? +C3D_BITMAPINFO ENDS + +SpriteObject STRUCT + posX dd ? + posY dd ? + baseTexId dd ? + frameCount dd ? + curFrame dd ? + animTimer dd ? + animSpeed dd ? + interactId dd ? + promptPtr dd ? + distSq dd ? +SpriteObject ENDS + +SCREEN_W equ 640 +SCREEN_H equ 480 +HALF_W equ 320 +HALF_H equ 240 +SCREEN_SIZE equ (SCREEN_W * SCREEN_H) +WIN_SCALE equ 1 +WINDOW_W equ (SCREEN_W * WIN_SCALE) +WINDOW_H equ (SCREEN_H * WIN_SCALE) + +FP_1 equ 65536 +FP_HALF equ 32768 +CHROMA_KEY equ 00FF00FFh + +MODE_WALK equ 0 +MODE_SLOTS equ 1 +MODE_BLACKJACK equ 2 +MODE_ROULETTE equ 3 +MODE_SHOP equ 4 +MODE_ATM equ 5 +MODE_COIN equ 6 +MODE_DICE equ 7 +MODE_SKULLS equ 8 + +WS_OVERLAPPEDWINDOW equ 00CF0000h +SW_SHOW equ 5 +SW_HIDE equ 0 +PM_REMOVE equ 1 +WM_DESTROY equ 0002h +WM_CLOSE equ 0010h +WM_QUIT equ 0012h +CS_HREDRAW equ 2 +CS_VREDRAW equ 1 +DIB_RGB_COLORS equ 0 +SRCCOPY equ 00CC0020h +INVALID_FILE_HANDLE equ -1 + +include casino3d_data.inc +include font8x8.inc +include src_graphics\platform_data.inc + +.data +ALIGN 4 +h3DInst dd 0 +h3DWnd dd 0 +h3DDC dd 0 +hCasinoConsole dd 0 + +bmi3D C3D_BITMAPINFO <> +msg3D C3D_MSG <> +wc3D C3D_WNDCLASSEX <> + +sz3DClassName db "Casino3DRetroClass",0 +sz3DWindowTitle db "Assembler Casino - 2.5D",0 +szTexturesRelPath db "assets\textures\casino3d-hd.bin",0 +szTexturesFullPath db 260 dup(0) + +soundCoin db "assets\audio\Çâîí ïàäàþùåé ìîíåòû.wav",0 +soundCards db "assets\audio\playing_cards_deck_flick_through_001_20485.wav",0 +soundRoulette db "assets\audio\roulette-wheel-throw-2.wav",0 +soundJackpot db "assets\audio\Äæåêïîò.wav",0 +soundClick db "assets\audio\b05e1ac8be34248.wav",0 + +playerX dd (16 * FP_1 + FP_HALF) +playerY dd (16 * FP_1 + FP_HALF) +playerAngle dd 384 +playerDirX dd 0 +playerDirY dd -FP_1 +playerPlaneX dd (FP_1 * 66 / 100) +playerPlaneY dd 0 + +engineMode dd 0 +interactTargetId dd 0 +interactPromptPtr dd 0 +dancerLuckBuff dd 0 +flashTimer dd 0 +flashMessage db 128 dup(0) + +promptDancer db "[E] ÊÀÁÀÐÅ - ×ÀÅÂÛÅ $100",0 +promptBlackjack db "[E] ÁËÝÊÄÆÅÊ (21)",0 +promptPoker db "[E] ÏÎÊÅÐ (TEXAS HOLD'EM)",0 +promptDurak db "[E] ÊÀÐÒÛ: ÏÎÄÊÈÄÍÎÉ ÄÓÐÀÊ",0 +promptCasinoRoulette db "[E] ÅÂÐÎÏÅÉÑÊÀß ÐÓËÅÒÊÀ",0 +promptClassicSlot db "[E] ÊËÀÑÑÈ×ÅÑÊÈÅ ÑËÎÒÛ 777",0 +promptCloverSlot db "[E] ÑËÎÒÛ CLOVERPIT (5x3)",0 +promptDice db "[E] ÈÃÐÀ  ÊÎÑÒÈ (CRAPS)",0 +promptSkulls db "[E] ÍÀϨÐÑÒÊÈ (×ÅÐÅÏÀ)",0 +promptCoin db "[E] ÌÎÍÅÒÊÀ (ÎШË/ÐÅØÊÀ)",0 +promptSkillCheck db "[E] ÒÐÅÍÈÐÎÂÊÀ ÐÅÀÊÖÈÈ",0 +promptBuckshot db "[E] BUCKSHOT ROULETTE",0 +promptRussianRoulette db "[E] ÐÓÑÑÊÀß ÐÓËÅÒÊÀ (VIP)",0 +promptOnlineRR db "[E] ÑÅÒÅÂÀß ÐÓËÅÒÊÀ (NET)",0 +promptUmamusume db "[E] ÑÊÀ×ÊÈ ÓÌÀÌÓÑÓÌÝ",0 +promptHellTower db "[E] ÁÀØÍß ÀÄÀ (10 ÝÒÀÆÅÉ)",0 +promptShop db "[E] ÁÓÒÈÊ È ÒÀËÈÑÌÀÍÛ",0 +promptATM db "[E] ÁÀÍÊÎÌÀÒ È ÁÀËÀÍÑ",0 +promptPlayerTerminal db "[E] ÒÅÐÌÈÍÀË: ÑÒÀÒÛ È À×ÈÂÊÈ",0 +promptObserver db "[E] ÐÅÆÈÌ ÍÀÁËÞÄÀÒÅËß (ÈÈ)",0 + +szTitleBlackjack db "[KAZIK 3D CASINO] - ÁËÝÊÄÆÅÊ (21)",0 +szTitlePoker db "[KAZIK 3D CASINO] - ÏÎÊÅÐ (TEXAS HOLD'EM)",0 +szTitleDurak db "[KAZIK 3D CASINO] - ÏÎÄÊÈÄÍÎÉ ÄÓÐÀÊ",0 +szTitleCasinoRoulette db "[KAZIK 3D CASINO] - ÅÂÐÎÏÅÉÑÊÀß ÐÓËÅÒÊÀ",0 +szTitleClassicSlot db "[KAZIK 3D CASINO] - ÊËÀÑÑÈ×ÅÑÊÈÅ ÑËÎÒÛ 777",0 +szTitleCloverSlot db "[KAZIK 3D CASINO] - ÑËÎÒ-ÌÀØÈÍÀ CLOVERPIT (5x3)",0 +szTitleDice db "[KAZIK 3D CASINO] - ÈÃÐÀ  ÊÎÑÒÈ (CRAPS)",0 +szTitleSkulls db "[KAZIK 3D CASINO] - ÍÀϨÐÑÒÊÈ",0 +szTitleCoin db "[KAZIK 3D CASINO] - ÌÎÍÅÒÊÀ (ÎШË/ÐÅØÊÀ)",0 +szTitleSkillCheck db "[KAZIK 3D CASINO] - ÏÐÎÂÅÐÊÀ ÐÅÀÊÖÈÈ",0 +szTitleBuckshot db "[KAZIK 3D CASINO] - BUCKSHOT ROULETTE",0 +szTitleRussianRoulette db "[KAZIK 3D CASINO] - ÐÓÑÑÊÀß ÐÓËÅÒÊÀ",0 +szTitleOnlineRR db "[KAZIK 3D CASINO] - ÑÅÒÅÂÀß ÐÓÑÑÊÀß ÐÓËÅÒÊÀ",0 +szTitleUmamusume db "[KAZIK 3D CASINO] - ÑÊÀ×ÊÈ ÓÌÀÌÓÑÓÌÝ",0 +szTitleHellTower db "[KAZIK 3D CASINO] - ÁÀØÍß ÀÄÀ (ÒÓÐÍÈÐ)",0 +szTitleShop db "[KAZIK 3D CASINO] - ÁÓÒÈÊ È ÒÀËÈÑÌÀÍÛ",0 +szTitleATM db "[KAZIK 3D CASINO] - ÁÀÍÊÎÌÀÒ",0 +szTitleTerminal db "[KAZIK 3D CASINO] - ÒÅÐÌÈÍÀË ÈÃÐÎÊÀ",0 +szTitleObserver db "[KAZIK 3D CASINO] - ÐÅÆÈÌ ÍÀÁËÞÄÀÒÅËß (ÈÈ)",0 +textCabinetFooter db "[ ÂÛÕÎÄ: ÂÂÅÄÈÒÅ 0 / ÂÛÁÅÐÈÒÅ 'N' ÄËß ÂÎÇÂÐÀÒÀ  ÇÀË ]",0 + +msgDancerTipped db "Âû áðîñèëè $100 òàíöîâùèöå! ÓÄÀ×À ÀÊÒÈÂÈÐÎÂÀÍÀ!",0 +msgNeedMoney db "Íåäîñòàòî÷íî äåíåã â êîøåëüêå!",0 +statusHUDFormat db "ÁÀÍÊÐÎËË: $",0 +targetHUDFormat db " ÖÅËÜ: $",0 +luckHUDFormat db " ÓÄÀ×À: +",0 +controlsHUD db "WASD/Ñòðåëêè: Õîäüáà | E: Äåéñòâèå | ESC: Ìåíþ",0 + +NUM_SPRITES equ 22 + +INTERACT_NONE equ 0 +INTERACT_BLACKJACK equ 1 +INTERACT_POKER equ 2 +INTERACT_SLOTS_777 equ 3 +INTERACT_ROULETTE equ 4 +INTERACT_SKULLS equ 5 +INTERACT_SHOP equ 6 +INTERACT_ATM equ 7 +INTERACT_DANCER equ 8 +INTERACT_HELL_TOWER equ 9 +INTERACT_DURAK equ 10 +INTERACT_BUCKSHOT equ 11 +INTERACT_COIN equ 12 +INTERACT_DICE equ 13 +INTERACT_SLOTS_CLOVER equ 14 +INTERACT_UMAMUSUME equ 15 +INTERACT_OBSERVER equ 16 +INTERACT_TERMINAL equ 17 +INTERACT_ONLINE_RR equ 18 +INTERACT_RUSSIAN_ROULETTE equ 19 +INTERACT_SKILL_CHECK equ 20 +ALIGN 4 +casinoSprites SpriteObject NUM_SPRITES dup(<>) +sortedSprites dd NUM_SPRITES dup(0) + +rowDistTable dd 120 dup(0) +rngSeed3D dd 12345678h + +slotBet dd 50 +slotReel1 dd 0 +slotReel2 dd 1 +slotReel3 dd 2 +slotSpinState dd 0 +slotSpinTimer dd 0 +slotWinAmount dd 0 +slotWinMsg db 64 dup(0) + +bjState dd 0 +bjBet dd 100 +bjPlayerCards dd 10 dup(0) +bjPlayerCardCount dd 0 +bjPlayerScore dd 0 +bjDealerCards dd 10 dup(0) +bjDealerCardCount dd 0 +bjDealerScore dd 0 +bjDealerHideHole dd 1 +bjOutcomeMsg db 64 dup(0) + +roulState dd 0 +roulBetType dd 1 +roulBetAmount dd 100 +roulWheelAngle dd 0 +roulBallAngle dd 0 +roulSpinTimer dd 0 +roulWinningNum dd 0 +roulPayout dd 0 +roulOutcomeMsg db 64 dup(0) + +; --- Native 2.5D Coin Flip Game --- +coin3d_bet dd 50 +coin3d_side dd 1 ; 1 = Îð¸ë, 2 = Ðåøêà +coin3d_state dd 0 ; 0 = Idle, 1 = Flipping, 2 = Result +coin3d_timer dd 0 +coin3d_result dd 1 ; 1 = Îð¸ë, 2 = Ðåøêà +coin3d_streak dd 0 +coin3d_win dd 0 + +coinRxAnimTable db 22, 18, 12, 4, 12, 18, 22, 18, 12, 4 + +textCoinTitle db "ÌÎÍÅÒÊÀ (ÎШË / ÐÅØÊÀ)",0 +textCoinHeads db "ÎШË",0 +textCoinTails db "ÐÅØÊÀ",0 +textCoinStreak db "ÑÅÐÈß: ",0 +textCoinSide1 db "[1] ÎШË",0 +textCoinSide2 db "[2] ÐÅØÊÀ",0 +textCoinFlipping db "ÌÎÍÅÒÀ  ÂÎÇÄÓÕÅ...",0 +textCoinWin db "ÂÛÈÃÐÛØ! +$",0 +textCoinLose db "ÏÐÎÈÃÐÛØ!",0 +textCoinControls1 db "[1/2] ÑÒÎÐÎÍÀ [ÏÐÎÁÅË] ÁÐÎÑÎÊ",0 +textCoinControls2 db "[ÂÂÅÐÕ/ÂÍÈÇ] ÑÒÀÂÊÀ [ESC] ÂÛÕÎÄ",0 + +; --- Native 2.5D Dice Game --- +dice3d_bet dd 50 +dice3d_choice dd 1 ; 1 = ׸ò, 2 = Íå÷åò +dice3d_state dd 0 ; 0 = Idle, 1 = Rolling, 2 = Result +dice3d_timer dd 0 +dice3d_val1 dd 3 +dice3d_val2 dd 4 +dice3d_sum dd 7 +dice3d_win dd 0 + +textDiceTitle db "ÊÎÑÒÈ (CRAPS) - רÒ / ÍÅ×ÅÒ",0 +textDiceEven db "[1] רÒ",0 +textDiceOdd db "[2] ÍÅ×ÅÒ",0 +textDiceTally db "ÊÎÑÒÈ: ",0 +textDicePlus db " + ",0 +textDiceEqual db " = ",0 +textDiceEvenResult db " (רÒ)",0 +textDiceOddResult db " (ÍÅ×ÅÒ)",0 +textDiceRolling db "ÁÐÎÑÎÊ ÊÎÑÒÅÉ...",0 +textDiceWin db "ÂÛÈÃÐÛØ! +$",0 +textDiceLose db "ÏÐÎÈÃÐÛØ!",0 +textDiceControls1 db "[1] רÒ [2] ÍÅ×ÅÒ [ÏÐÎÁÅË] ÁÐÎÑÎÊ",0 +textDiceControls2 db "[ÂÂÅÐÕ/ÂÍÈÇ] ÑÒÀÂÊÀ [ESC] ÂÛÕÎÄ",0 + +; --- Native 2.5D Skulls Game --- +skulls3d_bet dd 50 +skulls3d_state dd 0 ; 0 = Idle, 1 = Show ball, 2 = Shuffle, 3 = Pick, 4 = Reveal +skulls3d_timer dd 0 +skulls3d_ballPos dd 0 ; 0, 1, 2 +skulls3d_choice dd 0 ; 0, 1, 2 +skulls3d_win dd 0 +skulls3d_swapPair0 dd 0 +skulls3d_swapPair1 dd 1 +skulls3d_swapPair2 dd 2 + +textSkullsTitle db "ÍÀϨÐÑÒÊÈ (×ÅÐÅÏÀ È ÊÓÁÊÈ)",0 +textSkullsPhase0 db "ÂÛÁÅÐÈÒÅ ÑÒÀÂÊÓ È ÍÀÆÌÈÒÅ [ÏÐÎÁÅË]",0 +textSkullsPhase1 db "ÇÀÏÎÌÍÈÒÅ, ÃÄÅ ØÀÐÈÊ!",0 +textSkullsPhase2 db "ÊÐÓ×Ó, ÂÅÐ×Ó, ÇÀÏÓÒÀÒÜ ÕÎ×Ó...",0 +textSkullsPhase3 db "ÃÄÅ ØÀÐÈÊ? ÍÀÆÌÈÒÅ [1], [2] ÈËÈ [3]!",0 +textSkullsWin db "ÂÛ ÓÃÀÄÀËÈ! ÄÆÅÊÏÎÒ x3! +$",0 +textSkullsLose db "ÍÅ ÓÃÀÄÀËÈ! ØÀÐÈÊ ÁÛË ÍÅ ÇÄÅÑÜ!",0 +textSkullsAgain db "[ÏÐÎÁÅË] - ÑÛÃÐÀÒÜ Å٨ ÐÀÇ",0 +textSkullsControls1 db "[1/2/3] ÂÛÁÎÐ ÊÓÁÊÀ [ÏÐÎÁÅË] ÑÒÀÐÒ",0 +textSkullsControls2 db "[ÂÂÅÐÕ/ÂÍÈÇ] ÑÒÀÂÊÀ [ESC] ÂÛÕÎÄ",0 + +shopMsg db 128 dup(0) +atmMsg db 128 dup(0) + +strWin db "ÏÎÁÅÄÀ! +$",0 +strLose db "ÏÐÎÈÃÐÛØ",0 +strJackpot db "ÄÆÅÊÏÎÒ! +$",0 +strPush db "ÍÈ×Üß (PUSH)",0 +strDealerBust db "ÄÈËÅÐ ÏÅÐÅÁÐÀË! ÏÎÁÅÄÀ! +$",0 +strPlayerBust db "ÏÅÐÅÁÎÐ (>21)! ÏÐÎÈÃÐÛØ",0 + +sym7 db " 777 ",0 +symBar db " BAR ",0 +symBell db " BELL",0 +symCherry db "CHERRY",0 +symClover db "CLOVER",0 +symGem db " GEM ",0 +symCrown db "CROWN",0 + +cardRankStr db "A ",0,"2 ",0,"3 ",0,"4 ",0,"5 ",0,"6 ",0,"7 ",0,"8 ",0,"9 ",0,"10",0,"J ",0,"Q ",0,"K ",0 + +.data? +ALIGN 4 +screenBuffer dd SCREEN_SIZE dup(?) +ALIGN 4 +zBuffer dd SCREEN_W dup(?) +ALIGN 4 +texturesBuffer dd (48 * 128 * 128) dup(?) + +hudNumBuffer db 32 dup(?) + +.code + +; --- 3D Window Procedure --- +Casino3DWndProc PROC hwnd:DWORD, uMsg:DWORD, wParam:DWORD, lParam:DWORD + invoke WindowEvents3D, hwnd, uMsg, wParam, lParam + ret +Casino3DWndProc ENDP + +; --- Random Generator --- +RandomRange3D PROC maxVal:DWORD + mov eax, rngSeed3D + imul eax, 1103515245 + add eax, 12345 + mov rngSeed3D, eax + shr eax, 16 + and eax, 7FFFh + xor edx, edx + div maxVal + mov eax, edx + ret +RandomRange3D ENDP + +; --- Copy String --- +CopyString3D PROC src:DWORD, dst:DWORD + push esi + push edi + mov esi, src + mov edi, dst +@@: + mov al, [esi] + mov [edi], al + test al, al + jz @F + inc esi + inc edi + jmp @B +@@: + pop edi + pop esi + ret +CopyString3D ENDP + +; --- Format Number to Decimal String --- +FormatNumber PROC num:DWORD, buf:DWORD + push ebx + push esi + push edi + mov eax, num + mov edi, buf + test eax, eax + jns fn_pos + mov BYTE PTR [edi], '-' + inc edi + neg eax +fn_pos: + mov ebx, 10 + push 0 +fn_div: + xor edx, edx + div ebx + add dl, '0' + push edx + test eax, eax + jnz fn_div +fn_pop: + pop eax + test al, al + jz fn_done + mov [edi], al + inc edi + jmp fn_pop +fn_done: + mov BYTE PTR [edi], 0 + pop edi + pop esi + pop ebx + ret +FormatNumber ENDP + +; --- Fast 2D Drawing Primitives --- +DrawBox PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD + +DrawPixel PROC x:DWORD, y:DWORD, color:DWORD + invoke DrawBox, x, y, 1, 1, color + ret +DrawPixel ENDP + +DrawBox PROC x:DWORD, y:DWORD, w:DWORD, h:DWORD, color:DWORD + shl x, 1 + shl y, 1 + shl w, 1 + shl h, 1 + push ebx + push esi + push edi + mov edi, y +box_row_loop: + mov eax, y + add eax, h + cmp edi, eax + jge box_done + cmp edi, 0 + jl next_box_row + cmp edi, SCREEN_H + jge box_done + + mov esi, x +box_col_loop: + mov eax, x + add eax, w + cmp esi, eax + jge next_box_row + cmp esi, 0 + jl next_box_col + cmp esi, SCREEN_W + jge next_box_row + + mov ecx, edi + imul ecx, SCREEN_W + add ecx, esi + mov edx, color + mov [screenBuffer + ecx*4], edx + +next_box_col: + inc esi + jmp box_col_loop + +next_box_row: + inc edi + jmp box_row_loop + +box_done: + pop edi + pop esi + pop ebx + ret +DrawBox ENDP + +DrawBoxBorder PROC uses ebx x:DWORD, y:DWORD, w:DWORD, h:DWORD, fillColor:DWORD, borderColor:DWORD, bWidth:DWORD + invoke DrawBox, x, y, w, h, borderColor + mov eax, x + add eax, bWidth + mov edx, y + add edx, bWidth + mov ecx, w + sub ecx, bWidth + sub ecx, bWidth + mov ebx, h + sub ebx, bWidth + sub ebx, bWidth + invoke DrawBox, eax, edx, ecx, ebx, fillColor + ret +DrawBoxBorder ENDP + +DrawCircle PROC cxVal:DWORD, cyVal:DWORD, radius:DWORD, color:DWORD + push ebx + push esi + push edi + mov eax, radius + neg eax + mov edi, eax +circ_y: + cmp edi, radius + jg circ_done + mov eax, radius + neg eax + mov esi, eax +circ_x: + cmp esi, radius + jg next_circ_y + + mov eax, esi + imul eax, eax + mov ebx, edi + imul ebx, ebx + add eax, ebx + mov edx, radius + imul edx, edx + cmp eax, edx + jg next_circ_x + + mov eax, cxVal + add eax, esi + mov ecx, cyVal + add ecx, edi + invoke DrawPixel, eax, ecx, color + +next_circ_x: + inc esi + jmp circ_x +next_circ_y: + inc edi + jmp circ_y +circ_done: + pop edi + pop esi + pop ebx + ret +DrawCircle ENDP + +DrawChar8x8 PROC uses ebx esi edi x:DWORD, y:DWORD, chVal:DWORD, color:DWORD + local column:DWORD + mov eax, chVal + and eax, 255 + lea esi, [font8x8 + eax*8] + xor edi, edi +glyph_row: + movzx ebx, BYTE PTR [esi+edi] + mov column, 0 +glyph_col: + test ebx, 80h + jz glyph_next + mov eax, x + add eax, column + mov edx, y + add edx, edi + invoke DrawPixel, eax, edx, color +glyph_next: + shl ebx, 1 + inc column + cmp column, 8 + jl glyph_col + inc edi + cmp edi, 8 + jl glyph_row + ret +DrawChar8x8 ENDP + +DrawString8x8 PROC x:DWORD, y:DWORD, strPtr:DWORD, color:DWORD + push ebx + push esi + mov esi, strPtr + mov ebx, x +str_loop: + movzx eax, BYTE PTR [esi] + test al, al + jz str_done + invoke DrawChar8x8, ebx, y, eax, color + add ebx, 8 + inc esi + jmp str_loop +str_done: + pop esi + pop ebx + ret +DrawString8x8 ENDP + +; --- True 3D Perspective Floor & Ceiling Rendering --- +RenderCeilingAndFloor PROC uses ebx esi edi + local floorRow:DWORD + local pDist:DWORD + local fStepX:DWORD + local fStepY:DWORD + local fX:DWORD + local fY:DWORD + local shade:DWORD + local cShade:DWORD + + ; Horizon line: row 120 + mov edi, HALF_H +floor_scanlines: + cmp edi, SCREEN_H + jge floor_done + mov floorRow, edi + + ; Distance = (HALF_H * FP_1) / (y - HALF_H) + mov eax, edi + sub eax, HALF_H + inc eax + mov ecx, eax + mov eax, HALF_H * FP_1 + cdq + idiv ecx + mov pDist, eax + + ; Distance shading (closer is brighter, far horizon is dark) + mov edx, pDist + shr edx, 13 + mov eax, 255 + sub eax, edx + cmp eax, 35 + jge @F + mov eax, 35 +@@: + mov shade, eax + mov edx, eax + sub edx, 25 + cmp edx, 20 + jge @F + mov edx, 20 +@@: + mov cShade, edx + + ; Step along scanline: (2 * playerPlane) * pDist / SCREEN_W + mov eax, playerPlaneX + shl eax, 1 + imul pDist + shrd eax, edx, 16 + cdq + mov ecx, SCREEN_W + idiv ecx + mov fStepX, eax + + mov eax, playerPlaneY + shl eax, 1 + imul pDist + shrd eax, edx, 16 + cdq + mov ecx, SCREEN_W + idiv ecx + mov fStepY, eax + + ; Starting floor coordinates at x=0: + ; player + pDist * (playerDir - playerPlane) + mov eax, playerDirX + sub eax, playerPlaneX + imul pDist + shrd eax, edx, 16 + add eax, playerX + mov fX, eax + + mov eax, playerDirY + sub eax, playerPlaneY + imul pDist + shrd eax, edx, 16 + add eax, playerY + mov fY, eax + + ; Fill scanline for floor (y) and ceiling (SCREEN_H - 1 - y) + xor esi, esi +col_floor_loop: + cmp esi, SCREEN_W + jge next_floor_row + + ; Carpet Texture (Slot 3: 3 * 4096 * 4 = 49152 bytes) + mov eax, fX + shr eax, 9 + and eax, 127 + mov edx, fY + shr edx, 9 + and edx, 127 + shl edx, 7 + add edx, eax + + mov eax, [texturesBuffer + (3 * 128 * 128 * 4) + edx*4] + + ; Shade Floor RGB + mov ebx, shade + movzx ecx, al + imul ecx, ebx + shr ecx, 8 + push ecx + + movzx ecx, ah + imul ecx, ebx + shr ecx, 8 + shl ecx, 8 + + shr eax, 16 + movzx eax, al + imul eax, ebx + shr eax, 8 + shl eax, 16 + or eax, ecx + pop ecx + or eax, ecx + + ; Store to Floor pixel + mov ecx, floorRow + imul ecx, SCREEN_W + add ecx, esi + mov [screenBuffer + ecx*4], eax + + ; Ceiling Spotlight Texture (Slot 5: 5 * 4096 * 4 = 81920 bytes) + mov eax, [texturesBuffer + (5 * 128 * 128 * 4) + edx*4] + mov ebx, cShade + movzx ecx, al + imul ecx, ebx + shr ecx, 8 + push ecx + + movzx ecx, ah + imul ecx, ebx + shr ecx, 8 + shl ecx, 8 + + shr eax, 16 + movzx eax, al + imul eax, ebx + shr eax, 8 + shl eax, 16 + or eax, ecx + pop ecx + or eax, ecx + + ; Store to Ceiling pixel: (SCREEN_H - 1 - floorRow) + mov ecx, SCREEN_H - 1 + sub ecx, floorRow + imul ecx, SCREEN_W + add ecx, esi + mov [screenBuffer + ecx*4], eax + + mov eax, fStepX + add fX, eax + mov eax, fStepY + add fY, eax + inc esi + jmp col_floor_loop + +next_floor_row: + inc edi + jmp floor_scanlines + +floor_done: + ret +RenderCeilingAndFloor ENDP + +; --- DDA Raycasting Walls --- +RenderWalls PROC + local col:DWORD + local camX:DWORD + local rayDirX:DWORD + local rayDirY:DWORD + local mapX:DWORD + local mapY:DWORD + local deltaDistX:DWORD + local deltaDistY:DWORD + local stepX:DWORD + local stepY:DWORD + local sideDistX:DWORD + local sideDistY:DWORD + local side:DWORD + local perpWallDist:DWORD + local lineH:DWORD + local drawStart:DWORD + local drawEnd:DWORD + local wallHit:DWORD + local texX:DWORD + local texId:DWORD + local shade:DWORD + + push ebx + push esi + push edi + + mov eax, playerAngle + and eax, 511 + mov ebx, [tableCos + eax*4] + mov playerDirX, ebx + mov ebx, [tableSin + eax*4] + mov playerDirY, ebx + + mov eax, ebx + imul eax, -66 + cdq + mov ecx, 100 + idiv ecx + mov playerPlaneX, eax + + mov eax, playerDirX + imul eax, 66 + cdq + idiv ecx + mov playerPlaneY, eax + + mov col, 0 +col_loop: + cmp col, SCREEN_W + jge walls_done + + mov eax, col + shl eax, 1 + sub eax, SCREEN_W + imul eax, FP_1 + cdq + mov ecx, SCREEN_W + idiv ecx + mov camX, eax + + mov eax, playerPlaneX + imul camX + shrd eax, edx, 16 + add eax, playerDirX + mov rayDirX, eax + + mov eax, playerPlaneY + imul camX + shrd eax, edx, 16 + add eax, playerDirY + mov rayDirY, eax + + mov eax, playerX + sar eax, 16 + mov mapX, eax + mov eax, playerY + sar eax, 16 + mov mapY, eax + + mov eax, rayDirX + test eax, eax + jnz calc_delta_x + mov deltaDistX, 7FFFFFFFh + jmp calc_delta_y +calc_delta_x: + test eax, eax + jns @F + neg eax +@@: + mov ebx, eax + cmp ebx, 4 + jbe delta_x_clamp + xor eax, eax + mov edx, 1 + div ebx + mov deltaDistX, eax + jmp calc_delta_y +delta_x_clamp: + mov deltaDistX, 7FFFFFFFh + +calc_delta_y: + mov eax, rayDirY + test eax, eax + jnz calc_delta_y_ok + mov deltaDistY, 7FFFFFFFh + jmp check_step +calc_delta_y_ok: + test eax, eax + jns @F + neg eax +@@: + mov ebx, eax + cmp ebx, 4 + jbe delta_y_clamp + xor eax, eax + mov edx, 1 + div ebx + mov deltaDistY, eax + jmp check_step +delta_y_clamp: + mov deltaDistY, 7FFFFFFFh + +check_step: + cmp rayDirX, 0 + jge step_x_pos + mov stepX, -1 + mov eax, playerX + mov edx, mapX + shl edx, 16 + sub eax, edx + imul deltaDistX + shrd eax, edx, 16 + mov sideDistX, eax + jmp check_step_y +step_x_pos: + mov stepX, 1 + mov eax, mapX + inc eax + shl eax, 16 + sub eax, playerX + imul deltaDistX + shrd eax, edx, 16 + mov sideDistX, eax + +check_step_y: + cmp rayDirY, 0 + jge step_y_pos + mov stepY, -1 + mov eax, playerY + mov edx, mapY + shl edx, 16 + sub eax, edx + imul deltaDistY + shrd eax, edx, 16 + mov sideDistY, eax + jmp dda_start +step_y_pos: + mov stepY, 1 + mov eax, mapY + inc eax + shl eax, 16 + sub eax, playerY + imul deltaDistY + shrd eax, edx, 16 + mov sideDistY, eax + +dda_start: + xor ecx, ecx +dda_step_loop: + inc ecx + cmp ecx, 64 + jge hit_wall + + mov eax, sideDistX + cmp eax, sideDistY + jge step_in_y + + mov eax, deltaDistX + add sideDistX, eax + mov eax, stepX + add mapX, eax + mov side, 0 + jmp check_tile + +step_in_y: + mov eax, deltaDistY + add sideDistY, eax + mov eax, stepY + add mapY, eax + mov side, 1 + +check_tile: + cmp mapX, 0 + jl hit_wall + cmp mapX, MAP_WIDTH + jge hit_wall + cmp mapY, 0 + jl hit_wall + cmp mapY, MAP_HEIGHT + jge hit_wall + + mov eax, mapY + shl eax, 5 + add eax, mapX + movzx eax, BYTE PTR [casinoMap + eax] + test eax, eax + jnz hit_wall + jmp dda_step_loop + +hit_wall: + cmp side, 0 + jne perp_y + mov eax, sideDistX + sub eax, deltaDistX + mov perpWallDist, eax + jmp perp_done +perp_y: + mov eax, sideDistY + sub eax, deltaDistY + mov perpWallDist, eax + +perp_done: + cmp perpWallDist, 2048 + jge @F + mov perpWallDist, 2048 +@@: + mov eax, col + mov edx, perpWallDist + mov [zBuffer + eax*4], edx + + ; High casino ceiling: lineH = (SCREEN_H * FP_1 * 180 / 240) / perpWallDist + mov eax, SCREEN_H + imul eax, FP_1 + cdq + idiv perpWallDist + mov lineH, eax + + mov eax, lineH + shr eax, 1 + mov ecx, HALF_H + sub ecx, eax + mov drawStart, ecx + + mov eax, lineH + shr eax, 1 + mov ecx, HALF_H + add ecx, eax + mov drawEnd, ecx + + cmp side, 0 + jne hit_side_y + mov eax, perpWallDist + imul rayDirY + shrd eax, edx, 16 + add eax, playerY + mov wallHit, eax + jmp calc_tex_x +hit_side_y: + mov eax, perpWallDist + imul rayDirX + shrd eax, edx, 16 + add eax, playerX + mov wallHit, eax + +calc_tex_x: + ; MASK WITH 0FFFFh to prevent texture scrambling! + mov eax, wallHit + and eax, 0FFFFh + shr eax, 9 + and eax, 127 + mov texX, eax + + cmp side, 0 + jne @F + cmp rayDirX, 0 + jle @F + mov eax, 127 + sub eax, texX + mov texX, eax +@@: + cmp side, 1 + jne select_tex + cmp rayDirY, 0 + jge select_tex + mov eax, 127 + sub eax, texX + mov texX, eax + +select_tex: + mov eax, mapY + shl eax, 5 + add eax, mapX + movzx eax, BYTE PTR [casinoMap + eax] + mov texId, eax + cmp texId, 0 + jne @F + mov texId, 1 +@@: + + mov eax, perpWallDist + shr eax, 13 + mov edx, 256 + sub edx, eax + cmp edx, 75 + jge @F + mov edx, 75 +@@: + cmp side, 1 + jne @F + imul edx, 3 + shr edx, 2 +@@: + mov shade, edx + + cmp drawStart, 0 + jge @F + mov drawStart, 0 +@@: + cmp drawEnd, SCREEN_H + jl @F + mov drawEnd, SCREEN_H - 1 +@@: + + mov eax, lineH + cmp eax, 1 + jge @F + mov eax, 1 + mov lineH, eax +@@: + + mov eax, 128 * FP_1 + cdq + idiv lineH + mov esi, eax ; stepY + + mov eax, lineH + shr eax, 1 + add eax, drawStart + sub eax, HALF_H + imul eax, esi + mov edi, eax ; texPos + + mov ecx, drawStart +draw_stripe_loop: + cmp ecx, drawEnd + jg next_col + + mov eax, edi + shr eax, 16 + and eax, 127 + shl eax, 7 + add eax, texX + + mov edx, texId + shl edx, 14 + add eax, edx + mov eax, [texturesBuffer + eax*4] + + ; Shade wall pixel + mov ebx, shade + movzx edx, al + imul edx, ebx + shr edx, 8 + push edx + + movzx edx, ah + imul edx, ebx + shr edx, 8 + shl edx, 8 + + shr eax, 16 + movzx eax, al + imul eax, ebx + shr eax, 8 + shl eax, 16 + or eax, edx + pop edx + or eax, edx + + mov edx, ecx + imul edx, SCREEN_W + add edx, col + mov [screenBuffer + edx*4], eax + + add edi, esi + inc ecx + jmp draw_stripe_loop + +next_col: + inc col + jmp col_loop + +walls_done: + pop edi + pop esi + pop ebx + ret +RenderWalls ENDP + +; --- Render 3D Billboard Sprites --- +RenderSprites PROC + local sprIdx:DWORD + local relX:DWORD + local relY:DWORD + local invDet:DWORD + local transX:DWORD + local transY:DWORD + local sprScreenX:DWORD + local sprH:DWORD + local sprW:DWORD + local drawStartY:DWORD + local drawEndY:DWORD + local drawStartX:DWORD + local drawEndX:DWORD + local stripe:DWORD + local texX:DWORD + local texY:DWORD + local shade:DWORD + local texSlot:DWORD + + push ebx + push esi + push edi + + xor esi, esi +calc_dist_loop: + cmp esi, NUM_SPRITES + jge sort_sprites + mov eax, esi + imul eax, SIZEOF SpriteObject + + mov edx, [casinoSprites + eax].posX + sub edx, playerX + sar edx, 8 + imul edx, edx + mov ebx, edx + + mov edx, [casinoSprites + eax].posY + sub edx, playerY + sar edx, 8 + imul edx, edx + add ebx, edx + + mov [casinoSprites + eax].distSq, ebx + mov [sortedSprites + esi*4], esi + inc esi + jmp calc_dist_loop + +sort_sprites: + xor esi, esi +sort_outer: + cmp esi, NUM_SPRITES - 1 + jge render_sorted_sprites + mov edi, esi + inc edi +sort_inner: + cmp edi, NUM_SPRITES + jge next_sort_outer + + mov eax, [sortedSprites + esi*4] + imul eax, SIZEOF SpriteObject + mov eax, [casinoSprites + eax].distSq + + mov ebx, [sortedSprites + edi*4] + imul ebx, SIZEOF SpriteObject + mov ebx, [casinoSprites + ebx].distSq + + cmp eax, ebx + jge @F + mov ecx, [sortedSprites + esi*4] + mov edx, [sortedSprites + edi*4] + mov [sortedSprites + esi*4], edx + mov [sortedSprites + edi*4], ecx +@@: + inc edi + jmp sort_inner +next_sort_outer: + inc esi + jmp sort_outer + +render_sorted_sprites: + xor esi, esi +draw_spr_loop: + cmp esi, NUM_SPRITES + jge sprites_rendered + + mov eax, [sortedSprites + esi*4] + mov sprIdx, eax + imul eax, SIZEOF SpriteObject + + ; Sample animation by elapsed time. Pausing freezes the clock. + push eax + mov ecx, [casinoSprites + eax].animSpeed + cmp ecx, 0 + jg @F + mov ecx, 1 +@@: + imul ecx, 40 + mov eax, animationClock3D + xor edx, edx + div ecx + pop ebx + mov ecx, [casinoSprites + ebx].frameCount + cmp ecx, 0 + jg @F + mov ecx, 1 +@@: + xor edx, edx + div ecx + mov [casinoSprites + ebx].curFrame, edx + mov eax, ebx + + cmp [casinoSprites + eax].distSq, 16 + jle next_spr + + mov edx, [casinoSprites + eax].posX + sub edx, playerX + mov relX, edx + + mov edx, [casinoSprites + eax].posY + sub edx, playerY + mov relY, edx + + mov eax, playerPlaneX + imul playerDirY + shrd eax, edx, 16 + mov ebx, eax + + mov eax, playerDirX + imul playerPlaneY + shrd eax, edx, 16 + sub ebx, eax + + mov eax, ebx + test eax, eax + jns @F + neg eax +@@: + cmp eax, 4 + jbe next_spr + + ; 2^32 needs the full EDX:EAX dividend, not a truncated multiply. + xor eax, eax + mov edx, 1 + idiv ebx + mov invDet, eax + + mov eax, playerDirY + imul relX + shrd eax, edx, 16 + mov ebx, eax + + mov eax, playerDirX + imul relY + shrd eax, edx, 16 + sub ebx, eax + + mov eax, ebx + imul invDet + shrd eax, edx, 16 + mov transX, eax + + mov eax, playerPlaneY + neg eax + imul relX + shrd eax, edx, 16 + mov ebx, eax + + mov eax, playerPlaneX + imul relY + shrd eax, edx, 16 + add ebx, eax + + mov eax, ebx + imul invDet + shrd eax, edx, 16 + mov transY, eax + + cmp transY, 4096 + jle next_spr + + mov eax, transX + imul eax, HALF_W + cdq + idiv transY + add eax, HALF_W + mov sprScreenX, eax + + mov eax, SCREEN_H + imul eax, FP_1 + cdq + idiv transY + test eax, eax + jns @F + neg eax +@@: + cmp eax, 1 + jge @F + jmp next_spr +@@: + cmp eax, SCREEN_H * 2 + jle @F + mov eax, SCREEN_H * 2 +@@: + mov sprH, eax + mov sprW, eax + + mov eax, HALF_H + mov ebx, sprH + shr ebx, 1 + sub eax, ebx + mov drawStartY, eax + add eax, sprH + mov drawEndY, eax + + mov eax, sprScreenX + mov ebx, sprW + shr ebx, 1 + sub eax, ebx + mov drawStartX, eax + add eax, sprW + mov drawEndX, eax + + cmp drawStartY, 0 + jge @F + mov drawStartY, 0 +@@: + cmp drawEndY, SCREEN_H + jl @F + mov drawEndY, SCREEN_H - 1 +@@: + + mov eax, transY + shr eax, 13 + mov edx, 256 + sub edx, eax + cmp edx, 110 + jge @F + mov edx, 110 +@@: + mov shade, edx + + mov eax, sprIdx + imul eax, SIZEOF SpriteObject + mov edx, [casinoSprites + eax].baseTexId + add edx, [casinoSprites + eax].curFrame + mov texSlot, edx + + mov eax, drawStartX + mov stripe, eax + +spr_stripe_loop: + mov eax, stripe + cmp eax, drawEndX + jge next_spr + + cmp eax, 0 + jl next_spr_stripe + cmp eax, SCREEN_W + jge next_spr + + mov edx, transY + cmp edx, [zBuffer + eax*4] + jge next_spr_stripe + + mov eax, stripe + sub eax, sprScreenX + mov ebx, sprW + shr ebx, 1 + add eax, ebx + shl eax, 7 + cdq + idiv sprW + cmp eax, 0 + jl next_spr_stripe + cmp eax, 128 + jge next_spr_stripe + mov texX, eax + + mov edi, drawStartY +spr_pix_y_loop: + cmp edi, drawEndY + jg next_spr_stripe + + mov eax, edi + sub eax, HALF_H + mov ebx, sprH + shr ebx, 1 + add eax, ebx + shl eax, 7 + cdq + idiv sprH + cmp eax, 0 + jl next_spr_y + cmp eax, 128 + jge next_spr_y + mov texY, eax + + shl eax, 7 + add eax, texX + mov edx, texSlot + shl edx, 14 + add eax, edx + mov eax, [texturesBuffer + eax*4] + + ; Chromakey magenta filter + cmp eax, CHROMA_KEY + je next_spr_y +do_draw_sprite_pix: + mov ebx, shade + movzx edx, al + imul edx, ebx + shr edx, 8 + push edx + + movzx edx, ah + imul edx, ebx + shr edx, 8 + shl edx, 8 + + shr eax, 16 + movzx eax, al + imul eax, ebx + shr eax, 8 + shl eax, 16 + or eax, edx + pop edx + or eax, edx + + mov ecx, edi + imul ecx, SCREEN_W + add ecx, stripe + mov [screenBuffer + ecx*4], eax + +next_spr_y: + inc edi + jmp spr_pix_y_loop + +next_spr_stripe: + inc stripe + jmp spr_stripe_loop + +next_spr: + inc esi + jmp draw_spr_loop + +sprites_rendered: + pop edi + pop esi + pop ebx + ret +RenderSprites ENDP + +; --- HUD & Minimap Radar --- +RenderHUD PROC uses ebx esi edi + invoke DrawBox, 0, 0, 320, 16, 0014191Dh + invoke DrawString8x8, 8, 4, OFFSET textBank3D, 00D8BC6Ah + invoke FormatNumber, bankroll, OFFSET hudNumBuffer + invoke DrawString8x8, 64, 4, OFFSET hudNumBuffer, 00FFFFFFh + invoke DrawString8x8, 176, 4, OFFSET textWindowKeys3D, 00A8B6BBh + invoke DrawBox, 0, 226, 320, 14, 0014191Dh + invoke DrawString8x8, 12, 230, OFFSET textWalkKeys3D, 00A8B6BBh + invoke DrawBox, 159, 118, 2, 5, 00E7DFC8h + invoke DrawBox, 157, 120, 6, 1, 00E7DFC8h + cmp interactPromptPtr, 0 + je @F + invoke DrawBoxBorder, 4, 199, 312, 18, 0014191Dh, 00D8BC6Ah, 1 + invoke DrawString8x8, 10, 204, interactPromptPtr, 00F5E2B0h +@@: + cmp flashTimer, 0 + je hud_finished + dec flashTimer + invoke DrawBox, 4, 22, 312, 16, 0014191Dh + invoke DrawString8x8, 10, 26, OFFSET flashMessage, 00FFFFFFh +hud_finished: + ret +RenderHUD ENDP + +RenderMinimap PROC uses ebx esi edi + local radarX:DWORD + local radarY:DWORD + local radarSize:DWORD + + mov radarX, 320 - 48 + mov radarY, 20 + mov radarSize, 44 + + invoke DrawBoxBorder, radarX, radarY, radarSize, radarSize, 00101510h, 0000D7FFh, 1 + + ; Draw Sprites on radar + xor esi, esi +radar_spr_loop: + cmp esi, NUM_SPRITES + jge draw_player_radar + mov eax, esi + imul eax, SIZEOF SpriteObject + mov eax, [casinoSprites + eax].posX + sar eax, 16 + imul eax, radarSize + shr eax, 5 + add eax, radarX + mov ebx, eax + + mov eax, esi + imul eax, SIZEOF SpriteObject + mov eax, [casinoSprites + eax].posY + sar eax, 16 + imul eax, radarSize + shr eax, 5 + add eax, radarY + + invoke DrawPixel, ebx, eax, 00FFAA00h + inc esi + jmp radar_spr_loop + +draw_player_radar: + mov eax, playerX + sar eax, 16 + imul eax, radarSize + shr eax, 5 + add eax, radarX + mov ebx, eax + + mov eax, playerY + sar eax, 16 + imul eax, radarSize + shr eax, 5 + add eax, radarY + + invoke DrawCircle, ebx, eax, 2, 000000FFh + ret +RenderMinimap ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: SLOTS 777 +; ============================================================================== +HandleSlotsInput PROC + cmp slotSpinState, 1 + je slots_input_done + + invoke Pressed3D, 20h ; SPACE -> Spin + test ah, 80h + jz check_bet_adjust + mov eax, bankroll + cmp eax, slotBet + jl @F + sub eax, slotBet + mov bankroll, eax + mov slotSpinState, 1 + mov slotSpinTimer, 0 + mov slotWinAmount, 0 + invoke PlaySoundA, OFFSET soundClick, 0, 1 + jmp slots_input_done +@@: + invoke CopyString3D, OFFSET msgNeedMoney, OFFSET flashMessage + mov flashTimer, 60 + +check_bet_adjust: + invoke Pressed3D, 26h ; UP / W + test ah, 80h + jnz inc_bet + invoke Pressed3D, 57h + test ah, 80h + jz check_bet_down +inc_bet: + cmp slotBet, 500 + jge slots_input_done + cmp slotBet, 100 + jge @F + cmp slotBet, 50 + jge set_100 + mov slotBet, 50 + jmp slots_input_done +set_100: + mov slotBet, 100 + jmp slots_input_done +@@: + mov slotBet, 500 + jmp slots_input_done + +check_bet_down: + invoke Pressed3D, 28h ; DOWN / S + test ah, 80h + jnz dec_bet + invoke Pressed3D, 53h + test ah, 80h + jz slots_input_done +dec_bet: + cmp slotBet, 50 + jle set_10 + cmp slotBet, 100 + jle set_50 + mov slotBet, 100 + jmp slots_input_done +set_50: + mov slotBet, 50 + jmp slots_input_done +set_10: + mov slotBet, 10 + +slots_input_done: + ret +HandleSlotsInput ENDP + +RenderSlotsGame PROC uses ebx esi edi + ; Cabinet Background (Dark Cherry Wood & Gold) + invoke DrawBox, 0, 0, SCREEN_W, SCREEN_H, 00150A10h + invoke DrawBoxBorder, 10, 10, 300, 220, 00251015h, 0000D7FFh, 3 + + ; Illuminated Top Marquee + invoke DrawBoxBorder, 25, 20, 270, 32, 000A0505h, 0000FFFFh, 2 + invoke DrawString8x8, 55, 32, OFFSET textSlots3D, 0000D7FFh + + ; Spinning Animation Logic + cmp slotSpinState, 1 + jne draw_reels + inc slotSpinTimer + + cmp slotSpinTimer, 22 + jge @F + invoke RandomRange3D, 7 + mov slotReel1, eax +@@: + cmp slotSpinTimer, 36 + jge @F + invoke RandomRange3D, 7 + mov slotReel2, eax +@@: + cmp slotSpinTimer, 50 + jge @F + invoke RandomRange3D, 7 + mov slotReel3, eax +@@: + cmp slotSpinTimer, 50 + jl draw_reels + + ; Spin finished! Check outcome! + mov slotSpinState, 0 + mov eax, slotReel1 + cmp eax, slotReel2 + jne check_pairs + cmp eax, slotReel3 + jne check_pairs + + ; 3 Matching! + cmp eax, 0 ; 777! + jne @F + mov eax, slotBet + imul eax, 25 + mov slotWinAmount, eax + add bankroll, eax + invoke PlaySoundA, OFFSET soundJackpot, 0, 1 + jmp draw_reels +@@: + cmp eax, 6 ; CROWN! + jne @F + mov eax, slotBet + imul eax, 50 + mov slotWinAmount, eax + add bankroll, eax + invoke PlaySoundA, OFFSET soundJackpot, 0, 1 + jmp draw_reels +@@: + mov eax, slotBet + imul eax, 10 + mov slotWinAmount, eax + add bankroll, eax + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + jmp draw_reels + +check_pairs: + mov eax, slotReel1 + cmp eax, slotReel2 + je pair_win + mov eax, slotReel2 + cmp eax, slotReel3 + je pair_win + mov eax, slotReel1 + cmp eax, slotReel3 + je pair_win + jmp draw_reels +pair_win: + mov eax, slotBet + imul eax, 2 + mov slotWinAmount, eax + add bankroll, eax + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + +draw_reels: + ; Reels Window + invoke DrawBoxBorder, 30, 62, 260, 95, 000F0F12h, 0000A5FFh, 2 + + ; Reel 1 (45..105) + invoke DrawBoxBorder, 45, 68, 65, 82, 00F0F0F5h, 00505050h, 2 + mov eax, slotReel1 + call DrawReelSymbolAt1 + + ; Reel 2 (128..188) + invoke DrawBoxBorder, 128, 68, 65, 82, 00F0F0F5h, 00505050h, 2 + mov eax, slotReel2 + call DrawReelSymbolAt2 + + ; Reel 3 (210..270) + invoke DrawBoxBorder, 210, 68, 65, 82, 00F0F0F5h, 00505050h, 2 + mov eax, slotReel3 + call DrawReelSymbolAt3 + + ; Bottom Control Panel + invoke DrawBoxBorder, 20, 165, 280, 58, 00151515h, 0000D7FFh, 1 + + invoke DrawString8x8, 28, 172, OFFSET textBank3D, 0000D7FFh + invoke FormatNumber, bankroll, OFFSET hudNumBuffer + invoke DrawString8x8, 110, 172, OFFSET hudNumBuffer, 0000FFFFh + + invoke DrawString8x8, 175, 172, OFFSET textBet3D, 0000D7FFh + invoke FormatNumber, slotBet, OFFSET hudNumBuffer + invoke DrawString8x8, 240, 172, OFFSET hudNumBuffer, 0050FF50h + + cmp slotWinAmount, 0 + jle draw_slot_ctrls + invoke DrawString8x8, 28, 187, OFFSET strWin, 0000FFFFh + invoke FormatNumber, slotWinAmount, OFFSET hudNumBuffer + invoke DrawString8x8, 110, 187, OFFSET hudNumBuffer, 0000FFFFh + +draw_slot_ctrls: + invoke DrawString8x8, 28, 204, OFFSET textSlotsKeys3D, 00A0A0A0h + ret +RenderSlotsGame ENDP + +DrawReelSymbolAt1 PROC + cmp eax, 0 + jne @F + invoke DrawString8x8, 52, 105, OFFSET sym7, 000000FFh + ret +@@: + cmp eax, 1 + jne @F + invoke DrawString8x8, 52, 105, OFFSET symBar, 00FFAA00h + ret +@@: + cmp eax, 2 + jne @F + invoke DrawString8x8, 52, 105, OFFSET symBell, 0000D7FFh + ret +@@: + cmp eax, 3 + jne @F + invoke DrawString8x8, 48, 105, OFFSET symCherry, 000000D0h + ret +@@: + cmp eax, 4 + jne @F + invoke DrawString8x8, 48, 105, OFFSET symClover, 0000A000h + ret +@@: + cmp eax, 5 + jne @F + invoke DrawString8x8, 52, 105, OFFSET symGem, 00FFFF00h + ret +@@: + invoke DrawString8x8, 52, 105, OFFSET symCrown, 0000D7FFh + ret +DrawReelSymbolAt1 ENDP + +DrawReelSymbolAt2 PROC + cmp eax, 0 + jne @F + invoke DrawString8x8, 135, 105, OFFSET sym7, 000000FFh + ret +@@: + cmp eax, 1 + jne @F + invoke DrawString8x8, 135, 105, OFFSET symBar, 00FFAA00h + ret +@@: + cmp eax, 2 + jne @F + invoke DrawString8x8, 135, 105, OFFSET symBell, 0000D7FFh + ret +@@: + cmp eax, 3 + jne @F + invoke DrawString8x8, 131, 105, OFFSET symCherry, 000000D0h + ret +@@: + cmp eax, 4 + jne @F + invoke DrawString8x8, 131, 105, OFFSET symClover, 0000A000h + ret +@@: + cmp eax, 5 + jne @F + invoke DrawString8x8, 135, 105, OFFSET symGem, 00FFFF00h + ret +@@: + invoke DrawString8x8, 135, 105, OFFSET symCrown, 0000D7FFh + ret +DrawReelSymbolAt2 ENDP + +DrawReelSymbolAt3 PROC + cmp eax, 0 + jne @F + invoke DrawString8x8, 218, 105, OFFSET sym7, 000000FFh + ret +@@: + cmp eax, 1 + jne @F + invoke DrawString8x8, 218, 105, OFFSET symBar, 00FFAA00h + ret +@@: + cmp eax, 2 + jne @F + invoke DrawString8x8, 218, 105, OFFSET symBell, 0000D7FFh + ret +@@: + cmp eax, 3 + jne @F + invoke DrawString8x8, 214, 105, OFFSET symCherry, 000000D0h + ret +@@: + cmp eax, 4 + jne @F + invoke DrawString8x8, 214, 105, OFFSET symClover, 0000A000h + ret +@@: + cmp eax, 5 + jne @F + invoke DrawString8x8, 218, 105, OFFSET symGem, 00FFFF00h + ret +@@: + invoke DrawString8x8, 218, 105, OFFSET symCrown, 0000D7FFh + ret +DrawReelSymbolAt3 ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: BLACKJACK (21) +; ============================================================================== +HandleBlackjackInput PROC uses ebx + cmp bjState, 0 ; Need Deal + jne check_bj_player_turn + invoke Pressed3D, 20h ; SPACE -> Deal + test ah, 80h + jz check_bj_bet_change + mov eax, bankroll + cmp eax, bjBet + jl bj_need_cash + sub eax, bjBet + mov bankroll, eax + + ; Deal 2 cards to player, 2 cards to dealer + mov bjPlayerCardCount, 0 + mov bjDealerCardCount, 0 + mov bjDealerHideHole, 1 + + ; Player Card 1 + invoke RandomRange3D, 13 + inc eax + mov ebx, bjPlayerCardCount + mov [bjPlayerCards + ebx*4], eax + inc bjPlayerCardCount + + ; Dealer Card 1 + invoke RandomRange3D, 13 + inc eax + mov ebx, bjDealerCardCount + mov [bjDealerCards + ebx*4], eax + inc bjDealerCardCount + + ; Player Card 2 + invoke RandomRange3D, 13 + inc eax + mov ebx, bjPlayerCardCount + mov [bjPlayerCards + ebx*4], eax + inc bjPlayerCardCount + + ; Dealer Card 2 (Hole card) + invoke RandomRange3D, 13 + inc eax + mov ebx, bjDealerCardCount + mov [bjDealerCards + ebx*4], eax + inc bjDealerCardCount + + invoke PlaySoundA, OFFSET soundCards, 0, 1 + + ; Calc Player Score + call CalcPlayerBJScore + cmp bjPlayerScore, 21 + jne set_bj_turn + ; Instant Blackjack! + mov bjDealerHideHole, 0 + mov eax, bjBet + imul eax, 5 + shr eax, 1 + add bankroll, eax + invoke CopyString3D, OFFSET strWin, OFFSET bjOutcomeMsg + invoke PlaySoundA, OFFSET soundJackpot, 0, 1 + mov bjState, 2 + ret +set_bj_turn: + mov bjState, 1 + mov BYTE PTR [bjOutcomeMsg], 0 + ret + +bj_need_cash: + invoke CopyString3D, OFFSET msgNeedMoney, OFFSET flashMessage + mov flashTimer, 60 + ret + +check_bj_player_turn: + cmp bjState, 1 + jne check_bj_round_over + + invoke Pressed3D, 48h ; 'H' -> Hit + test ah, 80h + jz check_bj_stand + invoke RandomRange3D, 13 + inc eax + mov ebx, bjPlayerCardCount + cmp ebx, 8 + jge @F + mov [bjPlayerCards + ebx*4], eax + inc bjPlayerCardCount +@@: + invoke PlaySoundA, OFFSET soundCards, 0, 1 + call CalcPlayerBJScore + cmp bjPlayerScore, 21 + jle bj_input_done + ; Bust! + invoke CopyString3D, OFFSET strPlayerBust, OFFSET bjOutcomeMsg + mov bjDealerHideHole, 0 + mov bjState, 2 + ret + +check_bj_stand: + invoke Pressed3D, 53h ; 'S' -> Stand + test ah, 80h + jz bj_input_done + + ; Dealer Turn + mov bjDealerHideHole, 0 +dealer_loop: + call CalcDealerBJScore + cmp bjDealerScore, 17 + jge dealer_finished + invoke RandomRange3D, 13 + inc eax + mov ebx, bjDealerCardCount + cmp ebx, 8 + jge dealer_finished + mov [bjDealerCards + ebx*4], eax + inc bjDealerCardCount + jmp dealer_loop + +dealer_finished: + cmp bjDealerScore, 21 + jle compare_scores + ; Dealer Bust! + mov eax, bjBet + shl eax, 1 + add bankroll, eax + invoke CopyString3D, OFFSET strDealerBust, OFFSET bjOutcomeMsg + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + mov bjState, 2 + ret + +compare_scores: + mov eax, bjPlayerScore + cmp eax, bjDealerScore + jle check_dealer_won + ; Player Won! + mov eax, bjBet + shl eax, 1 + add bankroll, eax + invoke CopyString3D, OFFSET strWin, OFFSET bjOutcomeMsg + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + mov bjState, 2 + ret +check_dealer_won: + cmp eax, bjDealerScore + jl dealer_wins + ; Push (Tie) + mov eax, bjBet + add bankroll, eax + invoke CopyString3D, OFFSET strPush, OFFSET bjOutcomeMsg + mov bjState, 2 + ret +dealer_wins: + invoke CopyString3D, OFFSET strLose, OFFSET bjOutcomeMsg + mov bjState, 2 + ret + +check_bj_round_over: + invoke Pressed3D, 20h ; SPACE -> Next Hand + test ah, 80h + jz bj_input_done + mov bjState, 0 + ret + +check_bj_bet_change: + invoke Pressed3D, 26h ; UP + test ah, 80h + jz @F + cmp bjBet, 500 + jge bj_input_done + add bjBet, 50 + ret +@@: + invoke Pressed3D, 28h ; DOWN + test ah, 80h + jz bj_input_done + cmp bjBet, 50 + jle bj_input_done + sub bjBet, 50 + +bj_input_done: + ret +HandleBlackjackInput ENDP + +CalcPlayerBJScore PROC uses ebx esi + xor eax, eax + xor ebx, ebx + xor esi, esi +calc_p_loop: + cmp esi, bjPlayerCardCount + jge calc_p_done + mov edx, [bjPlayerCards + esi*4] + cmp edx, 10 + jle @F + mov edx, 10 +@@: + cmp edx, 1 + jne add_p_val + inc ebx ; count Aces + add eax, 11 + jmp next_p_card +add_p_val: + add eax, edx +next_p_card: + inc esi + jmp calc_p_loop +calc_p_done: + ; Soft Ace reduction +reduce_p_ace: + cmp eax, 21 + jle store_p_score + test ebx, ebx + jz store_p_score + sub eax, 10 + dec ebx + jmp reduce_p_ace +store_p_score: + mov bjPlayerScore, eax + ret +CalcPlayerBJScore ENDP + +CalcDealerBJScore PROC uses ebx esi + xor eax, eax + xor ebx, ebx + xor esi, esi +calc_d_loop: + cmp esi, bjDealerCardCount + jge calc_d_done + mov edx, [bjDealerCards + esi*4] + cmp edx, 10 + jle @F + mov edx, 10 +@@: + cmp edx, 1 + jne add_d_val + inc ebx + add eax, 11 + jmp next_d_card +add_d_val: + add eax, edx +next_d_card: + inc esi + jmp calc_d_loop +calc_d_done: +reduce_d_ace: + cmp eax, 21 + jle store_d_score + test ebx, ebx + jz store_d_score + sub eax, 10 + dec ebx + jmp reduce_d_ace +store_d_score: + mov bjDealerScore, eax + ret +CalcDealerBJScore ENDP + +RenderBlackjackGame PROC uses ebx esi edi + ; Emerald Felt Table Background + invoke DrawBox, 0, 0, SCREEN_W, SCREEN_H, 000A3015h + invoke DrawBoxBorder, 10, 10, 300, 220, 000D4018h, 0000D7FFh, 3 + + ; Dealer Area Top + invoke DrawString8x8, 25, 20, OFFSET textBJ3D, 0000D7FFh + invoke DrawString8x8, 25, 35, OFFSET textDealer3D, 00FFFFFFh + invoke FormatNumber, bjDealerScore, OFFSET hudNumBuffer + invoke DrawString8x8, 120, 35, OFFSET hudNumBuffer, 0000FFFFh + + ; Dealer Cards + xor esi, esi +draw_dealer_cards: + cmp esi, bjDealerCardCount + jge draw_player_bj_area + mov eax, esi + imul eax, 45 + add eax, 25 + mov ebx, eax + + cmp esi, 1 + jne draw_dealer_face + cmp bjDealerHideHole, 1 + jne draw_dealer_face + ; Face Down Card + mov eax, selectedBack3D + mov eax, cardBackColors3D[eax*4] + invoke DrawBoxBorder, ebx, 48, 38, 52, eax, 00FFFFFFh, 2 + jmp next_dealer_card_draw + +draw_dealer_face: + invoke DrawBoxBorder, ebx, 48, 38, 52, 00F0F0F5h, 00000000h, 2 + mov eax, [bjDealerCards + esi*4] + dec eax + imul eax, 3 + lea edx, [cardRankStr + eax] + mov eax, ebx + add eax, 8 + invoke DrawString8x8, eax, 68, edx, 00000000h + +next_dealer_card_draw: + inc esi + jmp draw_dealer_cards + +draw_player_bj_area: + ; Player Area Bottom + invoke DrawString8x8, 25, 110, OFFSET textPlayer3D, 00FFFFFFh + invoke FormatNumber, bjPlayerScore, OFFSET hudNumBuffer + invoke DrawString8x8, 120, 110, OFFSET hudNumBuffer, 0050FF50h + + ; Player Cards + xor esi, esi +draw_player_cards: + cmp esi, bjPlayerCardCount + jge draw_bj_footer + mov eax, esi + imul eax, 45 + add eax, 25 + mov ebx, eax + + invoke DrawBoxBorder, ebx, 124, 38, 52, 00F0F0F5h, 00000000h, 2 + mov eax, [bjPlayerCards + esi*4] + dec eax + imul eax, 3 + lea edx, [cardRankStr + eax] + mov eax, ebx + add eax, 8 + invoke DrawString8x8, eax, 144, edx, 00000000h + + inc esi + jmp draw_player_cards + +draw_bj_footer: + ; Footer Status & Controls + invoke DrawBoxBorder, 20, 182, 280, 42, 00102010h, 0000D7FFh, 1 + cmp BYTE PTR [bjOutcomeMsg], 0 + je draw_bj_controls + invoke DrawString8x8, 28, 188, OFFSET bjOutcomeMsg, 0000FFFFh + invoke DrawString8x8, 28, 204, OFFSET textNext3D, 00A0A0A0h + ret + +draw_bj_controls: + invoke DrawString8x8, 28, 188, OFFSET textBJKeys3D, 00FFFFFFh + invoke DrawString8x8, 28, 204, OFFSET textDeal3D, 00A0A0A0h + ret +RenderBlackjackGame ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: ROULETTE +; ============================================================================== +HandleRouletteInput PROC uses ebx + cmp roulState, 1 + je roul_input_done + + invoke Pressed3D, 31h ; '1' -> RED + test ah, 80h + jz @F + mov roulBetType, 1 +@@: + invoke Pressed3D, 32h ; '2' -> BLACK + test ah, 80h + jz @F + mov roulBetType, 2 +@@: + invoke Pressed3D, 33h ; '3' -> ZERO (0) + test ah, 80h + jz @F + mov roulBetType, 3 +@@: + invoke Pressed3D, 34h ; '4' -> EVEN + test ah, 80h + jz @F + mov roulBetType, 4 +@@: + invoke Pressed3D, 35h ; '5' -> ODD + test ah, 80h + jz check_roul_spin + mov roulBetType, 5 + +check_roul_spin: + invoke Pressed3D, 20h ; SPACE -> Spin + test ah, 80h + jz roul_input_done + mov eax, bankroll + cmp eax, roulBetAmount + jl roul_no_cash + sub eax, roulBetAmount + mov bankroll, eax + mov roulState, 1 + mov roulSpinTimer, 50 + mov roulPayout, 0 + invoke PlaySoundA, OFFSET soundRoulette, 0, 1 + ret + +roul_no_cash: + invoke CopyString3D, OFFSET msgNeedMoney, OFFSET flashMessage + mov flashTimer, 60 + +roul_input_done: + ret +HandleRouletteInput ENDP + +RenderRouletteGame PROC uses ebx esi edi + ; Table felt background + invoke DrawBox, 0, 0, SCREEN_W, SCREEN_H, 00151525h + invoke DrawBoxBorder, 10, 10, 300, 220, 00201525h, 0000D7FFh, 3 + + ; 2.5D Rotating Wheel on Left + invoke DrawCircle, 85, 110, 65, 00102550h + invoke DrawCircle, 85, 110, 60, 0000D7FFh + invoke DrawCircle, 85, 110, 52, 00101010h + invoke DrawCircle, 85, 110, 22, 0000D7FFh ; Center brass turret + + ; Spinning Wheel / Ball Logic + cmp roulState, 1 + jne draw_roul_ball + dec roulSpinTimer + add roulWheelAngle, 8 + sub roulBallAngle, 14 + cmp roulSpinTimer, 0 + jg draw_roul_ball + + ; Wheel stopped! Determine result! + mov roulState, 2 + invoke RandomRange3D, 37 + mov roulWinningNum, eax + + ; Check bet + cmp roulBetType, 1 ; RED + jne check_ro_black + call IsNumberRed + test eax, eax + jz ro_lost + mov eax, roulBetAmount + shl eax, 1 + mov roulPayout, eax + add bankroll, eax + invoke CopyString3D, OFFSET strWin, OFFSET roulOutcomeMsg + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + jmp draw_roul_ball + +check_ro_black: + cmp roulBetType, 2 ; BLACK + jne check_ro_zero + cmp roulWinningNum, 0 + je ro_lost + call IsNumberRed + test eax, eax + jnz ro_lost + mov eax, roulBetAmount + shl eax, 1 + mov roulPayout, eax + add bankroll, eax + invoke CopyString3D, OFFSET strWin, OFFSET roulOutcomeMsg + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + jmp draw_roul_ball + +check_ro_zero: + cmp roulBetType, 3 ; ZERO + jne check_ro_even + cmp roulWinningNum, 0 + jne ro_lost + mov eax, roulBetAmount + imul eax, 36 + mov roulPayout, eax + add bankroll, eax + invoke CopyString3D, OFFSET strJackpot, OFFSET roulOutcomeMsg + invoke PlaySoundA, OFFSET soundJackpot, 0, 1 + jmp draw_roul_ball + +check_ro_even: + cmp roulBetType, 4 ; EVEN + jne check_ro_odd + mov eax, roulWinningNum + test eax, eax + jz ro_lost + test al, 1 + jnz ro_lost + mov eax, roulBetAmount + shl eax, 1 + mov roulPayout, eax + add bankroll, eax + invoke CopyString3D, OFFSET strWin, OFFSET roulOutcomeMsg + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + jmp draw_roul_ball + +check_ro_odd: + mov eax, roulWinningNum + test eax, eax + jz ro_lost + test al, 1 + jz ro_lost + mov eax, roulBetAmount + shl eax, 1 + mov roulPayout, eax + add bankroll, eax + invoke CopyString3D, OFFSET strWin, OFFSET roulOutcomeMsg + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + jmp draw_roul_ball + +ro_lost: + invoke CopyString3D, OFFSET strLose, OFFSET roulOutcomeMsg + +draw_roul_ball: + ; Draw White Ball on Rim + mov eax, roulBallAngle + and eax, 511 + mov ebx, [tableCos + eax*4] + imul ebx, 42 + sar ebx, 16 + add ebx, 85 + + mov eax, roulBallAngle + and eax, 511 + mov edx, [tableSin + eax*4] + imul edx, 42 + sar edx, 16 + add edx, 110 + invoke DrawCircle, ebx, edx, 3, 00FFFFFFh + + ; Right Betting Board + invoke DrawBoxBorder, 175, 25, 125, 28, 001010C0h, 00FFFFFFh, 2 ; [1] RED + invoke DrawString8x8, 190, 35, OFFSET textRed3D, 00FFFFFFh + + invoke DrawBoxBorder, 175, 60, 125, 28, 00151515h, 00FFFFFFh, 2 ; [2] BLACK + invoke DrawString8x8, 190, 70, OFFSET textBlack3D, 00FFFFFFh + + invoke DrawBoxBorder, 175, 95, 125, 28, 00106010h, 00FFFFFFh, 2 ; [3] ZERO + invoke DrawString8x8, 190, 105, OFFSET textZero3D, 00FFFFFFh + + invoke DrawBoxBorder, 175, 130, 60, 26, 00302020h, 00FFFFFFh, 1 ; [4] EVEN + invoke DrawString8x8, 185, 139, OFFSET textEven3D, 00FFFFFFh + + invoke DrawBoxBorder, 240, 130, 60, 26, 00302020h, 00FFFFFFh, 1 ; [5] ODD + invoke DrawString8x8, 250, 139, OFFSET textOdd3D, 00FFFFFFh + + ; Highlight Active Bet + cmp roulBetType, 1 + jne @F + invoke DrawBoxBorder, 173, 23, 129, 32, 0, 0000FFFFh, 2 +@@: + cmp roulBetType, 2 + jne @F + invoke DrawBoxBorder, 173, 58, 129, 32, 0, 0000FFFFh, 2 +@@: + cmp roulBetType, 3 + jne @F + invoke DrawBoxBorder, 173, 93, 129, 32, 0, 0000FFFFh, 2 +@@: + cmp roulBetType, 4 + jne @F + invoke DrawBoxBorder, 173, 128, 64, 30, 0, 0000FFFFh, 2 +@@: + cmp roulBetType, 5 + jne draw_ro_footer + invoke DrawBoxBorder, 238, 128, 64, 30, 0, 0000FFFFh, 2 + +draw_ro_footer: + invoke DrawBoxBorder, 20, 180, 280, 42, 00101015h, 0000D7FFh, 1 + + cmp roulState, 2 + jne @F + invoke DrawString8x8, 28, 186, OFFSET textResult3D, 0000D7FFh + invoke FormatNumber, roulWinningNum, OFFSET hudNumBuffer + invoke DrawString8x8, 85, 186, OFFSET hudNumBuffer, 0000FFFFh + invoke DrawString8x8, 130, 186, OFFSET roulOutcomeMsg, 0050FF50h +@@: + invoke DrawString8x8, 28, 202, OFFSET textSpin3D, 00A0A0A0h + ret +RenderRouletteGame ENDP + +IsNumberRed PROC + mov eax, roulWinningNum + cmp eax, 1 + je red_yes + cmp eax, 3 + je red_yes + cmp eax, 5 + je red_yes + cmp eax, 7 + je red_yes + cmp eax, 9 + je red_yes + cmp eax, 12 + je red_yes + cmp eax, 14 + je red_yes + cmp eax, 16 + je red_yes + cmp eax, 18 + je red_yes + cmp eax, 19 + je red_yes + cmp eax, 21 + je red_yes + cmp eax, 23 + je red_yes + cmp eax, 25 + je red_yes + cmp eax, 27 + je red_yes + cmp eax, 30 + je red_yes + cmp eax, 32 + je red_yes + cmp eax, 34 + je red_yes + cmp eax, 36 + je red_yes + xor eax, eax + ret +red_yes: + mov eax, 1 + ret +IsNumberRed ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: BAR & SHOP +; ============================================================================== +HandleShopInput PROC uses ebx esi + xor esi, esi +shop_choice: + inc esi + lea eax, [esi+30h] + invoke Pressed3D, eax + test eax, eax + jnz shop_chosen + cmp esi, 3 + jb shop_choice + ret +shop_chosen: + bt ownedBacks3D, esi + jc shop_equip + mov ebx, 1500 + cmp esi, 1 + jne @F + mov ebx, 1000 +@@: + cmp bankroll, ebx + jb shop_no_money + sub bankroll, ebx + bts ownedBacks3D, esi +shop_equip: + mov selectedBack3D, esi + invoke CopyString3D, OFFSET textBought3D, OFFSET shopMsg + call SaveProgress3D + ret +shop_no_money: + invoke CopyString3D, OFFSET textNoCash3D, OFFSET shopMsg + ret +HandleShopInput ENDP + +RenderShopGame PROC + invoke DrawBox, 0, 0, SCREEN_W, SCREEN_H, 00150A0Ah + invoke DrawBoxBorder, 10, 10, 300, 220, 00251515h, 0000D7FFh, 3 + invoke DrawString8x8, 25, 20, OFFSET textShop3D, 0000D7FFh + + invoke DrawBoxBorder, 20, 40, 280, 32, 001A1010h, 00FFFFFFh, 1 + invoke DrawString8x8, 28, 46, OFFSET textItem1_3D, 0000FFFFh + invoke DrawString8x8, 28, 58, OFFSET textShopHint3D, 00A0A0A0h + + invoke DrawBoxBorder, 20, 80, 280, 32, 001A1010h, 00FFFFFFh, 1 + invoke DrawString8x8, 28, 86, OFFSET textItem2_3D, 0000FFFFh + invoke DrawString8x8, 28, 98, OFFSET textShopHint3D, 00A0A0A0h + + invoke DrawBoxBorder, 20, 120, 280, 32, 001A1010h, 00FFFFFFh, 1 + invoke DrawString8x8, 28, 126, OFFSET textItem3_3D, 0000FFFFh + invoke DrawString8x8, 28, 138, OFFSET textShopHint3D, 00A0A0A0h + + invoke DrawBoxBorder, 20, 165, 280, 55, 00100A0Ah, 0000D7FFh, 1 + invoke DrawString8x8, 28, 172, OFFSET textBank3D, 0000D7FFh + invoke FormatNumber, bankroll, OFFSET hudNumBuffer + invoke DrawString8x8, 110, 172, OFFSET hudNumBuffer, 0000FFFFh + + cmp BYTE PTR [shopMsg], 0 + je @F + invoke DrawString8x8, 28, 188, OFFSET shopMsg, 0050FF50h +@@: + invoke DrawString8x8, 28, 204, OFFSET textBack3D, 00A0A0A0h + ret +RenderShopGame ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: ATM TERMINAL +; ============================================================================== +HandleATMInput PROC + ret +HandleATMInput ENDP + +RenderATMGame PROC + invoke DrawBox, 0, 0, 320, 240, 00172120h + invoke DrawString8x8, 24, 30, OFFSET textATM3D, 00D8BC6Ah + invoke DrawString8x8, 24, 70, OFFSET textBank3D, 00FFFFFFh + invoke FormatNumber, bankroll, OFFSET hudNumBuffer + invoke DrawString8x8, 96, 70, OFFSET hudNumBuffer, 0089DAB2h + invoke DrawString8x8, 24, 115, OFFSET textATMNote3D, 00B7C8C1h + invoke DrawString8x8, 24, 140, OFFSET textATMNote2_3D, 00B7C8C1h + invoke DrawString8x8, 24, 208, OFFSET textBack3D, 00D8BC6Ah + ret +RenderATMGame ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: COIN FLIP (ÌÎÍÅÒÊÀ) +; ============================================================================== +DrawCoinEllipse PROC uses ebx esi edi cxVal:DWORD, cyVal:DWORD, rxVal:DWORD, ryVal:DWORD, outerColor:DWORD, innerColor:DWORD + local curDY:DWORD, curDX:DWORD, rxSq:DWORD, rySq:DWORD, rxRySq:DWORD, threshSq:DWORD + cmp rxVal, 0 + jle ellipse_done + cmp ryVal, 0 + jle ellipse_done + + mov eax, rxVal + imul eax, eax + mov rxSq, eax + + mov eax, ryVal + imul eax, eax + mov rySq, eax + + mov eax, rxSq + imul eax, rySq + mov rxRySq, eax + + mov eax, rxRySq + shr eax, 2 + imul eax, 3 + mov threshSq, eax + + mov eax, ryVal + neg eax + mov curDY, eax + +ellipse_y_loop: + mov eax, curDY + cmp eax, ryVal + jg ellipse_done + + mov eax, rxVal + neg eax + mov curDX, eax + +ellipse_x_loop: + mov eax, curDX + cmp eax, rxVal + jg next_ellipse_y + + mov eax, curDX + imul eax, eax + imul eax, rySq + mov ebx, curDY + imul ebx, ebx + imul ebx, rxSq + add eax, ebx + cmp eax, rxRySq + jg next_ellipse_x + + mov ecx, innerColor + cmp eax, threshSq + jb @F + mov ecx, outerColor +@@: + mov eax, cxVal + add eax, curDX + mov edx, cyVal + add edx, curDY + invoke DrawPixel, eax, edx, ecx + +next_ellipse_x: + inc curDX + jmp ellipse_x_loop + +next_ellipse_y: + inc curDY + jmp ellipse_y_loop + +ellipse_done: + ret +DrawCoinEllipse ENDP + +InitCoinGame PROC + mov coin3d_state, 0 + mov coin3d_timer, 0 + mov coin3d_win, 0 + cmp coin3d_bet, 10 + jge @F + mov coin3d_bet, 50 +@@: + ret +InitCoinGame ENDP + +HandleCoinInput PROC + cmp coin3d_state, 1 + je coin_input_done + + invoke Pressed3D, 20h ; SPACE + test eax, eax + jz check_coin_side + mov eax, bankroll + cmp eax, coin3d_bet + jl coin_no_cash + sub eax, coin3d_bet + mov bankroll, eax + mov coin3d_state, 1 + mov coin3d_timer, 0 + mov coin3d_win, 0 + invoke PlaySoundA, OFFSET soundClick, 0, 1 + jmp coin_input_done +coin_no_cash: + invoke CopyString3D, OFFSET msgNeedMoney, OFFSET flashMessage + mov flashTimer, 60 + jmp coin_input_done + +check_coin_side: + invoke Pressed3D, 31h ; '1' + test eax, eax + jz @F + mov coin3d_side, 1 +@@: + invoke Pressed3D, 32h ; '2' + test eax, eax + jz check_coin_bet_adjust + mov coin3d_side, 2 + +check_coin_bet_adjust: + invoke Pressed3D, 26h ; UP + test eax, eax + jnz coin_inc_bet + invoke Pressed3D, 57h ; W + test eax, eax + jz check_coin_bet_down +coin_inc_bet: + cmp coin3d_bet, 500 + jge coin_input_done + cmp coin3d_bet, 250 + jge coin_set_500 + cmp coin3d_bet, 100 + jge coin_set_250 + cmp coin3d_bet, 50 + jge coin_set_100 + cmp coin3d_bet, 25 + jge coin_set_50 + jmp coin_set_25 + +check_coin_bet_down: + invoke Pressed3D, 28h ; DOWN + test eax, eax + jnz coin_dec_bet + invoke Pressed3D, 53h ; S + test eax, eax + jz coin_input_done +coin_dec_bet: + cmp coin3d_bet, 25 + jle coin_set_10 + cmp coin3d_bet, 50 + jle coin_set_25 + cmp coin3d_bet, 100 + jle coin_set_50 + cmp coin3d_bet, 250 + jle coin_set_100 + jmp coin_set_250 + +coin_set_500: + mov coin3d_bet, 500 + jmp coin_input_done +coin_set_250: + mov coin3d_bet, 250 + jmp coin_input_done +coin_set_100: + mov coin3d_bet, 100 + jmp coin_input_done +coin_set_50: + mov coin3d_bet, 50 + jmp coin_input_done +coin_set_25: + mov coin3d_bet, 25 + jmp coin_input_done +coin_set_10: + mov coin3d_bet, 10 + jmp coin_input_done + +coin_input_done: + ret +HandleCoinInput ENDP + +RenderCoinGame PROC uses ebx esi edi + local cyVal:DWORD, rxVal:DWORD + + ; Background & Bezel + invoke DrawBox, 0, 0, SCREEN_W, SCREEN_H, 00140D18h + invoke DrawBoxBorder, 10, 10, 300, 220, 0022142Ah, 0000D7FFh, 3 + + ; Illuminated Marquee Header + invoke DrawBoxBorder, 25, 18, 270, 26, 000D0812h, 0000FFFFh, 2 + invoke DrawString8x8, 72, 27, OFFSET textCoinTitle, 0000D7FFh + + ; Streak Display + invoke DrawString8x8, 28, 50, OFFSET textCoinStreak, 0000D7FFh + invoke FormatNumber, coin3d_streak, OFFSET hudNumBuffer + invoke DrawString8x8, 84, 50, OFFSET hudNumBuffer, 0050FF50h + + ; Side Panel: [1] ÎШË + mov eax, 00120D16h + mov edx, 00505050h + mov ecx, 00808080h + cmp coin3d_side, 1 + jne @F + mov eax, 001E3520h + mov edx, 0000FFFFh + mov ecx, 0000FFFFh +@@: + push ecx + invoke DrawBoxBorder, 24, 70, 68, 38, eax, edx, 2 + pop ecx + invoke DrawString8x8, 28, 85, OFFSET textCoinSide1, ecx + + ; Side Panel: [2] ÐÅØÊÀ + mov eax, 00120D16h + mov edx, 00505050h + mov ecx, 00808080h + cmp coin3d_side, 2 + jne @F + mov eax, 001E3520h + mov edx, 0000FFFFh + mov ecx, 0000FFFFh +@@: + push ecx + invoke DrawBoxBorder, 228, 70, 68, 38, eax, edx, 2 + pop ecx + invoke DrawString8x8, 232, 85, OFFSET textCoinSide2, ecx + + ; Center coin pedestal arena + invoke DrawBoxBorder, 102, 54, 116, 84, 000F0A12h, 00504030h, 1 + + ; Flipping animation logic + cmp coin3d_state, 1 + jne coin_at_rest + + inc coin3d_timer + + ; Parabolic toss: cy = 96 - (t * (40 - t)) / 16 + mov eax, coin3d_timer + mov ecx, 40 + sub ecx, eax + imul eax, ecx + shr eax, 4 + mov edx, 96 + sub edx, eax + mov cyVal, edx + + ; Width rx from lookup table: (t % 10) + mov eax, coin3d_timer + xor edx, edx + mov ecx, 10 + div ecx + movzx eax, BYTE PTR [coinRxAnimTable + edx] + mov rxVal, eax + + invoke DrawCoinEllipse, 160, cyVal, rxVal, 22, 0000D7FFh, 0000B0E0h + invoke DrawString8x8, 84, 142, OFFSET textCoinFlipping, 0000FFFFh + + cmp coin3d_timer, 40 + jl coin_draw_controls + + ; Flip complete! + mov coin3d_state, 2 + invoke RandomRange3D, 2 + inc eax + mov coin3d_result, eax + + mov eax, coin3d_result + cmp eax, coin3d_side + jne coin_flip_lost + + ; Won! + mov eax, coin3d_bet + shl eax, 1 + mov coin3d_win, eax + add bankroll, eax + inc coin3d_streak + cmp coin3d_streak, 3 + jl @F + invoke PlaySoundA, OFFSET soundJackpot, 0, 1 + jmp coin_draw_controls +@@: + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + jmp coin_draw_controls + +coin_flip_lost: + mov coin3d_streak, 0 + mov coin3d_win, 0 + invoke PlaySoundA, OFFSET soundClick, 0, 1 + jmp coin_draw_controls + +coin_at_rest: + ; Draw coin resting at (160, 96) + invoke DrawCoinEllipse, 160, 96, 24, 24, 0000D7FFh, 0000B0E0h + invoke DrawCoinEllipse, 160, 96, 20, 20, 0000FFFFh, 000090D0h + + ; Draw side text inside coin + cmp coin3d_state, 2 + jne coin_show_picked_side + cmp coin3d_result, 1 + jne @F + invoke DrawString8x8, 144, 92, OFFSET textCoinHeads, 00000030h + jmp coin_show_splash +@@: + invoke DrawString8x8, 140, 92, OFFSET textCoinTails, 00000030h + jmp coin_show_splash + +coin_show_picked_side: + cmp coin3d_side, 1 + jne @F + invoke DrawString8x8, 144, 92, OFFSET textCoinHeads, 00000030h + jmp coin_draw_controls +@@: + invoke DrawString8x8, 140, 92, OFFSET textCoinTails, 00000030h + jmp coin_draw_controls + +coin_show_splash: + cmp coin3d_win, 0 + je coin_show_loss + invoke DrawString8x8, 90, 142, OFFSET textCoinWin, 0000FFFFh + invoke FormatNumber, coin3d_win, OFFSET hudNumBuffer + invoke DrawString8x8, 178, 142, OFFSET hudNumBuffer, 0000FFFFh + jmp coin_draw_controls + +coin_show_loss: + invoke DrawString8x8, 126, 142, OFFSET textCoinLose, 000000FFh + +coin_draw_controls: + ; Bottom Control Panel + invoke DrawBoxBorder, 20, 165, 280, 58, 00151515h, 0000D7FFh, 1 + invoke DrawString8x8, 28, 170, OFFSET textBank3D, 0000D7FFh + invoke FormatNumber, bankroll, OFFSET hudNumBuffer + invoke DrawString8x8, 88, 170, OFFSET hudNumBuffer, 0000FFFFh + + invoke DrawString8x8, 180, 170, OFFSET textBet3D, 0000D7FFh + invoke FormatNumber, coin3d_bet, OFFSET hudNumBuffer + invoke DrawString8x8, 236, 170, OFFSET hudNumBuffer, 0050FF50h + + invoke DrawString8x8, 28, 186, OFFSET textCoinControls1, 00FFFFFFh + invoke DrawString8x8, 28, 202, OFFSET textCoinControls2, 00A0A0A0h + ret +RenderCoinGame ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: DICE / CRAPS (ÊÎÑÒÈ) +; ============================================================================== +DrawDieCube PROC uses ebx esi edi x:DWORD, y:DWORD, cubeSize:DWORD, valNum:DWORD + local pipColor:DWORD + mov pipColor, 001515C0h + + invoke DrawBoxBorder, x, y, cubeSize, cubeSize, 00F4F6F8h, 00303038h, 2 + + mov eax, x + add eax, cubeSize + mov edx, y + add edx, 2 + invoke DrawBox, eax, edx, 2, cubeSize, 0008140Ah + mov eax, x + add eax, 2 + mov edx, y + add edx, cubeSize + invoke DrawBox, eax, edx, cubeSize, 2, 0008140Ah + + cmp valNum, 1 + je draw_die_center + cmp valNum, 3 + je draw_die_center + cmp valNum, 5 + je draw_die_center + jmp check_die_corners +draw_die_center: + mov eax, x + add eax, 18 + mov edx, y + add edx, 18 + invoke DrawCircle, eax, edx, 2, pipColor + +check_die_corners: + cmp valNum, 2 + jl die_render_done + mov eax, x + add eax, 9 + mov edx, y + add edx, 9 + invoke DrawCircle, eax, edx, 2, pipColor + mov eax, x + add eax, 27 + mov edx, y + add edx, 27 + invoke DrawCircle, eax, edx, 2, pipColor + + cmp valNum, 4 + jl die_render_done + mov eax, x + add eax, 27 + mov edx, y + add edx, 9 + invoke DrawCircle, eax, edx, 2, pipColor + mov eax, x + add eax, 9 + mov edx, y + add edx, 27 + invoke DrawCircle, eax, edx, 2, pipColor + + cmp valNum, 6 + jl die_render_done + mov eax, x + add eax, 9 + mov edx, y + add edx, 18 + invoke DrawCircle, eax, edx, 2, pipColor + mov eax, x + add eax, 27 + mov edx, y + add edx, 18 + invoke DrawCircle, eax, edx, 2, pipColor + +die_render_done: + ret +DrawDieCube ENDP + +InitDiceGame PROC + mov dice3d_state, 0 + mov dice3d_timer, 0 + mov dice3d_win, 0 + cmp dice3d_bet, 10 + jge @F + mov dice3d_bet, 50 +@@: + ret +InitDiceGame ENDP + +HandleDiceInput PROC + cmp dice3d_state, 1 + je dice_input_done + + invoke Pressed3D, 20h ; SPACE + test eax, eax + jz check_dice_choice + mov eax, bankroll + cmp eax, dice3d_bet + jl dice_no_cash + sub eax, dice3d_bet + mov bankroll, eax + mov dice3d_state, 1 + mov dice3d_timer, 0 + mov dice3d_win, 0 + invoke PlaySoundA, OFFSET soundClick, 0, 1 + jmp dice_input_done +dice_no_cash: + invoke CopyString3D, OFFSET msgNeedMoney, OFFSET flashMessage + mov flashTimer, 60 + jmp dice_input_done + +check_dice_choice: + invoke Pressed3D, 31h ; '1' + test eax, eax + jz @F + mov dice3d_choice, 1 +@@: + invoke Pressed3D, 32h ; '2' + test eax, eax + jz check_dice_bet_adjust + mov dice3d_choice, 2 + +check_dice_bet_adjust: + invoke Pressed3D, 26h ; UP + test eax, eax + jnz dice_inc_bet + invoke Pressed3D, 57h ; W + test eax, eax + jz check_dice_bet_down +dice_inc_bet: + cmp dice3d_bet, 500 + jge dice_input_done + cmp dice3d_bet, 250 + jge dice_set_500 + cmp dice3d_bet, 100 + jge dice_set_250 + cmp dice3d_bet, 50 + jge dice_set_100 + cmp dice3d_bet, 25 + jge dice_set_50 + jmp dice_set_25 + +check_dice_bet_down: + invoke Pressed3D, 28h ; DOWN + test eax, eax + jnz dice_dec_bet + invoke Pressed3D, 53h ; S + test eax, eax + jz dice_input_done +dice_dec_bet: + cmp dice3d_bet, 25 + jle dice_set_10 + cmp dice3d_bet, 50 + jle dice_set_25 + cmp dice3d_bet, 100 + jle dice_set_50 + cmp dice3d_bet, 250 + jle dice_set_100 + jmp dice_set_250 + +dice_set_500: + mov dice3d_bet, 500 + jmp dice_input_done +dice_set_250: + mov dice3d_bet, 250 + jmp dice_input_done +dice_set_100: + mov dice3d_bet, 100 + jmp dice_input_done +dice_set_50: + mov dice3d_bet, 50 + jmp dice_input_done +dice_set_25: + mov dice3d_bet, 25 + jmp dice_input_done +dice_set_10: + mov dice3d_bet, 10 + jmp dice_input_done + +dice_input_done: + ret +HandleDiceInput ENDP + +RenderDiceGame PROC uses ebx esi edi + local d1X:DWORD, d1Y:DWORD, d2X:DWORD, d2Y:DWORD + + ; Background & Bezel + invoke DrawBox, 0, 0, SCREEN_W, SCREEN_H, 000C2612h + invoke DrawBoxBorder, 10, 10, 300, 220, 0014381Ah, 0000D7FFh, 3 + + ; Illuminated Marquee Header + invoke DrawBoxBorder, 25, 18, 270, 26, 000A1F0Eh, 0000FFFFh, 2 + invoke DrawString8x8, 52, 27, OFFSET textDiceTitle, 0000D7FFh + + ; Choice Panels + mov eax, 000E2614h + mov edx, 00505050h + mov ecx, 00808080h + cmp dice3d_choice, 1 + jne @F + mov eax, 001C4824h + mov edx, 0000FFFFh + mov ecx, 0000FFFFh +@@: + push ecx + invoke DrawBoxBorder, 24, 55, 76, 36, eax, edx, 2 + pop ecx + invoke DrawString8x8, 34, 68, OFFSET textDiceEven, ecx + + mov eax, 000E2614h + mov edx, 00505050h + mov ecx, 00808080h + cmp dice3d_choice, 2 + jne @F + mov eax, 001C4824h + mov edx, 0000FFFFh + mov ecx, 0000FFFFh +@@: + push ecx + invoke DrawBoxBorder, 220, 55, 76, 36, eax, edx, 2 + pop ecx + invoke DrawString8x8, 226, 68, OFFSET textDiceOdd, ecx + + ; Dice Table Box + invoke DrawBoxBorder, 104, 52, 112, 54, 0009200Dh, 00305030h, 1 + + ; Rolling animation logic + cmp dice3d_state, 1 + jne dice_at_rest + + inc dice3d_timer + + ; Tumbling jitter offsets + mov eax, dice3d_timer + and eax, 3 + sub eax, 1 + + mov edx, 112 + add edx, eax + mov d1X, edx + + mov edx, 60 + sub edx, eax + mov d1Y, edx + + mov edx, 172 + sub edx, eax + mov d2X, edx + + mov edx, 62 + add edx, eax + mov d2Y, edx + + test dice3d_timer, 1 + jz @F + invoke RandomRange3D, 6 + inc eax + mov dice3d_val1, eax + invoke RandomRange3D, 6 + inc eax + mov dice3d_val2, eax +@@: + invoke DrawDieCube, d1X, d1Y, 36, dice3d_val1 + invoke DrawDieCube, d2X, d2Y, 36, dice3d_val2 + + invoke DrawString8x8, 96, 132, OFFSET textDiceRolling, 0000FFFFh + + cmp dice3d_timer, 36 + jl dice_draw_controls + + ; Roll completed! + mov dice3d_state, 2 + invoke RandomRange3D, 6 + inc eax + mov dice3d_val1, eax + invoke RandomRange3D, 6 + inc eax + mov dice3d_val2, eax + + mov eax, dice3d_val1 + add eax, dice3d_val2 + mov dice3d_sum, eax + + test eax, 1 + jz dice_sum_is_even + mov ecx, 2 ; Odd + jmp check_dice_win +dice_sum_is_even: + mov ecx, 1 ; Even + +check_dice_win: + cmp ecx, dice3d_choice + jne dice_roll_lost + + mov eax, dice3d_bet + shl eax, 1 + mov dice3d_win, eax + add bankroll, eax + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + jmp dice_draw_controls + +dice_roll_lost: + mov dice3d_win, 0 + invoke PlaySoundA, OFFSET soundClick, 0, 1 + jmp dice_draw_controls + +dice_at_rest: + invoke DrawDieCube, 112, 60, 36, dice3d_val1 + invoke DrawDieCube, 172, 60, 36, dice3d_val2 + + cmp dice3d_state, 2 + jne dice_draw_controls + + ; Score Tally + invoke DrawString8x8, 80, 112, OFFSET textDiceTally, 0000D7FFh + invoke FormatNumber, dice3d_val1, OFFSET hudNumBuffer + invoke DrawString8x8, 136, 112, OFFSET hudNumBuffer, 00FFFFFFh + invoke DrawString8x8, 146, 112, OFFSET textDicePlus, 0000D7FFh + invoke FormatNumber, dice3d_val2, OFFSET hudNumBuffer + invoke DrawString8x8, 170, 112, OFFSET hudNumBuffer, 00FFFFFFh + invoke DrawString8x8, 180, 112, OFFSET textDiceEqual, 0000D7FFh + invoke FormatNumber, dice3d_sum, OFFSET hudNumBuffer + invoke DrawString8x8, 204, 112, OFFSET hudNumBuffer, 0000FFFFh + + mov eax, dice3d_sum + test eax, 1 + jz @F + invoke DrawString8x8, 222, 112, OFFSET textDiceOddResult, 00FF8080h + jmp dice_show_outcome +@@: + invoke DrawString8x8, 222, 112, OFFSET textDiceEvenResult, 0080FF80h + +dice_show_outcome: + cmp dice3d_win, 0 + je dice_show_loss + invoke DrawString8x8, 90, 132, OFFSET textDiceWin, 0000FFFFh + invoke FormatNumber, dice3d_win, OFFSET hudNumBuffer + invoke DrawString8x8, 178, 132, OFFSET hudNumBuffer, 0000FFFFh + jmp dice_draw_controls +dice_show_loss: + invoke DrawString8x8, 126, 132, OFFSET textDiceLose, 000000FFh + +dice_draw_controls: + invoke DrawBoxBorder, 20, 165, 280, 58, 00151515h, 0000D7FFh, 1 + invoke DrawString8x8, 28, 170, OFFSET textBank3D, 0000D7FFh + invoke FormatNumber, bankroll, OFFSET hudNumBuffer + invoke DrawString8x8, 88, 170, OFFSET hudNumBuffer, 0000FFFFh + + invoke DrawString8x8, 180, 170, OFFSET textBet3D, 0000D7FFh + invoke FormatNumber, dice3d_bet, OFFSET hudNumBuffer + invoke DrawString8x8, 236, 170, OFFSET hudNumBuffer, 0050FF50h + + invoke DrawString8x8, 28, 186, OFFSET textDiceControls1, 00FFFFFFh + invoke DrawString8x8, 28, 202, OFFSET textDiceControls2, 00A0A0A0h + ret +RenderDiceGame ENDP + +; ============================================================================== +; IN-ENGINE 2.5D MINI-GAME: SKULLS & CUPS (ÍÀϨÐÑÒÊÈ) +; ============================================================================== +DrawCup PROC uses ebx esi edi x:DWORD, y:DWORD, cupNumChar:DWORD + invoke DrawBox, x + 14, y, 16, 4, 0000C8E8h + invoke DrawBoxBorder, x + 8, y + 4, 28, 12, 00221A30h, 0000D7FFh, 2 + invoke DrawBoxBorder, x + 4, y + 16, 36, 16, 00221A30h, 0000D7FFh, 2 + invoke DrawBoxBorder, x + 2, y + 32, 40, 8, 002A2038h, 0000FFFFh, 2 + + mov eax, x + add eax, 18 + mov edx, y + add edx, 18 + invoke DrawChar8x8, eax, edx, cupNumChar, 0000FFFFh + ret +DrawCup ENDP + +DrawGoldenBall PROC uses ebx esi edi x:DWORD, y:DWORD + invoke DrawCircle, x, y, 7, 0000A5D8h + invoke DrawCircle, x, y, 6, 0000D7FFh + invoke DrawCircle, x, y, 4, 0000FFFFh + mov eax, x + sub eax, 2 + mov edx, y + sub edx, 2 + invoke DrawCircle, eax, edx, 1, 00FFFFFFh + ret +DrawGoldenBall ENDP + +InitSkullsGame PROC + mov skulls3d_state, 0 + mov skulls3d_timer, 0 + mov skulls3d_win, 0 + cmp skulls3d_bet, 10 + jge @F + mov skulls3d_bet, 50 +@@: + ret +InitSkullsGame ENDP + +FinalizeSkullsGuess PROC + mov skulls3d_state, 4 + mov eax, skulls3d_choice + cmp eax, skulls3d_ballPos + jne skulls_guess_lost + + mov eax, skulls3d_bet + imul eax, 3 + mov skulls3d_win, eax + add bankroll, eax + invoke PlaySoundA, OFFSET soundJackpot, 0, 1 + ret + +skulls_guess_lost: + mov skulls3d_win, 0 + invoke PlaySoundA, OFFSET soundClick, 0, 1 + ret +FinalizeSkullsGuess ENDP + +HandleSkullsInput PROC + cmp skulls3d_state, 1 + je skulls_input_done + cmp skulls3d_state, 2 + je skulls_input_done + + cmp skulls3d_state, 0 + jne check_skulls_in_phase3 + + ; Phase 0: Idle / betting + invoke Pressed3D, 20h ; SPACE + test eax, eax + jz check_skulls_bet_adjust + + mov eax, bankroll + cmp eax, skulls3d_bet + jl skulls_no_cash + sub eax, skulls3d_bet + mov bankroll, eax + + invoke RandomRange3D, 3 + mov skulls3d_ballPos, eax + mov skulls3d_state, 1 + mov skulls3d_timer, 0 + mov skulls3d_win, 0 + invoke PlaySoundA, OFFSET soundCoin, 0, 1 + jmp skulls_input_done + +skulls_no_cash: + invoke CopyString3D, OFFSET msgNeedMoney, OFFSET flashMessage + mov flashTimer, 60 + jmp skulls_input_done + +check_skulls_in_phase3: + cmp skulls3d_state, 3 + jne check_skulls_in_phase4 + + ; Phase 3: Pick cup + invoke Pressed3D, 31h ; '1' + test eax, eax + jz @F + mov skulls3d_choice, 0 + call FinalizeSkullsGuess + jmp skulls_input_done +@@: + invoke Pressed3D, 32h ; '2' + test eax, eax + jz @F + mov skulls3d_choice, 1 + call FinalizeSkullsGuess + jmp skulls_input_done +@@: + invoke Pressed3D, 33h ; '3' + test eax, eax + jz skulls_input_done + mov skulls3d_choice, 2 + call FinalizeSkullsGuess + jmp skulls_input_done + +check_skulls_in_phase4: + ; Phase 4: Play again or adjust bet + invoke Pressed3D, 20h ; SPACE + test eax, eax + jz check_skulls_bet_adjust + mov skulls3d_state, 0 + jmp skulls_input_done + +check_skulls_bet_adjust: + invoke Pressed3D, 26h ; UP + test eax, eax + jnz skulls_inc_bet + invoke Pressed3D, 57h ; W + test eax, eax + jz check_skulls_bet_down +skulls_inc_bet: + cmp skulls3d_bet, 500 + jge skulls_input_done + cmp skulls3d_bet, 250 + jge skulls_set_500 + cmp skulls3d_bet, 100 + jge skulls_set_250 + cmp skulls3d_bet, 50 + jge skulls_set_100 + cmp skulls3d_bet, 25 + jge skulls_set_50 + jmp skulls_set_25 + +check_skulls_bet_down: + invoke Pressed3D, 28h ; DOWN + test eax, eax + jnz skulls_dec_bet + invoke Pressed3D, 53h ; S + test eax, eax + jz skulls_input_done +skulls_dec_bet: + cmp skulls3d_bet, 25 + jle skulls_set_10 + cmp skulls3d_bet, 50 + jle skulls_set_25 + cmp skulls3d_bet, 100 + jle skulls_set_50 + cmp skulls3d_bet, 250 + jle skulls_set_100 + jmp skulls_set_250 + +skulls_set_500: + mov skulls3d_bet, 500 + jmp skulls_input_done +skulls_set_250: + mov skulls3d_bet, 250 + jmp skulls_input_done +skulls_set_100: + mov skulls3d_bet, 100 + jmp skulls_input_done +skulls_set_50: + mov skulls3d_bet, 50 + jmp skulls_input_done +skulls_set_25: + mov skulls3d_bet, 25 + jmp skulls_input_done +skulls_set_10: + mov skulls3d_bet, 10 + jmp skulls_input_done + +skulls_input_done: + ret +HandleSkullsInput ENDP + +RenderSkullsGame PROC uses ebx esi edi + local passTick:DWORD, curPair:DWORD, swapSlotA:DWORD, swapSlotB:DWORD + local xA:DWORD, xB:DWORD, curXA:DWORD, curXB:DWORD, curYA:DWORD, curYB:DWORD + local distX:DWORD, dxVal:DWORD, archY:DWORD + + ; Background & Bezel + invoke DrawBox, 0, 0, SCREEN_W, SCREEN_H, 00100E18h + invoke DrawBoxBorder, 10, 10, 300, 220, 001A1828h, 0000D7FFh, 3 + + ; Illuminated Marquee Header + invoke DrawBoxBorder, 25, 18, 270, 26, 000C0A14h, 0000FFFFh, 2 + invoke DrawString8x8, 56, 27, OFFSET textSkullsTitle, 0000D7FFh + + ; Dispatch based on phase + cmp skulls3d_state, 1 + je skulls_render_phase1 + cmp skulls3d_state, 2 + je skulls_render_phase2 + cmp skulls3d_state, 3 + je skulls_render_phase3 + cmp skulls3d_state, 4 + je skulls_render_phase4 + + ; Phase 0: Idle / Betting + invoke DrawCup, 50, 105, '1' + invoke DrawCup, 138, 105, '2' + invoke DrawCup, 226, 105, '3' + invoke DrawString8x8, 24, 48, OFFSET textSkullsPhase0, 0000D7FFh + jmp skulls_draw_controls + +skulls_render_phase1: + inc skulls3d_timer + + ; Draw golden ball under starting cup + mov eax, skulls3d_ballPos + cmp eax, 0 + je p1_ball_0 + cmp eax, 1 + je p1_ball_1 + invoke DrawGoldenBall, 248, 120 + jmp p1_draw_cups +p1_ball_0: + invoke DrawGoldenBall, 72, 120 + jmp p1_draw_cups +p1_ball_1: + invoke DrawGoldenBall, 160, 120 + +p1_draw_cups: + mov edx, 105 + cmp skulls3d_ballPos, 0 + jne @F + mov edx, 70 +@@: + invoke DrawCup, 50, edx, '1' + + mov edx, 105 + cmp skulls3d_ballPos, 1 + jne @F + mov edx, 70 +@@: + invoke DrawCup, 138, edx, '2' + + mov edx, 105 + cmp skulls3d_ballPos, 2 + jne @F + mov edx, 70 +@@: + invoke DrawCup, 226, edx, '3' + + invoke DrawString8x8, 76, 48, OFFSET textSkullsPhase1, 0000FFFFh + + cmp skulls3d_timer, 40 + jl skulls_draw_controls + + ; Start Phase 2 (Shuffle) + mov skulls3d_state, 2 + mov skulls3d_timer, 0 + invoke RandomRange3D, 3 + mov skulls3d_swapPair0, eax + invoke RandomRange3D, 3 + mov skulls3d_swapPair1, eax + invoke RandomRange3D, 3 + mov skulls3d_swapPair2, eax + jmp skulls_draw_controls + +skulls_render_phase2: + inc skulls3d_timer + + mov eax, skulls3d_timer + cmp eax, 20 + jbe pass_0 + cmp eax, 40 + jbe pass_1 + sub eax, 41 + mov passTick, eax + mov eax, skulls3d_swapPair2 + mov curPair, eax + jmp setup_pass_pair + +pass_0: + dec eax + mov passTick, eax + mov eax, skulls3d_swapPair0 + mov curPair, eax + jmp setup_pass_pair + +pass_1: + sub eax, 21 + mov passTick, eax + mov eax, skulls3d_swapPair1 + mov curPair, eax + +setup_pass_pair: + cmp curPair, 1 + je pair_1 + cmp curPair, 2 + je pair_2 + mov swapSlotA, 0 + mov swapSlotB, 1 + mov xA, 50 + mov xB, 138 + jmp calc_swap_coords +pair_1: + mov swapSlotA, 1 + mov swapSlotB, 2 + mov xA, 138 + mov xB, 226 + jmp calc_swap_coords +pair_2: + mov swapSlotA, 0 + mov swapSlotB, 2 + mov xA, 50 + mov xB, 226 + +calc_swap_coords: + mov eax, xB + sub eax, xA + mov distX, eax + + mov eax, distX + imul eax, passTick + xor edx, edx + mov ecx, 20 + div ecx + mov dxVal, eax + + mov eax, xA + add eax, dxVal + mov curXA, eax + + mov eax, xB + sub eax, dxVal + mov curXB, eax + + mov eax, passTick + mov ecx, 20 + sub ecx, eax + imul eax, ecx + xor edx, edx + mov ecx, 25 + div ecx + mov archY, eax + + mov eax, 105 + sub eax, archY + mov curYA, eax + + mov eax, 105 + add eax, archY + mov curYB, eax + + cmp passTick, 19 + jne @F + mov eax, skulls3d_ballPos + cmp eax, swapSlotA + jne check_ball_b + mov eax, swapSlotB + mov skulls3d_ballPos, eax + jmp ball_swap_done +check_ball_b: + cmp eax, swapSlotB + jne ball_swap_done + mov eax, swapSlotA + mov skulls3d_ballPos, eax +ball_swap_done: + invoke PlaySoundA, OFFSET soundClick, 0, 1 +@@: + cmp curPair, 1 + je draw_stat_0 + cmp curPair, 2 + je draw_stat_1 + invoke DrawCup, 226, 105, '3' + jmp draw_moving_cups +draw_stat_0: + invoke DrawCup, 50, 105, '1' + jmp draw_moving_cups +draw_stat_1: + invoke DrawCup, 138, 105, '2' + +draw_moving_cups: + mov edx, '1' + add edx, swapSlotA + invoke DrawCup, curXA, curYA, edx + + mov edx, '1' + add edx, swapSlotB + invoke DrawCup, curXB, curYB, edx + + invoke DrawString8x8, 40, 48, OFFSET textSkullsPhase2, 0000FFFFh + + cmp skulls3d_timer, 60 + jl skulls_draw_controls + mov skulls3d_state, 3 + mov skulls3d_timer, 0 + jmp skulls_draw_controls + +skulls_render_phase3: + invoke DrawCup, 50, 105, '1' + invoke DrawCup, 138, 105, '2' + invoke DrawCup, 226, 105, '3' + invoke DrawString8x8, 16, 48, OFFSET textSkullsPhase3, 0000FFFFh + jmp skulls_draw_controls + +skulls_render_phase4: + mov eax, skulls3d_ballPos + cmp eax, 0 + je p4_ball_0 + cmp eax, 1 + je p4_ball_1 + invoke DrawGoldenBall, 248, 120 + jmp p4_draw_cups +p4_ball_0: + invoke DrawGoldenBall, 72, 120 + jmp p4_draw_cups +p4_ball_1: + invoke DrawGoldenBall, 160, 120 + +p4_draw_cups: + mov edx, 105 + cmp skulls3d_choice, 0 + je @F + cmp skulls3d_ballPos, 0 + jne draw_cup0 +@@: + mov edx, 70 +draw_cup0: + invoke DrawCup, 50, edx, '1' + + mov edx, 105 + cmp skulls3d_choice, 1 + je @F + cmp skulls3d_ballPos, 1 + jne draw_cup1 +@@: + mov edx, 70 +draw_cup1: + invoke DrawCup, 138, edx, '2' + + mov edx, 105 + cmp skulls3d_choice, 2 + je @F + cmp skulls3d_ballPos, 2 + jne draw_cup2 +@@: + mov edx, 70 +draw_cup2: + invoke DrawCup, 226, edx, '3' + + cmp skulls3d_win, 0 + je p4_splash_lose + invoke DrawString8x8, 24, 48, OFFSET textSkullsWin, 0000FFFFh + invoke FormatNumber, skulls3d_win, OFFSET hudNumBuffer + invoke DrawString8x8, 236, 48, OFFSET hudNumBuffer, 0000FFFFh + jmp p4_again_hint +p4_splash_lose: + invoke DrawString8x8, 36, 48, OFFSET textSkullsLose, 000000FFh +p4_again_hint: + invoke DrawString8x8, 56, 138, OFFSET textSkullsAgain, 0000D7FFh + +skulls_draw_controls: + invoke DrawBoxBorder, 20, 165, 280, 58, 00151515h, 0000D7FFh, 1 + invoke DrawString8x8, 28, 170, OFFSET textBank3D, 0000D7FFh + invoke FormatNumber, bankroll, OFFSET hudNumBuffer + invoke DrawString8x8, 88, 170, OFFSET hudNumBuffer, 0000FFFFh + + invoke DrawString8x8, 180, 170, OFFSET textBet3D, 0000D7FFh + invoke FormatNumber, skulls3d_bet, OFFSET hudNumBuffer + invoke DrawString8x8, 236, 170, OFFSET hudNumBuffer, 0050FF50h + + invoke DrawString8x8, 24, 186, OFFSET textSkullsControls1, 00FFFFFFh + invoke DrawString8x8, 24, 202, OFFSET textSkullsControls2, 00A0A0A0h + ret +RenderSkullsGame ENDP + +; --- Player Input & Movement Physics --- +HandlePlayerInput PROC uses ebx esi edi + local speed:DWORD + local nextX:DWORD + local nextY:DWORD + mov eax, deltaTime3D + imul eax, 200 + mov speed, eax + cmp keys3D[10h], 0 + je @F + shl speed, 1 +@@: + mov eax, deltaTime3D + shr eax, 2 + inc eax + cmp keys3D[41h], 0 + jne input_turn_left + cmp keys3D[25h], 0 + je input_right +input_turn_left: + sub playerAngle, eax +input_right: + cmp keys3D[44h], 0 + jne input_turn_right + cmp keys3D[27h], 0 + je input_forward +input_turn_right: + add playerAngle, eax +input_forward: + and playerAngle, 511 + call UpdateCamera3D + xor edi, edi + cmp keys3D[57h], 0 + jne input_go_forward + cmp keys3D[26h], 0 + je input_back +input_go_forward: + inc edi +input_back: + cmp keys3D[53h], 0 + jne input_go_back + cmp keys3D[28h], 0 + je input_move +input_go_back: + dec edi +input_move: + test edi, edi + jz input_action + imul edi, speed + mov eax, playerDirX + imul edi + shrd eax, edx, 16 + add eax, playerX + mov nextX, eax + mov eax, playerDirY + imul edi + shrd eax, edx, 16 + add eax, playerY + mov nextY, eax + invoke CanWalk3D, nextX, playerY + test eax, eax + jz @F + mov eax, nextX + mov playerX, eax +@@: + invoke CanWalk3D, playerX, nextY + test eax, eax + jz input_action + mov eax, nextY + mov playerY, eax +input_action: + invoke Pressed3D, 45h + test eax, eax + jz @F + call Trigger3DInteraction +@@: + ret +HandlePlayerInput ENDP + +CheckInteractions PROC uses ebx esi edi + local nearest:DWORD + mov nearest, 262144 + mov interactTargetId, 0 + mov interactPromptPtr, 0 + xor esi, esi +interaction_scan: + cmp esi, NUM_SPRITES + jge interaction_done + imul edi, esi, SIZEOF SpriteObject + cmp [casinoSprites+edi].interactId, 0 + je interaction_next + mov eax, [casinoSprites+edi].posX + sub eax, playerX + sar eax, 8 + mov ebx, eax + imul eax, eax + mov ecx, eax + mov eax, [casinoSprites+edi].posY + sub eax, playerY + sar eax, 8 + mov edx, eax + imul eax, eax + add ecx, eax + cmp ecx, nearest + jae interaction_next + ; Only target objects in front of the camera. + mov eax, playerDirX + sar eax, 8 + imul eax, ebx + mov ebx, playerDirY + sar ebx, 8 + imul ebx, edx + add eax, ebx + cmp eax, 18000 + jl interaction_next + mov nearest, ecx + mov eax, [casinoSprites+edi].interactId + mov interactTargetId, eax + mov eax, [casinoSprites+edi].promptPtr + mov interactPromptPtr, eax +interaction_next: + inc esi + jmp interaction_scan +interaction_done: + ret +CheckInteractions ENDP + +; --- RenderCabinetBezel: Îòðèñîâêà àðêàäíîãî áåçåëÿ òåðìèíàëà íà 3D ýêðàíå --- +RenderCabinetBezel PROC uses ebx esi edi, pTitle:DWORD + ; Çàòåìíÿåì 3D-çàë â áóôåðå êàäðà (äåëèì ÿðêîñòü ïîïîëàì) + mov ecx, SCREEN_SIZE + xor esi, esi +dim_bezel_loop: + mov eax, [screenBuffer + esi*4] + shr eax, 1 + and eax, 007F7F7Fh + mov [screenBuffer + esi*4], eax + inc esi + loop dim_bezel_loop + + ; Âíåøíÿÿ çîëîòàÿ ðàìêà òåðìèíàëà + invoke DrawBoxBorder, 10, 14, 300, 212, 000C0E14h, 00D8BC6Ah, 2 + + ; Øàïêà òåðìèíàëà ñ íàçâàíèåì èãðû + invoke DrawBox, 12, 16, 296, 16, 00221A10h + invoke DrawString8x8, 20, 20, pTitle, 00F5E2B0h + + ; Ïîäâàëüíàÿ ïëàøêà ñ ïîäñêàçêîé ïî âûõîäó + invoke DrawBox, 12, 210, 296, 14, 00141416h + invoke DrawString8x8, 20, 213, OFFSET textCabinetFooter, 00AAAAAAh + + ; Âûâîäèì êàäð áåçåëÿ â îêíî + call Present3D + ret +RenderCabinetBezel ENDP + +; --- LaunchClassicGame: Âñòðàèâàíèå èãðû â UI òåðìèíàëà êàçèíî --- +LaunchClassicGame PROC uses ebx esi edi, pGameProc:DWORD, gameId:DWORD, pTitle:DWORD + LOCAL rcClient[16]:BYTE + LOCAL ptScreen[8]:BYTE + LOCAL fontInfo[84]:BYTE + LOCAL conWnd:DWORD + LOCAL conW:DWORD, conH:DWORD, conX:DWORD, conY:DWORD + LOCAL viewW:DWORD, viewH:DWORD + LOCAL offsetX:DWORD, offsetY:DWORD + + mov eax, gameId + mov currentGameId, eax + + ; 1. Ðèñóåì çîëîòîé áåçåëü òåðìèíàëà íà 3D ýêðàíå + cmp pTitle, 0 + je @F + invoke RenderCabinetBezel, pTitle +@@: + + ; 2. Âûäåëÿåì êîíñîëü + invoke AllocConsole + test eax, eax + jz launch_ret + + invoke GetStdHandle, STD_OUTPUT_HANDLE + mov hOut, eax + invoke GetStdHandle, STD_INPUT_HANDLE + mov hIn, eax + + invoke SetConsoleCP, 1251 + invoke SetConsoleOutputCP, 1251 + + cmp pTitle, 0 + je @F + invoke SetConsoleTitleA, pTitle +@@: + call EnableAnsi + call ConfigureConsoleSize + + ; 3. Íàñòðàèâàåì øðèôò Consolas Bold 16pt + lea edi, fontInfo + xor eax, eax + mov ecx, 21 + rep stosd + mov dword ptr fontInfo[0], 84 ; cbSize + mov word ptr fontInfo[8], 0 ; dwFontSize.X + mov word ptr fontInfo[10], 16 ; dwFontSize.Y + mov dword ptr fontInfo[16], 700 ; FontWeight = FW_BOLD + mov word ptr fontInfo[20], 'C' + mov word ptr fontInfo[22], 'o' + mov word ptr fontInfo[24], 'n' + mov word ptr fontInfo[26], 's' + mov word ptr fontInfo[28], 'o' + mov word ptr fontInfo[30], 'l' + mov word ptr fontInfo[32], 'a' + mov word ptr fontInfo[34], 's' + mov word ptr fontInfo[36], 0 + lea eax, fontInfo + invoke SetCurrentConsoleFontEx, hOut, 0, eax + + ; 4. Ïîëó÷àåì äåñêðèïòîð îêíà êîíñîëè + invoke GetConsoleWindow + mov conWnd, eax + test eax, eax + jz run_game_body + + ; 5. Ñíèìàåì ñèñòåìíóþ ðàìêó Windows è çàãîëîâîê ñ êíîïêàìè çàêðûòèÿ/ñâîðà÷èâàíèÿ + invoke GetWindowLongA, conWnd, -16 ; GWL_STYLE + and eax, NOT (00C00000h or 00040000h or 00080000h or 00010000h or 00020000h) + or eax, 80000000h ; WS_POPUP + invoke SetWindowLongA, conWnd, -16, eax + + ; Ñâÿçûâàåì êàê äî÷åðíåå/ïðèíàäëåæàùåå îêíî ê îêíó èãðû + cmp h3DWnd, 0 + je show_con_fallback + invoke SetWindowLongA, conWnd, -8, h3DWnd ; GWL_HWNDPARENT + + ; 6. Âû÷èñëÿåì òî÷íûå êîîðäèíàòû äëÿ ïîñàäêè ýêðàíà âíóòðü áåçåëÿ + lea eax, rcClient + invoke GetClientRect, h3DWnd, eax + mov esi, dword ptr rcClient[8] ; øèðèíà êëèåíòñêîé îáëàñòè + mov edi, dword ptr rcClient[12] ; âûñîòà êëèåíòñêîé îáëàñòè + test esi, esi + jz show_con_fallback + test edi, edi + jz show_con_fallback + + ; Ðàñ÷åò âüþïîðòà 4:3 òî÷íî êàê â Present3D + mov viewW, esi + mov eax, esi + imul eax, 3 + shr eax, 2 + cmp eax, edi + jle calc_view_h + mov eax, edi + imul eax, 4 + xor edx, edx + mov ecx, 3 + div ecx + mov viewW, eax + mov eax, edi +calc_view_h: + mov viewH, eax + + mov ebx, esi + sub ebx, viewW + shr ebx, 1 + mov offsetX, ebx + + mov ebx, edi + sub ebx, viewH + shr ebx, 1 + mov offsetY, ebx + + ; Ýêðàííûå êîîðäèíàòû ëåâîãî âåðõíåãî óãëà êëèåíòñêîé îáëàñòè + mov dword ptr ptScreen[0], 0 + mov dword ptr ptScreen[4], 0 + lea eax, ptScreen + invoke ClientToScreen, h3DWnd, eax + + ; conW = viewW * 280 / 320 (âíóòðåííåå îêíî áåçåëÿ) + mov eax, viewW + imul eax, 280 + xor edx, edx + mov ecx, 320 + div ecx + mov conW, eax + + ; conH = viewH * 168 / 240 + mov eax, viewH + imul eax, 168 + xor edx, edx + mov ecx, 240 + div ecx + mov conH, eax + + ; conX = ptScreen.x + offsetX + (viewW * 20 / 320) + mov eax, viewW + imul eax, 20 + xor edx, edx + mov ecx, 320 + div ecx + add eax, offsetX + add eax, dword ptr ptScreen[0] + mov conX, eax + + ; conY = ptScreen.y + offsetY + (viewH * 38 / 240) + mov eax, viewH + imul eax, 38 + xor edx, edx + mov ecx, 240 + div ecx + add eax, offsetY + add eax, dword ptr ptScreen[4] + mov conY, eax + + ; Ïîçèöèîíèðóåì áåçðàìî÷íûé ýêðàí òî÷íî âíóòðü çîëîòîé ðàìêè áåçåëÿ + invoke SetWindowPos, conWnd, 0, conX, conY, conW, conH, 20h or 40h ; SWP_FRAMECHANGED | SWP_SHOWWINDOW + jmp set_con_focus + +show_con_fallback: + invoke ShowWindow, conWnd, 5 ; SW_SHOW +set_con_focus: + invoke SetForegroundWindow, conWnd + invoke SetFocus, conWnd + +run_game_body: + ; Çàïóñê îðèãèíàëüíîé èãðû! + call pGameProc + + ; Çàêðûâàåì êîíñîëü + invoke FreeConsole + mov hOut, 0 + mov hIn, 0 + + ; Âîçâðàùàåì ôîêóñ â îêíî 3D èãðû + cmp h3DWnd, 0 + je cleanup_game_input + invoke SetForegroundWindow, h3DWnd + invoke SetFocus, h3DWnd + +cleanup_game_input: + mov ecx, 256 + xor eax, eax + lea edi, keys3D + rep stosb + mov ecx, 256 + lea edi, pressedKeys3D + rep stosb + + invoke GetTickCount + mov previousTick3D, eax + mov frameStart3D, eax + mov deltaTime3D, 0 + + call SaveProgress3D + +launch_ret: + ret +LaunchClassicGame ENDP + +Trigger3DInteraction PROC + mov eax, interactTargetId + test eax, eax + jz trigger_done + + cmp eax, INTERACT_DANCER + jne check_target_bj + cmp bankroll, 100 + jl dancer_no_cash + sub bankroll, 100 + inc dancerLuckBuff + invoke CopyString3D, OFFSET textTips3D, OFFSET flashMessage + mov flashTimer, 100 + invoke PlaySoundA, OFFSET soundJackpot, 0, 1 + ret +dancer_no_cash: + invoke CopyString3D, OFFSET msgNeedMoney, OFFSET flashMessage + mov flashTimer, 60 + ret + +check_target_bj: + cmp eax, INTERACT_BLACKJACK + jne check_target_poker + invoke LaunchClassicGame, OFFSET Game21, 1, OFFSET szTitleBlackjack + ret + +check_target_poker: + cmp eax, INTERACT_POKER + jne check_target_durak + invoke LaunchClassicGame, OFFSET GamePoker, 2, OFFSET szTitlePoker + ret + +check_target_durak: + cmp eax, INTERACT_DURAK + jne check_target_slots777 + invoke LaunchClassicGame, OFFSET GameDurak, 10, OFFSET szTitleDurak + ret + +check_target_slots777: + cmp eax, INTERACT_SLOTS_777 + jne check_target_slots_clover + invoke LaunchClassicGame, OFFSET GameClassicSlot, 9, OFFSET szTitleClassicSlot + ret + +check_target_slots_clover: + cmp eax, INTERACT_SLOTS_CLOVER + jne check_target_roulette + invoke LaunchClassicGame, OFFSET GameSlot, 3, OFFSET szTitleCloverSlot + ret + +check_target_roulette: + cmp eax, INTERACT_ROULETTE + jne check_target_dice + invoke LaunchClassicGame, OFFSET GameCasinoRoulette, 8, OFFSET szTitleCasinoRoulette + ret + +check_target_dice: + cmp eax, INTERACT_DICE + jne check_target_skulls + call InitDiceGame + mov engineMode, MODE_DICE + ret + +check_target_skulls: + cmp eax, INTERACT_SKULLS + jne check_target_coin + call InitSkullsGame + mov engineMode, MODE_SKULLS + ret + +check_target_coin: + cmp eax, INTERACT_COIN + jne check_target_skill + call InitCoinGame + mov engineMode, MODE_COIN + ret + +check_target_skill: + cmp eax, INTERACT_SKILL_CHECK + jne check_target_buckshot + invoke LaunchClassicGame, OFFSET GameSkillCheck, 11, OFFSET szTitleSkillCheck + ret + +check_target_buckshot: + cmp eax, INTERACT_BUCKSHOT + jne check_target_rr + invoke LaunchClassicGame, OFFSET GameBuckshot, 13, OFFSET szTitleBuckshot + ret + +check_target_rr: + cmp eax, INTERACT_RUSSIAN_ROULETTE + jne check_target_online_rr + invoke LaunchClassicGame, OFFSET GameRoulette, 4, OFFSET szTitleRussianRoulette + ret + +check_target_online_rr: + cmp eax, INTERACT_ONLINE_RR + jne check_target_umamusume + invoke LaunchClassicGame, OFFSET GameOnlineCasino, 20, OFFSET szTitleOnlineRR + ret + +check_target_umamusume: + cmp eax, INTERACT_UMAMUSUME + jne check_target_hell + invoke LaunchClassicGame, OFFSET GameUmamusume, 21, OFFSET szTitleUmamusume + ret + +check_target_hell: + cmp eax, INTERACT_HELL_TOWER + jne check_target_shop + invoke LaunchClassicGame, OFFSET GameTournament, 666, OFFSET szTitleHellTower + ret + +check_target_shop: + cmp eax, INTERACT_SHOP + jne check_target_atm + invoke LaunchClassicGame, OFFSET GameShop, 0, OFFSET szTitleShop + ret + +check_target_atm: + cmp eax, INTERACT_ATM + jne check_target_terminal + mov engineMode, MODE_ATM + ret + +check_target_terminal: + cmp eax, INTERACT_TERMINAL + jne check_target_observer + invoke LaunchClassicGame, OFFSET GamePlayerTerminal, 0, OFFSET szTitleTerminal + ret + +check_target_observer: + cmp eax, INTERACT_OBSERVER + jne target_unported + invoke LaunchClassicGame, OFFSET GameObserver, 14, OFFSET szTitleObserver + ret + +target_unported: + invoke CopyString3D, OFFSET textUnavailable3D, OFFSET flashMessage + mov flashTimer, 150 +trigger_done: + ret +Trigger3DInteraction ENDP + +; --- Engine Initialization --- +Init3DEngine PROC + local screenCX:DWORD + local screenCY:DWORD + local posX:DWORD + local posY:DWORD + local bytesRead:DWORD + + push ebx + push esi + push edi + + call Create3DWindow + test eax, eax + jz init_failed + call LoadTextures3D + test eax, eax + jz init_failed + +init_sprites_table: + ; Sprite 0: VIP Dancer 1 (Stage Left) + mov casinoSprites[0*SIZEOF SpriteObject].posX, (13 * FP_1 + FP_HALF) + mov casinoSprites[0*SIZEOF SpriteObject].posY, (4 * FP_1) + mov casinoSprites[0*SIZEOF SpriteObject].baseTexId, 10 + mov casinoSprites[0*SIZEOF SpriteObject].frameCount, 12 + mov casinoSprites[0*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[0*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[0*SIZEOF SpriteObject].animSpeed, 5 + mov casinoSprites[0*SIZEOF SpriteObject].interactId, INTERACT_DANCER + mov casinoSprites[0*SIZEOF SpriteObject].promptPtr, OFFSET promptDancer + + ; Sprite 1: VIP Dancer 2 (Center Stage Star) + mov casinoSprites[1*SIZEOF SpriteObject].posX, (16 * FP_1 + FP_HALF) + mov casinoSprites[1*SIZEOF SpriteObject].posY, (3 * FP_1 + FP_HALF) + mov casinoSprites[1*SIZEOF SpriteObject].baseTexId, 10 + mov casinoSprites[1*SIZEOF SpriteObject].frameCount, 12 + mov casinoSprites[1*SIZEOF SpriteObject].curFrame, 2 + mov casinoSprites[1*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[1*SIZEOF SpriteObject].animSpeed, 5 + mov casinoSprites[1*SIZEOF SpriteObject].interactId, INTERACT_DANCER + mov casinoSprites[1*SIZEOF SpriteObject].promptPtr, OFFSET promptDancer + + ; Sprite 2: VIP Dancer 3 (Stage Right) + mov casinoSprites[2*SIZEOF SpriteObject].posX, (19 * FP_1 + FP_HALF) + mov casinoSprites[2*SIZEOF SpriteObject].posY, (4 * FP_1) + mov casinoSprites[2*SIZEOF SpriteObject].baseTexId, 10 + mov casinoSprites[2*SIZEOF SpriteObject].frameCount, 12 + mov casinoSprites[2*SIZEOF SpriteObject].curFrame, 1 + mov casinoSprites[2*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[2*SIZEOF SpriteObject].animSpeed, 5 + mov casinoSprites[2*SIZEOF SpriteObject].interactId, INTERACT_DANCER + mov casinoSprites[2*SIZEOF SpriteObject].promptPtr, OFFSET promptDancer + + ; Sprite 3: VIP Blackjack (Front Center Left) + mov casinoSprites[3*SIZEOF SpriteObject].posX, (12 * FP_1 + FP_HALF) + mov casinoSprites[3*SIZEOF SpriteObject].posY, (8 * FP_1) + mov casinoSprites[3*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[3*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[3*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[3*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[3*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[3*SIZEOF SpriteObject].interactId, INTERACT_BLACKJACK + mov casinoSprites[3*SIZEOF SpriteObject].promptPtr, OFFSET promptBlackjack + + ; Sprite 4: European Roulette Table (Front Center) + mov casinoSprites[4*SIZEOF SpriteObject].posX, (16 * FP_1 + FP_HALF) + mov casinoSprites[4*SIZEOF SpriteObject].posY, (10 * FP_1) + mov casinoSprites[4*SIZEOF SpriteObject].baseTexId, 31 + mov casinoSprites[4*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[4*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[4*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[4*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[4*SIZEOF SpriteObject].interactId, INTERACT_ROULETTE + mov casinoSprites[4*SIZEOF SpriteObject].promptPtr, OFFSET promptCasinoRoulette + + ; Sprite 5: Texas Hold'em Poker Table (Front Center Right) + mov casinoSprites[5*SIZEOF SpriteObject].posX, (20 * FP_1 + FP_HALF) + mov casinoSprites[5*SIZEOF SpriteObject].posY, (8 * FP_1) + mov casinoSprites[5*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[5*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[5*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[5*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[5*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[5*SIZEOF SpriteObject].interactId, INTERACT_POKER + mov casinoSprites[5*SIZEOF SpriteObject].promptPtr, OFFSET promptPoker + + ; Sprite 6: Podkidnoy Durak Card Table + mov casinoSprites[6*SIZEOF SpriteObject].posX, (24 * FP_1 + FP_HALF) + mov casinoSprites[6*SIZEOF SpriteObject].posY, (8 * FP_1) + mov casinoSprites[6*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[6*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[6*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[6*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[6*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[6*SIZEOF SpriteObject].interactId, INTERACT_DURAK + mov casinoSprites[6*SIZEOF SpriteObject].promptPtr, OFFSET promptDurak + + ; Sprite 7: Classic Slots 777 (West Arcade 1) + mov casinoSprites[7*SIZEOF SpriteObject].posX, (6 * FP_1) + mov casinoSprites[7*SIZEOF SpriteObject].posY, (8 * FP_1) + mov casinoSprites[7*SIZEOF SpriteObject].baseTexId, 24 + mov casinoSprites[7*SIZEOF SpriteObject].frameCount, 3 + mov casinoSprites[7*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[7*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[7*SIZEOF SpriteObject].animSpeed, 8 + mov casinoSprites[7*SIZEOF SpriteObject].interactId, INTERACT_SLOTS_777 + mov casinoSprites[7*SIZEOF SpriteObject].promptPtr, OFFSET promptClassicSlot + + ; Sprite 8: CloverPit Slots 5x3 (West Arcade 2) + mov casinoSprites[8*SIZEOF SpriteObject].posX, (6 * FP_1) + mov casinoSprites[8*SIZEOF SpriteObject].posY, (11 * FP_1) + mov casinoSprites[8*SIZEOF SpriteObject].baseTexId, 24 + mov casinoSprites[8*SIZEOF SpriteObject].frameCount, 3 + mov casinoSprites[8*SIZEOF SpriteObject].curFrame, 1 + mov casinoSprites[8*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[8*SIZEOF SpriteObject].animSpeed, 8 + mov casinoSprites[8*SIZEOF SpriteObject].interactId, INTERACT_SLOTS_CLOVER + mov casinoSprites[8*SIZEOF SpriteObject].promptPtr, OFFSET promptCloverSlot + + ; Sprite 9: Craps & Dice Table (West Arcade 3) + mov casinoSprites[9*SIZEOF SpriteObject].posX, (6 * FP_1) + mov casinoSprites[9*SIZEOF SpriteObject].posY, (14 * FP_1) + mov casinoSprites[9*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[9*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[9*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[9*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[9*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[9*SIZEOF SpriteObject].interactId, INTERACT_DICE + mov casinoSprites[9*SIZEOF SpriteObject].promptPtr, OFFSET promptDice + + ; Sprite 10: Skulls & Cups Table + mov casinoSprites[10*SIZEOF SpriteObject].posX, (10 * FP_1) + mov casinoSprites[10*SIZEOF SpriteObject].posY, (15 * FP_1) + mov casinoSprites[10*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[10*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[10*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[10*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[10*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[10*SIZEOF SpriteObject].interactId, INTERACT_SKULLS + mov casinoSprites[10*SIZEOF SpriteObject].promptPtr, OFFSET promptSkulls + + ; Sprite 11: Coin Toss Stand + mov casinoSprites[11*SIZEOF SpriteObject].posX, (14 * FP_1) + mov casinoSprites[11*SIZEOF SpriteObject].posY, (15 * FP_1) + mov casinoSprites[11*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[11*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[11*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[11*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[11*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[11*SIZEOF SpriteObject].interactId, INTERACT_COIN + mov casinoSprites[11*SIZEOF SpriteObject].promptPtr, OFFSET promptCoin + + ; Sprite 12: Skill Check Stand + mov casinoSprites[12*SIZEOF SpriteObject].posX, (18 * FP_1) + mov casinoSprites[12*SIZEOF SpriteObject].posY, (15 * FP_1) + mov casinoSprites[12*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[12*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[12*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[12*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[12*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[12*SIZEOF SpriteObject].interactId, INTERACT_SKILL_CHECK + mov casinoSprites[12*SIZEOF SpriteObject].promptPtr, OFFSET promptSkillCheck + + ; Sprite 13: Umamusume Derby Lounge + mov casinoSprites[13*SIZEOF SpriteObject].posX, (22 * FP_1) + mov casinoSprites[13*SIZEOF SpriteObject].posY, (15 * FP_1) + mov casinoSprites[13*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[13*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[13*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[13*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[13*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[13*SIZEOF SpriteObject].interactId, INTERACT_UMAMUSUME + mov casinoSprites[13*SIZEOF SpriteObject].promptPtr, OFFSET promptUmamusume + + ; Sprite 14: Boutique & Shop (East Wing) + mov casinoSprites[14*SIZEOF SpriteObject].posX, (26 * FP_1) + mov casinoSprites[14*SIZEOF SpriteObject].posY, (12 * FP_1) + mov casinoSprites[14*SIZEOF SpriteObject].baseTexId, 32 + mov casinoSprites[14*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[14*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[14*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[14*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[14*SIZEOF SpriteObject].interactId, INTERACT_SHOP + mov casinoSprites[14*SIZEOF SpriteObject].promptPtr, OFFSET promptShop + + ; Sprite 15: Cashier & ATM (East Wing) + mov casinoSprites[15*SIZEOF SpriteObject].posX, (26 * FP_1) + mov casinoSprites[15*SIZEOF SpriteObject].posY, (16 * FP_1) + mov casinoSprites[15*SIZEOF SpriteObject].baseTexId, 33 + mov casinoSprites[15*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[15*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[15*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[15*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[15*SIZEOF SpriteObject].interactId, INTERACT_ATM + mov casinoSprites[15*SIZEOF SpriteObject].promptPtr, OFFSET promptATM + + ; Sprite 16: Player Terminal (East Wing) + mov casinoSprites[16*SIZEOF SpriteObject].posX, (26 * FP_1) + mov casinoSprites[16*SIZEOF SpriteObject].posY, (20 * FP_1) + mov casinoSprites[16*SIZEOF SpriteObject].baseTexId, 33 + mov casinoSprites[16*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[16*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[16*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[16*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[16*SIZEOF SpriteObject].interactId, INTERACT_TERMINAL + mov casinoSprites[16*SIZEOF SpriteObject].promptPtr, OFFSET promptPlayerTerminal + + ; Sprite 17: Buckshot Roulette (South-West) + mov casinoSprites[17*SIZEOF SpriteObject].posX, (12 * FP_1) + mov casinoSprites[17*SIZEOF SpriteObject].posY, (22 * FP_1) + mov casinoSprites[17*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[17*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[17*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[17*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[17*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[17*SIZEOF SpriteObject].interactId, INTERACT_BUCKSHOT + mov casinoSprites[17*SIZEOF SpriteObject].promptPtr, OFFSET promptBuckshot + + ; Sprite 18: Observer Lounge (South-East) + mov casinoSprites[18*SIZEOF SpriteObject].posX, (20 * FP_1) + mov casinoSprites[18*SIZEOF SpriteObject].posY, (22 * FP_1) + mov casinoSprites[18*SIZEOF SpriteObject].baseTexId, 30 + mov casinoSprites[18*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[18*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[18*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[18*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[18*SIZEOF SpriteObject].interactId, INTERACT_OBSERVER + mov casinoSprites[18*SIZEOF SpriteObject].promptPtr, OFFSET promptObserver + + ; Sprite 19: Russian Roulette (Backroom Entrance) + mov casinoSprites[19*SIZEOF SpriteObject].posX, (16 * FP_1) + mov casinoSprites[19*SIZEOF SpriteObject].posY, (25 * FP_1) + mov casinoSprites[19*SIZEOF SpriteObject].baseTexId, 34 + mov casinoSprites[19*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[19*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[19*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[19*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[19*SIZEOF SpriteObject].interactId, INTERACT_RUSSIAN_ROULETTE + mov casinoSprites[19*SIZEOF SpriteObject].promptPtr, OFFSET promptRussianRoulette + + ; Sprite 20: Online Russian Roulette (Backroom Secret Terminal) + mov casinoSprites[20*SIZEOF SpriteObject].posX, (18 * FP_1) + mov casinoSprites[20*SIZEOF SpriteObject].posY, (25 * FP_1) + mov casinoSprites[20*SIZEOF SpriteObject].baseTexId, 34 + mov casinoSprites[20*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[20*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[20*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[20*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[20*SIZEOF SpriteObject].interactId, INTERACT_ONLINE_RR + mov casinoSprites[20*SIZEOF SpriteObject].promptPtr, OFFSET promptOnlineRR + + ; Sprite 21: Hell Tower Portal (South Wing Deep End) + mov casinoSprites[21*SIZEOF SpriteObject].posX, (16 * FP_1 + FP_HALF) + mov casinoSprites[21*SIZEOF SpriteObject].posY, (29 * FP_1) + mov casinoSprites[21*SIZEOF SpriteObject].baseTexId, 4 + mov casinoSprites[21*SIZEOF SpriteObject].frameCount, 1 + mov casinoSprites[21*SIZEOF SpriteObject].curFrame, 0 + mov casinoSprites[21*SIZEOF SpriteObject].animTimer, 0 + mov casinoSprites[21*SIZEOF SpriteObject].animSpeed, 1 + mov casinoSprites[21*SIZEOF SpriteObject].interactId, INTERACT_HELL_TOWER + mov casinoSprites[21*SIZEOF SpriteObject].promptPtr, OFFSET promptHellTower + + mov eax, 1 + jmp init_return +init_failed: + xor eax, eax +init_return: + pop edi + pop esi + pop ebx + ret +Init3DEngine ENDP + +; --- Main Loop of the 3D Casino Engine --- +StartCasino3D PROC uses ebx esi edi + call Init3DEngine + test eax, eax + jz engine_shutdown + invoke GetTickCount + mov rngSeed3D, eax + mov previousTick3D, eax +engine_loop: + invoke PeekMessageA, OFFSET msg3D, 0, 0, 0, PM_REMOVE + test eax, eax + jz dispatch_frame + cmp msg3D.message, WM_QUIT + je engine_shutdown + invoke TranslateMessage, OFFSET msg3D + invoke DispatchMessageA, OFFSET msg3D + jmp engine_loop + +dispatch_frame: + invoke GetTickCount + mov frameStart3D, eax + sub eax, previousTick3D + cmp eax, 50 + jbe @F + mov eax, 50 +@@: + mov deltaTime3D, eax + mov eax, frameStart3D + mov previousTick3D, eax + invoke GetForegroundWindow + cmp eax, h3DWnd + jne engine_idle + invoke IsIconic, h3DWnd + test eax, eax + jnz engine_idle + invoke Pressed3D, 7Ah + test eax, eax + jz @F + call ToggleFullscreen3D +@@: + invoke Pressed3D, 1Bh + test eax, eax + jz engine_tick + cmp engineMode, MODE_WALK + jne leave_table + xor paused3D, 1 + jmp engine_tick +leave_table: + ; An already paid round cannot be skipped or settled twice. + cmp slotSpinState, 1 + je engine_tick + cmp roulState, 1 + je engine_tick + cmp coin3d_state, 1 + je engine_tick + cmp dice3d_state, 1 + je engine_tick + cmp skulls3d_state, 1 + je engine_tick + cmp skulls3d_state, 2 + je engine_tick + mov engineMode, MODE_WALK +engine_tick: + cmp paused3D, 0 + jne draw_pause + mov eax, deltaTime3D + add animationClock3D, eax + cmp engineMode, MODE_WALK + jne check_slots_mode + call UpdateCamera3D + call CheckInteractions + call HandlePlayerInput + call UpdateCamera3D + call RenderCeilingAndFloor + call RenderWalls + call RenderSprites + call RenderHUD + call RenderMinimap + jmp present_frame +check_slots_mode: + cmp engineMode, MODE_SLOTS + jne check_bj_mode + call HandleSlotsInput + call RenderSlotsGame + jmp present_frame +check_bj_mode: + cmp engineMode, MODE_BLACKJACK + jne check_roul_mode + call HandleBlackjackInput + call RenderBlackjackGame + jmp present_frame +check_roul_mode: + cmp engineMode, MODE_ROULETTE + jne check_shop_mode + call HandleRouletteInput + call RenderRouletteGame + jmp present_frame +check_shop_mode: + cmp engineMode, MODE_SHOP + jne check_atm_mode + call HandleShopInput + call RenderShopGame + jmp present_frame +check_atm_mode: + cmp engineMode, MODE_ATM + jne check_coin_mode + call HandleATMInput + call RenderATMGame + jmp present_frame +check_coin_mode: + cmp engineMode, MODE_COIN + jne check_dice_mode + call HandleCoinInput + call RenderCoinGame + jmp present_frame +check_dice_mode: + cmp engineMode, MODE_DICE + jne check_skulls_mode + call HandleDiceInput + call RenderDiceGame + jmp present_frame +check_skulls_mode: + cmp engineMode, MODE_SKULLS + jne present_frame + call HandleSkullsInput + call RenderSkullsGame + jmp present_frame +draw_pause: + invoke DrawBoxBorder, 65, 75, 190, 85, 00151C21h, 00D8BC6Ah, 2 + invoke DrawString8x8, 86, 88, OFFSET textPause3D, 00FFFFFFh + invoke DrawString8x8, 78, 111, OFFSET textResume3D, 00D8BC6Ah + invoke DrawString8x8, 78, 131, OFFSET textQuit3D, 00BBBBBBh + invoke Pressed3D, 51h + test eax, eax + jnz engine_shutdown +present_frame: + call Present3D + lea edi, pressedKeys3D + xor eax, eax + mov ecx, 64 + rep stosd + invoke GetTickCount + sub eax, frameStart3D + cmp eax, 16 + jae engine_loop + mov ecx, 16 + sub ecx, eax + invoke Sleep, ecx + jmp engine_loop +engine_idle: + invoke Sleep, 50 + jmp engine_loop +engine_shutdown: + call SaveProgress3D + cmp h3DDC, 0 + je @F + invoke ReleaseDC, h3DWnd, h3DDC + mov h3DDC, 0 +@@: + cmp h3DWnd, 0 + je @F + invoke DestroyWindow, h3DWnd + mov h3DWnd, 0 +@@: + ret +StartCasino3D ENDP + +include src_graphics\platform_code.inc diff --git a/backups/poker_backup_broken.exe b/backups/poker_backup_broken.exe new file mode 100644 index 0000000..cef22cb Binary files /dev/null and b/backups/poker_backup_broken.exe differ diff --git a/backups/poker_before_enginefix_20260924_220800.asm b/backups/poker_before_enginefix_20260924_220800.asm new file mode 100644 index 0000000..b233fa7 --- /dev/null +++ b/backups/poker_before_enginefix_20260924_220800.asm @@ -0,0 +1,15144 @@ +.386 +.model flat, stdcall +option casemap:none + +includelib kernel32.lib +includelib winmm.lib +includelib user32.lib +includelib ws2_32.lib +includelib gdi32.lib + + +STD_INPUT_HANDLE equ -10 +STD_OUTPUT_HANDLE equ -11 +VK_RETURN equ 0Dh +VK_SPACE equ 20h +VK_M equ 4Dh +FLIP_DELAY equ 650 +FLIP_FINAL_DELAY equ 850 +GENERIC_READ equ 80000000h +GENERIC_WRITE equ 40000000h +OPEN_EXISTING equ 3 +CREATE_ALWAYS equ 2 +FILE_ATTRIBUTE_NORMAL equ 80h +INVALID_HANDLE_VALUE equ -1 +SAVE_MAGIC equ 31435653h +SAVE_SIGN_SIZE equ 276 +SAVE_FILE_SIZE equ 280 +SAVE_SALT equ 0A57C0DEh +ENABLE_VIRTUAL_TERMINAL_PROCESSING equ 0004h +COLOR_DEFAULT equ 07h +COLOR_TITLE equ 0Bh +COLOR_MONEY equ 0Ah +COLOR_WARN equ 0Eh +COLOR_BAD equ 0Ch +COLOR_CARD equ 0Fh +COLOR_RED_CARD equ 0Ch +COLOR_BACK_CARD equ 08h +COLOR_TABLE equ 02h +COLOR_WOOD equ 06h +AF_INET equ 2 +SOCK_STREAM equ 1 +IPPROTO_TCP equ 6 +INADDR_ANY equ 0 +SOCKET_ERROR equ -1 +ONLINE_PORT_NET equ 8769h +ONLINE_MAGIC equ 4E4C4E31h +ONLINE_GAME_DICE equ 1 +ONLINE_GAME_RR equ 2 + +ExitProcess PROTO :DWORD +GetStdHandle PROTO :DWORD +WriteFile PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD +WriteConsoleA PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD +WriteConsoleW PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD +ReadFile PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD +SetConsoleOutputCP PROTO :DWORD +SetConsoleCP PROTO :DWORD +MultiByteToWideChar PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD, :DWORD +WideCharToMultiByte PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD, :DWORD, :DWORD, :DWORD +GetTickCount PROTO +GetLocalTime PROTO :DWORD +GetAsyncKeyState PROTO :DWORD +GetEnvironmentVariableA PROTO :DWORD, :DWORD, :DWORD +CreateDirectoryA PROTO :DWORD, :DWORD +Sleep PROTO :DWORD +WinExec PROTO :DWORD, :DWORD +SetConsoleCursorPosition PROTO :DWORD, :DWORD +SetConsoleScreenBufferSize PROTO :DWORD, :DWORD +SetConsoleWindowInfo PROTO :DWORD, :DWORD, :DWORD +SetConsoleTextAttribute PROTO :DWORD, :DWORD +GetConsoleScreenBufferInfo PROTO :DWORD, :DWORD +GetConsoleMode PROTO :DWORD, :DWORD +SetConsoleMode PROTO :DWORD, :DWORD +FillConsoleOutputCharacterA PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD +mciSendStringA PROTO :DWORD, :DWORD, :DWORD, :DWORD +waveOutSetVolume PROTO :DWORD, :DWORD +AnimFrameDelay PROTO :DWORD +CreateFileA PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD, :DWORD, :DWORD +CloseHandle PROTO :DWORD +FindFirstFileA PROTO :DWORD, :DWORD +FindNextFileA PROTO :DWORD, :DWORD +FindClose PROTO :DWORD +WSAStartup PROTO :DWORD, :DWORD +WSACleanup PROTO +socket PROTO :DWORD, :DWORD, :DWORD +bind PROTO :DWORD, :DWORD, :DWORD +listen PROTO :DWORD, :DWORD +accept PROTO :DWORD, :DWORD, :DWORD +connect PROTO :DWORD, :DWORD, :DWORD +send PROTO :DWORD, :DWORD, :DWORD, :DWORD +recv PROTO :DWORD, :DWORD, :DWORD, :DWORD +closesocket PROTO :DWORD +inet_addr PROTO :DWORD +WSAGetLastError PROTO +MoveCursor PROTO :DWORD, :DWORD +PrintSlotSymbol PROTO :DWORD +RandomRange PROTO :DWORD +PrintUInt PROTO :DWORD +UnlockAchievement PROTO :DWORD, :DWORD +ShowBestiaryPage PROTO :DWORD, :DWORD, :DWORD + +.data +; === Ãëîáàëüíûå äåñêðèïòîðû, áóôåðû êîíñîëè, RNG è âðåìåííàÿ ïàìÿòü === +hOut dd 0 +hIn dd 0 +charsWritten dd 0 +charsRead dd 0 +consoleMode dd 0 +printLen dd 0 +wideLen dd 0 +seed dd 0 +inputBuffer db 32 dup(0) +cheatBuffer db 32 dup(0) +wideBuffer dw 4096 dup(0) +utf8Buffer db 8192 dup(0) +frameBuffer db 32768 dup(0) +deckUsed db 52 dup(0) +onlineWsaData db 400 dup(0) +onlineAddr db 16 dup(0) +onlineIp db 32 dup(0) +onlineListenSock dd -1 +onlinePeerSock dd -1 +onlineWsaReady dd 0 +onlinePacket dd 0, 0 +onlineLocalRoll dd 0 +onlineRemoteRoll dd 0 +onlineGameMode dd 0 +onlineHostIp dd 0 +onlineAction dd 1 +consoleRectTiny dw 0, 0, 119, 34 +consoleRect160 dw 0, 0, 159, 44 +consoleRect140 dw 0, 0, 139, 39 +consoleRect120 dw 0, 0, 119, 34 + +; === Îáùèå ñ÷åò÷èêè î÷êîâ è ñîñòîÿíèå ñòàðûõ êàðòî÷íûõ ðåæèìîâ === +playerTotal dd 0 +dealerTotal dd 0 +playerAces dd 0 +dealerAces dd 0 +playerCards dd 0 +; === Ñîñòîÿíèå CloverPit / ñëîò-ìàøèí: ñåòêà, âûïëàòû, êîìáèíàöèè === +slotA dd 0 +slotB dd 0 +slotC dd 0 +slotD dd 0 +slotE dd 0 +slotMatch dd 0 +slotWinMask dd 0 +slotCurrentCell dd 0 +slotBestMultiplier dd 0 +slotComboNamePtr dd 0 +slotBlockMask dd 0 +slotComboCount dd 0 +slotJackpotHit dd 0 +slotComboNames dd 32 dup(0) +slotComboMults dd 32 dup(0) +slotGrid dd 15 dup(0) +slotVisible dd 0 +; === Îáùàÿ êàðòî÷íàÿ ìîäåëü: ðóêè èãðîêà, AI è êàðòû íà ñòîëå === +playerHand21 dd 10 dup(0) +aiHand21 dd 10 dup(0) +communityHand dd 5 dup(0) +pokerPlayerEvalHand dd 7 dup(0) +pokerAIEvalHand dd 7 dup(0) +playerCnt21 dd 0 +aiCnt21 dd 0 +communityCnt dd 0 +revealAI21 dd 0 +dangerLvl21 dd 0 +cardsLeft21 dd 0 +rowIndex dd 0 +pokerPlayerScore dd 0 +pokerAIScore dd 0 +pokerEvalCount dd 0 +; === Ýêîíîìèêà àêêàóíòà: áàíê, öåëü, ñòàâêà è ÷èò-ôëàãè === +bankroll dd 10000 +targetBank dd 50000 +currentBet dd 0 +cheatLuckyWin dd 0 +cheatGodMode dd 0 +cheatSlotJackpot dd 0 +settingsVolume dd 10 +settingsLowSpec dd 0 +settingsIntroEnabled dd 1 +settingsDbdWindowEnabled dd 0 +animFrameCounter dd 0 +animWidth dd 0 +animHeight dd 0 +secretEndingSeen dd 0 +vipTaxAmount dd 0 +; === Êðóïüå-êîììåíòàòîð: ÷òåíèå ôðàç èç dealer_phrases.txt === +dealerFileHandle dd 0 +dealerLineLen dd 0 +dealerPhraseCount dd 0 +dealerPhrasePick dd 0 +dealerScanMode dd 0 +dealerWantedTag db 0 +; === Ìàãàçèí: êóïëåííûå ðóáàøêè, âûáðàííàÿ ðóáàøêà è òàëèñìàíû === +shopBackOwned dd 1 +shopBackStyle dd 0 +shopCharmLevel dd 0 +shopCharmUses dd 0 +achievements dd 0 +pokerRaiseAmount dd 0 +pokerAIRaiseAmount dd 0 +; === Ôàéëû, àêêàóíòû, ñîõðàíåíèÿ, äîñòèæåíèÿ è òàáëèöû ëèäåðîâ === +saveHandle dd 0 +achievementHandle dd 0 +findHandle dd 0 +danceHandle dd 0 +danceBytes dd 0 +frameBytes dd 0 +introLoopSeen dd 0 +introSkipLoop dd 0 +accountCount dd 0 +selectedAccount dd 0 +accountNameLen dd 0 +saveBuffer dd 80 dup(0) +gamesPlayed dd 0 +gamesWon dd 0 +gamesLost dd 0 +gamesDrawn dd 0 +bestWin dd 0 +bestLoss dd 0 +currentGameId dd 0 +gameStatsPlayed dd 11 dup(0) +gameStatsWon dd 11 dup(0) +gameStatsLost dd 11 dup(0) +gameStatsDraw dd 11 dup(0) +leaderBestBank dd 0 +leaderBestWins dd 0 +leaderBestLosses dd 0 +leaderValidCount dd 0 +leaderScanIndex dd 0 +leaderAccountPtr dd 0 +leaderBestGameWins dd 11 dup(0) +leaderBestGameLosses dd 11 dup(0) +leaderBestBankName db 64 dup(0) +leaderBestWinsName db 64 dup(0) +leaderBestLossName db 64 dup(0) +leaderBestGameWinNames db 11 dup(64 dup(0)) +leaderBestGameLossNames db 11 dup(64 dup(0)) +; === Íàñòðîéêè ñëîæíîñòè, âðåìåííûå ïåðåìåííûå ïîêåðà è ìèíè-èãð === +aiDifficulty dd 2 +bankRecovered dd 0 +saveTampered dd 0 +pokerReplaceIndex dd 0 +pokerReplaced dd 0 +pokerStraight dd 0 +pokerFlush dd 0 +pokerHigh dd 0 +pokerFour dd 0 +pokerTrip dd 0 +pokerPairHigh dd 0 +pokerPairLow dd 0 +; === ×åðåïà è øàðèê: ïîçèöèÿ øàðèêà, âûáîð è ÷èñëî ïåðåìåøèâàíèé === +skullBallPos dd 0 +skullGuess dd 0 +skullStep dd 0 +skullMax dd 0 +; === Ðóññêàÿ ðóëåòêà: áàðàáàí, ïàòðîíû, õîä è ìíîæèòåëü === +rrBulletMask dd 0 +rrBullets dd 0 +rrChamber dd 0 +rrTurn dd 0 +rrPayout dd 0 +; === Buckshot Roulette: ïàòðîíû, çäîðîâüå, ïðåäìåòû è ñîñòîÿíèå õîäà === +bsShells dd 8 dup(0) +bsShellIndex dd 0 +bsShellCount dd 0 +bsLiveCount dd 0 +bsBlankCount dd 0 +bsPlayerHP dd 0 +bsAIHP dd 0 +bsTurn dd 0 +bsDamage dd 1 +bsKnownShell dd 0FFFFFFFFh +bsSkipPlayer dd 0 +bsSkipAI dd 0 +bsPlayerGlass dd 0 +bsPlayerSaw dd 0 +bsPlayerBeer dd 0 +bsPlayerCuffs dd 0 +bsAIGlass dd 0 +bsAISaw dd 0 +bsAIBeer dd 0 +bsAICuffs dd 0 +bsTarget dd 0 +bsShell dd 0 +bsAction dd 0 +; === Ìèíè-èãðû îðåë/ðåøêà, êîñòè è êàçèíî-ðóëåòêà === +coinPick dd 0 +coinResult dd 0 +diceA dd 0 +diceB dd 0 +diceSum dd 0 +diceChoice dd 0 +casinoRouletteBetType dd 0 +casinoRouletteBetNumber dd 0 +casinoRouletteResult dd 0 +casinoRouletteResultIndex dd 0 +casinoRouletteSpinIndex dd 0 +casinoRouletteSpinSteps dd 0 +casinoRouletteSpinCounter dd 0 +casinoRouletteVisibleCount dd 0 +; === Äóðàê: ðóêè, êîëîäà, êîçûðü, ñòîë àòàêè è çàùèòû === +durakPlayerHand dd 40 dup(0) +durakAIHand dd 40 dup(0) +durakPlayerCnt dd 0 +durakAICnt dd 0 +durakDeckLeft dd 0 +durakTrumpCard dd 0 +durakTrumpSuit dd 0 +durakAttackCard dd 0FFFFFFFFh +durakDefenseCard dd 0FFFFFFFFh +durakPlayerTurn dd 1 +durakChoice dd 0 +durakTableCnt dd 0 +durakAttackCards dd 6 dup(0) +durakDefenseCards dd 6 dup(0FFFFFFFFh) +durakTempHand dd 6 dup(0) +durakSafeTurns dd 0 +durakLoopGuard dd 0 +; === Skill Check, ñòðåññ, ïîäîçðåíèå êàçèíî è òóðíèð-áàøíÿ === +skillNeedle dd 0 +skillDir dd 1 +skillSuccessStart dd 0 +skillSuccessEnd dd 0 +skillPerfectPos dd 0 +skillGaugeIndex dd 0 +skillFrameCount dd 0 +skillHits dd 0 +skillMisses dd 0 +skillResult dd 0 +skillPerfects dd 0 +skillDelay dd 45 +casinoSuspicion dd 0 +stressLevel dd 0 +lastGameResult dd 0 +tournamentStage dd 0 +tournamentMode dd 0 +dailyDateKey dd 0 +dailyRewardMask dd 0 +dailyProgressPacked dd 0 +dailyTaskPacked dd 0 +systemTime dw 8 dup(0) +pulseCycles dd 0 +; === Âðåìåííûå ñ÷åò÷èêè ðàíãîâ è ìàñòåé äëÿ îöåíêè ïîêåðà === +rankCounts db 13 dup(0) +suitCounts db 4 dup(0) + +; === Òåêñò èíòåðôåéñà: ìåíþ, ñèñòåìíûå ñîîáùåíèÿ, áàíê è ñòàâêè === +nl db 13,10,0 +dotSpaceText db ". ",0 +clearLines db 13,10,13,10,13,10,13,10,13,10,13,10,0 + +titleText db "==============================",13,10 + db " ASSEMBLER CASINO",13,10 + db "==============================",13,10,0 +menuText db "1. Ìàãàçèí",13,10 + db "2. 21 / Î÷êî",13,10 + db "3. Poker",13,10 + db "4. CloverPit",13,10 + db "5. ×åðåïà è øàðèê",13,10 + db "6. Ðóññêàÿ ðóëåòêà",13,10 + db "7. Îðåë è ðåøêà",13,10 + db "8. Êîñòè",13,10 + db "9. Êàçèíî-ðóëåòêà",13,10 + db "10. Slot machine",13,10 + db "11. Äóðàê",13,10 + db "12. Êðþê: Skill Check",13,10 + db "13. Buckshot Roulette",13,10 + db "14. Íàáëþäàòåëü AI vs AI",13,10 + db "15. Îáó÷åíèå",13,10 + db "16. Äîñòèæåíèÿ",13,10 + db "17. Ñòàòèñòèêà ïî èãðàì",13,10 + db "18. Åæåäíåâíûå çàäàíèÿ",13,10 + db "19. Íàñòðîéêè",13,10 + db "20. Online Casino (Radmin)",13,10 + db "21. Umamusume Ñêà÷êè",13,10 + + db "25. 3D-ÊÀÇÈÍÎ (DOOM / Wolf3D Raycaster 2.5D) [NEW]",13,10 + + db "0. Exit",13,10,0 +choiceText db "Âûáîð: ",0 +badChoiceText db "Íåò òàêîãî ïóíêòà.",13,10,0 +accountMenuText db "1. Âîéòè â àêêàóíò",13,10 + db "2. Ñîçäàòü àêêàóíò",13,10,0 +accountPromptText db "Ââåäèòå èìÿ àêêàóíòà ëàòèíèöåé: ",0 +accountBadText db "Èìÿ äîëæíî ñîäåðæàòü õîòÿ áû îäíó áóêâó èëè öèôðó.",13,10,0 +accountLoginText db "Àêêàóíò çàãðóæåí: ",0 +accountCreateText db "Àêêàóíò ñîçäàí: ",0 +accountListTitle db "Âûáåðèòå àêêàóíò:",13,10,0 +accountNoFilesText db "Ñîõðàíåííûõ àêêàóíòîâ ïîêà íåò.",13,10,0 +accountSelectText db "Íîìåð àêêàóíòà: ",0 +pauseText db 13,10,"Íàæìèòå ëþáóþ êëàâèøó...",0 +bankText db "Âàø áàíê: $",0 +betText db "Ââåäèòå ñòàâêó: $",0 +betChosenText db "Âû ïîñòàâèëè $",0 +badBetText db "Ñòàâêà äîëæíà áûòü ÷èñëîì áîëüøå 0.",13,10,0 +tooBigBetText db "Ó âàñ íåò ñòîëüêî äåíåã.",13,10,0 +suspicionText db "Ïîäîçðåíèå êàçèíî: ",0 +suspicionCalmText db "òèõî",13,10,0 +suspicionWatchText db "çà òîáîé ñìîòðÿò",13,10,0 +suspicionHuntText db "îõðàíà ðÿäîì",13,10,0 +suspicionUpText db "Ïîäîçðåíèå âûðîñëî.",13,10,0 +suspicionFineText db "Îõðàíà çàìåòèëà ìóòíóþ èãðó. Øòðàô: $",0 +stressText db "Ñòðåññ ñòàâêè: ",0 +stressLowText db "ñïîêîéíî",13,10,0 +stressMidText db "ïóëüñ ðàñòåò",13,10,0 +stressHighText db "ðóêè äðîæàò",13,10,0 +stressMaxText db "ïàíèêà",13,10,0 +cheatMoveText db "Øóëåðñòâî: 3 - ïîäñìîòðåòü, 4 - ïîäìåíèòü êàðòó.",13,10,0 +cheatPeekText db "Òû íåçàìåòíî ïîäñìîòðåë êàðòó:",13,10,0 +cheatSwapText db "Òû ïîäìåíèë êàðòó ïîä ðóêàâîì.",13,10,0 +cheatNoTargetText db "Ñåé÷àñ íå÷åãî ïîäìåíÿòü.",13,10,0 +tournamentTitle db 13,10,"--- Ñåêðåòíûé ðåæèì: Àäñêàÿ áàøíÿ ---",13,10,0 +tournamentIntro db "Àäñêàÿ áàøíÿ êàçèíî: 10 ýòàïîâ ïîäðÿä. Ïðîèãðàë - íà÷èíàåøü çàíîâî.",13,10 + db "Âõîä ñêðûò. Êîä 666 ïðèíÿò. Ìóçûêó ìîæíî ìåíÿòü êëàâèøåé M ïåðåä ýòàïîì.",13,10,0 +tournamentStageText db 13,10,"Ýòàï áàøíè: ",0 +tournamentMusicHint db "M - ñëó÷àéíî ñìåíèòü ìóçûêó áàøíè, ëþáàÿ äðóãàÿ êëàâèøà - íà÷àòü ýòàï",13,10,0 +secretHellText db 13,10,"Ñåêðåòíûé êîä ïðèíÿò. Êàçèíî îïóñêàåò òåáÿ â Àäñêóþ áàøíþ...",13,10,0 +hellStageCurseText db "Ïðîêëÿòèå ýòàïà: ",0 +hellCurse1 db "êðóïüå áîëüøå íå ìîðãàåò.",13,10,0 +hellCurse2 db "ìóçûêà èãðàåò, äàæå åñëè òû ïðîèãðûâàåøü.",13,10,0 +hellCurse3 db "êàæäàÿ ñòàâêà ïàõíåò ñåðîé.",13,10,0 +hellCurse4 db "îõðàííèê óæå çíàåò òâîå èìÿ.",13,10,0 +tournamentFailText db 13,10,"Àäñêàÿ áàøíÿ çàêðûëà äâåðè. Òóðíèð íà÷èíàåòñÿ çàíîâî.",13,10,0 +tournamentWinText db 13,10,"ÒÛ ÂÛÆÈË Â ÀÄÑÊÎÉ ÁÀØÍÅ! Ñåêðåòíûé áîíóñ: $66600",13,10,0 +tournamentFire1 db 13,10," . * .",13,10," ASSEMBLER CASINO",13,10," . | .",13,10," ___ /---\ ___",13,10," /___\ | T | /___\",13,10,0 +tournamentFire2 db 13,10," * \ | / \ | / *",13,10," -- TOWER CLEARED --",13,10," * / | \ / | \ *",13,10," ___ /---\ ___",13,10," /___\ | 10| /___\",13,10,0 +tournamentFire3 db 13,10," * . * . * . * . * . * . *",13,10," $$$ FIREWORKS $$$",13,10," . * . * . * . * . * . * .",13,10," \ \ | / /",13,10," \__\_|_/__/",13,10,0 +tournamentFire4 db 13,10," ============ JACKPOT SKY ============",13,10," * * * * *",13,10," * CASINO CHAMPION *",13,10," * * * * *",13,10," =====================================",13,10,0 +dailyTitle db 13,10,"--- Åæåäíåâíûå çàäàíèÿ ---",13,10,0 +dailyIntro db "Êàæäûé êàëåíäàðíûé äåíü êàçèíî âûáèðàåò 3 çàäàíèÿ èç 40.",13,10,0 +dailyDateText db "Äàòà çàäàíèÿ: ",0 +dailyPoolText db "Ïóë çàäàíèé: 40. Ñåãîäíÿ âûáðàíî: 3",13,10,0 +dailySlashText db " / ",0 +dailyRewardText db " Íàãðàäà: $",0 +dailyClaimText db "Åæåäíåâíàÿ íàãðàäà ïîëó÷åíà: +$",0 +dailyDoneText db " [ïîëó÷åíî]",13,10,0 +dailyOpenText db " [â ïðîöåññå]",13,10,0 +settingsTitle db 13,10,"--- Íàñòðîéêè êàçèíî ---",13,10,0 +settingsMenuText db "1. Òèøå",13,10 + db "2. Ãðîì÷å",13,10 + db "3. Ïðîôèëü àíèìàöèé",13,10 + db "4. Ïåðåêëþ÷èòü èíòðî",13,10 + db "5. Ïåðåêëþ÷èòü DBD-îêíî",13,10 + db "0. Íàçàä",13,10 + db "Âûáîð: ",0 +settingsVolumeText db "Ãðîìêîñòü: ",0 +settingsVolumeHint db "0 - áåç çâóêà, 10 - ìàêñèìóì",13,10,0 +settingsModeText db "Ïðîôèëü àíèìàöèé: ",0 +settingsNormalText db "îáû÷íûé",13,10,0 +settingsLowText db "ñëàáûé ÏÊ",13,10,0 +settingsIntroText db "Èíòðî: ",0 +settingsDbdText db "DBD-îêíî: ",0 +settingsOnText db "âêë",13,10,0 +settingsOffText db "âûêë",13,10,0 +settingsCinematicText db "Cinematic - ìàêñèìóì",13,10,0 +settingsAdaptiveText db "Adaptive - ìÿã÷å",13,10,0 +settingsStableText db "Stable - ìåíüøå ðÿáè",13,10,0 +settingsAnimHintText db "Cinematic: âñå êàäðû; Adaptive: ìåíüøå ðÿáè; Stable: äëÿ ñëàáûõ ÏÊ.",13,10,0 +vipStatusText db "VIP-ñòàòóñ: ",0 +vipBronzeText db "Bronze",13,10,0 +vipSilverText db "Silver",13,10,0 +vipGoldText db "Gold",13,10,0 +vipDiamondText db "Diamond",13,10,0 +vipTaxText db "Êîìèññèÿ êàçèíî: $",0 +secretEndingTitle db 13,10,"========================================",13,10," ÊÀÇÈÍÎ ÏÐÈÇÍÀËÎ ÒÅÁß ÑÂÎÈÌ",13,10,"========================================",13,10,0 +secretEndingBody db "Òû ñîáðàë âñå äîñòèæåíèÿ, ñêóïèë ðóáàøêè è âûíåñ áàíê òàê, ÷òî êðóïüå áîëüøå íå ñïîðèò.",13,10,"Äâåðè ñëóæåáíîãî ëèôòà îòêðûâàþòñÿ. Íà òàáëè÷êå îäíà ôðàçà: HOUSE PLAYER.",13,10,"Ñåêðåòíàÿ êîíöîâêà îòêðûòà.",13,10,0 +secretEndingArt1 db " .---. .---. .---.",13,10," / $ / / VIP / / $ /",13,10," \\____/ \\____/ \\____/",13,10,0 +secretEndingArt2 db " ======= ASSEMBLER CASINO PRIVATE FLOOR =======",13,10," cards slots roulette secrets",13,10," =================================================",13,10,0 +dailyReadyText db " [ãîòîâî ê ïîëó÷åíèþ]",13,10,0 +dailyTaskName01 db "Ñûãðàòü 3 èãðû",0 +dailyTaskName02 db "Ñûãðàòü 5 èãð",0 +dailyTaskName03 db "Ñûãðàòü 7 èãð",0 +dailyTaskName04 db "Ïîáåäèòü 1 ðàç",0 +dailyTaskName05 db "Ïîáåäèòü 2 ðàçà",0 +dailyTaskName06 db "Ïîáåäèòü 3 ðàçà",0 +dailyTaskName07 db "Ïðîèãðàòü 1 ðàç",0 +dailyTaskName08 db "Ïðîèãðàòü 2 ðàçà",0 +dailyTaskName09 db "Ñäåëàòü íè÷üþ 1 ðàç",0 +dailyTaskName10 db "Ïîñòàâèòü îò $5000",0 +dailyTaskName11 db "Ïîñòàâèòü îò $5000 òðè ðàçà",0 +dailyTaskName12 db "Ïîñòàâèòü îò $10000",0 +dailyTaskName13 db "Ñûãðàòü â 21",0 +dailyTaskName14 db "Ïîáåäèòü â 21",0 +dailyTaskName15 db "Ñûãðàòü â Poker",0 +dailyTaskName16 db "Ïîáåäèòü â Poker",0 +dailyTaskName17 db "Ñûãðàòü â CloverPit",0 +dailyTaskName18 db "Ïîáåäèòü â CloverPit",0 +dailyTaskName19 db "Ñûãðàòü â ðóññêóþ ðóëåòêó",0 +dailyTaskName20 db "Ïîáåäèòü â ðóññêóþ ðóëåòêó",0 +dailyTaskName21 db "Ñûãðàòü â ÷åðåïà",0 +dailyTaskName22 db "Ïîáåäèòü â ÷åðåïà",0 +dailyTaskName23 db "Ñûãðàòü â îðëà è ðåøêó",0 +dailyTaskName24 db "Ïîáåäèòü â îðëà è ðåøêó",0 +dailyTaskName25 db "Ñûãðàòü â êîñòè",0 +dailyTaskName26 db "Ïîáåäèòü â êîñòè",0 +dailyTaskName27 db "Ñûãðàòü â êàçèíî-ðóëåòêó",0 +dailyTaskName28 db "Ïîáåäèòü â êàçèíî-ðóëåòêó",0 +dailyTaskName29 db "Ñûãðàòü â Slot machine",0 +dailyTaskName30 db "Ïîáåäèòü â Slot machine",0 +dailyTaskName31 db "Ñûãðàòü â äóðàêà",0 +dailyTaskName32 db "Ïîáåäèòü â äóðàêà",0 +dailyTaskName33 db "Ñûãðàòü â Skill Check",0 +dailyTaskName34 db "Ïîáåäèòü â Skill Check",0 +dailyTaskName35 db "Ñûãðàòü 2 êàðòî÷íûå èãðû",0 +dailyTaskName36 db "Ïîáåäèòü â êàðòî÷íîé èãðå",0 +dailyTaskName37 db "Ñûãðàòü 3 èãðû óäà÷è",0 +dailyTaskName38 db "Ïîáåäèòü 2 ðàçà â èãðàõ óäà÷è",0 +dailyTaskName39 db "Ñûãðàòü 2 îïàñíûå èãðû",0 +dailyTaskName40 db "Ïîáåäèòü â îïàñíîé èãðå",0 +dailyTaskNameTable dd OFFSET dailyTaskName01, OFFSET dailyTaskName02, OFFSET dailyTaskName03, OFFSET dailyTaskName04 + dd OFFSET dailyTaskName05, OFFSET dailyTaskName06, OFFSET dailyTaskName07, OFFSET dailyTaskName08 + dd OFFSET dailyTaskName09, OFFSET dailyTaskName10, OFFSET dailyTaskName11, OFFSET dailyTaskName12 + dd OFFSET dailyTaskName13, OFFSET dailyTaskName14, OFFSET dailyTaskName15, OFFSET dailyTaskName16 + dd OFFSET dailyTaskName17, OFFSET dailyTaskName18, OFFSET dailyTaskName19, OFFSET dailyTaskName20 + dd OFFSET dailyTaskName21, OFFSET dailyTaskName22, OFFSET dailyTaskName23, OFFSET dailyTaskName24 + dd OFFSET dailyTaskName25, OFFSET dailyTaskName26, OFFSET dailyTaskName27, OFFSET dailyTaskName28 + dd OFFSET dailyTaskName29, OFFSET dailyTaskName30, OFFSET dailyTaskName31, OFFSET dailyTaskName32 + dd OFFSET dailyTaskName33, OFFSET dailyTaskName34, OFFSET dailyTaskName35, OFFSET dailyTaskName36 + dd OFFSET dailyTaskName37, OFFSET dailyTaskName38, OFFSET dailyTaskName39, OFFSET dailyTaskName40 +cheatAppliedText db "CHEAT ACTIVATED: ",0 +cheatBadText db "Unknown cheat code.",13,10,0 +cheatMoneyText db "+$50000",13,10,0 +cheatSevenText db "+$7777",13,10,0 +cheatWinText db "next loss becomes win",13,10,0 +cheatGodText db "losses become wins",13,10,0 +cheatFairText db "fair play restored",13,10,0 +cheatGoalText db "bank moved to current goal",13,10,0 +cheatResetText db "bank reset to $10000",13,10,0 +cheatEasyText db "AI difficulty EASY",13,10,0 +cheatNormalText db "AI difficulty NORMAL",13,10,0 +cheatHardText db "AI difficulty HARD",13,10,0 +cheatJackpotText db "next slot spin is forced jackpot",13,10,0 +cheatRichText db "+$250000",13,10,0 +cheatDoubleText db "bank doubled",13,10,0 +cheatPoorText db "bank set to $1",13,10,0 +cheatShopText db "+$30000 for shop",13,10,0 +cheatBacksText db "all card backs unlocked",13,10,0 +cheatCharmText db "luck talisman maxed",13,10,0 +cheatNoCharmText db "luck talisman removed",13,10,0 +cheatAchText db "all achievements unlocked",13,10,0 +cheatSavedText db "CHEAT: loss changed into win.",13,10,0 +cheatCodeMoney db "MONEYRAIN",0 +cheatCodeSeven db "SEVENS",0 +cheatCodeWin db "WINNEXT",0 +cheatCodeGod db "GODMODE",0 +cheatCodeFair db "FAIRPLAY",0 +cheatCodeGoal db "GOAL",0 +cheatCodeReset db "RESETBANK",0 +cheatCodeEasy db "EASYAI",0 +cheatCodeNormal db "NORMALAI",0 +cheatCodeHard db "HARDAI",0 +cheatCodeJackpot db "JACKPOT",0 +cheatCodeRich db "HIGHROLLER",0 +cheatCodeDouble db "DOUBLECASH",0 +cheatCodePoor db "ONEBUCK",0 +cheatCodeShop db "SHOPPING",0 +cheatCodeBacks db "ALLBACKS",0 +cheatCodeCharm db "MAXCHARM",0 +cheatCodeNoCharm db "NOCHARM",0 +cheatCodeAch db "ACHIEVER",0 +moneyWinText db "Âûèãðûø: +$",0 +moneyLoseText db "Ïðîèãðûø: -$",0 +moneyDrawText db "Ñòàâêà âîçâðàùàåòñÿ.",13,10,0 +casinoKickText db 13,10,"Ó âàñ íå îñòàëîñü äåíåã. Âàñ âûâîäÿò èç êàçèíî.",13,10,0 +casinoExitText db "Íàæìèòå ëþáóþ êëàâèøó, ÷òîáû âûéòè...",0 +welcomeText db 13,10,"Äîáðî ïîæàëîâàòü â ASSEMBLER CASINO!",13,10,"Óäà÷à ëþáèò ñìåëûõ, íî êàçèíî ëþáèò ìàòåìàòèêó.",13,10,0 +difficultyText db 13,10,"Ñëîæíîñòü AI: 1 - Easy, 2 - Normal, 3 - Hard: ",0 +difficultyNowText db "Ñëîæíîñòü AI: ",0 +easyName db "Easy",13,10,0 +normalName db "Normal",13,10,0 +hardName db "Hard",13,10,0 +statsGamesText db "Èãð ñûãðàíî: ",0 +statsWinsText db "Ïîáåä: ",0 +statsLossText db "Ïîðàæåíèé: ",0 +statsDrawText db "Íè÷üèõ: ",0 +statsBestWinText db "Ìàêñ. âûèãðûø: $",0 +statsBestLossText db "Ìàêñ. ïðîèãðûø: $",0 +statsByGameTitle db 13,10,"--- Ñòàòèñòèêà è ëèäåðû êàçèíî ---",13,10,0 +statsLinePlayed db " èãð: ",0 +statsLineWins db " ïîáåä: ",0 +statsLineLoss db " ïîðàæåíèé: ",0 +statsLineDraw db " íè÷üèõ: ",0 +leaderCurrentTitle db "Òåêóùèé àêêàóíò:",13,10,0 +leaderTitle db 13,10,"Ëèäåðû ñðåäè âñåõ àêêàóíòîâ:",13,10,0 +leaderNoDataText db "Íåò ñîõðàíåíèé àêêàóíòîâ.",13,10,0 +leaderBankText db "Ñàìûé áîëüøîé áàíê: ",0 +leaderWinsText db "Áîëüøå âñåãî ïîáåä: ",0 +leaderLossText db "Áîëüøå âñåãî ïîðàæåíèé: ",0 +leaderGameTitle db 13,10,"Ëèäåðû ïî èãðàì:",13,10,0 +leaderGameWinText db " ïîáåäû: ",0 +leaderGameLossText db " ïîðàæåíèÿ: ",0 +leaderDashText db "-",0 +leaderOpenText db " (",0 +leaderCloseText db ")",0 +leaderMoneyPrefix db "$",0 +statsGame21 db "21 / Î÷êî",0 +statsGamePoker db "Poker",0 +statsGameClover db "CloverPit",0 +statsGameRR db "Ðóññêàÿ ðóëåòêà",0 +statsGameSkulls db "×åðåïà",0 +statsGameCoin db "Îðåë/ðåøêà",0 +statsGameDice db "Êîñòè",0 +statsGameCasinoRoulette db "Êàçèíî-ðóëåòêà",0 +statsGameClassicSlot db "Slot machine",0 +statsGameDurak db "Äóðàê",0 +statsGameSkillCheck db "Êðþê: Skill Check",0 +statsGameNames dd OFFSET statsGame21, OFFSET statsGamePoker, OFFSET statsGameClover, OFFSET statsGameRR, OFFSET statsGameSkulls + dd OFFSET statsGameCoin, OFFSET statsGameDice, OFFSET statsGameCasinoRoulette, OFFSET statsGameClassicSlot, OFFSET statsGameDurak + dd OFFSET statsGameSkillCheck +bankRecoveredText db "Ïîñëå ïðîøëîãî âèçèòà êàçèíî âûäàëî íîâûé ñòàðòîâûé áàíê: $10000",13,10,0 +saveTamperedText db "Ñîõðàíåíèå ïîâðåæäåíî èëè èçìåíåíî. Êàçèíî âûäàëî ÷èñòûé ñòàðòîâûé áàíê.",13,10,0 +goalText db "Öåëü èãðû: äîâåñòè áàíê äî $",0 +victoryText db 13,10,"+====================================+",13,10 + db "| ÄÆÅÊÏÎÒ ÆÈÇÍÈ |",13,10 + db "+====================================+",13,10,13,10,0 +victoryReachedText db "Òû ïîäíÿë áàíê äî $",0 +victoryTailText db "Îõðàíà óæå íåðâíè÷àåò.",13,10 + db "Êàçèíî ïðèçíàåò ïîðàæåíèå.",13,10,13,10 + db "Çàáèðàé âûèãðûø è óõîäè êðàñèâî.",13,10,0 +victoryExitText db "Íàæìèòå ëþáóþ êëàâèøó, ÷òîáû ïðîäîëæèòü èãðó...",0 +nextGoalText db "Ñëåäóþùàÿ öåëü: $",0 +croupierPrefix db 13,10,"Êðóïüå: ",0 +croupierWin1 db "Êðàñèâî. Ôèøêè èäóò ê âàì.",13,10,0 +croupierWin2 db "Ñòîë ñåãîäíÿ ÿâíî íà âàøåé ñòîðîíå.",13,10,0 +croupierWin3 db "Õîðîøèé óäàð ïî áàíêó êàçèíî.",13,10,0 +croupierLose1 db "Êàçèíî çàáèðàåò ñòàâêó.",13,10,0 +croupierLose2 db "Íå ëó÷øèé ðàñêëàä, íî âå÷åð åùå æèâîé.",13,10,0 +croupierLose3 db "Ôèøêè óõîäÿò ñî ñòîëà.",13,10,0 +croupierDraw1 db "Ñòàâêà îñòàåòñÿ ïðè âàñ.",13,10,0 +croupierDraw2 db "Íèêòî íå ñäâèíóë áàíê. Èãðàåì äàëüøå.",13,10,0 +croupierDraw3 db "Ðîâíî. Áåç ïîáåäèòåëÿ.",13,10,0 +croupierWinList dd OFFSET croupierWin1, OFFSET croupierWin2, OFFSET croupierWin3 +croupierLoseList dd OFFSET croupierLose1, OFFSET croupierLose2, OFFSET croupierLose3 +croupierDrawList dd OFFSET croupierDraw1, OFFSET croupierDraw2, OFFSET croupierDraw3 +dealerFileName db "assets\data\dealer_phrases.txt",0 +pulseTitleText db 13,10,"Ïóëüñ ñòàâêè:",13,10,0 +pulseFrame1 db " _/\_ ñïîêîéíî",13,10,0 +pulseFrame2 db " _/\/\_ íàïðÿæåíèå",13,10,0 +pulseFrame3 db " _/\/\/\_ ðèñê",13,10,0 +pulseFrame4 db " _/\/\/\/\_ ñåðäöå êîëîòèòñÿ",13,10,0 +pulseFrame5 db " _/\/\_/\_ âäîõ...",13,10,0 +observerTitle db 13,10,"--- Íàáëþäàòåëü AI vs AI ---",13,10,0 +observerIntro db "AI-1 è AI-2 èãðàþò 5 áûñòðûõ ðàóíäîâ â 21 áåç ñòàâîê.",13,10,0 +observerRoundText db 13,10,"Ðàóíä ",0 +observerAI1Text db "AI-1 î÷êè: ",0 +observerAI2Text db "AI-2 î÷êè: ",0 +observerWin1Text db "AI-1 çàáèðàåò ðàóíä.",13,10,0 +observerWin2Text db "AI-2 çàáèðàåò ðàóíä.",13,10,0 +observerDrawText db "Íè÷üÿ ìåæäó æåëåçêàìè.",13,10,0 +observerDoneText db 13,10,"Íàáëþäåíèå îêîí÷åíî.",13,10,0 +observerMenuText db "1. Ðóññêàÿ ðóëåòêà",13,10 + db "2. 21 / Î÷êî",13,10 + db "3. Poker",13,10 + db "4. Äóðàê",13,10 + db "0. Íàçàä",13,10 + db "Âûáîð: ",0 +observer21Title db 13,10,"--- AI vs AI: 21 / Î÷êî ---",13,10,0 +observerPokerTitle db 13,10,"--- AI vs AI: Poker ---",13,10,0 +observerDurakTitle db 13,10,"--- AI vs AI: Äóðàê ---",13,10,0 +observerRRTitle db 13,10,"--- AI vs AI: Ðóññêàÿ ðóëåòêà ---",13,10,0 +observerAI1CardsText db 13,10,"Êàðòû AI-1:",13,10,0 +observerAI2CardsText db 13,10,"Êàðòû AI-2:",13,10,0 +observerAI1RaiseText db "AI-1 ïîâûøàåò ñòàâêó.",13,10,0 +observerAI2RaiseText db "AI-2 ïîâûøàåò ñòàâêó.",13,10,0 +observerCallText db "Ñîïåðíèê îòâå÷àåò.",13,10,0 +observerFold1Text db "AI-1 äåëàåò ôîëä.",13,10,0 +observerFold2Text db "AI-2 äåëàåò ôîëä.",13,10,0 +observerShotAI1Text db "Âûñòðåë äîñòàëñÿ AI-1. Ïîáåäèë AI-2.",13,10,0 +observerShotAI2Text db "Âûñòðåë äîñòàëñÿ AI-2. Ïîáåäèë AI-1.",13,10,0 +shopMainMenuText db "1. Ðóáàøêè êàðò",13,10 + db "2. Òàëèñìàíû",13,10 + db "3. Áåñòèàðèé òàëèñìàíîâ",13,10 + db "0. Íàçàä",13,10 + db "Âûáîð: ",0 +shopBackTitle db 13,10,"--- Ìàãàçèí: ðóáàøêè êàðò ---",13,10,0 +shopCharmTitle db 13,10,"--- Ìàãàçèí: òàëèñìàíû ---",13,10,0 +shopBackMenuText db "1. Ñèíÿÿ ðóáàøêà êàðò - $3000",13,10 + db "2. Êðàñíàÿ ðóáàøêà êàðò - $3000",13,10 + db "3. Çîëîòàÿ ðóáàøêà êàðò - $10000",13,10 + db "4. Ðóáàøêà ×åðåï - $12000",13,10 + db "5. Rubashka CloverPit - $15000",13,10 + db "6. Rubashka Arcane kart - $17000",13,10 + db "7. Rubashka Noir kart - $18000",13,10 + db "8. Rubashka Diamond kart - $20000",13,10 + db "9. Rubashka Rider kart - $22000",13,10 + db "10. Rubashka Bee kart - $22000",13,10 + db "11. Rubashka Fan kart - $23000",13,10 + db "12. Rubashka Web kart - $24000",13,10 + db "0. Íàçàä",13,10 + db "Âûáîð: ",0 +shopCharmMenuText db "1. Òàëèñìàí Êëåâåð: 7%, 3 çàðÿäà - $12000",13,10 + db "2. Òàëèñìàí Êîëîêîë: 14%, 3 çàðÿäà, +4 ïîäîçðåíèÿ - $18000",13,10 + db "3. Òàëèñìàí Àëìàç: 21%, 3 çàðÿäà, +8 ïîäîçðåíèÿ - $25000",13,10 + db "4. Òàëèñìàí ×åðåï: 28%, 2 çàðÿäà, øòðàô ïîëîâèíà ñòàâêè - $32000",13,10 + db "5. Òàëèñìàí Ïàóòèíà: 35%, 1 çàðÿä, +20 ïîäîçðåíèÿ - $40000",13,10 + db "6. Òàëèñìàí Ï÷åëà: 12%, 5 çàðÿäîâ - $30000",13,10 + db "7. Òàëèñìàí Ëóíà: 18%, 4 çàðÿäà, +8 ïîäîçðåíèÿ - $36000",13,10 + db "8. Òàëèñìàí Êîðîíà: 24%, 2 çàðÿäà, +12 ïîäîçðåíèÿ - $52000",13,10 + db "9. Òàëèñìàí Çåðêàëî: 16%, 4 çàðÿäà, +6 ïîäîçðåíèÿ - $42000",13,10 + db "10. Òàëèñìàí Êîñòü: 10%, 6 çàðÿäîâ - $35000",13,10 + db "11. Êðîâàâàÿ ìîíåòà: 40%, 1 çàðÿä, øòðàô 25% ñòàâêè è +25 ïîäîçðåíèÿ - $65000",13,10 + db "12. Ïåñî÷íûå ÷àñû: 22%, 2 çàðÿäà, +15 ïîäîçðåíèÿ - $48000",13,10 + db "13. Ïîäêîâà: 9%, 8 çàðÿäîâ - $39000",13,10 + db "14. Ìàñêà äæîêåðà: 33%, 1 çàðÿä, +30 ïîäîçðåíèÿ - $70000",13,10 + db "15. Ïåðî ôåíèêñà: 26%, 2 çàðÿäà, +10 ïîäîçðåíèÿ - $56000",13,10 + db "16. Ñëîìàííûé êîìïàñ: 19%, 3 çàðÿäà, +12 ïîäîçðåíèÿ - $44000",13,10 + db "17. Çîëîòîé çóá: 15%, 5 çàðÿäîâ, øòðàô 20% ñòàâêè - $47000",13,10 + db "18. Õðóñòàëüíûé ãëàç: 31%, 1 çàðÿä, +18 ïîäîçðåíèÿ - $60000",13,10 + db "19. Ðæàâûé êëþ÷: 13%, 6 çàðÿäîâ - $41000",13,10 + db "20. ×åðíàÿ ñâå÷à: 38%, 1 çàðÿä, øòðàô 33% ñòàâêè è +35 ïîäîçðåíèÿ - $76000",13,10 + db "21. Ñ÷àñòëèâàÿ ôèøêà: 20%, 4 çàðÿäà - $50000",13,10 + db "22. Çìåèíîå êîëüöî: 29%, 2 çàðÿäà, +16 ïîäîçðåíèÿ - $62000",13,10 + db "23. Îñêîëîê òóçà: 17%, 5 çàðÿäîâ, +7 ïîäîçðåíèÿ - $53000",13,10 + db "24. Äîãîâîð ñ äüÿâîëîì: 50%, 1 çàðÿä, øòðàô 50% ñòàâêè è +45 ïîäîçðåíèÿ - $100000",13,10 + db "0. Íàçàä",13,10 + db "Âûáîð: ",0 +shopTitle db 13,10,"--- Ìàãàçèí êàçèíî ---",13,10,0 +shopMenuText db "1. Ñèíÿÿ ðóáàøêà êàðò - $3000",13,10 + db "2. Êðàñíàÿ ðóáàøêà êàðò - $3000",13,10 + db "3. Çîëîòàÿ ðóáàøêà êàðò - $10000",13,10 + db "4. Ðóáàøêà ×åðåï - $12000",13,10 + db "5. Ðóáàøêà CloverPit - $15000",13,10 + db "6. Òàëèñìàí Êëåâåð: 7%, 3 çàðÿäà - $12000",13,10 + db "7. Òàëèñìàí Êîëîêîë: 14%, 3 çàðÿäà - $18000",13,10 + db "8. Òàëèñìàí Àëìàç: 21%, 3 çàðÿäà - $25000",13,10 + db "9. Rubashka Arcane kart - $17000",13,10 + db "10. Rubashka Noir kart - $18000",13,10 + db "11. Rubashka Diamond kart - $20000",13,10 + db "12. Rubashka Rider kart - $22000",13,10 + db "13. Rubashka Bee kart - $22000",13,10 + db "14. Rubashka Fan kart - $23000",13,10 + db "15. Rubashka Web kart - $24000",13,10 + db "0. Íàçàä",13,10 + db "Âûáîð: ",0 +shopBackText db "Òåêóùàÿ ðóáàøêà: ",0 +shopBackGray db "Ñåðàÿ",13,10,0 +shopBackBlue db "Ñèíÿÿ âîëíà",13,10,0 +shopBackRed db "Êðàñíûé êðåñò",13,10,0 +shopBackGold db "Çîëîòîé áëåñê",13,10,0 +shopBackSkull db "×åðåï",13,10,0 +shopBackClover db "CloverPit",13,10,0 +shopBackArcane db "Arcane",13,10,0 +shopBackNoir db "Noir",13,10,0 +shopBackDiamond db "Diamond",13,10,0 +shopBackRider db "Rider",13,10,0 +shopBackBee db "Bee",13,10,0 +shopBackFan db "Fan",13,10,0 +shopBackWeb db "Web",13,10,0 +shopCharmText db "Òàëèñìàí: ",0 +shopCharmNone db "íåò",13,10,0 +shopCharmClover db "Êëåâåð",0 +shopCharmBell db "Êîëîêîë",0 +shopCharmDiamond db "Àëìàç",0 +shopCharmSkull db "×åðåï",0 +shopCharmWeb db "Ïàóòèíà",0 +shopCharmBee db "Ï÷åëà",0 +shopCharmMoon db "Ëóíà",0 +shopCharmCrown db "Êîðîíà",0 +shopCharmMirror db "Çåðêàëî",0 +shopCharmDice db "Êîñòü",0 +shopCharmBlood db "Êðîâàâàÿ ìîíåòà",0 +shopCharmHourglass db "Ïåñî÷íûå ÷àñû",0 +shopCharmHorseshoe db "Ïîäêîâà",0 +shopCharmJoker db "Ìàñêà äæîêåðà",0 +shopCharmPhoenix db "Ïåðî ôåíèêñà",0 +shopCharmCompass db "Ñëîìàííûé êîìïàñ",0 +shopCharmTooth db "Çîëîòîé çóá",0 +shopCharmEye db "Õðóñòàëüíûé ãëàç",0 +shopCharmKey db "Ðæàâûé êëþ÷",0 +shopCharmCandle db "×åðíàÿ ñâå÷à",0 +shopCharmChip db "Ñ÷àñòëèâàÿ ôèøêà",0 +shopCharmSnake db "Çìåèíîå êîëüöî",0 +shopCharmAce db "Îñêîëîê òóçà",0 +shopCharmDevil db "Äîãîâîð ñ äüÿâîëîì",0 +bestiaryTitle db 13,10,"--- Áåñòèàðèé òàëèñìàíîâ ---",13,10,0 +bestiaryMenuText db "--- Îáû÷íûå ---",13,10 + db "1. Êëåâåð",13,10 + db "2. Êîëîêîë",13,10 + db "6. Ï÷åëà",13,10 + db "10. Êîñòü",13,10 + db "13. Ïîäêîâà",13,10 + db "19. Ðæàâûé êëþ÷",13,10 + db "--- Ðåäêèå ---",13,10 + db "3. Àëìàç",13,10 + db "7. Ëóíà",13,10 + db "9. Çåðêàëî",13,10 + db "12. Ïåñî÷íûå ÷àñû",13,10 + db "15. Ïåðî ôåíèêñà",13,10 + db "16. Ñëîìàííûé êîìïàñ",13,10 + db "17. Çîëîòîé çóá",13,10 + db "21. Ñ÷àñòëèâàÿ ôèøêà",13,10 + db "23. Îñêîëîê òóçà",13,10 + db "--- Ïðîêëÿòûå ---",13,10 + db "4. ×åðåï",13,10 + db "5. Ïàóòèíà",13,10 + db "11. Êðîâàâàÿ ìîíåòà",13,10 + db "14. Ìàñêà äæîêåðà",13,10 + db "20. ×åðíàÿ ñâå÷à",13,10 + db "22. Çìåèíîå êîëüöî",13,10 + db "--- Ëåãåíäàðíûå ---",13,10 + db "8. Êîðîíà",13,10 + db "18. Õðóñòàëüíûé ãëàç",13,10 + db "24. Äîãîâîð ñ äüÿâîëîì",13,10 + db "0. Íàçàä",13,10 + db "Âûáîð: ",0 +bestiaryGoodText db "Ïëþñ: ",0 +bestiaryBadText db "Ìèíóñ: ",0 +bestiaryBackText db 13,10,"0 - íàçàä ê ñïèñêó áåñòèàðèÿ: ",0 +bestiaryCloverArt db 13,10," .-. .-.",13,10," .' V '. CLOVER",13,10," \ \|/ /",13,10," `-+-'",13,10,0 +bestiaryBellArt db 13,10," .---.",13,10," / ___ \ BELL",13,10," / / \ ",13,10," \_\___/_/",13,10," (_) ",13,10,0 +bestiaryDiamondArt db 13,10," /",13,10," /##\ DIAMOND",13,10," /####",13,10," \####/",13,10," \##/",13,10," \/",13,10,0 +bestiarySkullArt db 13,10," .-''''-.",13,10," / O O \ SKULL",13,10," | __ |",13,10," | .____. |",13,10," \__||||__/",13,10,0 +bestiaryWebArt db 13,10," \ | /",13,10," ---\ | /--- WEB",13,10," ---- @ ----",13,10," ---/ | \---",13,10," / | ",13,10,0 +bestiaryBeeArt db 13,10," __",13,10," __/o \__ BEE",13,10," / \__/ ",13,10," \__/==\__/",13,10," \__/",13,10,0 +bestiaryMoonArt db 13,10," .--.",13,10," .' _/ MOON",13,10," / .'",13,10," \ '.",13,10," '.__",13,10,0 +bestiaryCloverInfo db "Êëåâåð: 7%, 3 çàðÿäà.",13,10,"Ïëþñ: ìîæåò ïîëíîñòüþ ñïàñòè ïðîèãðàííóþ ñòàâêó.",13,10,"Ìèíóñ: ñëàáûé øàíñ, áåç äîïîëíèòåëüíûõ áîíóñîâ.",13,10,0 +bestiaryBellInfo db "Êîëîêîë: 14%, 3 çàðÿäà.",13,10,"Ïëþñ: ÷àùå ñïàñàåò ïðîèãðûø.",13,10,"Ìèíóñ: çâîí ïðèâëåêàåò êàçèíî: +4 ïîäîçðåíèÿ ïðè ñðàáàòûâàíèè.",13,10,0 +bestiaryDiamondInfo db "Àëìàç: 21%, 3 çàðÿäà.",13,10,"Ïëþñ: ñèëüíûé øàíñ ñïàñåíèÿ.",13,10,"Ìèíóñ: áëåñê ïàëèòñÿ îõðàíå: +8 ïîäîçðåíèÿ.",13,10,0 +bestiarySkullInfo db "×åðåï: 28%, 2 çàðÿäà.",13,10,"Ïëþñ: âûñîêèé øàíñ íå ïîòåðÿòü âñþ ñòàâêó.",13,10,"Ìèíóñ: çàáèðàåò ïîëîâèíó ñòàâêè äàæå ïðè ñïàñåíèè.",13,10,0 +bestiaryWebInfo db "Ïàóòèíà: 35%, 1 çàðÿä.",13,10,"Ïëþñ: ïî÷òè àâàðèéíàÿ êíîïêà ïðîòèâ ïðîèãðûøà.",13,10,"Ìèíóñ: +20 ïîäîçðåíèÿ, çàðÿä îäèí.",13,10,0 +bestiaryBeeInfo db "Ï÷åëà: 12%, 5 çàðÿäîâ.",13,10,"Ïëþñ: ìíîãî ïîïûòîê, õîðîøèé òàëèñìàí íà äëèííóþ èãðó.",13,10,"Ìèíóñ: øàíñ íèæå, ÷åì ó äîðîãèõ òàëèñìàíîâ.",13,10,0 +bestiaryMoonInfo db "Ëóíà: 18%, 4 çàðÿäà.",13,10,"Ïëþñ: áàëàíñ øàíñà è çàðÿäîâ.",13,10,"Ìèíóñ: ëóííûé ñâåò âûäàåò øóëåðà: +8 ïîäîçðåíèÿ.",13,10,0 +bestiaryCrownArt db 13,10," _^_",13,10," .'___'. CROWN",13,10," /_/|_|\_",13,10," /___",13,10,0 +bestiaryMirrorArt db 13,10," .----.",13,10," / .--. \ MIRROR",13,10," | | <> | |",13,10," \ '--' /",13,10," '----'",13,10,0 +bestiaryDiceArt db 13,10," +-----+",13,10," | o o | DICE",13,10," | o |",13,10," | o o |",13,10," +-----+",13,10,0 +bestiaryBloodArt db 13,10," .---.",13,10," / $ $ \ BLOOD COIN",13,10," | *** |",13,10," \_===_/",13,10," drip",13,10,0 +bestiaryHourglassArt db 13,10," \-----/",13,10," \.../ HOURGLASS",13,10," \./",13,10," /\",13,10," /___",13,10,0 +bestiaryCrownInfo db "Êîðîíà: 24%, 2 çàðÿäà.",13,10,"Ïëþñ: ñîëèäíûé øàíñ ñïàñåíèÿ.",13,10,"Ìèíóñ: êîðîíà ñëèøêîì çàìåòíà: +12 ïîäîçðåíèÿ.",13,10,0 +bestiaryMirrorInfo db "Çåðêàëî: 16%, 4 çàðÿäà.",13,10,"Ïëþñ: íåñêîëüêî ñòàáèëüíûõ ïîïûòîê îáìàíóòü ïðîèãðûø.",13,10,"Ìèíóñ: îòðàæåíèå ïàëèò ðóêè: +6 ïîäîçðåíèÿ.",13,10,0 +bestiaryDiceInfo db "Êîñòü: 10%, 6 çàðÿäîâ.",13,10,"Ïëþñ: ìíîãî çàðÿäîâ, ìîæíî æèòü äîëãî.",13,10,"Ìèíóñ: øàíñ ìàëåíüêèé, ýòî òàëèñìàí òåðïåíèÿ.",13,10,0 +bestiaryBloodInfo db "Êðîâàâàÿ ìîíåòà: 40%, 1 çàðÿä.",13,10,"Ïëþñ: ñàìûé ðåçêèé øàíñ ñïàñåíèÿ.",13,10,"Ìèíóñ: çàáèðàåò 25% ñòàâêè è äàåò +25 ïîäîçðåíèÿ.",13,10,0 +bestiaryHourglassInfo db "Ïåñî÷íûå ÷àñû: 22%, 2 çàðÿäà.",13,10,"Ïëþñ: íàäåæíåå ñðåäíåãî.",13,10,"Ìèíóñ: âðåìÿ íå ëþáèò ñâèäåòåëåé: +15 ïîäîçðåíèÿ.",13,10,0 +bestiaryHorseshoeArt db 13,10," __ __",13,10," / \_/ \ HORSESHOE",13,10," | o o |",13,10," \__ __/",13,10," |_|",13,10,0 +bestiaryJokerArt db 13,10," .-^^-.",13,10," / o o \ JOKER",13,10," | .--. |",13,10," \_\__/ _/",13,10," /==\",13,10,0 +bestiaryPhoenixArt db 13,10," /\",13,10," ___/ \___ PHOENIX",13,10," / / /\ \ ",13,10," /_||_\",13,10," \/",13,10,0 +bestiaryCompassArt db 13,10," .---.",13,10," / N \ COMPASS",13,10," | W-+-E |",13,10," \ S /",13,10," '--?'",13,10,0 +bestiaryToothArt db 13,10," .--.",13,10," /$ $\ GOLD TOOTH",13,10," | __ |",13,10," \____/",13,10," drip",13,10,0 +bestiaryEyeArt db 13,10," .-------.",13,10," / .---. \ EYE",13,10," | ( 0 ) |",13,10," \ '---' /",13,10," '-------'",13,10,0 +bestiaryKeyArt db 13,10," __",13,10," ___/ \___ KEY",13,10," (___ ___)",13,10," |__|==",13,10," ==",13,10,0 +bestiaryCandleArt db 13,10," )",13,10," ( ) CANDLE",13,10," .-#-.",13,10," |###|",13,10," |___|",13,10,0 +bestiaryChipArt db 13,10," .-----.",13,10," / $ $ $ \ CHIP",13,10," | $ 777 $ |",13,10," \ $ $ $ /",13,10," '-----'",13,10,0 +bestiarySnakeArt db 13,10," __",13,10," __/ \__ SNAKE RING",13,10," / _ _ ",13,10," \_/ \/ \_/",13,10," hiss",13,10,0 +bestiaryAceArt db 13,10," .---.",13,10," / A \ ACE SHARD",13,10," | ^ |",13,10," \ /_\ /",13,10," '---'",13,10,0 +bestiaryDevilArt db 13,10," /\ /\",13,10," / \_/ \ DEVIL",13,10," | $ $ |",13,10," | ___ |",13,10," \_/###\_/",13,10,0 +bestiaryHorseshoeInfo db "Ïîäêîâà: 9%, 8 çàðÿäîâ.",13,10,"Ïëþñ: ìíîãî ïîïûòîê, õîðîøî äëÿ äëèííûõ ñåññèé.",13,10,"Ìèíóñ: øàíñ ìàëåíüêèé, ñïàñàåò ðåäêî.",13,10,0 +bestiaryJokerInfo db "Ìàñêà äæîêåðà: 33%, 1 çàðÿä.",13,10,"Ïëþñ: ñèëüíûé øàíñ ðåçêî îòìåíèòü ïðîèãðûø.",13,10,"Ìèíóñ: ñëèøêîì òåàòðàëüíî: +30 ïîäîçðåíèÿ.",13,10,0 +bestiaryPhoenixInfo db "Ïåðî ôåíèêñà: 26%, 2 çàðÿäà.",13,10,"Ïëþñ: õîðîøèé øàíñ, áóäòî ñòàâêà âîñêðåñàåò èç ïåïëà.",13,10,"Ìèíóñ: +10 ïîäîçðåíèÿ ïðè ñðàáàòûâàíèè.",13,10,0 +bestiaryCompassInfo db "Ñëîìàííûé êîìïàñ: 19%, 3 çàðÿäà.",13,10,"Ïëþñ: ñðåäíèé òàëèñìàí áåç äåíåæíîãî øòðàôà.",13,10,"Ìèíóñ: âåäåò êðèâî: +12 ïîäîçðåíèÿ.",13,10,0 +bestiaryToothInfo db "Çîëîòîé çóá: 15%, 5 çàðÿäîâ.",13,10,"Ïëþñ: ìíîãî çàðÿäîâ ïðè íîðìàëüíîì øàíñå.",13,10,"Ìèíóñ: áåðåò ïëàòó 20% ñòàâêè ïðè ñïàñåíèè.",13,10,0 +bestiaryEyeInfo db "Õðóñòàëüíûé ãëàç: 31%, 1 çàðÿä.",13,10,"Ïëþñ: ïî÷òè âèäèò ïðîèãðûø çàðàíåå.",13,10,"Ìèíóñ: +18 ïîäîçðåíèÿ, çàðÿä îäèí.",13,10,0 +bestiaryKeyInfo db "Ðæàâûé êëþ÷: 13%, 6 çàðÿäîâ.",13,10,"Ïëþñ: äåøåâëå ìîùíûõ òàëèñìàíîâ è äîëãî æèâåò.",13,10,"Ìèíóñ: øàíñ ñëàáûé, êëþ÷ ÷àñòî íå ïîäõîäèò.",13,10,0 +bestiaryCandleInfo db "×åðíàÿ ñâå÷à: 38%, 1 çàðÿä.",13,10,"Ïëþñ: î÷åíü ñèëüíûé øàíñ ñïàñåíèÿ.",13,10,"Ìèíóñ: øòðàô 33% ñòàâêè è +35 ïîäîçðåíèÿ.",13,10,0 +bestiaryChipInfo db "Ñ÷àñòëèâàÿ ôèøêà: 20%, 4 çàðÿäà.",13,10,"Ïëþñ: ðîâíûé óíèâåðñàëüíûé òàëèñìàí.",13,10,"Ìèíóñ: áåç ÿðêîãî áîíóñà, ïðîñòî íàäåæíîñòü.",13,10,0 +bestiarySnakeInfo db "Çìåèíîå êîëüöî: 29%, 2 çàðÿäà.",13,10,"Ïëþñ: âûñîêèé øàíñ íà äâà ñïàñåíèÿ.",13,10,"Ìèíóñ: øèïèò íà îõðàíó: +16 ïîäîçðåíèÿ.",13,10,0 +bestiaryAceInfo db "Îñêîëîê òóçà: 17%, 5 çàðÿäîâ.",13,10,"Ïëþñ: ìíîãî çàðÿäîâ è ÷óòü áîëüøå óäà÷è, ÷åì ó êëþ÷à.",13,10,"Ìèíóñ: +7 ïîäîçðåíèÿ.",13,10,0 +bestiaryDevilInfo db "Äîãîâîð ñ äüÿâîëîì: 50%, 1 çàðÿä.",13,10,"Ïëþñ: ñàìûé ìîùíûé øàíñ ñïàñòè ïðîèãðûø.",13,10,"Ìèíóñ: øòðàô 50% ñòàâêè è +45 ïîäîçðåíèÿ.",13,10,0 +charmPenaltyText db "Öåíà òàëèñìàíà: $",0 +shopCharmUsesText db ", çàðÿäîâ: ",0 +shopBoughtText db "Ïîêóïêà âûïîëíåíà.",13,10,0 +shopSelectedText db "Ðóáàøêà âûáðàíà.",13,10,0 +shopCharmBurnText db "Òàëèñìàí ñãîðåë.",13,10,0 +shopCharmSaveText db 13,10,"Òàëèñìàí âñïûõíóë è ñïàñ ñòàâêó!",13,10,0 +achMenuTitle db 13,10,"--- Äîñòèæåíèÿ ---",13,10,0 +achPopupTop db 13,10,"+--------------------------------------+",13,10,0 +achPopupTitle db "| ÄÎÑÒÈÆÅÍÈÅ ÎÒÊÐÛÒÎ |",13,10,0 +achPopupLeft db "| ",0 +achPopupBottom db "+--------------------------------------+",13,10,0 +achDoneText db "[x] ",0 +achTodoText db "[ ] ",0 +achFirstWinName db "Ïåðâûé âûèãðûø",13,10,0 +achFirstLossName db "Ïåðâûé ïðîèãðûø",13,10,0 +achJackpotName db "Äæåêïîò ïîéìàí",13,10,0 +achHighRollerName db "Áîëüøàÿ ñòàâêà",13,10,0 +achShopperName db "Ïîêóïàòåëü êàçèíî",13,10,0 +achCharmName db "Òàëèñìàí ñðàáîòàë",13,10,0 +achGoalName db "Öåëü äîñòèãíóòà",13,10,0 +achCloverPitName db "CloverPit ðàçîãðåëñÿ",13,10,0 +achClassicSlotName db "Ñòàðûé àâòîìàò ïëàòèò",13,10,0 +achPokerRaiseName db "Ñòàâêà ïîâûøåíà",13,10,0 +achPokerBluffName db "Áëåô ñðàáîòàë",13,10,0 +achRouletteWinName db "Êîëåñî ñóäüáû",13,10,0 +achRussianWinName db "Ñóõîé ùåë÷îê",13,10,0 +achDurakWinName db "Íå äóðàê",13,10,0 +achBackCollectorName db "Êîëëåêöèîíåð ðóáàøåê",13,10,0 +achCharmBuyerName db "Òàëèñìàí â êàðìàíå",13,10,0 +achObserverName db "Ëîæà íàáëþäàòåëÿ",13,10,0 +achSkillCheckName db "Ñ êðþêà ñîðâàëñÿ",13,10,0 +achievementFileName db "runtime\achievement.txt",0 +achievementCmd db "cmd /c start ""Achievement"" tools\achievement_popup.bat",0 +skillTitle db 13,10,"--- Êðþê: Skill Check ---",13,10,0 +skillIntro db "Ïîïàäàé ïî çåëåíîé çîíå. PERFECT äàåò äâîéíîé ïðîãðåññ.",13,10 + db "3 ïðîìàõà - òüìà çàáèðàåò ñòàâêó. 5 ïðîãðåññà - òû ñðûâàåøüñÿ ñ êðþêà.",13,10 + db "Íàæèìàé SPACE èëè ENTER.",13,10,0 +skillHookArt db 13,10 + db " || .:!!!!!!!!!!:.",13,10 + db " || .:!##############!:.",13,10 + db " _____||_____ !#### ENTITY #####!",13,10 + db " /____ ____/ ':!#############!:'",13,10 + db " | | ''!!####!!''",13,10 + db " | | _J",13,10 + db " | | __/ |",13,10 + db " _____| |_____ .-' .-^-. .---- RED LOCKER ----.",13,10 + db " | WOODEN WALL | / /.-.\\\\ | [] [] [] [] [] |",13,10 + db " | || || || || || | |( )| | | [] [] [] [] [] |",13,10 + db " | || || || || || | /|\\___/|\\| | [] [] [] [] [] |",13,10 + db " | || || || || || |__/ | / \\ | \\__ |__________________|",13,10 + db " | || || || || || /_/ \\_\\ J J J",13,10 + db " |________________| _/ \\_ chains and hooks",13,10 + db " >>> SPACE / ENTER - ëîâèòü skill check <<<",13,10,0 +skillStateText db "Ñîñòîÿíèå: ",0 +skillStateGood db "äåðæèøüñÿ",13,10,0 +skillStateWarn db "öåïü ñêðèïèò",13,10,0 +skillStateBad db "òüìà ðÿäîì",13,10,0 +skillProgressText db "Ïðîãðåññ ïîáåãà: ",0 +skillMissText db "Ïðîìàõè: ",0 +skillGaugeHint db 13,10,"Áîëüøîé skill check:",13,10,0 +skillGaugeLeft db "[",0 +skillGaugeRight db "]",13,10,0 +skillGaugeEmpty db "-",0 +skillGaugeSuccess db "#",0 +skillGaugePerfect db "@",0 +skillGaugeNeedle db "|",0 +skillSuccessText db 13,10,"Óñïåõ. Òû óäåðæàëñÿ íà êðþêå.",13,10,0 +skillPerfectText db 13,10,"PERFECT! Ðûâîê ïî÷òè ñîðâàë êðþê.",13,10,0 +skillFailText db 13,10,"Ïðîìàõ. Êðþê äåðíóë ñèëüíåå.",13,10,0 +skillEscapeText db 13,10,"Òû ñîðâàëñÿ ñ êðþêà è âûðâàëñÿ èç òóìàíà!",13,10,0 +skillDarkText db 13,10,"Òüìà çàáðàëà òåáÿ. Ñòàâêà ñãîðåëà.",13,10,0 +coinTitle db 13,10,"--- Îðåë è ðåøêà ---",13,10,0 +coinIntroText db "Óãàäàé ñòîðîíó ìîíåòû. Ïîáåäà äàåò âûèãðûø ðàçìåðîì ñî ñòàâêó.",13,10,0 +coinChoiceText db "1 - Îðåë, 2 - Ðåøêà: ",0 +coinSpinText db "Ìîíåòà ëåòèò...",13,10,0 +; === ASCII-êàäðû àíèìàöèè ìîíåòû === +coinFrame1 db 13,10 + db " ( O )",13,10 + db 13,10 + db " ___________________",13,10,0 +coinFrame2 db 13,10 + db " ( / )",13,10 + db 13,10 + db " ___________________",13,10,0 +coinFrame3 db 13,10 + db " ( | )",13,10 + db 13,10 + db " ___________________",13,10,0 +coinFrame4 db 13,10 + db " ( \ )",13,10 + db 13,10 + db " ___________________",13,10,0 +coinFrame5 db 13,10 + db " ( - )",13,10 + db 13,10 + db " ___________________",13,10,0 +coinFrame6 db 13,10 + db " ( / )",13,10 + db 13,10 + db " ___________________",13,10,0 +coinFrame7 db 13,10 + db " ( | )",13,10 + db 13,10 + db " ___________________",13,10,0 +coinFrame8 db 13,10 + db " ( \ )",13,10 + db 13,10 + db " ___________________",13,10,0 +coinFrame9 db 13,10 + db " ( O )",13,10 + db 13,10 + db " ___________________",13,10,0 +coinFrame10 db 13,10 + db " ( / )",13,10 + db " ",13,10 + db " ___________________",13,10,0 +coinFrame11 db 13,10 + db " ( | )",13,10 + db " ",13,10 + db " ___________________",13,10,0 +coinFrame12 db 13,10 + db " ( \ )",13,10 + db " ",13,10 + db " ___________________",13,10,0 +coinFrame13 db 13,10 + db " ( - )",13,10 + db " ",13,10 + db " ___________________",13,10,0 +coinFrame14 db 13,10 + db " ( O )",13,10 + db " ",13,10 + db " ___________________",13,10,0 +coinPickText db "Òû âûáðàë: ",0 +coinResultText db "Âûïàëî: ",0 +coinHeadsText db "Îðåë",13,10,0 +coinTailsText db "Ðåøêà",13,10,0 +diceTitle db 13,10,"--- Êîñòè ---",13,10,0 +diceIntroText db "Óãàäàé ÷åòíîñòü ñóììû äâóõ êîñòåé. Ïîáåäà äàåò âûèãðûø ðàçìåðîì ñî ñòàâêó.",13,10,0 +diceChoiceText db "1 - ÷åò, 2 - íå÷åò: ",0 +diceRollText db "Êîñòè ëåòÿò ïî ñòîëó...",13,10,0 +diceFirstText db "Ïåðâàÿ êîñòü: ",0 +diceSecondText db "Âòîðàÿ êîñòü: ",0 +diceSumText db "Ñóììà: ",0 +diceEvenText db "×åò",13,10,0 +diceOddText db "Íå÷åò",13,10,0 +; === Êàçèíî-ðóëåòêà: òåêñòû, êîëåñî, öâåòà è êàðìàíû === +casinoRouletteTitle db 13,10,"--- Êàçèíî-ðóëåòêà ---",13,10,0 +casinoRouletteIntro db "Åâðîïåéñêîå êîëåñî: 0 çåëåíûé, ïîëîâèíà ÷èñåë êðàñíûå, ïîëîâèíà ÷åðíûå.",13,10 + db "Ñòàâêà íà ÷èñëî ïëàòèò x35, îñòàëüíûå ñòàâêè ïëàòÿò x1.",13,10,0 +casinoRouletteBetMenu db "1 - ÷èñëî 0-36",13,10 + db "2 - êðàñíîå",13,10 + db "3 - ÷åðíîå",13,10 + db "4 - ÷åò",13,10 + db "5 - íå÷åò",13,10 + db "Âûáîð ñòàâêè: ",0 +casinoRouletteNumberAsk db "Ââåäèòå ÷èñëî 0-36: ",0 +casinoRouletteBadNumber db " ðóëåòêå åñòü òîëüêî ÷èñëà îò 0 äî 36.",13,10,0 +casinoRouletteSpinText db "Øàðèê ñêà÷åò ïî êàðìàíàì êîëåñà... Èòîãîâûé êàðìàí ïðÿìî ïîä ñòðåëêîé ñâåðõó.",13,10,0 +casinoRouletteResultText db 13,10,"Øàðèê îñòàíîâèëñÿ íà: ",0 +casinoRouletteWinText db "Ñòàâêà ñûãðàëà.",13,10,0 +casinoRouletteLoseText db "Ñòàâêà íå ñûãðàëà.",13,10,0 +casinoRouletteWheelTop db " =============================================================",13,10 + db " o",13,10 + db " v",13,10,0 +casinoRouletteWheelBottom db " =============================================================",13,10,0 +casinoRoulettePad db " ",0 +rouletteBigSidePad db " ",0 +rouletteBigSideGap1 db " .-------------------------------------------------. ",0 +rouletteBigSideGap2 db " / .-------------------------------------. \ ",0 +rouletteBigSideGap3 db " | / . . . . . . . . . . . . . . \ | ",0 +rouletteBigSideGap4 db " | | \\ | // ( O ) \\ | | ",0 +rouletteBigSideGap5 db " | | // | \\ --+-- // | | ",0 +rouletteBigSideGap6 db " | \ . . . . . . . . . . . . \ | | ",0 +roulettePocketLeft db "[",0 +roulettePocketRight db "] ",0 +rouletteNumSpace db " ",0 +rouletteRedName db "êðàñíîå",13,10,0 +rouletteBlackName db "÷åðíîå",13,10,0 +rouletteGreenName db "çåëåíûé íîëü",13,10,0 +rouletteWheel dd 0,32,15,19,4,21,2,25,17,34,6,27,13,36,11,30,8,23,10 + dd 5,24,16,33,1,20,14,31,9,22,18,29,7,28,12,35,3,26 +rouletteColors db 0,1,2,1,2,1,2,1,2,1,2,2,1,2,1,2,1,2,1 + db 1,2,1,2,1,2,1,2,1,2,2,1,2,1,2,1,2,1 +bankLevelText db "Óðîâåíü áàíêà: ",0 +bankLevelNewbie db "Íîâè÷îê",13,10,0 +bankLevelPlayer db "Èãðîê",13,10,0 +bankLevelHigh db "Õàéðîëëåð",13,10,0 +bankLevelLegend db "Ëåãåíäà êàçèíî",13,10,0 + + +; === Òåêñòû êàðòî÷íûõ èãð: 21, ïîêåð, äóðàê è ïîäñêàçêè === +hitText db "Âçÿòü êàðòó? (y/n): ",0 +againText db "Ñûãðàòü åùå? (y/n): ",0 +yourCardText db 13,10,"Òâîÿ êàðòà:",13,10,0 +dealerCardText db 13,10,"Êàðòà äèëåðà:",13,10,0 +aiThinkText db 13,10,"AI äóìàåò...",13,10,0 +aiMoveText db 13,10,"AI áåðåò êàðòó!",13,10,0 +aiCardsText db 13,10,"Êàðòû AI:",13,10,0 +playerCardsText db 13,10,"Òâîè êàðòû:",13,10,0 +yourScoreText db "Òâîè î÷êè: ",0 +dealerScoreText db "Î÷êè äèëåðà: ",0 +aiScoreText db "Î÷êè AI: ",0 +bustText db "Ïåðåáîð. Òû ïðîèãðàë.",13,10,0 +dealerBustText db "Ó äèëåðà ïåðåáîð. Òû âûèãðàë!",13,10,0 +winText db "Òû âûèãðàë!",13,10,0 +loseText db "Òû ïðîèãðàë.",13,10,0 +drawText db "Íè÷üÿ.",13,10,0 +blackjackText db "Blackjack!",13,10,0 + +twentyOneTitle db 13,10,"--- 21 / Î÷êî ---",13,10,0 +blackjackTitle db 13,10,"--- Blackjack ---",13,10,0 +pokerTitle db 13,10,"--- Poker ---",13,10,0 +slotTitle db 13,10,"--- CloverPit ---",13,10,0 +classicSlotTitle db 13,10,"--- Slot machine ---",13,10,0 +durakTitle db 13,10,"--- Äóðàê ---",13,10,0 +durakInfoText db "Êîçûðü: ",0 +durakDeckText db "Êàðò â êîëîäå: ",0 +durakAICardsText db "Êàðò ó AI: ",0 +durakYourHandText db 13,10,"Òâîè êàðòû:",13,10,0 +durakTableText db 13,10,"Íà ñòîëå: ",0 +durakAttackAsk db "Âûáåðè êàðòó äëÿ àòàêè: ",0 +durakDefendAsk db "×åì áèòü? 0 - âçÿòü: ",0 +durakBadMoveText db "Òàê íåëüçÿ. Âûáåðè äðóãóþ êàðòó.",13,10,0 +durakAITakeText db "AI íå ñìîã îòáèòüñÿ è âçÿë êàðòó.",13,10,0 +durakAIDefendText db "AI îòáèëñÿ êàðòîé: ",0 +durakAIAttackText db "AI àòàêóåò: ",0 +durakPlayerTakeText db "Òû âçÿë êàðòó.",13,10,0 +durakPlayerDefendText db "Òû îòáèëñÿ.",13,10,0 +durakWinText db "Òû âûøåë èç èãðû áåç êàðò. Ïîáåäà!",13,10,0 +durakLoseText db "AI èçáàâèëñÿ îò êàðò ðàíüøå òåáÿ. Òû ïðîèãðàë.",13,10,0 +trainingTitle db 13,10,"--- Îáó÷åíèå ---",13,10,0 +trainingText db "Ãëàâíîå: ñíà÷àëà âûáåðè ñòàâêó. Åñëè áàíê óïàäåò äî 0, êàçèíî âûâåäåò òåáÿ.",13,10 + db "Ìàãàçèí: ðóáàøêè ìåíÿþò âèä çàêðûòûõ êàðò, òàëèñìàíû ìîãóò ñïàñòè ïðîèãðàííóþ ñòàâêó.",13,10 + db "21 / Î÷êî: áåðè êàðòû äî 21. Ïåðåáîð - ïîðàæåíèå. AI äîáèðàåò ïîñëå âñêðûòèÿ.",13,10 + db "Poker: ó òåáÿ 2 êàðòû, íà ñòîëå 3+1+1. Ìîæíî èãðàòü, ôîëäèòü è ïîâûøàòü ñòàâêó.",13,10 + db "CloverPit: ïîëå 5x3. Ïëàòÿò ðàçíûå ëèíèè è ôèãóðû èç îäèíàêîâûõ ñèìâîëîâ.",13,10 + db "×åðåïà: çàïîìíè, ãäå øàðèê, ïîòîì ñëåäè çà ïåðåìåøèâàíèåì ÷åðåïîâ.",13,10 + db "Ðóññêàÿ ðóëåòêà: Easy/Normal/Hard çàäàþò 1/2/3 îïàñíûå êàìåðû áàðàáàíà.",13,10 + db "Îðåë è ðåøêà: âûáåðè ñòîðîíó ìîíåòû è äîæäèñü ïàäåíèÿ.",13,10 + db "Êîñòè: óãàäàé ÷åòíîñòü ñóììû äâóõ êóáèêîâ.",13,10 + db "Êàçèíî-ðóëåòêà: ìîæíî ñòàâèòü íà ÷èñëî, öâåò, ÷åò/íå÷åò, äþæèíû, ïîëîâèíû è êîëîíêè.",13,10 + db "Slot machine: ñòàðàÿ 3x3 ñëîò-ìàøèíà ñ âûïàäåíèåì áàðàáàíîâ è ñðåäíåé ëèíèåé.",13,10 + db "Äóðàê: àòàêóé, ïîäêèäûâàé ñîâïàäàþùèå ðàíãè, îòáèâàéñÿ èëè ïåðåâîäè õîä.",13,10 + db "Êðþê: Skill Check: SPACE/ENTER ïî çåëåíîé çîíå. PERFECT äàåò äâîéíîé ïðîãðåññ.",13,10 + db "Buckshot Roulette: ñ÷èòàé æèâûå/õîëîñòûå, èñïîëüçóé ïðåäìåòû è âûáèðàé öåëü âûñòðåëà.",13,10 + db "Íàáëþäàòåëü: AI vs AI èãðàåò áåç òâîèõ ñòàâîê, ïðîñòî äëÿ ïðîñìîòðà.",13,10 + db "Äîñòèæåíèÿ è ñòàòèñòèêà ñîõðàíÿþòñÿ â àêêàóíò.",13,10,0 +durakDeckVisualText db "Êîëîäà: [ðóáàøêà], èç-ïîä íåå òîð÷èò êîçûðü ",0 +durakAIFaceText db 13,10,"Êàðòû AI:",13,10,0 +durakThrowAsk db "Ïîäêèíóòü êàðòó? 0 - áèòî: ",0 +durakTransferText db "Ïåðåâîä! Õîä ïåðåõîäèò îáðàòíî.",13,10,0 +durakTablePairsText db 13,10,"Êàðòû íà ñòîëå:",13,10,0 +durakSlashText db " / ",0 +durakUnbeatenText db " _ ",0 +durakStuckText db "Ïàðòèÿ çàøëà â òóïèê. Ñ÷èòàåì íè÷üþ.",13,10,0 +skullsTitle db 13,10,"--- ×åðåïà è øàðèê ---",13,10,0 +skullsIntroText db "Ñëåäè çà øàðèêîì. Âûïëàòà çà ïîáåäó: x2.",13,10,0 +skullsShowText db "Ñìîòðè âíèìàòåëüíî: øàðèê ñåé÷àñ çäåñü.",13,10,0 +skullsHideText db "×åðåïà çàêðûâàþò øàðèê...",13,10,0 +skullsShuffleText db "×åðåïà ñêîëüçÿò ïî ñòîëó...",13,10,0 +skullsGuessText db "Ãäå øàðèê? 1 / 2 / 3: ",0 +skullsWinText db "Âåðíî! Øàðèê íàéäåí.",13,10,0 +skullsLoseText db "Ìèìî. Øàðèê áûë ïîä äðóãèì ÷åðåïîì.",13,10,0 +skullsBallText db "Øàðèê áûë ïîä ÷åðåïîì ",0 +skullsSwap12Text db " \\______/",13,10," / \",13,10,0 +skullsSwap23Text db " \\______/",13,10," / \",13,10,0 +skullsSwap13Text db " \\____________________/",13,10," / \",13,10,0 +rouletteTitle db 13,10,"--- Ðóññêàÿ ðóëåòêà ---",13,10,0 +rrIntroText db "Áàðàáàí íà 6 êàìåð. Easy: 1 îïàñíàÿ, Normal: 2, Hard: 3.",13,10,"AI èãðàåò ñ òîáîé ïî î÷åðåäè. Êòî ïîïàë íà îïàñíóþ êàìåðó - ïðîèãðàë.",13,10,0 +rrDangerText db "Îïàñíûõ êàìåð â áàðàáàíå: ",0 +rrSpinText db "Áàðàáàí âðàùàåòñÿ... ",0 +rrSpin1 db "|",13,10,0 +rrSpin2 db "/",13,10,0 +rrSpin3 db "-",13,10,0 +rrSpin4 db "\\",13,10,0 +rrStartsPlayerText db "Ðåâîëüâåð îñòàíîâèëñÿ íà òåáå. Òû ñòðåëÿåøü ïåðâûì.",13,10,0 +rrStartsAIText db "Ðåâîëüâåð îñòàíîâèëñÿ íà AI. Îí ñòðåëÿåò ïåðâûì.",13,10,0 +rrPlayerTurnText db "Òâîé õîä. Íàæìè ëþáóþ êëàâèøó, ÷òîáû íàæàòü íà ñïóñê...",0 +rrAITurnText db "Õîä AI. Îí ïîäíèìàåò ðåâîëüâåð...",13,10,0 +rrClickText db "Ùåë÷îê. Ïóñòî.",13,10,0 +rrBangText db "ÁÀÕ!",13,10,0 +rrPlayerLoseText db "Òåáå íå ïîâåçëî. Ñòàâêà óõîäèò êàçèíî.",13,10,0 +rrAIShotText db "AI âûáûë. Òû ïåðåæèë ýòó ïàðòèþ.",13,10,0 +rrPayoutText db "Âûïëàòà ðóëåòêè çàâèñèò îò ñëîæíîñòè.",13,10,0 +buckshotTitle db 13,10,"--- Buckshot Roulette ---",13,10,0 +buckshotIntro db "Äðîáîâèê çàðÿæåí æèâûìè è õîëîñòûìè ïàòðîíàìè â íåèçâåñòíîì ïîðÿäêå.",13,10 + db "Ñòðåëÿé â ñåáÿ èëè AI. Õîëîñòîé â ñåáÿ îñòàâëÿåò õîä òåáå.",13,10 + db "Ëóïà ðàñêðûâàåò òåêóùèé ïàòðîí, ïèëà äàåò 2 óðîíà, ïèâî âûáðàñûâàåò ïàòðîí, íàðó÷íèêè ïðîïóñêàþò õîä AI.",13,10,0 +bsShotgunArt db 13,10 + db " ,_______________________________________________",13,10 + db " |_________________,----------._ [____] ""-,__",13,10 + db " (_(||||||||||||)___________/ ""--.__",13,10 + db " `----------' [ ))""-, \",13,10 + db " "" `--.__ |",13,10 + db " `----'",13,10 + db " DOUBLE BARREL CASINO",13,10,0 +bsShotgunLoad1 db 13,10 + db " ,_______________________________________________",13,10 + db " |_________________,----------._ [____] ""-,__",13,10 + db " (_(||||||||||||)___________/ ""--.__",13,10 + db " `----------' [ ))""-, \",13,10 + db " "" `--.__ |",13,10 + db " `----'",13,10 + db " Êðóïüå áåðåò äðîáîâèê ñî ñòîëà...",13,10,0 +bsShotgunLoad2 db 13,10 + db " ,_______________________________________________",13,10 + db " |_________________,----------._ [____] ""-,__",13,10 + db " (_(||||||||||||)______/__/ ""--.__",13,10 + db " `----------' / LIVE] ",13,10 + db " __/ BLANK] .__ |",13,10 + db " `----'",13,10 + db " Ñòâîë ïðèîòêðûò. Ïàòðîíû ó êàçåííîé ÷àñòè.",13,10,0 +bsShotgunLoad3 db 13,10 + db " ,_______________________________________________",13,10 + db " |_________________,----------._ [____] ""-,__",13,10 + db " (_(||||||||||||)___________/ ""--.__",13,10 + db " `----------' [ ))""-, \",13,10 + db " "" `--.__ |",13,10 + db " `----'",13,10 + db " ÙÅËÊ. Äðîáîâèê çàêðûò.",13,10,0 +bsShotgunFire db 13,10 + db " *** BOOM ***",13,10 + db " ,_______________________________________________ ***",13,10 + db " |_________________,----------._ [____] ""-,__ *****",13,10 + db " (_(||||||||||||)___________/ ""--.__ ***",13,10 + db " `----------' [ ))""-, \ *",13,10 + db " "" `--.__ |",13,10 + db " `----'",13,10,0 +bsShotgunDry db 13,10 + db " ,_______________________________________________",13,10 + db " |_________________,----------._ [____] ""-,__ click",13,10 + db " (_(||||||||||||)___________/ ""--.__",13,10 + db " `----------' [ ))""-, \",13,10 + db " "" `--.__ |",13,10 + db " `----'",13,10,0 +bsHPText db "HP: òû ",0 +bsAIHPText db " / AI ",0 +bsShellInfoText db "Ïàòðîíû â ðàóíäå: ",0 +bsLiveText db " æèâûõ, ",0 +bsBlankText db " õîëîñòûõ",13,10,0 +bsLeftText db "Îñòàëîñü â äðîáîâèêå: ",0 +bsKnownUnknownText db "Òåêóùèé ïàòðîí: íåèçâåñòíî",13,10,0 +bsKnownLiveText db "Òåêóùèé ïàòðîí: ÆÈÂÎÉ",13,10,0 +bsKnownBlankText db "Òåêóùèé ïàòðîí: õîëîñòîé",13,10,0 +bsItemsText db "Ïðåäìåòû: ëóïà ",0 +bsSawText db ", ïèëà ",0 +bsBeerText db ", ïèâî ",0 +bsCuffsText db ", íàðó÷íèêè ",0 +bsMenuText db 13,10,"1. Ñòðåëÿòü â ñåáÿ",13,10 + db "2. Ñòðåëÿòü â AI",13,10 + db "3. Ëóïà",13,10 + db "4. Ïèëà",13,10 + db "5. Ïèâî",13,10 + db "6. Íàðó÷íèêè",13,10 + db "Âûáîð: ",0 +bsLoadText db 13,10,"Êðóïüå çàðÿæàåò äðîáîâèê...",13,10,0 +bsLiveLoadedText db "Æèâîé ïàòðîí",13,10,0 +bsBlankLoadedText db "Õîëîñòîé ïàòðîí",13,10,0 +bsPlayerTurnText db 13,10,"Òâîé õîä.",13,10,0 +bsAITurnText db 13,10,"Õîä AI...",13,10,0 +bsShootPlayerText db "Âûñòðåë â òåáÿ.",13,10,0 +bsShootAIText db "Âûñòðåë â AI.",13,10,0 +bsDryText db "Ùåë÷îê. Õîëîñòîé.",13,10,0 +bsHitText db "ÁÀÕ! Óðîí: ",0 +bsGlassUseText db "Ëóïà ïîêàçûâàåò ïàòðîí.",13,10,0 +bsSawUseText db "Ïèëà íàäðåçàåò ñòâîë. Ñëåäóþùèé æèâîé âûñòðåë ñèëüíåå.",13,10,0 +bsBeerUseText db "Ïèâî. Ïàòðîí âûëåòàåò èç äðîáîâèêà: ",0 +bsCuffsUseText db "Íàðó÷íèêè çàùåëêíóëèñü. AI ïðîïóñòèò õîä.",13,10,0 +bsNoItemText db "Ýòîãî ïðåäìåòà íåò.",13,10,0 +bsAISawText db "AI èñïîëüçóåò ïèëó.",13,10,0 +bsAIGlassText db "AI ñìîòðèò ïàòðîí ÷åðåç ëóïó.",13,10,0 +bsAIBeerText db "AI âûáðàñûâàåò ïàòðîí ïèâîì.",13,10,0 +bsAICuffsText db "AI íàäåâàåò íà òåáÿ íàðó÷íèêè.",13,10,0 +bsSkipPlayerText db "Òû â íàðó÷íèêàõ è ïðîïóñêàåøü õîä.",13,10,0 +bsSkipAIText db "AI â íàðó÷íèêàõ è ïðîïóñêàåò õîä.",13,10,0 +bsWinText db "AI ïàäàåò. Òû çàáèðàåøü áàíê ñòîëà.",13,10,0 +bsLoseText db "Òû ïàäàåøü. Êðóïüå çàáèðàåò ñòàâêó.",13,10,0 +rrGunUp db 117,117,36,96,36,36,36,117,117,36,36,36,13,10 + + db 80,42,36,96,36,36,36,36,36,36,36,36,13,10 + + db 63,42,36,32,36,36,36,36,36,36,36,36,13,10 + + db 36,58,36,32,36,36,36,36,36,36,36,36,13,10 + + db 34,58,36,32,36,36,36,36,36,36,36,36,13,10 + + db 32,78,36,32,36,36,36,36,36,36,36,36,13,10 + + db 32,32,36,32,36,36,36,36,36,36,36,36,13,10 + + db 32,32,36,32,36,36,36,36,36,36,36,36,13,10 + + db 32,32,36,32,36,36,36,36,36,36,36,36,13,10 + + db 32,32,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,36,36,82,82,36,36,36,36,36,36,13,10 + + db 32,32,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,36,32,36,36,36,36,36,64,36,36,13,10 + + db 32,32,36,32,36,36,36,36,36,36,36,36,13,10 + + db 32,32,36,32,36,36,36,36,36,36,36,36,36,117,117,76,13,10 + + db 32,32,36,32,36,36,36,36,36,36,36,36,36,117,117,42,42,42,117,46,46,13,10 + + db 32,32,36,32,36,36,36,36,36,36,36,36,36,32,96,42,42,42,117,36,42,116,13,10 + + db 32,32,36,120,120,117,117,36,117,36,36,36,36,117,117,117,107,46,36,36,36,63,13,10 + + db 32,32,36,120,36,117,117,56,117,96,96,96,36,117,117,117,54,46,34,36,63,63,13,10 + + db 32,32,36,36,36,63,36,36,36,96,96,96,36,36,36,36,36,96,34,34,63,63,13,10 + + db 32,32,36,36,36,63,36,36,36,32,32,32,36,36,36,36,75,32,32,32,36,36,32,46,46,13,10 + + db 32,32,36,36,36,72,36,36,36,32,32,32,36,36,36,36,75,46,32,32,36,36,36,36,36,78,115,46,13,10 + + db 32,32,36,36,36,36,36,36,36,32,32,32,36,36,36,36,88,46,32,32,82,34,36,36,36,37,37,46,78,13,10 + + db 32,32,36,36,36,37,117,117,36,32,32,32,117,117,117,36,58,58,32,32,82,117,117,117,32,32,34,63,63,58,13,10 + + db 32,32,36,36,36,37,117,117,33,32,32,32,36,117,36,36,36,58,32,32,124,124,117,117,117,117,42,63,36,36,13,10 + + db 32,32,36,63,63,78,32,32,32,32,32,32,36,39,36,36,36,32,32,32,36,36,42,117,117,117,33,39,58,36,13,10 + + db 32,32,36,63,63,46,46,46,46,46,46,46,46,36,36,36,36,32,32,32,36,42,42,96,32,32,100,100,34,34,13,10 + + db 36,46,36,82,100,46,46,46,46,36,46,46,34,63,55,36,117,111,32,32,53,117,117,46,46,43,42,42,42,13,10 + + db 39,42,64,82,46,96,96,34,34,42,42,64,34,34,96,117,117,111,117,120,120,117,96,96,85,43,33,96,13,10 + + db 42,42,64,42,42,120,117,117,42,42,42,34,32,32,32,42,82,82,117,120,36,34,96,96,37,37,13,10 + + db 32,32,32,42,42,120,78,42,42,37,37,32,32,32,32,46,46,117,46,100,36,46,46,117,37,36,36,111,46,13,10 + + db 32,32,32,32,32,34,78,78,96,37,46,46,32,32,36,46,46,34,46,100,117,36,36,36,36,36,36,36,36,36,117,117 + + db 46,46,13,10 + + db 32,32,32,32,32,56,56,64,46,109,34,58,58,58,82,42,34,34,120,36,36,36,36,36,36,36,36,36,36,36,36,36 + + db 36,36,36,36,36,36,36,36,36,36,36,36,99,13,10 + + db 32,32,32,32,32,36,36,101,34,34,34,58,78,64,32,32,32,32,36,36,78,96,34,36,36,36,36,36,36,36,36,36 + + db 36,36,36,36,36,36,36,36,36,36,36,36,62,13,10 + + db 32,32,32,32,32,36,64,32,32,32,34,78,37,117,117,46,32,32,63,63,117,117,117,36,36,36,36,36,36,36,36,36 + + db 36,36,36,36,36,36,36,36,36,36,36,36,62,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,96,96,96,34,42,117,36,36,36,36,36,36,36,36,36,36,36,36,36,36 + + db 36,36,36,36,36,36,36,36,36,36,36,36,62,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,36,36,36,36,36,36,36,36,36,36,36,36 + + db 36,36,36,36,36,36,36,36,36,36,36,36,62,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,34,34,36,36,36,36,36,36,36,36,36,36,36,36 + + db 36,36,36,36,36,36,36,36,36,36,36,36,62,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,94,94,36,36,36,36,36,36,36,36,36 + + db 36,36,36,36,36,36,36,36,36,36,36,36,62,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,34,42,36,36,36,36,36,36,36 + + db 36,36,36,36,36,36,36,36,36,36,36,36,62,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,96,42,42,36,36,36,36 + + db 36,36,36,36,36,36,36,36,36,36,36,36,62,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,96,96 + + db 34,43,36,36,36,42,36,36,36,36,36,36,62,13,10 + + db 0 + +rrGunUpLeft db 32,32,32,32,32,32,32,36,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,99,13,10 + + db 32,32,32,32,32,32,36,36,36,36,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,62,13,10 + + db 32,32,32,32,32,117,32,36,36,36,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,32,36,62,13,10 + + db 32,32,32,32,36,36,36,36,36,36,36,36,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,36,36,36,36,62,62,13,10 + + db 32,32,32,36,32,36,36,36,32,36,36,32,36,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,32,46,32,78,58,32,32,32,32,32,32,32,32,32,32,32,32,36,36,32,36,36,36,32,36,62,13,10 + + db 32,32,36,32,36,36,32,36,36,36,32,36,36,32,32,32,32,32,32,32,32,32,32,32,32,46,116,32,32,32,32,32 + + db 32,32,115,46,63,32,36,32,32,32,32,32,32,32,32,32,32,36,32,36,36,36,32,36,36,32,36,62,13,10 + + db 32,36,96,36,36,36,36,36,36,36,36,36,36,36,36,32,32,32,32,32,32,32,32,32,46,36,36,63,63,32,32,46 + + db 36,78,37,34,63,36,36,34,32,32,32,32,32,32,32,32,36,36,36,36,36,36,36,36,36,36,36,36,62,13,10 + + db 117,32,36,32,32,36,36,36,32,36,36,32,36,36,36,32,32,32,32,32,32,32,32,42,117,32,36,63,32,63,32,36 + + db 32,36,32,32,42,39,34,32,32,32,32,32,32,32,46,36,36,32,36,36,32,36,36,36,32,36,36,32,36,13,10 + + db 80,42,36,36,32,36,36,36,36,36,36,36,36,36,36,36,36,32,32,32,117,76,42,42,46,36,36,34,63,36,36,36 + + db 36,117,117,117,33,100,42,42,32,32,32,32,117,46,36,36,36,36,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,63,58,32,36,32,32,36,36,36,32,36,36,32,36,36,32,36,32,117,32,117,42,32,107,46,34,32,32,36,32,34 + + db 117,32,117,117,32,32,42,96,32,32,32,117,32,36,36,32,36,36,32,36,36,36,32,36,36,32,36,13,10 + + db 32,32,36,58,32,36,32,36,32,36,36,32,36,36,36,32,36,36,32,36,117,32,96,117,54,32,96,32,32,32,82,117 + + db 32,117,117,32,32,43,33,32,32,46,32,36,36,32,36,36,36,32,36,36,32,36,36,36,32,36,13,10 + + db 32,32,34,32,78,36,36,32,36,36,36,36,36,36,36,64,36,36,36,36,36,32,117,117,36,36,75,46,32,32,32,124 + + db 124,36,42,96,46,85,37,32,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,42,36,13,10 + + db 32,32,32,32,32,32,32,36,36,36,32,82,36,32,36,36,32,36,36,36,32,36,117,32,36,36,75,32,46,32,32,32 + + db 36,32,42,117,96,32,37,36,32,36,36,36,32,36,36,32,36,36,32,36,36,36,32,36,13,10 + + db 32,32,32,32,32,32,32,36,36,36,82,36,36,36,36,36,36,36,36,36,36,96,36,36,36,36,36,88,58,58,32,32 + + db 32,36,117,117,96,96,37,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,36,36,32,36,36,36,32,36,36,32,36,96,32,96,36,36,32,36,36,32,36,32,32 + + db 32,32,120,32,34,46,36,32,36,36,32,36,36,32,36,36,36,32,36,36,32,43,13,10 + + db 32,32,32,32,32,32,32,32,32,36,36,32,36,36,36,36,36,36,117,96,96,96,32,32,36,36,117,36,36,36,36,111 + + db 32,117,120,36,46,36,36,36,36,36,36,36,36,36,36,36,36,36,36,96,34,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,36,32,32,36,36,32,117,56,36,32,32,32,32,32,117,117,32,36,36,32,117 + + db 111,32,117,100,117,32,36,34,32,36,36,36,32,36,36,32,36,36,32,96,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,36,32,36,32,117,117,32,36,36,32,32,32,32,32,36,39,32,36,36,117 + + db 32,82,46,32,100,36,96,32,117,36,32,36,36,32,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,36,36,120,120,36,63,36,36,36,36,36,32,32,32,36,46,36,55,96,42 + + db 82,46,34,46,36,36,117,117,36,36,36,36,36,36,36,42,42,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,120,32,36,63,36,32,36,36,32,32,32,46,32,34,34,32,32 + + db 46,32,46,34,36,32,63,36,32,36,36,36,32,42,96,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,36,36,36,36,36,117,117,33,32,46,46,46,64,34,32,32 + + db 36,46,34,32,32,63,36,36,36,36,94,94,34,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,32,36,37,32,117,32,46,32,36,42,32,34,32,32 + + db 32,82,32,32,32,117,36,32,34,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,36,32,37,32,32,46,46,42,32,42,32,32,32 + + db 58,32,32,46,42,32,32,34,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,36,36,63,46,46,46,34,42,42,37,46,46,58 + + db 78,64,117,96,34,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,63,32,63,46,96,32,117,42,32,37,34,58 + + db 32,37,96,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,63,100,46,120,117,42,78,96,109,34,34 + + db 78,32,96,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,82,32,42,120,78,32,64,34,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,46,32,64,42,42,32,34,56,32,101,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,39,42,64,32,42,32,56,36,36,64,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,42,32,32,32,32,32,32,36,13,10 + + db 0 + +rrGunLeft db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,99,62,62,62,62,62,62,62,62,62,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,36,42,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 46,36,36,36,36,36,36,36,36,36,43,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 46,36,36,36,36,36,36,36,36,36,34,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 117,36,36,36,36,36,36,36,36,36,96,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 117,36,36,36,36,36,36,36,36,36,96,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,58,36,36,34,32,32,32,32 + + db 36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,78,63,36,58,34,42,32,32,46 + + db 36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,46,46,63,63,39,100,42,96,32,111 + + db 36,36,36,36,36,36,36,36,36,42,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,115,37,34,42,33,100,42,33,32,36 + + db 36,36,36,36,36,36,36,36,36,42,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,78,37,32,117,117,32,43,43,37,36 + + db 36,36,36,36,36,36,36,36,36,96,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,46,36,36,32,117,117,32,46,85,37,37 + + db 36,36,36,36,36,36,36,36,42,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,46,36,36,117,117,117,96,46,96,96,117 + + db 36,36,36,36,36,36,36,36,34,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,117,117,42,42,117,96,96,46 + + db 36,36,34,117,36,36,36,94,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,63,63,63,36,36,34,117,124,36,42,117,117,34,46 + + db 36,36,96,117,36,36,36,94,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,46,42,36,63,63,36,36,82,82,124,36,36,53,120,36,36 + + db 117,36,78,117,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,46,36,36,36,34,32,32,32,32,32,32,32,32,120,120,100 + + db 100,36,36,63,36,36,34,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,117,117,36,34,34,32,32,32,32,32,32,32,32,117,117,46 + + db 46,120,36,63,36,36,34,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,42,42,46,46,96,32,46,46,58,58,32,32,111,111,82,117 + + db 34,34,32,32,117,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,42,42,107,54,36,75,75,88,58,36,36,36,117,117,82,46 + + db 46,34,32,32,42,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,76,42,42,117,117,36,36,36,36,36,36,36,36,36,117,42,46 + + db 46,42,32,46,34,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,117,117,96,117,117,36,36,36,36,117,36,36,36,55,96,32,32 + + db 36,82,32,117,96,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,117,117,32,117,117,36,36,36,36,117,117,39,36,63,34,32,32 + + db 32,58,64,117,96,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,36,36,36,36,36,36,36,117,36,36,46,34,34,32,32 + + db 32,58,78,37,96,13,10 + + db 36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,96,96,32,32,32,32,32,32,46,46,64,34,32 + + db 46,58,58,78,13,10 + + db 36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,96,96,32,32,32,32,32,32,46,46,42,42,37 + + db 46,34,34,34,13,10 + + db 36,36,36,36,36,36,36,36,36,36,36,36,36,64,36,36,36,36,36,96,96,32,32,32,32,32,32,46,36,42,42,37 + + db 37,109,34,13,10 + + db 117,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,117,117,36,36,36,36,36,33,32,46,46,34,42,42 + + db 96,46,34,13,10 + + db 117,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,56,36,36,36,36,117,117,32,46,46,34,117,42 + + db 78,64,101,13,10 + + db 36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,117,117,36,36,36,36,117,117,32,46,46,96,117,78 + + db 78,56,36,64,13,10 + + db 36,36,36,36,36,36,36,36,36,36,36,82,36,36,36,36,36,36,117,117,63,63,72,36,37,37,78,46,46,96,120,120 + + db 34,56,36,36,13,10 + + db 36,36,36,36,36,36,36,36,36,36,36,82,36,36,36,36,36,36,120,36,36,36,36,36,36,36,63,63,100,46,42,42 + + db 13,10 + + db 96,96,32,32,32,32,32,32,32,36,36,36,36,32,32,32,32,32,120,120,36,36,36,36,36,36,63,63,82,82,42,42 + + db 13,10 + + db 36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,64,64,13 + + db 10 + + db 117,42,42,58,58,78,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,46,42,42,13 + + db 10 + + db 117,80,63,36,34,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,39,42,13 + + db 10 + + db 0 + +rrGunDownLeft db 32,32,32,32,32,32,62,36,13,10 + + db 32,32,32,32,32,62,36,32,36,13,10 + + db 32,32,32,62,62,36,36,36,36,36,13,10 + + db 32,32,32,62,36,32,36,36,36,32,36,13,10 + + db 32,32,62,36,32,36,36,32,36,36,32,36,13,10 + + db 32,62,36,36,36,36,36,36,36,36,36,42,36,13,10 + + db 99,36,32,36,36,32,36,36,36,32,36,36,32,36,13,10 + + db 32,36,36,36,36,36,36,36,36,36,36,36,36,36,43,13,10 + + db 32,32,36,36,32,36,36,32,36,36,32,36,36,36,32,34,13,10 + + db 32,32,32,36,36,36,36,36,36,36,36,36,36,36,36,96,96,13,10 + + db 32,32,32,32,36,32,36,36,36,32,36,36,32,36,36,36,13,10 + + db 32,32,32,32,32,36,36,32,36,36,32,36,36,36,32,36,36,13,10 + + db 32,32,32,32,32,32,36,36,36,36,36,36,36,36,36,36,36,36,42,13,10 + + db 32,32,32,32,32,32,32,36,36,32,36,36,32,36,36,36,32,36,42,13,10 + + db 32,32,32,32,32,32,32,46,36,36,36,36,36,36,36,36,36,36,36,96,13,10 + + db 32,32,32,32,32,32,32,32,46,36,32,36,36,36,32,36,36,32,36,42,13,10 + + db 32,32,32,32,32,32,32,32,117,32,36,36,32,36,36,36,32,36,36,32,34,13,10 + + db 32,32,32,32,32,32,32,32,32,117,36,36,36,36,36,36,36,36,36,36,94,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,36,36,36,32,36,36,32,36,36,94,13,10 + + db 32,32,32,32,32,32,32,32,32,32,46,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,36,32,36,36,36,32,117,36,32,36,34,13,10 + + db 32,32,32,32,32,32,34,32,42,96,32,32,36,36,32,36,34,32,117,36,36,32,34,13,10 + + db 32,32,32,32,32,36,36,34,42,42,33,37,37,37,36,36,36,96,117,63,36,36,13,10 + + db 32,32,32,32,58,32,36,39,100,32,43,85,32,96,46,36,32,36,36,32,63,117,13,10 + + db 32,32,32,32,78,63,63,42,33,32,32,46,96,96,34,46,117,100,36,36,32,32,42,34,13,10 + + db 32,32,32,32,32,46,34,32,117,117,32,96,117,117,32,36,100,32,46,34,32,32,46,96,13,10 + + db 32,32,32,32,46,115,37,32,117,117,117,42,42,117,120,120,117,46,34,46,34,32,32,117,96,96,13,10 + + db 32,32,32,32,32,32,78,36,117,32,117,36,32,36,32,117,32,82,46,32,46,82,32,64,37,13,10 + + db 32,32,32,32,32,32,36,32,36,117,32,124,36,32,32,32,111,32,82,46,36,32,58,78,32,78,13,10 + + db 32,32,32,32,32,32,46,36,36,34,117,124,32,32,32,111,117,117,42,32,32,32,32,58,58,34,13,10 + + db 32,32,32,32,32,32,32,32,36,32,82,32,32,32,32,36,32,36,96,32,32,32,32,46,34,34,13,10 + + db 32,32,32,32,32,32,32,63,36,36,32,32,32,58,36,36,36,36,55,34,34,34,32,46,37,109,34,101,64,13,10 + + db 32,32,32,32,32,32,63,32,63,32,32,32,46,58,32,36,36,32,36,34,64,32,42,37,32,96,64,32,36,36,13,10 + + db 32,32,32,32,32,32,63,63,34,32,32,46,32,88,36,36,32,39,46,32,46,42,32,42,42,78,32,56,36,13,10 + + db 32,32,32,32,32,116,36,36,36,34,96,75,75,36,36,117,117,36,36,46,46,36,42,42,117,42,78,34,56,13,10 + + db 32,32,32,32,32,46,36,32,36,46,32,36,36,36,32,36,117,32,32,32,46,32,46,34,32,117,120,13,10 + + db 32,32,32,32,32,32,46,117,46,107,54,36,36,36,36,36,32,32,32,32,32,46,46,46,96,120,42,42,42,13,10 + + db 32,32,32,32,32,32,32,42,42,32,117,117,32,36,36,32,32,32,32,32,33,32,32,46,46,46,32,42,13,10 + + db 32,32,32,32,32,32,32,32,42,42,96,117,117,36,96,32,32,32,36,36,117,117,32,46,63,100,82,64,64,13,10 + + db 32,32,32,32,32,32,32,32,76,117,32,32,36,96,32,96,32,32,36,36,117,32,37,63,32,63,36,32,42,42,13,10 + + db 32,32,32,32,32,32,32,32,117,32,117,36,32,36,96,96,32,36,36,32,36,37,32,36,63,36,32,46,39,13,10 + + db 32,32,32,32,32,32,32,32,32,117,36,36,36,36,36,96,36,36,36,36,36,36,36,36,36,36,32,32,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,36,36,36,32,117,56,32,36,63,36,32,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,36,36,36,36,36,36,36,117,117,63,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,36,32,36,36,32,36,36,36,32,117,36,32,36,36,13,10 + + db 32,32,32,32,32,32,32,32,36,36,32,64,36,36,32,36,36,32,120,120,36,13,10 + + db 32,32,32,32,32,32,36,36,36,36,36,36,36,36,36,36,36,36,120,36,36,13,10 + + db 32,32,32,32,32,32,36,36,36,32,36,36,32,36,36,36,32,32,36,13,10 + + db 32,32,32,32,36,36,36,36,36,36,36,36,36,36,36,36,32,36,36,13,10 + + db 32,32,32,36,32,36,36,32,36,36,32,36,82,36,32,32,36,13,10 + + db 32,32,32,36,36,32,36,36,36,32,36,36,32,82,36,36,13,10 + + db 32,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,36,36,36,32,36,36,32,36,36,32,36,36,36,13,10 + + db 36,36,36,36,36,36,36,36,36,36,36,32,36,36,13,10 + + db 32,36,32,36,36,32,36,36,36,32,32,36,13,10 + + db 32,32,117,36,36,36,36,36,36,32,36,36,13,10 + + db 32,32,32,36,32,36,36,32,32,36,32,78,13,10 + + db 32,32,32,32,36,32,36,32,36,32,58,13,10 + + db 32,32,32,32,32,36,96,36,36,58,36,34,13,10 + + db 32,32,32,32,32,32,36,32,42,63,13,10 + + db 32,32,32,32,32,32,32,117,80,13,10 + + db 0 + +rrGunDown db 62,36,36,36,36,36,36,42,36,36,36,43,34,96,96,13,10 + + db 62,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,42,42,96,13,10 + + db 62,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,42,34,13,10 + + db 62,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,94,94,13,10 + + db 62,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,34,34,13,10 + + db 62,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,13,10 + + db 62,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,117,42,34,96,96 + + db 96,13,10 + + db 62,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,117,117,117,63,63,32,32,46,117,117 + + db 37,78,34,32,32,32,64,36,13,10 + + db 62,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,34,96,78,36,36,32,32,32,32,64 + + db 78,58,34,34,34,101,36,36,13,10 + + db 99,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,120,34,34,42,82,58 + + db 58,58,34,109,46,64,56,56,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,46,46,117,117,36,36,36,36,36,36,36,36,36,117,100,46,34,46,46,36,32 + + db 32,46,46,37,96,78,78,34,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,46,111,36,36,37,117,46,46,36,100,46,117,46,46,32,32 + + db 32,32,37,37,42,42,78,120,42,42,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,37,37,96,96,34,36,120,117,82,82,42,32,32 + + db 32,34,42,42,42,117,117,120,42,42,64,42,42,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,96,33,43,85,96,96,117,120,120,117,111,117,117,96,34 + + db 34,64,42,42,34,34,96,96,46,82,64,42,39,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,42,42,42,43,46,46,117,117,53,32,32,111,117,36,55,63 + + db 34,46,46,36,46,46,46,46,100,82,36,46,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,34,34,100,100,32,32,96,42,42,36,32,32,32,36,36,36,36 + + db 46,46,46,46,46,46,46,46,63,63,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,58,39,33,117,117,117,42,36,36,32,32,32,36,36,36,39 + + db 36,32,32,32,32,32,32,78,63,63,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,63,42,117,117,117,117,124,124,32,32,58,36,36,36,117 + + db 36,32,32,32,33,117,117,37,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,58,63,63,34,32,32,117,117,117,82,32,32,58,58,36,117,117 + + db 117,32,32,32,36,117,117,37,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,78,46,37,37,36,36,36,34,82,32,32,46,88,36,36,36 + + db 36,32,32,32,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,46,115,78,36,36,36,36,36,32,32,46,75,36,36,36 + + db 36,32,32,32,36,36,36,72,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,46,46,32,36,36,32,32,32,75,36,36,36 + + db 36,32,32,32,36,36,36,63,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,63,63,34,34,96,36,36,36,36 + + db 36,96,96,96,36,36,36,63,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,63,63,36,34,46,54,117,117,117 + + db 36,96,96,96,117,56,117,117,36,120,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,63,36,36,36,46,107,117,117,117 + + db 36,36,36,36,117,36,117,117,120,120,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,42,36,117,42,42,42,96,32 + + db 36,36,36,36,36,36,36,36,36,32,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,46,46,117,42,42,42,117,117 + + db 36,36,36,36,36,36,36,36,36,32,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,76,117,117 + + db 36,36,36,36,36,36,36,36,36,32,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,32,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,64,36,36,36,36,36,32,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,82,82,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,32,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,32,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,32,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,32,36,78,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,32,36,58,34,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,32,36,58,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,32,36,42,63,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,36,36,36,36,36,96,36,42,80,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,36,36,36,117,117,36,36,36,96,36,117,117,13,10 + + db 0 + +rrGunDownRight db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 36,32,32,32,32,32,32,42,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,64 + + db 36,36,56,32,42,32,64,42,39,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,101 + + db 32,56,34,32,42,42,64,32,46,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,34 + + db 64,32,78,120,42,32,82,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,96,32,78,34,34,109 + + db 96,78,42,117,120,46,100,63,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,96,37,32,58,34,37 + + db 32,42,117,32,96,46,63,32,63,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,34,96,117,64,78,58,46,46 + + db 37,42,42,34,46,46,46,63,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,34,32,32,42,46,32,32,58,32,32,32 + + db 42,32,42,46,46,32,32,37,32,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,34,32,36,117,32,32,32,82,32,32,32,34 + + db 32,42,36,32,46,32,117,32,37,36,32,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,34,94,94,36,36,36,36,63,32,32,34,46,36,32,32,34 + + db 64,46,46,46,32,33,117,117,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,96,42,32,36,36,36,32,36,63,32,36,34,46,32,46,32,32,34 + + db 34,32,46,32,32,32,36,36,32,36,63,36,32,120,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,42,42,36,36,36,36,36,36,36,117,117,36,36,46,34,46,82,42,96,55 + + db 36,46,36,32,32,32,36,36,36,36,36,63,36,120,120,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,36,36,36,32,36,36,32,36,117,32,96,36,100,32,46,82,32,117,36,36 + + db 32,39,36,32,32,32,32,32,36,36,32,117,117,32,36,32,36,13,10 + + db 32,32,32,32,32,32,32,32,32,96,32,36,36,32,36,36,32,36,36,36,32,34,36,32,117,100,117,32,111,117,32,36 + + db 36,32,117,117,32,32,32,32,32,36,56,117,32,36,36,32,32,36,13,10 + + db 32,32,32,32,32,32,32,32,34,96,36,36,36,36,36,36,36,36,36,36,36,36,36,36,46,36,120,117,32,111,36,36 + + db 36,36,117,36,36,32,32,96,96,96,117,36,36,36,36,36,36,32,36,36,13,10 + + db 32,32,32,32,32,32,32,43,32,36,36,32,36,36,36,32,36,36,32,36,36,32,36,46,34,32,120,32,32,32,32,36 + + db 32,36,36,32,36,36,96,32,96,36,32,36,36,32,36,36,36,32,36,36,13,10 + + db 32,32,32,32,32,32,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,37,96,96,117,117,36,32,32,32,58 + + db 58,88,36,36,36,36,36,96,36,36,36,36,36,36,36,36,36,36,82,36,36,36,13,10 + + db 32,32,32,32,32,36,32,36,36,36,32,36,36,32,36,36,32,36,36,36,32,36,37,32,96,117,42,32,36,32,32,32 + + db 46,32,75,36,36,32,117,36,32,36,36,36,32,36,36,32,36,82,32,36,36,36,13,10 + + db 32,32,32,32,36,42,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,32,37,85,46,96,42,36,124,124,32,32 + + db 32,46,75,36,36,117,117,32,36,36,36,36,36,64,36,36,36,36,36,36,36,32,36,36,78,32,34,13,10 + + db 32,32,32,36,32,36,36,36,32,36,36,32,36,36,36,32,36,36,32,46,32,32,33,43,32,32,117,117,32,117,82,32 + + db 32,32,96,32,54,117,96,32,117,36,32,36,36,32,36,36,36,32,36,36,32,36,32,36,32,58,36,13,10 + + db 32,32,36,32,36,36,32,36,36,36,32,36,36,32,36,36,32,117,32,32,32,96,42,32,32,117,117,32,117,34,32,36 + + db 32,32,34,46,107,32,42,117,32,117,32,36,32,36,36,32,36,36,32,36,36,36,32,32,36,32,58,63,13,10 + + db 32,36,36,36,36,36,36,36,36,36,36,36,36,36,36,46,117,32,32,32,32,42,42,100,33,117,117,117,36,36,36,36 + + db 63,34,36,36,46,42,42,76,117,32,32,32,36,36,36,36,36,36,36,36,36,36,36,36,32,36,36,42,80,13,10 + + db 36,32,36,36,32,36,36,36,32,36,36,32,36,36,46,32,32,32,32,32,32,32,34,39,42,32,32,36,32,36,32,63 + + db 32,63,36,32,117,42,32,32,32,32,32,32,32,32,36,36,36,32,36,36,32,36,36,36,32,32,36,32,117,13,10 + + db 62,36,36,36,36,36,36,36,36,36,36,36,36,32,32,32,32,32,32,32,32,34,36,36,63,34,37,78,36,46,32,32 + + db 63,63,36,36,46,32,32,32,32,32,32,32,32,32,36,36,36,36,36,36,36,36,36,36,36,36,96,36,13,10 + + db 32,62,36,32,36,36,32,36,36,36,32,36,32,32,32,32,32,32,32,32,32,32,36,32,63,46,115,32,32,32,32,32 + + db 32,32,116,46,32,32,32,32,32,32,32,32,32,32,32,32,36,36,32,36,36,36,32,36,36,32,36,13,10 + + db 32,32,62,36,32,36,36,36,32,36,36,32,32,32,32,32,32,32,32,32,32,32,32,58,78,32,46,32,32,32,32,32 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,32,36,36,32,36,36,36,32,36,13,10 + + db 32,32,62,62,36,36,36,36,36,36,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,62,36,32,36,36,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,36,32,117,13,10 + + db 32,32,32,32,32,62,36,36,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,36,36,13,10 + + db 32,32,32,32,32,32,99,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,13,10 + + db 0 + +rrGunRight db 32,32,32,32,32,32,32,32,32,32,32,32,42,39,36,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,32,32,32,32,32,34,36,63,80,117,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,42,42,46,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 + + db 32,32,32,32,32,78,58,58,42,42,117,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,64,64,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36 + + db 36,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,42,42,82,82,63,63,36,36,36,36,36,36,120,120,32,32,32,32,32,36,36 + + db 36,36,32,32,32,32,32,32,32,96,96,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,42,42,46,100,63,63,36,36,36,36,36,36,36,120,36,36,36,36,36,36,82 + + db 36,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,36,36,56,34,120,120,96,46,46,78,37,37,36,72,63,63,117,117,36,36,36,36,36,36,82 + + db 36,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,64,36,56,78,78,117,96,46,46,32,117,117,36,36,36,36,117,117,36,36,36,36,36,36,36 + + db 36,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,101,64,78,42,117,34,46,46,32,117,117,36,36,36,36,56,36,36,36,36,36,36,36,36 + + db 36,36,36,36,36,36,36,36,36,36,117,13,10 + + db 32,32,32,32,32,32,32,32,34,46,96,42,42,34,46,46,32,33,36,36,36,36,36,117,117,36,36,36,36,36,36,36 + + db 36,36,36,36,36,36,36,36,36,36,117,13,10 + + db 32,32,32,32,32,32,32,32,34,109,37,37,42,42,36,46,32,32,32,32,32,32,96,96,36,36,36,36,36,64,36,36 + + db 36,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,34,34,34,46,37,42,42,46,46,32,32,32,32,32,32,96,96,36,36,36,36,36,36,36,36 + + db 36,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,78,58,58,46,32,34,64,46,46,32,32,32,32,32,32,96,96,36,36,36,36,36,36,36,36 + + db 36,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,96,37,78,58,32,32,32,34,34,46,36,36,117,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,96,117,64,58,32,32,32,34,63,36,39,117,117,36,36,36,36,117,117,32,117,117,13,10 + + db 32,32,32,32,32,32,96,117,32,82,36,32,32,96,55,36,36,36,117,36,36,36,36,117,117,96,117,117,13,10 + + db 32,32,32,32,32,32,34,46,32,42,46,46,42,117,36,36,36,36,36,36,36,36,36,117,117,42,42,76,13,10 + + db 32,32,32,32,32,32,42,32,32,34,46,46,82,117,117,36,36,36,58,88,75,75,36,54,107,42,42,13,10 + + db 32,32,32,32,32,32,117,32,32,34,34,117,82,111,111,32,32,58,58,46,46,32,96,46,46,42,42,13,10 + + db 32,32,32,32,34,36,36,63,36,120,46,46,117,117,32,32,32,32,32,32,32,32,34,34,36,117,117,13,10 + + db 32,32,32,32,34,36,36,63,36,36,100,100,120,120,32,32,32,32,32,32,32,32,34,36,36,36,46,13,10 + + db 32,32,32,32,36,36,36,117,78,36,117,36,36,120,53,36,36,124,82,82,36,36,63,63,36,42,46,13,10 + + db 32,32,32,94,36,36,36,117,96,36,36,46,34,117,117,42,36,124,117,34,36,36,63,63,63,116,13,10 + + db 32,32,32,94,36,36,36,117,34,36,36,46,96,96,117,42,42,117,117,36,36,13,10 + + db 32,32,34,36,36,36,36,36,36,36,36,117,96,96,46,96,117,117,117,36,36,46,13,10 + + db 32,32,42,36,36,36,36,36,36,36,36,37,37,85,46,32,117,117,32,36,36,46,13,10 + + db 32,96,36,36,36,36,36,36,36,36,36,36,37,43,43,32,117,117,32,37,78,13,10 + + db 32,42,36,36,36,36,36,36,36,36,36,36,32,33,42,100,33,42,34,37,115,13,10 + + db 32,42,36,36,36,36,36,36,36,36,36,111,32,96,42,100,39,63,63,46,46,13,10 + + db 32,36,36,36,36,36,36,36,36,36,36,46,32,32,42,34,58,36,63,78,13,10 + + db 32,36,36,36,36,36,36,36,36,36,36,32,32,32,32,34,36,36,58,13,10 + + db 96,36,36,36,36,36,36,36,36,36,117,13,10 + + db 96,36,36,36,36,36,36,36,36,36,117,13,10 + + db 34,36,36,36,36,36,36,36,36,36,46,13,10 + + db 43,36,36,36,36,36,36,36,36,36,46,13,10 + + db 36,36,36,36,36,36,36,36,36,36,13,10 + + db 36,36,36,36,36,36,36,36,36,36,13,10 + + db 36,36,36,36,36,36,36,36,36,36,13,10 + + db 42,36,36,36,36,36,36,36,36,36,13,10 + + db 36,36,36,36,36,36,36,36,36,36,13,10 + + db 36,36,36,36,36,36,36,36,36,36,13,10 + + db 36,36,36,36,36,36,36,36,36,36,13,10 + + db 36,36,36,36,36,36,36,36,36,36,13,10 + + db 36,36,36,36,36,36,36,36,36,36,13,10 + + db 36,36,36,36,36,36,36,36,36,36,13,10 + + db 62,62,62,62,62,62,62,62,62,99,13,10 + + db 0 + +rrGunUpRight db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,80,117,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,63,42,32,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,34,36,58,36,36,96,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,58,32,36,32,36,32,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,78,32,36,32,32,36,36,32,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,32,36,36,36,36,36,36,117,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,32,32,36,36,36,32,36,36,32,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,32,36,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,36,32,36,36,32,36,36,32,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,82,32,36,36,32,36,36,36,32,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,36,32,32,36,82,36,32,36,36,32,36,36,32,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,36,36,32,36,36,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,36,32,32,36,36,36,32,36,36,32,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,36,36,120,36,36,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,36,120,120,32,36,36,32,36,36,64,32,36,36,13,10 + + db 32,32,32,32,32,32,32,32,36,36,32,36,117,32,36,36,36,32,36,36,32,36,13,10 + + db 32,32,32,32,32,32,36,36,36,36,36,63,117,117,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,36,36,32,36,63,36,32,56,117,32,36,36,36,13,10 + + db 32,36,32,32,36,36,36,36,36,36,36,36,36,36,96,36,36,36,36,36,117,13,10 + + db 32,39,46,32,36,63,36,32,37,36,32,36,36,32,96,96,36,32,36,117,32,117,13,10 + + db 42,42,32,36,63,32,63,37,32,117,36,36,32,32,96,32,96,36,32,32,117,76,13,10 + + db 32,64,64,82,100,63,46,32,117,117,36,36,32,32,32,96,36,117,117,96,42,42,13,10 + + db 32,32,42,32,46,46,46,32,32,33,32,32,32,32,32,36,36,32,117,117,32,42,42,13,10 + + db 32,42,42,42,120,96,46,46,46,32,32,32,32,32,36,36,36,36,36,54,107,46,117,46,13,10 + + db 32,32,32,120,117,32,34,46,32,46,32,32,32,117,36,32,36,36,36,32,46,36,32,36,46,13,10 + + db 32,56,34,78,42,117,42,42,36,46,46,36,36,117,117,36,36,75,75,96,34,36,36,36,116,13,10 + + db 32,36,56,32,78,42,42,32,42,46,32,46,39,32,36,36,88,32,46,32,32,34,63,63,13,10 + + db 36,36,32,64,96,32,37,42,32,64,34,36,32,36,36,32,58,46,32,32,32,63,32,63,13,10 + + db 32,64,101,34,109,37,46,32,34,34,34,55,36,36,36,36,58,32,32,32,36,36,63,13,10 + + db 32,32,32,32,34,34,46,32,32,32,32,96,36,32,36,32,32,32,32,82,32,36,13,10 + + db 32,32,32,32,34,58,58,32,32,32,32,42,117,117,111,32,32,32,124,117,34,36,36,46,13,10 + + db 32,32,32,32,78,32,78,58,32,36,46,82,32,111,32,32,32,36,124,32,117,36,32,36,13,10 + + db 32,32,32,32,32,37,64,32,82,46,32,46,82,32,117,32,36,32,36,117,32,117,36,78,13,10 + + db 32,32,32,32,96,96,117,32,32,34,46,34,46,117,120,120,117,42,42,117,117,117,32,37,115,46,13,10 + + db 32,32,32,32,32,32,96,46,32,32,34,46,32,100,36,32,117,117,96,32,117,117,32,34,46,13,10 + + db 32,32,32,32,32,32,34,42,32,32,36,36,100,117,46,34,96,96,46,32,32,33,42,63,63,78,13,10 + + db 32,32,32,32,32,32,32,32,117,63,32,36,36,32,36,46,96,32,85,43,32,100,39,36,32,58,13,10 + + db 32,32,32,32,32,32,32,32,36,36,63,117,96,36,36,36,37,37,37,33,42,42,34,36,36,13,10 + + db 32,32,32,32,32,32,32,34,32,36,36,117,32,34,36,32,36,36,32,32,96,42,32,34,13,10 + + db 32,32,32,32,32,32,32,32,34,36,32,36,117,32,36,36,36,32,36,13,10 + + db 32,32,32,32,32,32,32,32,32,36,36,36,36,36,36,36,36,36,36,46,13,10 + + db 32,32,32,32,32,32,32,32,32,94,36,36,32,36,36,32,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,94,36,36,36,36,36,36,36,36,36,36,117,13,10 + + db 32,32,32,32,32,32,32,32,32,34,32,36,36,32,36,36,36,32,36,36,32,117,13,10 + + db 32,32,32,32,32,32,32,32,32,32,42,36,32,36,36,32,36,36,36,32,36,46,13,10 + + db 32,32,32,32,32,32,32,32,32,32,96,36,36,36,36,36,36,36,36,36,36,36,46,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,42,36,32,36,36,36,32,36,36,32,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,42,36,36,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,32,36,36,36,32,36,36,32,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,36,32,36,36,32,36,36,36,32,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,96,96,36,36,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,34,32,36,36,36,32,36,36,32,36,36,32,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,43,36,36,36,36,36,36,36,36,36,36,36,36,36,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,32,36,36,32,36,36,36,32,36,36,32,36,99,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,42,36,36,36,36,36,36,36,36,36,62,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,32,36,36,32,36,36,32,36,62,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,32,36,36,36,32,36,62,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,36,36,36,36,62,62,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,32,36,62,13,10 + + db 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,36,62,13,10 + + db 0 + +pokerReplaceText db "Ïîìåíÿòü êàðòó ",0 +pokerReplaceTail db "? (y/n): ",0 +pokerAIExchangeText db 13,10,"AI äóìàåò íàä îáìåíîì...",13,10,0 +pokerRevealText db 13,10,"AI âñêðûâàåò ïîêåðíóþ ðóêó...",13,10,0 +pokerYourComboText db "Òâîÿ êîìáèíàöèÿ: ",0 +pokerAIComboText db "Êîìáèíàöèÿ AI: ",0 +pokerTableText db 13,10,"Êàðòû íà ñòîëå:",13,10,0 +pokerHintText db "Ïîäñêàçêà: ñåé÷àñ ó òåáÿ ",0 +pokerDecisionText db "1 - èãðàòü, 2 - ïîâûñèòü ñòàâêó, 0 - ôîëä: ",0 +pokerPotText db "Áàíê ðàóíäà: $",0 +pokerBetText db "Òâîÿ òåêóùàÿ ñòàâêà: $",0 +pokerChipTitle db "Ôèøêè:",13,10,0 +pokerChipHigh db " [###]",13,10,0 +pokerChipMid db " [===]",13,10,0 +pokerChipLow db " [___]",13,10,0 +pokerRaiseAskText db "Íà ñêîëüêî ïîâûñèòü ñòàâêó: $",0 +pokerRaisedText db "Òû ïîâûñèë ñòàâêó. Íîâàÿ ñòàâêà: $",0 +pokerBadRaiseText db "Ïîâûøåíèå äîëæíî áûòü áîëüøå 0 è íå áîëüøå òâîåãî áàíêà.",13,10,0 +pokerAICallRaiseText db 13,10,"AI îòâå÷àåò íà ñòàâêó.",13,10,0 +pokerAIFoldRaiseText db 13,10,"AI íå ïðèíèìàåò ïîâûøåíèå è äåëàåò ôîëä. Òû âûèãðàë!",13,10,0 +pokerHardIntroText db "Hard Poker: îäèí ðàç ìîæíî çàìåíèòü îäíó êàðìàííóþ êàðòó.",13,10,0 +pokerHardExchangeText db "Çàìåíèòü êàðòó? 1 - ïåðâóþ, 2 - âòîðóþ, 0 - íå ìåíÿòü: ",0 +pokerHardAIExchangeText db 13,10,"AI ïåðåñìàòðèâàåò êàðìàííûå êàðòû...",13,10,0 +pokerAIRaiseText db 13,10,"AI ïîâûøàåò ñòàâêó íà $",0 +pokerCallRaiseText db "Îòâåòèòü? 1 - êîëë, 0 - ôîëä: ",0 +pokerPlayerCallText db "Òû îòâåòèë íà ïîâûøåíèå. Íîâàÿ ñòàâêà: $",0 +pokerFoldToRaiseText db 13,10,"Òû ñáðîñèë êàðòû ïîñëå ïîâûøåíèÿ AI.",13,10,"Òû ïðîèãðàë.",13,10,0 +pokerFoldText db 13,10,"Òû ñäåëàë ôîëä.",13,10,"Òû ïðîèãðàë.",13,10,0 +pokerAIFoldText db 13,10,"AI ñäåëàë ôîëä. Òû âûèãðàë!",13,10,0 +pokerNextCardText db 13,10,"Îòêðûâàåòñÿ ñëåäóþùàÿ êàðòà...",13,10,0 +pokerHighName db "Ñòàðøàÿ êàðòà",13,10,0 +pokerPairName db "Ïàðà",13,10,0 +pokerTwoPairName db "Äâå ïàðû",13,10,0 +pokerTripsName db "Òðîéêà",13,10,0 +pokerStraightName db "Ñòðèò",13,10,0 +pokerFlushName db "Ôëåø",13,10,0 +pokerFullHouseName db "Ôóëë õàóñ",13,10,0 +pokerFourName db "Êàðå",13,10,0 +pokerStraightFlushName db "Ñòðèò-ôëåø",13,10,0 + +; === Òåêñòû è ñèìâîëû ñëîò-ìàøèí === +slotPullText db "Êðóòèì áàðàáàíû...",13,10,0 +slotLeft db "[ ",0 +slotMid db " ] [ ",0 +slotRight db " ]",13,10,0 +slotJackpot db "Äæåêïîò!",13,10,0 +slotPair db "Êîìáèíàöèÿ ñûãðàëà!",13,10,0 +slotPayoutText db "Âûïëàòà x",0 +slotPayTableText db "Ñèìâîëû: LEM/CHR x2, CLV/BEL x3, DIA/BOX x5, 777 x7.",13,10 + db "Êîìáèíàöèè: Ãîð.M/Âåðò.M/Äèàã.M x1, Ãîð.L x2, Ãîð.XL x3",13,10 + db "Ââåðõ/Âíèç x4, Íåáî/Çåìëÿ x7, Ãëàç x8, Äæåêïîò x10.",13,10,0 +slotEmpty db "Íå ïîâåçëî.",13,10,0 +slotComboText db "Êîìáèíàöèÿ: ",0 +slotMultiplierText db "Ìíîæèòåëü: x",0 +slotTotalMultiplierText db "Èòîãîâûé ìíîæèòåëü: x",0 +slotComboHorM db "Ãîð. M",0 +slotComboVertM db "Âåðò. M",0 +slotComboDiagM db "Äèàã. M",0 +slotComboHorL db "Ãîð. L",0 +slotComboHorXL db "Ãîð. XL",0 +slotComboUp db "Ââåðõ",0 +slotComboDown db "Âíèç",0 +slotComboSky db "Íåáî",0 +slotComboEarth db "Çåìëÿ",0 +slotComboEye db "Ãëàç",0 +slotComboJackpot db "Äæåêïîò",0 + +; === Ãðàôèêà êàðò: ðàìêè, ñòðîêè, ðóáàøêè è ïåðåâîðîò === +cardTop db 0E2h, 094h, 08Ch, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 090h, 13,10,0 +cardBottom db 0E2h, 094h, 094h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 098h, 13,10,0 +cardEmpty db 0E2h, 094h, 082h, " ", 0E2h, 094h, 082h, 13,10,0 +cardSuitLeft db 0E2h, 094h, 082h, " ", 0 +cardSuitRight db " ", 0E2h, 094h, 082h, 13,10,0 +cardRankOneL db 0E2h, 094h, 082h, " ", 0 +cardRankOneR db " ", 0E2h, 094h, 082h, 13,10,0 +cardRankTenL db 0E2h, 094h, 082h, " ", 0 +cardRankTenR db " ", 0E2h, 094h, 082h, 13,10,0 +cardCenterL db 0E2h, 094h, 082h, " ", 0 +cardCenterR db " ", 0E2h, 094h, 082h, 13,10,0 +cardTopSeg db 0E2h, 094h, 08Ch, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 090h, 0 +cardBottomSeg db 0E2h, 094h, 094h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 098h, 0 +cardEmptySeg db 0E2h, 094h, 082h, " ", 0E2h, 094h, 082h, 0 +cardBackSeg db 0E2h, 094h, 082h, 0E2h, 096h, 091h, 0E2h, 096h, 091h, 0E2h, 096h, 091h, 0E2h, 096h, 091h, 0E2h, 096h, 091h, 0E2h, 096h, 091h, 0E2h, 096h, 091h, 0E2h, 096h, 091h, 0E2h, 096h, 091h, 0E2h, 094h, 082h, 0 +cardBackBlueSeg db 0E2h, 094h, 082h, "~~*~~*~~*", 0E2h, 094h, 082h, 0 +cardBackRedSeg db 0E2h, 094h, 082h, "XX+XX+XX+", 0E2h, 094h, 082h, 0 +cardBackGoldSeg db 0E2h, 094h, 082h, "$*$*$*$*$", 0E2h, 094h, 082h, 0 +cardBackSkullSeg db 0E2h, 094h, 082h, "|o",0E2h,098h,0A0h," v ",0E2h,098h,0A0h,"o|", 0E2h, 094h, 082h, 0 +cardBackCloverSeg db 0E2h, 094h, 082h, "$+ ",0E2h,099h,0A3h,"$",0E2h,099h,0A3h," +$", 0E2h, 094h, 082h, 0 +backGray1 db 0E2h,094h,082h,"+-+-+-+-+",0E2h,094h,082h,0 +backGray2 db 0E2h,094h,082h,"|#|#|#|#|",0E2h,094h,082h,0 +backGray3 db 0E2h,094h,082h,"+-+-+-+-+",0E2h,094h,082h,0 +backGray4 db 0E2h,094h,082h,"|#|#|#|#|",0E2h,094h,082h,0 +backGray5 db 0E2h,094h,082h,"+-+-+-+-+",0E2h,094h,082h,0 +backBlue1 db 0E2h,094h,082h,"\\==*==//",0E2h,094h,082h,0 +backBlue2 db 0E2h,094h,082h,"/ ___ /",0E2h,094h,082h,0 +backBlue3 db 0E2h,094h,082h,"| (@@@) |",0E2h,094h,082h,0 +backBlue4 db 0E2h,094h,082h,"/ ~~~ /",0E2h,094h,082h,0 +backBlue5 db 0E2h,094h,082h,"//==*==//",0E2h,094h,082h,0 +backRed1 db 0E2h,094h,082h,"ooooooooo",0E2h,094h,082h,0 +backRed2 db 0E2h,094h,082h,"oXXXxXXXo",0E2h,094h,082h,0 +backRed3 db 0E2h,094h,082h,"oXX---XXo",0E2h,094h,082h,0 +backRed4 db 0E2h,094h,082h,"oXXXxXXXo",0E2h,094h,082h,0 +backRed5 db 0E2h,094h,082h,"ooooooooo",0E2h,094h,082h,0 +backGold1 db 0E2h,094h,082h,"{$*$$$*$}",0E2h,094h,082h,0 +backGold2 db 0E2h,094h,082h,"*/^ $ ^/*",0E2h,094h,082h,0 +backGold3 db 0E2h,094h,082h,"$ <@@@> $",0E2h,094h,082h,0 +backGold4 db 0E2h,094h,082h,"*v/ $ /v*",0E2h,094h,082h,0 +backGold5 db 0E2h,094h,082h,"{$*$$$*$}",0E2h,094h,082h,0 +backSkull1 db 0E2h,094h,082h,"._.---._.",0E2h,094h,082h,0 +backSkull2 db 0E2h,094h,082h,"/,(o o),\",0E2h,094h,082h,0 +backSkull3 db 0E2h,094h,082h,"| ^ |",0E2h,094h,082h,0 +backSkull4 db 0E2h,094h,082h,"\ '-=-' /",0E2h,094h,082h,0 +backSkull5 db 0E2h,094h,082h,"~|==|==|~",0E2h,094h,082h,0 +backClover1 db 0E2h,094h,082h,"+o+$$$+o+",0E2h,094h,082h,0 +backClover2 db 0E2h,094h,082h,"o ",0E2h,098h,098h," + ",0E2h,098h,098h," o",0E2h,094h,082h,0 +backClover3 db 0E2h,094h,082h,"$+ ",0E2h,099h,0A3h,"$",0E2h,099h,0A3h," +$",0E2h,094h,082h,0 +backClover4 db 0E2h,094h,082h,"o ",0E2h,098h,098h," | ",0E2h,098h,098h," o",0E2h,094h,082h,0 +backClover5 db 0E2h,094h,082h,"+o+$$$+o+",0E2h,094h,082h,0 +backArcane1 db 0E2h,094h,082h,".~*~*~*~.",0E2h,094h,082h,0 +backArcane2 db 0E2h,094h,082h,"/__~_~__\",0E2h,094h,082h,0 +backArcane3 db 0E2h,094h,082h,"|_/\/\_ |",0E2h,094h,082h,0 +backArcane4 db 0E2h,094h,082h,"| \_/\_/|",0E2h,094h,082h,0 +backArcane5 db 0E2h,094h,082h,"'--===--'",0E2h,094h,082h,0 +backNoir1 db 0E2h,094h,082h,"((\\_//))",0E2h,094h,082h,0 +backNoir2 db 0E2h,094h,082h,"// | \\",0E2h,094h,082h,0 +backNoir3 db 0E2h,094h,082h,"--(#*#)--",0E2h,094h,082h,0 +backNoir4 db 0E2h,094h,082h,"\\__|__//",0E2h,094h,082h,0 +backNoir5 db 0E2h,094h,082h,"((//~\\))",0E2h,094h,082h,0 +backDiamond1 db 0E2h,094h,082h,"<><###><>",0E2h,094h,082h,0 +backDiamond2 db 0E2h,094h,082h,"/\ /\",0E2h,094h,082h,0 +backDiamond3 db 0E2h,094h,082h,"*$*",0E2h,094h,082h,0 +backDiamond4 db 0E2h,094h,082h,"\/ \/",0E2h,094h,082h,0 +backDiamond5 db 0E2h,094h,082h,"<><###><>",0E2h,094h,082h,0 +backRider1 db 0E2h,094h,082h,".oO===Oo.",0E2h,094h,082h,0 +backRider2 db 0E2h,094h,082h,"(/ .-. /)",0E2h,094h,082h,0 +backRider3 db 0E2h,094h,082h,"o-( @ )-o",0E2h,094h,082h,0 +backRider4 db 0E2h,094h,082h,"(/ '-' /)",0E2h,094h,082h,0 +backRider5 db 0E2h,094h,082h,"'oO===Oo'",0E2h,094h,082h,0 +backBee1 db 0E2h,094h,082h,"<>.<>.<>.",0E2h,094h,082h,0 +backBee2 db 0E2h,094h,082h,".<>.<><>.",0E2h,094h,082h,0 +backBee3 db 0E2h,094h,082h,"<> BEE <>",0E2h,094h,082h,0 +backBee4 db 0E2h,094h,082h,".<>.<><>.",0E2h,094h,082h,0 +backBee5 db 0E2h,094h,082h,"<>.<>.<>.",0E2h,094h,082h,0 +backFan1 db 0E2h,094h,082h,"\\|/\\|//",0E2h,094h,082h,0 +backFan2 db 0E2h,094h,082h," -\\|//- ",0E2h,094h,082h,0 +backFan3 db 0E2h,094h,082h,"<(( o ))>",0E2h,094h,082h,0 +backFan4 db 0E2h,094h,082h," -//|\\- ",0E2h,094h,082h,0 +backFan5 db 0E2h,094h,082h,"//|/|/|\\",0E2h,094h,082h,0 +backWeb1 db 0E2h,094h,082h,"\\..|..//",0E2h,094h,082h,0 +backWeb2 db 0E2h,094h,082h,".\\.|.//.",0E2h,094h,082h,0 +backWeb3 db 0E2h,094h,082h,"--(o-o)--",0E2h,094h,082h,0 +backWeb4 db 0E2h,094h,082h,".//|.|\\.",0E2h,094h,082h,0 +backWeb5 db 0E2h,094h,082h,"//''-''\\",0E2h,094h,082h,0 +cardFlipLeft db 0E2h, 094h, 082h, " \ ", 0E2h, 094h, 082h, 0 +cardFlipMid db 0E2h, 094h, 082h, " | ", 0E2h, 094h, 082h, 0 +cardFlipRight db 0E2h, 094h, 082h, " / ", 0E2h, 094h, 082h, 0 +cardSuitRightSeg db " ", 0E2h, 094h, 082h, 0 +cardRankOneRSeg db " ", 0E2h, 094h, 082h, 0 +cardRankTenRSeg db " ", 0E2h, 094h, 082h, 0 +cardCenterRSeg db " ", 0E2h, 094h, 082h, 0 +cardGap db " ",0 +revealText db 13,10,"AI âñêðûâàåò êàðòû...",13,10,0 +rank2 db "2",0 +rank3 db "3",0 +rank4 db "4",0 +rank5 db "5",0 +rank6 db "6",0 +rank7 db "7",0 +rank8 db "8",0 +rank9 db "9",0 +rank10 db "10",0 +rankJ db "J",0 +rankQ db "Q",0 +rankK db "K",0 +rankA db "A",0 + +suitSpades db 0E2h, 099h, 0A0h, 0 +suitHearts db 0E2h, 099h, 0A5h, 0 +suitClubs db 0E2h, 099h, 0A3h, 0 +suitDiamonds db 0E2h, 099h, 0A6h, 0 + +ranks dd OFFSET rank2, OFFSET rank3, OFFSET rank4, OFFSET rank5 + dd OFFSET rank6, OFFSET rank7, OFFSET rank8, OFFSET rank9 + dd OFFSET rank10, OFFSET rankJ, OFFSET rankQ, OFFSET rankK, OFFSET rankA +suits dd OFFSET suitSpades, OFFSET suitHearts, OFFSET suitClubs, OFFSET suitDiamonds +pokerNames dd OFFSET pokerHighName, OFFSET pokerPairName, OFFSET pokerTwoPairName + dd OFFSET pokerTripsName, OFFSET pokerStraightName, OFFSET pokerFlushName + dd OFFSET pokerFullHouseName, OFFSET pokerFourName, OFFSET pokerStraightFlushName + +slot0 db "CLV",0 +slot1 db "LEM",0 +slot2 db "CHR",0 +slot3 db "BEL",0 +slot4 db "DIA",0 +slot5 db "BOX",0 +slot6 db "777",0 +slotSymbols dd OFFSET slot0, OFFSET slot1, OFFSET slot2 + dd OFFSET slot3, OFFSET slot4, OFFSET slot5, OFFSET slot6 +slotSymbolValues dd 3, 2, 2, 3, 5, 5, 7 +classicSlot0 db "7",0 +classicSlot1 db "BAR",0 +classicSlot2 db "$",0 +classicSlot3 db "*",0 +classicSlot4 db "#",0 +classicSlot5 db "A",0 +classicSlotSymbols dd OFFSET classicSlot0, OFFSET classicSlot1, OFFSET classicSlot2 + dd OFFSET classicSlot3, OFFSET classicSlot4, OFFSET classicSlot5 +classicSlotPayTableText db "Êëàññè÷åñêèé ñëîò 3x3. Âûèãðûøíàÿ ëèíèÿ - ñðåäíÿÿ.",13,10 + db "777 x10, $$$ x7, BAR x5, AAA x4, *** / ### x3, ïàðà x2.",13,10,0 +classicSlotJackpot db "Äæåêïîò! Òðè îäèíàêîâûõ.",13,10,0 +classicSlotPair db "Ïàðà íà ëèíèè!",13,10,0 +classicSlotEmpty db "Íå ïîâåçëî.",13,10,0 +classicSlotBorder db '+-----+-----+-----+',13,10,0 +classicSlotPayline db '----- WIN LINE -----',13,10,0 +; === MCI-êîìàíäû çâóêîâûõ ôàéëîâ === +cardSoundClose db 'close cardsound',0 +cardSoundOpen db 'open "assets\audio\playing_cards_deck_flick_through_001_20485.wav" type waveaudio alias cardsound',0 +cardSoundPlay db 'play cardsound from 0',0 +cardSoundStop db 'stop cardsound',0 +slotSoundClose db 'close slotsound',0 +slotSoundOpen db 'open "assets\audio\hKhoJArfEGAxxMewx0UQiddakTdBjFc.wav" type waveaudio alias slotsound',0 +slotSoundPlay db 'play slotsound from 0',0 +slotSoundStop db 'stop slotsound',0 +slotIntroClose db 'close slotintro',0 +slotIntroOpen db 'open "assets\audio\Ëåòñ ãîó ãýìáëèíã.wav" type waveaudio alias slotintro',0 +slotIntroPlay db 'play slotintro from 0',0 +slotIntroStop db 'stop slotintro',0 +jackpotClose db 'close jackpotsound',0 +jackpotOpen db 'open "assets\audio\Äæýê ïîò.wav" type waveaudio alias jackpotsound',0 +jackpotPlay db 'play jackpotsound from 0',0 +jackpotStop db 'stop jackpotsound',0 +hakariSoundClose db 'close hakarisound',0 +hakariSoundOpen db 'open "assets\audio\hakari_dance.wav" type waveaudio alias hakarisound',0 +hakariSoundPlay db 'play hakarisound from 0',0 +hakariSoundStop db 'stop hakarisound',0 +coinSoundClose db 'close coinsound',0 +coinSoundOpen db 'open "assets\audio\Çâóê ìîíåòû áðîøåííîé â âîçäóõ è óïàâøåé íà ïîâåðõíîñòü.wav" type waveaudio alias coinsound',0 +coinSoundPlay db 'play coinsound from 0',0 +coinSoundStop db 'stop coinsound',0 +bankruptClose db 'close bankruptsound',0 +bankruptOpen db 'open "assets\audio\Ïðîèãðûø.wav" type waveaudio alias bankruptsound',0 +bankruptPlay db 'play bankruptsound from 0',0 +bankruptStop db 'stop bankruptsound',0 +victoryClose db 'close victorysound',0 +victoryOpen db 'open "assets\audio\victory-tf2.wav" type waveaudio alias victorysound',0 +victoryPlay db 'play victorysound from 0',0 +victoryStop db 'stop victorysound',0 +rrSpinClose db 'close rrspinsound',0 +rrSpinOpen db 'open "assets\audio\toy-gun-revolver-close-chamber-spin_f1ruc5nd.wav" type waveaudio alias rrspinsound',0 +rrSpinPlay db 'play rrspinsound from 0',0 +rrSpinStop db 'stop rrspinsound',0 +rrDryClose db 'close rrdrysound',0 +rrDryOpen db 'open "assets\audio\revolverdryfirec.wav" type waveaudio alias rrdrysound',0 +rrDryPlay db 'play rrdrysound from 0',0 +rrDryStop db 'stop rrdrysound',0 +rrShotClose db 'close rrshotsound',0 +rrShotOpen db 'open "assets\audio\b05e1ac8be34248.wav" type waveaudio alias rrshotsound',0 +rrShotPlay db 'play rrshotsound from 0',0 +rrShotStop db 'stop rrshotsound',0 +casinoRouletteSoundClose db 'close casinoroulettesound',0 +casinoRouletteSoundOpen db 'open "assets\audio\roulette-wheel-throw-2.wav" type waveaudio alias casinoroulettesound',0 +casinoRouletteSoundPlay db 'play casinoroulettesound from 0',0 +casinoRouletteSoundStop db 'stop casinoroulettesound',0 +stoneSoundClose db 'close stonesound',0 +stoneSoundOpen db 'open "assets\audio\moving-stone.wav" type waveaudio alias stonesound',0 +stoneSoundPlay db 'play stonesound from 0',0 +stoneSoundStop db 'stop stonesound',0 +towerMusicClose db 'close towermusic',0 +towerMusicStop db 'stop towermusic',0 +towerMusicPlay db 'play towermusic repeat',0 +towerMusicOpen1 db 'open "assets\music\tower\KEYGEN_CHURCH_-_Hareklavit_75543927.mp3" type mpegvideo alias towermusic',0 +towerMusicOpen2 db 'open "assets\music\tower\KEYGEN_CHURCH_-_Ladikerfos_75543991.mp3" type mpegvideo alias towermusic',0 +towerMusicOpen3 db 'open "assets\music\tower\Keygen_Church_-_Tenebre_Rosso_Sangue_ULTRAKILL_Original_Game_Soundtrack_79610890.mp3" type mpegvideo alias towermusic',0 +towerMusicOpen4 db 'open "assets\music\tower\KEYGEN_CHURCH_-_Tilaskarot_75546826.mp3" type mpegvideo alias towermusic',0 +slotBorder db '+-----+-----+-----+-----+-----+',13,10,0 +slotWall db '|',0 +slotWinLeft db '>',0 +slotWinRight db '<',0 +slotCellBlank db ' ',0 +slotPadTwo db ' ',0 +slotPadOne db ' ',0 +skullSeg1 db 020h, 020h, 020h, 020h, 0E2h, 096h, 084h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 0E2h, 096h, 084h, 020h, 020h, 020h, 020h, 020h, 020h, 0 +skullSeg2 db 020h, 020h, 0E2h, 096h, 084h, 0E2h, 096h, 088h, 0E2h, 096h, 080h, 020h, 0E2h, 096h, 084h, 0E2h, 096h, 084h, 020h, 0E2h, 096h, 080h, 0E2h, 096h, 088h, 0E2h, 096h, 084h, 020h, 020h, 020h, 020h, 0 +skullSeg3 db 020h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 020h, 020h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 020h, 020h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 020h, 020h, 020h, 0 +skullSeg4 db 020h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 020h, 020h, 0E2h, 096h, 080h, 020h, 020h, 0E2h, 096h, 080h, 020h, 020h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 020h, 020h, 020h, 0 +skullSeg5 db 020h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 020h, 020h, 0E2h, 096h, 084h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 0E2h, 096h, 084h, 020h, 020h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 020h, 020h, 020h, 0 +skullSeg6 db 020h, 020h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 020h, 0E2h, 096h, 080h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 0E2h, 096h, 080h, 020h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 020h, 020h, 020h, 020h, 0 +skullSeg7 db 020h, 020h, 020h, 0E2h, 096h, 080h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 0E2h, 096h, 080h, 020h, 020h, 020h, 020h, 020h, 0 +skullSeg8 db 020h, 020h, 020h, 020h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 020h, 020h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 020h, 020h, 020h, 020h, 020h, 020h, 0 +skullNums db " [1] [2] [3]",13,10,0 +skullBlankBall db 13,10,13,10,13,10,0 +skullBall1 db " .***.",13,10," (* O *)",13,10," `***'",13,10,0 +skullBall2 db " .***.",13,10," (* O *)",13,10," `***'",13,10,0 +skullBall3 db " .***.",13,10," (* O *)",13,10," `***'",13,10,0 +saveFileName db 64 dup(0) +saveFullPath db 260 dup(0) +saveDirPath db 260 dup(0) +accountPatternFull db 260 dup(0) +leaderSavePath db 260 dup(0) +appDataReady dd 0 +saveExt db '.dat',0 +accountPattern db "*.dat",0 +appDataEnvName db "APPDATA",0 +appDataSubDir db "\AssemblerCasino",0 +pathSlashText db "\",0 +runtimeDir db "runtime",0 +danceFileName db "assets\animations\hakari_dance.ans",0 +casinoIntroFile db "assets\animations\casino_intro.ans",0 +dbdHookFileName db "assets\animations\dbd_hook.ans",0 +dbdHookCmd db "cmd /c start ""DBD Hook"" tools\preview_dbd_hook.bat",0 +dbdHookStopFile db "runtime\dbd_hook.stop",0 +animProfileFile db "runtime\anim_profile.txt",0 +animProfileDigits db "012",0 +ansiExitIntro db 1Bh,"[0m",1Bh,"[?25h",1Bh,"[2J",1Bh,"[H",0 +accountList db 20 dup(64 dup(0)) +findData db 320 dup(0) + + +; --- Umamusume Pretty Derby Data --- +umaTitleText db 13,10,"=== UMAMUSUME PRETTY DERBY (ÑÊÀ×ÊÈ) ===",13,10,0 +umaMenuText db "Âûáåðèòå âàøó äåâ÷îíêó-ëîøàäêó:",13,10 + db "1. Special Week (Ñïåöèàë Óèê) - Êîýô. x4 (Ñáàëàíñèðîâàííàÿ)",13,10 + db "2. Silence Suzuka (Ñàéëåíñ Ñóäçóêà) - Êîýô. x3 (Ðåçâûé ñòàðò)",13,10 + db "3. Tokai Teio (Òîêàé Òýéîí) - Êîýô. x5 (Ôèíèøíûé ñïóðò)",13,10 + db "4. Gold Ship (Ãîëä Øèï) - Êîýô. x8 (Íåïðåäñêàçóåìàÿ!)",13,10 + db "5. Mejiro McQueen (Ìýäçèðî Ìàêêóèí) - Êîýô. x6 (Ñòàéåð)",13,10,0 +umaChoiceText db "Âàø âûáîð (1-5): ",0 +umaTrackHeader db 13,10,"--- ÒÐÀÑÑÀ ÒÐÈÓÌÔÀ ---",13,10,0 +umaFinishText db " |FINISH|",13,10,0 +umaHorse1Name db "1. Special Week : ",0 +umaHorse2Name db "2. Silence Suzuka : ",0 +umaHorse3Name db "3. Tokai Teio : ",0 +umaHorse4Name db "4. Gold Ship : ",0 +umaHorse5Name db "5. Mejiro McQueen : ",0 +umaWinAnnouncement db 13,10,"Ïîáåäèòåëü ñêà÷åê: ",0 +umaYouWinText db " ÏÎÁÅÄÀ! Âàø âûáîð ïðèøåë ïåðâûì! Âû âûèãðàëè $",0 +umaYouLoseText db " Óâû, âàø âûáîð íå çàíÿë 1-å ìåñòî. Óäà÷à óëûáíåòñÿ â ñëåäóþùèé ðàç!",13,10,0 +umaStepChar db "=",0 +umaHeadChar db ">",0 +umaHorseNames dd OFFSET umaHorse1Name, OFFSET umaHorse2Name, OFFSET umaHorse3Name, OFFSET umaHorse4Name, OFFSET umaHorse5Name +umaMultipliers dd 4, 3, 5, 8, 6 + +umaPos dd 5 dup(0) +umaChoice dd 0 +umaWinner dd 0 + +.code +; --- PrintStr: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintStr PROC uses eax ecx esi, pText:DWORD + mov esi, pText + xor ecx, ecx +count_loop: + cmp byte ptr [esi + ecx], 0 + je count_done + inc ecx + jmp count_loop +count_done: + cmp ecx, 0 + je print_done + mov printLen, ecx + invoke MultiByteToWideChar, 1251, 0, pText, printLen, ADDR wideBuffer, 4096 + cmp eax, 0 + je print_raw_fallback + mov wideLen, eax + invoke WriteConsoleW, hOut, ADDR wideBuffer, wideLen, ADDR charsWritten, 0 + cmp eax, 0 + jne print_done + invoke WideCharToMultiByte, 65001, 0, ADDR wideBuffer, wideLen, ADDR utf8Buffer, 8192, 0, 0 + cmp eax, 0 + je print_raw_fallback + invoke WriteFile, hOut, ADDR utf8Buffer, eax, ADDR charsWritten, 0 + jmp print_done +print_raw_fallback: + invoke WriteFile, hOut, pText, printLen, ADDR charsWritten, 0 +print_done: + ret +PrintStr ENDP + +; --- PrintUtf8: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintUtf8 PROC uses eax ecx esi, pText:DWORD + mov esi, pText + xor ecx, ecx +utf8_count_loop: + cmp byte ptr [esi + ecx], 0 + je utf8_count_done + inc ecx + jmp utf8_count_loop +utf8_count_done: + cmp ecx, 0 + je utf8_print_done + mov printLen, ecx + invoke MultiByteToWideChar, 65001, 0, pText, printLen, ADDR wideBuffer, 4096 + cmp eax, 0 + je utf8_raw_fallback + mov wideLen, eax + invoke WriteConsoleW, hOut, ADDR wideBuffer, wideLen, ADDR charsWritten, 0 + cmp eax, 0 + jne utf8_print_done + invoke WriteFile, hOut, pText, printLen, ADDR charsWritten, 0 + jmp utf8_print_done +utf8_raw_fallback: + invoke WriteFile, hOut, pText, printLen, ADDR charsWritten, 0 +utf8_print_done: + ret +PrintUtf8 ENDP + +; --- SetColor: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +SetColor PROC attr:DWORD + invoke SetConsoleTextAttribute, hOut, attr + ret +SetColor ENDP + +; --- ResetColor: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +ResetColor PROC + invoke SetConsoleTextAttribute, hOut, COLOR_DEFAULT + ret +ResetColor ENDP + +; --- EnableAnsi: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +EnableAnsi PROC uses eax + invoke GetConsoleMode, hOut, ADDR consoleMode + cmp eax, 0 + je enable_ansi_done + or consoleMode, ENABLE_VIRTUAL_TERMINAL_PROCESSING + invoke SetConsoleMode, hOut, consoleMode +enable_ansi_done: + ret +EnableAnsi ENDP + +; --- SetSuitColor: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +SetSuitColor PROC suitIndex:DWORD + mov eax, suitIndex + cmp eax, 1 + je set_red_suit + cmp eax, 3 + je set_red_suit + invoke SetColor, COLOR_CARD + ret +set_red_suit: + invoke SetColor, COLOR_RED_CARD + ret +SetSuitColor ENDP + +; --- SetCardBackColor: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +SetCardBackColor PROC + mov eax, shopBackStyle + cmp eax, 1 + je card_back_blue + cmp eax, 2 + je card_back_red + cmp eax, 3 + je card_back_gold + cmp eax, 4 + je card_back_skull + cmp eax, 5 + je card_back_clover + cmp eax, 6 + je card_back_arcane + cmp eax, 7 + je card_back_noir + cmp eax, 8 + je card_back_diamond + cmp eax, 9 + je card_back_rider + cmp eax, 10 + je card_back_bee + cmp eax, 11 + je card_back_fan + cmp eax, 12 + je card_back_web + invoke SetColor, COLOR_BACK_CARD + ret +card_back_blue: + invoke SetColor, COLOR_TITLE + ret +card_back_red: + invoke SetColor, COLOR_BAD + ret +card_back_gold: + invoke SetColor, COLOR_WARN + ret +card_back_skull: + invoke SetColor, COLOR_BAD + ret +card_back_clover: + invoke SetColor, COLOR_MONEY + ret +card_back_arcane: + invoke SetColor, COLOR_TITLE + ret +card_back_noir: + invoke SetColor, COLOR_CARD + ret +card_back_diamond: + invoke SetColor, COLOR_TITLE + ret +card_back_rider: + invoke SetColor, COLOR_WARN + ret +card_back_bee: + invoke SetColor, COLOR_WARN + ret +card_back_fan: + invoke SetColor, COLOR_TITLE + ret +card_back_web: + invoke SetColor, COLOR_CARD + ret +SetCardBackColor ENDP +; --- PrintCardBackSegLine: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintCardBackSegLine PROC lineNo:DWORD + mov eax, shopBackStyle + cmp eax, 1 + je back_line_blue + cmp eax, 2 + je back_line_red + cmp eax, 3 + je back_line_gold + cmp eax, 4 + je back_line_skull + cmp eax, 5 + je back_line_clover + cmp eax, 6 + je back_line_arcane + cmp eax, 7 + je back_line_noir + cmp eax, 8 + je back_line_diamond + cmp eax, 9 + je back_line_rider + cmp eax, 10 + je back_line_bee + cmp eax, 11 + je back_line_fan + cmp eax, 12 + je back_line_web +back_line_gray: + mov eax, lineNo + cmp eax, 1 + je back_gray_1 + cmp eax, 2 + je back_gray_2 + cmp eax, 3 + je back_gray_3 + cmp eax, 4 + je back_gray_4 + invoke PrintUtf8, OFFSET backGray5 + ret +back_gray_1: + invoke PrintUtf8, OFFSET backGray1 + ret +back_gray_2: + invoke PrintUtf8, OFFSET backGray2 + ret +back_gray_3: + invoke PrintUtf8, OFFSET backGray3 + ret +back_gray_4: + invoke PrintUtf8, OFFSET backGray4 + ret +back_line_blue: + mov eax, lineNo + cmp eax, 1 + je back_blue_1 + cmp eax, 2 + je back_blue_2 + cmp eax, 3 + je back_blue_3 + cmp eax, 4 + je back_blue_4 + invoke PrintUtf8, OFFSET backBlue5 + ret +back_blue_1: + invoke PrintUtf8, OFFSET backBlue1 + ret +back_blue_2: + invoke PrintUtf8, OFFSET backBlue2 + ret +back_blue_3: + invoke PrintUtf8, OFFSET backBlue3 + ret +back_blue_4: + invoke PrintUtf8, OFFSET backBlue4 + ret +back_line_red: + mov eax, lineNo + cmp eax, 1 + je back_red_1 + cmp eax, 2 + je back_red_2 + cmp eax, 3 + je back_red_3 + cmp eax, 4 + je back_red_4 + invoke PrintUtf8, OFFSET backRed5 + ret +back_red_1: + invoke PrintUtf8, OFFSET backRed1 + ret +back_red_2: + invoke PrintUtf8, OFFSET backRed2 + ret +back_red_3: + invoke PrintUtf8, OFFSET backRed3 + ret +back_red_4: + invoke PrintUtf8, OFFSET backRed4 + ret +back_line_gold: + mov eax, lineNo + cmp eax, 1 + je back_gold_1 + cmp eax, 2 + je back_gold_2 + cmp eax, 3 + je back_gold_3 + cmp eax, 4 + je back_gold_4 + invoke PrintUtf8, OFFSET backGold5 + ret +back_gold_1: + invoke PrintUtf8, OFFSET backGold1 + ret +back_gold_2: + invoke PrintUtf8, OFFSET backGold2 + ret +back_gold_3: + invoke PrintUtf8, OFFSET backGold3 + ret +back_gold_4: + invoke PrintUtf8, OFFSET backGold4 + ret +back_line_skull: + mov eax, lineNo + cmp eax, 1 + je back_skull_1 + cmp eax, 2 + je back_skull_2 + cmp eax, 3 + je back_skull_3 + cmp eax, 4 + je back_skull_4 + invoke PrintUtf8, OFFSET backSkull5 + ret +back_skull_1: + invoke PrintUtf8, OFFSET backSkull1 + ret +back_skull_2: + invoke PrintUtf8, OFFSET backSkull2 + ret +back_skull_3: + invoke PrintUtf8, OFFSET backSkull3 + ret +back_skull_4: + invoke PrintUtf8, OFFSET backSkull4 + ret +back_line_clover: + mov eax, lineNo + cmp eax, 1 + je back_clover_1 + cmp eax, 2 + je back_clover_2 + cmp eax, 3 + je back_clover_3 + cmp eax, 4 + je back_clover_4 + invoke PrintUtf8, OFFSET backClover5 + ret +back_clover_1: + invoke PrintUtf8, OFFSET backClover1 + ret +back_clover_2: + invoke PrintUtf8, OFFSET backClover2 + ret +back_clover_3: + invoke PrintUtf8, OFFSET backClover3 + ret +back_clover_4: + invoke PrintUtf8, OFFSET backClover4 + ret +back_line_arcane: + mov eax, lineNo + cmp eax, 1 + je back_arcane_1 + cmp eax, 2 + je back_arcane_2 + cmp eax, 3 + je back_arcane_3 + cmp eax, 4 + je back_arcane_4 + invoke PrintUtf8, OFFSET backArcane5 + ret +back_arcane_1: + invoke PrintUtf8, OFFSET backArcane1 + ret +back_arcane_2: + invoke PrintUtf8, OFFSET backArcane2 + ret +back_arcane_3: + invoke PrintUtf8, OFFSET backArcane3 + ret +back_arcane_4: + invoke PrintUtf8, OFFSET backArcane4 + ret +back_line_noir: + mov eax, lineNo + cmp eax, 1 + je back_noir_1 + cmp eax, 2 + je back_noir_2 + cmp eax, 3 + je back_noir_3 + cmp eax, 4 + je back_noir_4 + invoke PrintUtf8, OFFSET backNoir5 + ret +back_noir_1: + invoke PrintUtf8, OFFSET backNoir1 + ret +back_noir_2: + invoke PrintUtf8, OFFSET backNoir2 + ret +back_noir_3: + invoke PrintUtf8, OFFSET backNoir3 + ret +back_noir_4: + invoke PrintUtf8, OFFSET backNoir4 + ret +back_line_diamond: + mov eax, lineNo + cmp eax, 1 + je back_diamond_1 + cmp eax, 2 + je back_diamond_2 + cmp eax, 3 + je back_diamond_3 + cmp eax, 4 + je back_diamond_4 + invoke PrintUtf8, OFFSET backDiamond5 + ret +back_diamond_1: + invoke PrintUtf8, OFFSET backDiamond1 + ret +back_diamond_2: + invoke PrintUtf8, OFFSET backDiamond2 + ret +back_diamond_3: + invoke PrintUtf8, OFFSET backDiamond3 + ret +back_diamond_4: + invoke PrintUtf8, OFFSET backDiamond4 + ret +back_line_rider: + mov eax, lineNo + cmp eax, 1 + je back_rider_1 + cmp eax, 2 + je back_rider_2 + cmp eax, 3 + je back_rider_3 + cmp eax, 4 + je back_rider_4 + invoke PrintUtf8, OFFSET backRider5 + ret +back_rider_1: + invoke PrintUtf8, OFFSET backRider1 + ret +back_rider_2: + invoke PrintUtf8, OFFSET backRider2 + ret +back_rider_3: + invoke PrintUtf8, OFFSET backRider3 + ret +back_rider_4: + invoke PrintUtf8, OFFSET backRider4 + ret +back_line_bee: + mov eax, lineNo + cmp eax, 1 + je back_bee_1 + cmp eax, 2 + je back_bee_2 + cmp eax, 3 + je back_bee_3 + cmp eax, 4 + je back_bee_4 + invoke PrintUtf8, OFFSET backBee5 + ret +back_bee_1: + invoke PrintUtf8, OFFSET backBee1 + ret +back_bee_2: + invoke PrintUtf8, OFFSET backBee2 + ret +back_bee_3: + invoke PrintUtf8, OFFSET backBee3 + ret +back_bee_4: + invoke PrintUtf8, OFFSET backBee4 + ret +back_line_fan: + mov eax, lineNo + cmp eax, 1 + je back_fan_1 + cmp eax, 2 + je back_fan_2 + cmp eax, 3 + je back_fan_3 + cmp eax, 4 + je back_fan_4 + invoke PrintUtf8, OFFSET backFan5 + ret +back_fan_1: + invoke PrintUtf8, OFFSET backFan1 + ret +back_fan_2: + invoke PrintUtf8, OFFSET backFan2 + ret +back_fan_3: + invoke PrintUtf8, OFFSET backFan3 + ret +back_fan_4: + invoke PrintUtf8, OFFSET backFan4 + ret +back_line_web: + mov eax, lineNo + cmp eax, 1 + je back_web_1 + cmp eax, 2 + je back_web_2 + cmp eax, 3 + je back_web_3 + cmp eax, 4 + je back_web_4 + invoke PrintUtf8, OFFSET backWeb5 + ret +back_web_1: + invoke PrintUtf8, OFFSET backWeb1 + ret +back_web_2: + invoke PrintUtf8, OFFSET backWeb2 + ret +back_web_3: + invoke PrintUtf8, OFFSET backWeb3 + ret +back_web_4: + invoke PrintUtf8, OFFSET backWeb4 + ret +PrintCardBackSegLine ENDP + +; --- PrintCardBackSeg: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintCardBackSeg PROC + invoke PrintCardBackSegLine, 3 + ret +PrintCardBackSeg ENDP + +; --- PrintSuit: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintSuit PROC uses eax, suitIndex:DWORD + invoke SetSuitColor, suitIndex + mov eax, suitIndex + invoke PrintUtf8, suits[eax * 4] + call ResetColor + ret +PrintSuit ENDP + +; --- PrintMoney: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintMoney PROC value:DWORD + invoke SetColor, COLOR_MONEY + invoke PrintUInt, value + call ResetColor + ret +PrintMoney ENDP + +; --- PrintTitleColor: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintTitleColor PROC pText:DWORD + invoke SetColor, COLOR_TITLE + invoke PrintStr, pText + call ResetColor + ret +PrintTitleColor ENDP + +; --- ColorPrint: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +ColorPrint PROC pText:DWORD, attr:DWORD + invoke SetColor, attr + invoke PrintStr, pText + call ResetColor + ret +ColorPrint ENDP + +; --- PrintWinEvent: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintWinEvent PROC + invoke ColorPrint, OFFSET winText, COLOR_MONEY + ret +PrintWinEvent ENDP + +; --- PrintLoseEvent: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintLoseEvent PROC + invoke ColorPrint, OFFSET loseText, COLOR_BAD + ret +PrintLoseEvent ENDP + +; --- PrintDrawEvent: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintDrawEvent PROC + invoke ColorPrint, OFFSET drawText, COLOR_WARN + ret +PrintDrawEvent ENDP + +; --- PrintCroupierFromList: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintCroupierFromList PROC uses eax ebx, pList:DWORD + invoke RandomRange, 3 + shl eax, 2 + mov ebx, pList + add ebx, eax + invoke SetColor, COLOR_TITLE + invoke PrintStr, OFFSET croupierPrefix + invoke PrintStr, DWORD PTR [ebx] + call ResetColor + ret +PrintCroupierFromList ENDP + +; --- DealerProcessLine: ñëóæåáíûé áëîê èãðîâîé ëîãèêè --- +DealerProcessLine PROC uses eax edx + mov eax, dealerLineLen + cmp eax, 3 + jb dealer_process_done + mov al, byte ptr [frameBuffer] + cmp al, dealerWantedTag + jne dealer_process_done + cmp byte ptr [frameBuffer+1], '|' + jne dealer_process_done + cmp dealerScanMode, 0 + jne dealer_process_select + inc dealerPhraseCount + ret + +dealer_process_select: + mov eax, dealerPhraseCount + cmp eax, dealerPhrasePick + jne dealer_process_next + mov eax, OFFSET frameBuffer + add eax, dealerLineLen + mov byte ptr [eax], 0 + invoke SetColor, COLOR_TITLE + invoke PrintStr, OFFSET croupierPrefix + mov edx, OFFSET frameBuffer + add edx, 2 + invoke PrintStr, edx + invoke PrintStr, OFFSET nl + call ResetColor + mov dealerPhrasePick, 0FFFFFFFFh +dealer_process_next: + inc dealerPhraseCount +dealer_process_done: + ret +DealerProcessLine ENDP + +; --- DealerScanFile: ñëóæåáíûé áëîê èãðîâîé ëîãèêè --- +DealerScanFile PROC uses eax edx, mode:DWORD + mov eax, mode + mov dealerScanMode, eax + mov dealerLineLen, 0 + invoke CreateFileA, OFFSET dealerFileName, GENERIC_READ, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0 + cmp eax, INVALID_HANDLE_VALUE + jne dealer_scan_opened + xor eax, eax + ret + +dealer_scan_opened: + mov dealerFileHandle, eax + +dealer_scan_loop: + invoke ReadFile, dealerFileHandle, ADDR inputBuffer, 1, ADDR charsRead, 0 + cmp charsRead, 0 + je dealer_scan_eof + mov al, byte ptr inputBuffer + cmp al, 13 + je dealer_scan_loop + cmp al, 10 + je dealer_scan_line_end + mov edx, dealerLineLen + cmp edx, 32760 + jae dealer_scan_loop + mov byte ptr [frameBuffer + edx], al + inc dealerLineLen + jmp dealer_scan_loop + +dealer_scan_line_end: + call DealerProcessLine + mov dealerLineLen, 0 + jmp dealer_scan_loop + +dealer_scan_eof: + cmp dealerLineLen, 0 + je dealer_scan_close + call DealerProcessLine + +dealer_scan_close: + invoke CloseHandle, dealerFileHandle + mov eax, 1 + ret +DealerScanFile ENDP + +; --- PrintCroupierFromFile: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintCroupierFromFile PROC uses eax, wanted:DWORD, pFallback:DWORD + mov eax, wanted + mov dealerWantedTag, al + mov dealerPhraseCount, 0 + invoke DealerScanFile, 0 + cmp eax, 0 + je croupier_file_fallback + cmp dealerPhraseCount, 0 + je croupier_file_fallback + invoke RandomRange, dealerPhraseCount + mov dealerPhrasePick, eax + mov dealerPhraseCount, 0 + invoke DealerScanFile, 1 + ret +croupier_file_fallback: + invoke PrintCroupierFromList, pFallback + ret +PrintCroupierFromFile ENDP + +; --- PrintCroupierWin: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintCroupierWin PROC + invoke PrintCroupierFromFile, 'W', OFFSET croupierWinList + ret +PrintCroupierWin ENDP + +; --- PrintCroupierLose: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintCroupierLose PROC + invoke PrintCroupierFromFile, 'L', OFFSET croupierLoseList + ret +PrintCroupierLose ENDP + +; --- PrintCroupierDraw: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintCroupierDraw PROC + invoke PrintCroupierFromFile, 'D', OFFSET croupierDrawList + ret +PrintCroupierDraw ENDP + +; --- FlushFrame: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +FlushFrame PROC uses eax ebx ecx edx esi edi + LOCAL csbi[22]:BYTE + LOCAL X_start:DWORD + LOCAL Y_start:DWORD + LOCAL nextLinePtr:DWORD + LOCAL currentLineIndex:DWORD + + cmp frameBytes, 0 + je flush_frame_done + + mov eax, OFFSET frameBuffer + add eax, frameBytes + mov byte ptr [eax], 0 + + cmp animWidth, 0 + je print_default + cmp animHeight, 0 + je print_default + + call ClearView + + lea eax, csbi + invoke GetConsoleScreenBufferInfo, hOut, eax + cmp eax, 0 + je print_default + + movzx ecx, word ptr csbi[14] + movzx esi, word ptr csbi[10] + sub ecx, esi + inc ecx + + movzx edx, word ptr csbi[16] + movzx esi, word ptr csbi[12] + sub edx, esi + inc edx + + mov eax, ecx + cmp eax, animWidth + jbe set_x_left + sub eax, animWidth + shr eax, 1 + add ax, word ptr csbi[10] + movzx eax, ax + mov X_start, eax + jmp x_calculated +set_x_left: + movzx eax, word ptr csbi[10] + mov X_start, eax +x_calculated: + + mov eax, edx + cmp eax, animHeight + jbe set_y_top + sub eax, animHeight + shr eax, 1 + add ax, word ptr csbi[12] + movzx eax, ax + mov Y_start, eax + jmp y_calculated +set_y_top: + movzx eax, word ptr csbi[12] + mov Y_start, eax +y_calculated: + + mov esi, OFFSET frameBuffer +skip_lead_loop: + cmp byte ptr [esi], 1Bh + jne check_lead_newline + cmp byte ptr [esi+1], '[' + jne check_lead_newline + + cmp byte ptr [esi+2], '2' + jne check_lead_H + cmp byte ptr [esi+3], 'J' + jne check_lead_newline + add esi, 4 + jmp skip_lead_loop + +check_lead_H: + cmp byte ptr [esi+2], 'H' + jne check_lead_hide + add esi, 3 + jmp skip_lead_loop + +check_lead_hide: + cmp byte ptr [esi+2], '?' + jne check_lead_newline + cmp byte ptr [esi+3], '2' + jne check_lead_newline + cmp byte ptr [esi+4], '5' + jne check_lead_newline + cmp byte ptr [esi+5], 'l' + jne check_lead_show + add esi, 6 + jmp skip_lead_loop + +check_lead_show: + cmp byte ptr [esi+5], 'h' + jne check_lead_newline + add esi, 6 + jmp skip_lead_loop + +check_lead_newline: + mov al, [esi] + cmp al, 0Dh + je skip_lead_nl_char + cmp al, 0Ah + je skip_lead_nl_char + jmp done_lead_skipping +skip_lead_nl_char: + inc esi + jmp skip_lead_loop +done_lead_skipping: + + mov currentLineIndex, 0 +line_parse_loop: + cmp byte ptr [esi], 0 + je print_done + + mov edi, esi +find_line_end: + mov al, [edi] + cmp al, 0 + je line_end_found + cmp al, 0Dh + je line_end_found + cmp al, 0Ah + je line_end_found + inc edi + jmp find_line_end +line_end_found: + mov dl, [edi] + mov byte ptr [edi], 0 + + mov ebx, edi + cmp dl, 0 + je next_line_ptr_done + inc ebx + mov al, [ebx] + cmp al, 0Dh + je skip_nl_chars + cmp al, 0Ah + je skip_nl_chars + jmp next_line_ptr_done +skip_nl_chars: + inc ebx + mov al, [ebx] + cmp al, 0Dh + je skip_nl_chars + cmp al, 0Ah + je skip_nl_chars +next_line_ptr_done: + mov nextLinePtr, ebx + + mov eax, currentLineIndex + add eax, Y_start + + movzx edx, word ptr csbi[16] + cmp eax, edx + jg skip_this_line + + invoke MoveCursor, X_start, eax + invoke PrintUtf8, esi + +skip_this_line: + mov esi, nextLinePtr + inc currentLineIndex + jmp line_parse_loop + +print_default: + invoke PrintUtf8, OFFSET frameBuffer + +print_done: + mov frameBytes, 0 +flush_frame_done: + ret +FlushFrame ENDP + +; --- PlayHakariDance: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlayHakariDance PROC uses eax ebx ecx edx esi edi + mov animWidth, 118 + mov animHeight, 43 + invoke CreateFileA, OFFSET danceFileName, GENERIC_READ, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0 + cmp eax, INVALID_HANDLE_VALUE + jne hakari_file_ok + invoke mciSendStringA, OFFSET hakariSoundStop, 0, 0, 0 + mov animWidth, 0 + mov animHeight, 0 + ret +hakari_file_ok: + mov danceHandle, eax + mov frameBytes, 0 + mov animFrameCounter, 0 + +hakari_read_loop: + invoke ReadFile, danceHandle, ADDR inputBuffer, 1, ADDR danceBytes, 0 + cmp danceBytes, 0 + je hakari_finish + mov al, byte ptr inputBuffer + cmp al, 0Ch + je hakari_show_frame + mov edx, frameBytes + cmp edx, 32760 + jae hakari_show_frame_keep_char + mov [frameBuffer + edx], al + inc frameBytes + jmp hakari_read_loop + +hakari_show_frame_keep_char: + call ClearView + call FlushFrame + invoke AnimFrameDelay, 12 + invoke Sleep, eax + mov al, byte ptr inputBuffer + mov [frameBuffer], al + mov frameBytes, 1 + jmp hakari_read_loop + +hakari_show_frame: + call AnimShouldDrawFrame + cmp eax, 1 + jne hakari_skip_frame + call ClearView + call FlushFrame + invoke AnimFrameDelay, 12 + invoke Sleep, eax + jmp hakari_read_loop +hakari_skip_frame: + mov frameBytes, 0 + jmp hakari_read_loop + +hakari_finish: + call ClearView + call FlushFrame + invoke CloseHandle, danceHandle + invoke mciSendStringA, OFFSET hakariSoundStop, 0, 0, 0 + invoke Sleep, 40 + call ClearView + mov animWidth, 0 + mov animHeight, 0 + ret +PlayHakariDance ENDP + +; --- WriteAnimProfileFile: shares animation profile with helper windows --- +WriteAnimProfileFile PROC uses eax ebx edx + invoke CreateFileA, OFFSET animProfileFile, GENERIC_WRITE, 0, 0, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0 + cmp eax, INVALID_HANDLE_VALUE + je write_anim_profile_done + mov ebx, eax + mov edx, settingsLowSpec + cmp edx, 2 + jbe write_anim_profile_value_ok + xor edx, edx +write_anim_profile_value_ok: + mov al, byte ptr [animProfileDigits + edx] + mov byte ptr [inputBuffer], al + invoke WriteFile, ebx, ADDR inputBuffer, 1, ADDR charsWritten, 0 + invoke CloseHandle, ebx +write_anim_profile_done: + ret +WriteAnimProfileFile ENDP +; --- PlayDbDHookScene: ïîêàäðîâàÿ àíèìàöèÿ êðþêà èç Dead by Daylight --- +PlayDbDHookScene PROC uses eax + cmp settingsDbdWindowEnabled, 1 + jne play_dbd_done + invoke WinExec, OFFSET dbdHookCmd, 1 +play_dbd_done: + ret +PlayDbDHookScene ENDP + +; --- StopDbDHookScene: çàêðûâàåò îòäåëüíîå îêíî DBD-àíèìàöèè ÷åðåç ôàéë-ñèãíàë --- +StopDbDHookScene PROC uses eax + invoke CreateFileA, OFFSET dbdHookStopFile, GENERIC_WRITE, 0, 0, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0 + cmp eax, INVALID_HANDLE_VALUE + je stop_dbd_done + invoke CloseHandle, eax +stop_dbd_done: + ret +StopDbDHookScene ENDP + +; --- IntroMaybeLoopMarker: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +IntroMaybeLoopMarker PROC + cmp frameBytes, 10 + jne intro_marker_no + cmp byte ptr [frameBuffer], '@' + jne intro_marker_no + cmp byte ptr [frameBuffer+1], '@' + jne intro_marker_no + cmp byte ptr [frameBuffer+2], 'L' + jne intro_marker_no + cmp byte ptr [frameBuffer+3], 'O' + jne intro_marker_no + cmp byte ptr [frameBuffer+4], 'O' + jne intro_marker_no + cmp byte ptr [frameBuffer+5], 'P' + jne intro_marker_no + cmp byte ptr [frameBuffer+6], '@' + jne intro_marker_no + cmp byte ptr [frameBuffer+7], '@' + jne intro_marker_no + mov introLoopSeen, 1 + mov introSkipLoop, 0 + mov frameBytes, 0 + mov eax, 1 + ret +intro_marker_no: + xor eax, eax + ret +IntroMaybeLoopMarker ENDP + +; --- IntroHandleFrameEnd: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +IntroHandleFrameEnd PROC + call IntroMaybeLoopMarker + cmp eax, 1 + je intro_handle_done + cmp introSkipLoop, 1 + je intro_discard_frame + call AnimShouldDrawFrame + cmp eax, 1 + jne intro_discard_frame + call FlushFrame + invoke AnimFrameDelay, 45 + invoke Sleep, eax + ret +intro_discard_frame: + mov frameBytes, 0 +intro_handle_done: + ret +IntroHandleFrameEnd ENDP + +; --- PlayCasinoIntro: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlayCasinoIntro PROC uses eax ebx ecx edx esi edi + cmp settingsIntroEnabled, 1 + jne intro_disabled + mov introLoopSeen, 0 + mov introSkipLoop, 0 + mov animFrameCounter, 0 + mov animWidth, 64 + mov animHeight, 21 +intro_restart_file: + invoke CreateFileA, OFFSET casinoIntroFile, GENERIC_READ, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0 + cmp eax, INVALID_HANDLE_VALUE + jne intro_file_ok + mov animWidth, 0 + mov animHeight, 0 + ret +intro_file_ok: + mov danceHandle, eax + mov frameBytes, 0 + +intro_read_loop: + invoke GetAsyncKeyState, VK_RETURN + test ax, 8000h + jnz intro_exit + invoke ReadFile, danceHandle, ADDR inputBuffer, 1, ADDR danceBytes, 0 + cmp danceBytes, 0 + je intro_restart_cycle + mov al, byte ptr inputBuffer + cmp al, 0Ch + je intro_show_frame + mov edx, frameBytes + cmp edx, 32760 + jae intro_show_frame_keep_char + mov [frameBuffer + edx], al + inc frameBytes + jmp intro_read_loop + +intro_show_frame_keep_char: + call IntroHandleFrameEnd + mov al, byte ptr inputBuffer + mov [frameBuffer], al + mov frameBytes, 1 + jmp intro_read_loop + +intro_show_frame: + call IntroHandleFrameEnd + jmp intro_read_loop + +intro_restart_cycle: + call FlushFrame + invoke CloseHandle, danceHandle + cmp introLoopSeen, 1 + jne intro_restart_file + mov introSkipLoop, 1 + jmp intro_restart_file + +intro_exit: + invoke CloseHandle, danceHandle + invoke PrintUtf8, OFFSET ansiExitIntro + invoke Sleep, 180 +intro_disabled: + mov animWidth, 0 + mov animHeight, 0 + ret +PlayCasinoIntro ENDP +; --- InitSounds: ñëóæåáíûé áëîê èãðîâîé ëîãèêè --- +InitSounds PROC uses eax ecx edx + invoke mciSendStringA, OFFSET cardSoundClose, 0, 0, 0 + invoke mciSendStringA, OFFSET cardSoundOpen, 0, 0, 0 + invoke mciSendStringA, OFFSET slotSoundClose, 0, 0, 0 + invoke mciSendStringA, OFFSET slotSoundOpen, 0, 0, 0 + invoke mciSendStringA, OFFSET slotIntroClose, 0, 0, 0 + invoke mciSendStringA, OFFSET slotIntroOpen, 0, 0, 0 + invoke mciSendStringA, OFFSET jackpotClose, 0, 0, 0 + invoke mciSendStringA, OFFSET jackpotOpen, 0, 0, 0 + invoke mciSendStringA, OFFSET hakariSoundClose, 0, 0, 0 + invoke mciSendStringA, OFFSET hakariSoundOpen, 0, 0, 0 + invoke mciSendStringA, OFFSET coinSoundClose, 0, 0, 0 + invoke mciSendStringA, OFFSET coinSoundOpen, 0, 0, 0 + invoke mciSendStringA, OFFSET bankruptClose, 0, 0, 0 + invoke mciSendStringA, OFFSET bankruptOpen, 0, 0, 0 + invoke mciSendStringA, OFFSET victoryClose, 0, 0, 0 + invoke mciSendStringA, OFFSET victoryOpen, 0, 0, 0 + invoke mciSendStringA, OFFSET rrSpinClose, 0, 0, 0 + invoke mciSendStringA, OFFSET rrSpinOpen, 0, 0, 0 + invoke mciSendStringA, OFFSET rrDryClose, 0, 0, 0 + invoke mciSendStringA, OFFSET rrDryOpen, 0, 0, 0 + invoke mciSendStringA, OFFSET rrShotClose, 0, 0, 0 + invoke mciSendStringA, OFFSET rrShotOpen, 0, 0, 0 + invoke mciSendStringA, OFFSET casinoRouletteSoundClose, 0, 0, 0 + invoke mciSendStringA, OFFSET casinoRouletteSoundOpen, 0, 0, 0 + invoke mciSendStringA, OFFSET stoneSoundClose, 0, 0, 0 + invoke mciSendStringA, OFFSET stoneSoundOpen, 0, 0, 0 + ret +InitSounds ENDP + +; --- PlayCardSound: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlayCardSound PROC uses eax ecx edx + invoke mciSendStringA, OFFSET cardSoundStop, 0, 0, 0 + invoke mciSendStringA, OFFSET cardSoundPlay, 0, 0, 0 + invoke Sleep, 90 + ret +PlayCardSound ENDP + +; --- PlaySlotSound: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlaySlotSound PROC uses eax ecx edx + invoke mciSendStringA, OFFSET slotSoundStop, 0, 0, 0 + invoke mciSendStringA, OFFSET slotSoundPlay, 0, 0, 0 + ret +PlaySlotSound ENDP + +; --- PlaySlotIntroSound: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlaySlotIntroSound PROC uses eax ecx edx + invoke mciSendStringA, OFFSET slotIntroStop, 0, 0, 0 + invoke mciSendStringA, OFFSET slotIntroPlay, 0, 0, 0 + ret +PlaySlotIntroSound ENDP + +; --- PlayJackpotSound: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlayJackpotSound PROC uses eax ecx edx + invoke mciSendStringA, OFFSET jackpotStop, 0, 0, 0 + invoke mciSendStringA, OFFSET jackpotPlay, 0, 0, 0 + ret +PlayJackpotSound ENDP + +; --- PlayHakariSound: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlayHakariSound PROC uses eax ecx edx + invoke mciSendStringA, OFFSET hakariSoundStop, 0, 0, 0 + invoke mciSendStringA, OFFSET hakariSoundPlay, 0, 0, 0 + ret +PlayHakariSound ENDP + +; --- PlayCoinSound: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlayCoinSound PROC uses eax ecx edx + invoke mciSendStringA, OFFSET coinSoundStop, 0, 0, 0 + invoke mciSendStringA, OFFSET coinSoundPlay, 0, 0, 0 + ret +PlayCoinSound ENDP + +; --- PlayBankruptSound: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlayBankruptSound PROC uses eax ecx edx + invoke mciSendStringA, OFFSET bankruptStop, 0, 0, 0 + invoke mciSendStringA, OFFSET bankruptPlay, 0, 0, 0 + ret +PlayBankruptSound ENDP + +; --- PlayVictorySound: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlayVictorySound PROC uses eax ecx edx + invoke mciSendStringA, OFFSET victoryStop, 0, 0, 0 + invoke mciSendStringA, OFFSET victoryPlay, 0, 0, 0 + ret +PlayVictorySound ENDP + +; --- PlayCasinoRouletteSound: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlayCasinoRouletteSound PROC uses eax ecx edx + invoke mciSendStringA, OFFSET casinoRouletteSoundStop, 0, 0, 0 + invoke mciSendStringA, OFFSET casinoRouletteSoundPlay, 0, 0, 0 + ret +PlayCasinoRouletteSound ENDP +; --- PlayRouletteSpinSound: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlayRouletteSpinSound PROC uses eax ecx edx + invoke mciSendStringA, OFFSET rrSpinStop, 0, 0, 0 + invoke mciSendStringA, OFFSET rrSpinPlay, 0, 0, 0 + ret +PlayRouletteSpinSound ENDP + +; --- PlayRouletteDrySound: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlayRouletteDrySound PROC uses eax ecx edx + invoke mciSendStringA, OFFSET rrDryStop, 0, 0, 0 + invoke mciSendStringA, OFFSET rrDryPlay, 0, 0, 0 + ret +PlayRouletteDrySound ENDP + +; --- PlayRouletteShotSound: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlayRouletteShotSound PROC uses eax ecx edx + invoke mciSendStringA, OFFSET rrShotStop, 0, 0, 0 + invoke mciSendStringA, OFFSET rrShotPlay, 0, 0, 0 + ret +PlayRouletteShotSound ENDP + +; --- PlayStoneSound: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlayStoneSound PROC uses eax ecx edx + invoke mciSendStringA, OFFSET stoneSoundStop, 0, 0, 0 + invoke mciSendStringA, OFFSET stoneSoundPlay, 0, 0, 0 + ret +PlayStoneSound ENDP + +; --- StopTowerMusic: ìóçûêà òóðíèð-áàøíè --- +StopTowerMusic PROC + invoke mciSendStringA, OFFSET towerMusicStop, 0, 0, 0 + invoke mciSendStringA, OFFSET towerMusicClose, 0, 0, 0 + ret +StopTowerMusic ENDP + +; --- PlayTowerRandomMusic: ñëó÷àéíàÿ ìóçûêà òóðíèð-áàøíè --- +PlayTowerRandomMusic PROC uses eax + call StopTowerMusic + invoke RandomRange, 4 + cmp eax, 0 + je tower_music_1 + cmp eax, 1 + je tower_music_2 + cmp eax, 2 + je tower_music_3 +tower_music_4: + invoke mciSendStringA, OFFSET towerMusicOpen4, 0, 0, 0 + jmp tower_music_play +tower_music_1: + invoke mciSendStringA, OFFSET towerMusicOpen1, 0, 0, 0 + jmp tower_music_play +tower_music_2: + invoke mciSendStringA, OFFSET towerMusicOpen2, 0, 0, 0 + jmp tower_music_play +tower_music_3: + invoke mciSendStringA, OFFSET towerMusicOpen3, 0, 0, 0 +tower_music_play: + invoke mciSendStringA, OFFSET towerMusicPlay, 0, 0, 0 + ret +PlayTowerRandomMusic ENDP + +; --- PrintSlotCell: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintSlotCell PROC uses eax ebx ecx, value:DWORD + invoke PrintStr, OFFSET slotWall + mov eax, slotCurrentCell + mov ebx, 1 + mov ecx, eax + shl ebx, cl + mov eax, slotWinMask + test eax, ebx + je slot_cell_normal + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET slotWinLeft + invoke PrintSlotSymbol, value + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET slotWinRight + call ResetColor + ret +slot_cell_normal: + invoke PrintStr, OFFSET slotPadOne + invoke PrintSlotSymbol, value + invoke PrintStr, OFFSET slotPadOne + ret +PrintSlotCell ENDP +; --- PrintSlotBlankCell: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintSlotBlankCell PROC + invoke PrintStr, OFFSET slotWall + invoke PrintStr, OFFSET slotCellBlank + ret +PrintSlotBlankCell ENDP + +; --- PrintSlotPaddingRow: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintSlotPaddingRow PROC + call PrintSlotBlankCell + call PrintSlotBlankCell + call PrintSlotBlankCell + call PrintSlotBlankCell + call PrintSlotBlankCell + invoke PrintStr, OFFSET slotWall + invoke PrintStr, OFFSET nl + ret +PrintSlotPaddingRow ENDP +; --- PrintSlotWindow: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintSlotWindow PROC uses eax ebx + call ClearView + invoke PrintTitleColor, OFFSET slotTitle + invoke PrintStr, OFFSET slotBorder + + mov rowIndex, 0 +slot_window_row_loop: + cmp rowIndex, 3 + jae slot_window_done + call PrintSlotPaddingRow + mov ebx, rowIndex + imul ebx, 5 + + cmp slotVisible, 1 + jb slot_blank_col1 + mov slotCurrentCell, ebx + invoke PrintSlotCell, slotGrid[ebx * 4] + jmp slot_col2 +slot_blank_col1: + call PrintSlotBlankCell + +slot_col2: + cmp slotVisible, 2 + jb slot_blank_col2 + mov eax, ebx + inc eax + mov slotCurrentCell, eax + invoke PrintSlotCell, slotGrid[eax * 4] + jmp slot_col3 +slot_blank_col2: + call PrintSlotBlankCell + +slot_col3: + cmp slotVisible, 3 + jb slot_blank_col3 + mov eax, ebx + add eax, 2 + mov slotCurrentCell, eax + invoke PrintSlotCell, slotGrid[eax * 4] + jmp slot_col4 +slot_blank_col3: + call PrintSlotBlankCell + +slot_col4: + cmp slotVisible, 4 + jb slot_blank_col4 + mov eax, ebx + add eax, 3 + mov slotCurrentCell, eax + invoke PrintSlotCell, slotGrid[eax * 4] + jmp slot_col5 +slot_blank_col4: + call PrintSlotBlankCell + +slot_col5: + cmp slotVisible, 5 + jb slot_blank_col5 + mov eax, ebx + add eax, 4 + mov slotCurrentCell, eax + invoke PrintSlotCell, slotGrid[eax * 4] + jmp slot_row_end +slot_blank_col5: + call PrintSlotBlankCell + +slot_row_end: + invoke PrintStr, OFFSET slotWall + invoke PrintStr, OFFSET nl + call PrintSlotPaddingRow + invoke PrintStr, OFFSET slotBorder + inc rowIndex + jmp slot_window_row_loop + +slot_window_done: + ret +PrintSlotWindow ENDP + +; --- FillSlotColumn: ñëîò-ìàøèíû, áàðàáàíû, ñèìâîëû, âûïëàòû è äæåêïîòû --- +FillSlotColumn PROC uses eax ebx, column:DWORD + mov ebx, column + invoke RandomRange, 7 + mov slotGrid[ebx * 4], eax + mov ebx, column + add ebx, 5 + invoke RandomRange, 7 + mov slotGrid[ebx * 4], eax + mov ebx, column + add ebx, 10 + invoke RandomRange, 7 + mov slotGrid[ebx * 4], eax + ret +FillSlotColumn ENDP +; --- PrintUInt: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintUInt PROC uses eax ebx ecx edx edi, value:DWORD + LOCAL buffer[12]:BYTE + + lea edi, buffer[11] + mov byte ptr [edi], 0 + mov eax, value + cmp eax, 0 + jne convert_loop_start + dec edi + mov byte ptr [edi], '0' + invoke PrintStr, edi + ret + +convert_loop_start: + mov ebx, 10 +convert_loop: + xor edx, edx + div ebx + add dl, '0' + dec edi + mov byte ptr [edi], dl + cmp eax, 0 + jne convert_loop + invoke PrintStr, edi + ret +PrintUInt ENDP + +; --- ReadKey: ââîä ïîëüçîâàòåëÿ è ðàçáîð ââåäåííûõ äàííûõ --- +ReadKey PROC uses ebx +read_key_again: + invoke ReadFile, hIn, ADDR inputBuffer, 1, ADDR charsRead, 0 + cmp charsRead, 0 + je read_key_empty + movzx eax, byte ptr inputBuffer + cmp al, 13 + je read_key_again + cmp al, 10 + je read_key_again + mov ebx, eax +read_key_drain: + invoke ReadFile, hIn, ADDR inputBuffer, 1, ADDR charsRead, 0 + cmp charsRead, 0 + je read_key_return + movzx eax, byte ptr inputBuffer + cmp al, 10 + jne read_key_drain +read_key_return: + mov eax, ebx + ret +read_key_empty: + xor eax, eax + ret +ReadKey ENDP + +; --- ReadAnyKey: ââîä ïîëüçîâàòåëÿ è ðàçáîð ââåäåííûõ äàííûõ --- +ReadAnyKey PROC +read_any_again: + invoke ReadFile, hIn, ADDR inputBuffer, 1, ADDR charsRead, 0 + cmp charsRead, 0 + je read_any_empty + movzx eax, byte ptr inputBuffer + ret +read_any_empty: + xor eax, eax + ret +ReadAnyKey ENDP + +; --- ReadUInt: ââîä ÷èñëà îäíîé ñòðîêîé, áåç çàâèñàíèÿ íà CR/LF --- +ReadUInt PROC uses ebx ecx edx esi edi + xor ebx, ebx ; parsed number + xor edi, edi ; digit count + invoke ReadFile, hIn, ADDR inputBuffer, 31, ADDR charsRead, 0 + cmp charsRead, 0 + je read_uint_zero + + mov esi, OFFSET inputBuffer + mov ecx, charsRead +read_uint_parse_loop: + cmp ecx, 0 + je read_uint_end + movzx eax, byte ptr [esi] + inc esi + dec ecx + cmp al, 13 + je read_uint_end + cmp al, 10 + je read_uint_end + cmp al, ' ' + je read_uint_parse_loop + cmp al, 9 + je read_uint_parse_loop + cmp al, '0' + jb read_uint_bad + cmp al, '9' + ja read_uint_bad + + sub al, '0' + movzx edx, al + mov eax, ebx + imul eax, eax, 10 + add eax, edx + mov ebx, eax + inc edi + jmp read_uint_parse_loop + +read_uint_end: + cmp edi, 0 + je read_uint_zero + mov eax, ebx + ret + +read_uint_bad: + xor eax, eax + ret + +read_uint_zero: + xor eax, eax + ret +ReadUInt ENDP + +; --- StrEqual: ââîä ïîëüçîâàòåëÿ è ðàçáîð ââåäåííûõ äàííûõ --- +StrEqual PROC uses esi edi ebx, pLeft:DWORD, pRight:DWORD + mov esi, pLeft + mov edi, pRight +str_equal_loop: + mov al, [esi] + mov bl, [edi] + cmp al, bl + jne str_not_equal + cmp al, 0 + je str_is_equal + inc esi + inc edi + jmp str_equal_loop +str_is_equal: + mov eax, 1 + ret +str_not_equal: + xor eax, eax + ret +StrEqual ENDP + +; --- PrintCheatApplied: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintCheatApplied PROC pText:DWORD + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET cheatAppliedText + invoke PrintStr, pText + call ResetColor + ret +PrintCheatApplied ENDP + +; --- ApplyCheatCode: áàíê, ñòàâêè, ñòðåññ, ïîäîçðåíèå è ýêîíîìèêà êàçèíî --- +ApplyCheatCode PROC pCode:DWORD + invoke StrEqual, pCode, OFFSET cheatCodeMoney + cmp eax, 1 + je cheat_money + invoke StrEqual, pCode, OFFSET cheatCodeSeven + cmp eax, 1 + je cheat_sevens + invoke StrEqual, pCode, OFFSET cheatCodeWin + cmp eax, 1 + je cheat_win_next + invoke StrEqual, pCode, OFFSET cheatCodeGod + cmp eax, 1 + je cheat_god + invoke StrEqual, pCode, OFFSET cheatCodeFair + cmp eax, 1 + je cheat_fair + invoke StrEqual, pCode, OFFSET cheatCodeGoal + cmp eax, 1 + je cheat_goal + invoke StrEqual, pCode, OFFSET cheatCodeReset + cmp eax, 1 + je cheat_reset + invoke StrEqual, pCode, OFFSET cheatCodeEasy + cmp eax, 1 + je cheat_easy + invoke StrEqual, pCode, OFFSET cheatCodeNormal + cmp eax, 1 + je cheat_normal + invoke StrEqual, pCode, OFFSET cheatCodeHard + cmp eax, 1 + je cheat_hard + invoke StrEqual, pCode, OFFSET cheatCodeJackpot + cmp eax, 1 + je cheat_jackpot + invoke StrEqual, pCode, OFFSET cheatCodeRich + cmp eax, 1 + je cheat_rich + invoke StrEqual, pCode, OFFSET cheatCodeDouble + cmp eax, 1 + je cheat_double + invoke StrEqual, pCode, OFFSET cheatCodePoor + cmp eax, 1 + je cheat_poor + invoke StrEqual, pCode, OFFSET cheatCodeShop + cmp eax, 1 + je cheat_shop + invoke StrEqual, pCode, OFFSET cheatCodeBacks + cmp eax, 1 + je cheat_backs + invoke StrEqual, pCode, OFFSET cheatCodeCharm + cmp eax, 1 + je cheat_max_charm + invoke StrEqual, pCode, OFFSET cheatCodeNoCharm + cmp eax, 1 + je cheat_no_charm + invoke StrEqual, pCode, OFFSET cheatCodeAch + cmp eax, 1 + je cheat_ach + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET cheatBadText + call ResetColor + xor eax, eax + ret + +cheat_money: + add bankroll, 50000 + call SaveGame + invoke PrintCheatApplied, OFFSET cheatMoneyText + call PrintBank + call CheckVictory + mov eax, 1 + ret +cheat_sevens: + add bankroll, 7777 + call SaveGame + invoke PrintCheatApplied, OFFSET cheatSevenText + call PrintBank + call CheckVictory + mov eax, 1 + ret +cheat_win_next: + mov cheatLuckyWin, 1 + call SaveGame + invoke PrintCheatApplied, OFFSET cheatWinText + mov eax, 1 + ret +cheat_god: + mov cheatGodMode, 1 + call SaveGame + invoke PrintCheatApplied, OFFSET cheatGodText + mov eax, 1 + ret +cheat_fair: + mov cheatLuckyWin, 0 + mov cheatGodMode, 0 + mov casinoSuspicion, 0 + call SaveGame + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET cheatAppliedText + invoke PrintStr, OFFSET cheatFairText + call ResetColor + mov eax, 1 + ret +cheat_goal: + mov eax, targetBank + mov bankroll, eax + call SaveGame + invoke PrintCheatApplied, OFFSET cheatGoalText + call PrintBank + call CheckVictory + mov eax, 1 + ret +cheat_reset: + mov bankroll, 10000 + call SaveGame + invoke PrintCheatApplied, OFFSET cheatResetText + call PrintBank + mov eax, 1 + ret +cheat_easy: + mov aiDifficulty, 1 + call SaveGame + invoke PrintCheatApplied, OFFSET cheatEasyText + mov eax, 1 + ret +cheat_normal: + mov aiDifficulty, 2 + call SaveGame + invoke PrintCheatApplied, OFFSET cheatNormalText + mov eax, 1 + ret +cheat_hard: + mov aiDifficulty, 3 + call SaveGame + invoke PrintCheatApplied, OFFSET cheatHardText + mov eax, 1 + ret +cheat_jackpot: + mov cheatSlotJackpot, 1 + call SaveGame + invoke PrintCheatApplied, OFFSET cheatJackpotText + mov eax, 1 + ret +cheat_rich: + add bankroll, 250000 + call SaveGame + invoke PrintCheatApplied, OFFSET cheatRichText + call PrintBank + call CheckVictory + mov eax, 1 + ret +cheat_double: + mov eax, bankroll + add bankroll, eax + call SaveGame + invoke PrintCheatApplied, OFFSET cheatDoubleText + call PrintBank + call CheckVictory + mov eax, 1 + ret +cheat_poor: + mov bankroll, 1 + call SaveGame + invoke PrintCheatApplied, OFFSET cheatPoorText + call PrintBank + mov eax, 1 + ret +cheat_shop: + add bankroll, 30000 + call SaveGame + invoke PrintCheatApplied, OFFSET cheatShopText + call PrintBank + call CheckVictory + mov eax, 1 + ret +cheat_backs: + mov shopBackOwned, 1FFFh + call SaveGame + invoke PrintCheatApplied, OFFSET cheatBacksText + mov eax, 1 + ret +cheat_max_charm: + mov shopCharmLevel, 5 + mov shopCharmUses, 1 + call SaveGame + invoke PrintCheatApplied, OFFSET cheatCharmText + mov eax, 1 + ret +cheat_no_charm: + mov shopCharmLevel, 0 + call SaveGame + invoke PrintCheatApplied, OFFSET cheatNoCharmText + mov eax, 1 + ret +cheat_ach: + mov achievements, 7FFFFh + call SaveGame + invoke PrintCheatApplied, OFFSET cheatAchText + mov eax, 1 + ret +ApplyCheatCode ENDP + +; --- ReadBetInput: ââîä ïîëüçîâàòåëÿ è ðàçáîð ââåäåííûõ äàííûõ --- +ReadBetInput PROC uses ebx ecx edx esi edi + mov ecx, 32 + mov edi, OFFSET cheatBuffer + xor eax, eax + rep stosb + + xor ebx, ebx ; parsed numeric bet + xor esi, esi ; stored input length + xor edi, edi ; 0 = number, 1 = cheat/code +read_bet_loop: + invoke ReadFile, hIn, ADDR inputBuffer, 1, ADDR charsRead, 0 + cmp charsRead, 0 + je read_bet_finish + movzx eax, byte ptr inputBuffer + cmp al, 13 + je read_bet_drain_lf + cmp al, 10 + je read_bet_finish + cmp al, ' ' + je read_bet_loop + cmp al, 9 + je read_bet_loop + + cmp al, 'a' + jb read_bet_store + cmp al, 'z' + ja read_bet_store + sub al, 20h + +read_bet_store: + cmp esi, 31 + jae read_bet_after_store + mov cheatBuffer[esi], al +read_bet_after_store: + inc esi + + cmp edi, 0 + jne read_bet_loop + cmp al, '0' + jb read_bet_mark_code + cmp al, '9' + ja read_bet_mark_code + movzx edx, al + sub edx, '0' + imul ebx, ebx, 10 + add ebx, edx + jmp read_bet_loop + +read_bet_mark_code: + mov edi, 1 + jmp read_bet_loop + +read_bet_drain_lf: + invoke ReadFile, hIn, ADDR inputBuffer, 1, ADDR charsRead, 0 + cmp charsRead, 0 + je read_bet_finish + movzx eax, byte ptr inputBuffer + cmp al, 10 + jne read_bet_drain_lf + +read_bet_finish: + cmp esi, 0 + je read_bet_empty + cmp edi, 0 + jne read_bet_cheat + mov eax, ebx + ret + +read_bet_cheat: + invoke ApplyCheatCode, OFFSET cheatBuffer + cmp eax, 1 + je read_bet_cheat_ok + mov eax, 0FFFFFFFEh + ret +read_bet_cheat_ok: + mov eax, 0FFFFFFFFh + ret +read_bet_empty: + xor eax, eax + ret +ReadBetInput ENDP + +; --- Pause: ââîä ïîëüçîâàòåëÿ è ðàçáîð ââåäåííûõ äàííûõ --- +Pause PROC + invoke PrintStr, OFFSET pauseText + call ReadAnyKey + ret +Pause ENDP + +; --- PrintBank: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintBank PROC + invoke PrintStr, OFFSET bankText + invoke PrintMoney, bankroll + invoke PrintStr, OFFSET nl + ret +PrintBank ENDP +; --- PrintGoal: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintGoal PROC + invoke SetColor, COLOR_TITLE + invoke PrintStr, OFFSET goalText + call ResetColor + invoke PrintMoney, targetBank + invoke PrintStr, OFFSET nl + ret +PrintGoal ENDP + +; --- ResetProfileDefaults: àêêàóíòû, ôàéëû ñîõðàíåíèé è çàãðóçêà ïðîôèëÿ --- +ResetProfileDefaults PROC uses ecx edi + mov bankroll, 10000 + mov targetBank, 50000 + mov gamesPlayed, 0 + mov gamesWon, 0 + mov gamesLost, 0 + mov gamesDrawn, 0 + mov bestWin, 0 + mov bestLoss, 0 + mov aiDifficulty, 2 + mov cheatLuckyWin, 0 + mov cheatGodMode, 0 + mov cheatSlotJackpot, 0 + mov settingsVolume, 10 + mov secretEndingSeen, 0 + mov vipTaxAmount, 0 + mov bankRecovered, 0 + mov shopBackOwned, 1 + mov shopBackStyle, 0 + mov shopCharmLevel, 0 + mov shopCharmUses, 0 + mov achievements, 0 + mov casinoSuspicion, 0 + mov stressLevel, 0 + mov lastGameResult, 0 + mov currentGameId, 0 + mov ecx, 11 + mov edi, OFFSET gameStatsPlayed +reset_game_stats_loop: + mov dword ptr [edi], 0 + add edi, 4 + loop reset_game_stats_loop + mov ecx, 11 + mov edi, OFFSET gameStatsWon +reset_game_won_loop: + mov dword ptr [edi], 0 + add edi, 4 + loop reset_game_won_loop + mov ecx, 11 + mov edi, OFFSET gameStatsLost +reset_game_lost_loop: + mov dword ptr [edi], 0 + add edi, 4 + loop reset_game_lost_loop + mov ecx, 11 + mov edi, OFFSET gameStatsDraw +reset_game_draw_loop: + mov dword ptr [edi], 0 + add edi, 4 + loop reset_game_draw_loop + ret +ResetProfileDefaults ENDP + +; --- ReadAccountName: ââîä ïîëüçîâàòåëÿ è ðàçáîð ââåäåííûõ äàííûõ --- +; --- CopyCString: êîïèðîâàíèå ASCIIZ-ñòðîêè --- +CopyCString PROC uses eax esi edi, pDst:DWORD, pSrc:DWORD + mov edi, pDst + mov esi, pSrc +copy_cstring_loop: + mov al, [esi] + mov [edi], al + inc esi + inc edi + cmp al, 0 + jne copy_cstring_loop + ret +CopyCString ENDP + +; --- AppendCString: äîïèñûâàåò ASCIIZ-ñòðîêó â êîíåö áóôåðà --- +AppendCString PROC uses eax esi edi, pDst:DWORD, pSrc:DWORD + mov edi, pDst +append_find_end: + cmp byte ptr [edi], 0 + je append_copy_start + inc edi + jmp append_find_end +append_copy_start: + mov esi, pSrc +append_copy_loop: + mov al, [esi] + mov [edi], al + inc esi + inc edi + cmp al, 0 + jne append_copy_loop + ret +AppendCString ENDP + +; --- BuildAppDataDir: ïóòü ê %APPDATA%\AssemblerCasino --- +BuildAppDataDir PROC uses eax + mov appDataReady, 0 + invoke GetEnvironmentVariableA, OFFSET appDataEnvName, OFFSET saveDirPath, 220 + cmp eax, 0 + je build_appdata_done + cmp eax, 220 + jae build_appdata_done + invoke AppendCString, OFFSET saveDirPath, OFFSET appDataSubDir + invoke CreateDirectoryA, OFFSET saveDirPath, 0 + mov appDataReady, 1 +build_appdata_done: + ret +BuildAppDataDir ENDP + +; --- BuildSaveFullPath: ïîëíûé ïóòü òåêóùåãî àêêàóíòà --- +BuildSaveFullPath PROC + call BuildAppDataDir + cmp appDataReady, 1 + jne build_save_local + invoke CopyCString, OFFSET saveFullPath, OFFSET saveDirPath + invoke AppendCString, OFFSET saveFullPath, OFFSET pathSlashText + invoke AppendCString, OFFSET saveFullPath, OFFSET saveFileName + ret +build_save_local: + invoke CopyCString, OFFSET saveFullPath, OFFSET saveFileName + ret +BuildSaveFullPath ENDP + +; --- BuildAccountPatternFull: ìàñêà ïîèñêà àêêàóíòîâ --- +BuildAccountPatternFull PROC + call BuildAppDataDir + cmp appDataReady, 1 + jne build_pattern_local + invoke CopyCString, OFFSET accountPatternFull, OFFSET saveDirPath + invoke AppendCString, OFFSET accountPatternFull, OFFSET pathSlashText + invoke AppendCString, OFFSET accountPatternFull, OFFSET accountPattern + ret +build_pattern_local: + invoke CopyCString, OFFSET accountPatternFull, OFFSET accountPattern + ret +BuildAccountPatternFull ENDP + +; --- BuildLeaderSavePath: ïîëíûé ïóòü àêêàóíòà äëÿ òàáëèö ëèäåðîâ --- +BuildLeaderSavePath PROC + call BuildAppDataDir + cmp appDataReady, 1 + jne build_leader_local + invoke CopyCString, OFFSET leaderSavePath, OFFSET saveDirPath + invoke AppendCString, OFFSET leaderSavePath, OFFSET pathSlashText + invoke AppendCString, OFFSET leaderSavePath, leaderAccountPtr + ret +build_leader_local: + invoke CopyCString, OFFSET leaderSavePath, leaderAccountPtr + ret +BuildLeaderSavePath ENDP +ReadAccountName PROC uses eax ecx edi + mov ecx, 64 + mov edi, OFFSET saveFileName +clear_account_name: + mov byte ptr [edi], 0 + inc edi + loop clear_account_name + + mov accountNameLen, 0 + mov edi, OFFSET saveFileName +read_account_loop: + invoke ReadFile, hIn, ADDR inputBuffer, 1, ADDR charsRead, 0 + cmp charsRead, 0 + je account_name_done + mov al, byte ptr inputBuffer + cmp al, 13 + je account_name_drain_lf + cmp al, 10 + je account_name_done + + cmp accountNameLen, 50 + jae read_account_loop + cmp al, '0' + jb check_account_upper + cmp al, '9' + jbe store_account_char +check_account_upper: + cmp al, 'A' + jb check_account_lower + cmp al, 'Z' + jbe store_account_char +check_account_lower: + cmp al, 'a' + jb check_account_symbols + cmp al, 'z' + jbe store_account_char +check_account_symbols: + cmp al, '_' + je store_account_char + cmp al, '-' + je store_account_char + jmp read_account_loop +store_account_char: + mov [edi], al + inc edi + inc accountNameLen + jmp read_account_loop + +account_name_drain_lf: + invoke ReadFile, hIn, ADDR inputBuffer, 1, ADDR charsRead, 0 + cmp charsRead, 0 + je account_name_done + mov al, byte ptr inputBuffer + cmp al, 10 + jne account_name_drain_lf + +account_name_done: + cmp accountNameLen, 0 + je account_name_return + mov byte ptr [edi], '.' + inc edi + mov byte ptr [edi], 'd' + inc edi + mov byte ptr [edi], 'a' + inc edi + mov byte ptr [edi], 't' + inc edi + mov byte ptr [edi], 0 +account_name_return: + ret +ReadAccountName ENDP + +; --- AskAccountName: àêêàóíòû, ôàéëû ñîõðàíåíèé è çàãðóçêà ïðîôèëÿ --- +AskAccountName PROC +ask_account_name_again: + invoke PrintStr, OFFSET accountPromptText + call ReadAccountName + cmp accountNameLen, 0 + jne account_name_ok + invoke PrintStr, OFFSET accountBadText + jmp ask_account_name_again +account_name_ok: + ret +AskAccountName ENDP + +; --- CopyFindAccountName: àêêàóíòû, ôàéëû ñîõðàíåíèé è çàãðóçêà ïðîôèëÿ --- +CopyFindAccountName PROC uses eax ecx esi edi + mov eax, accountCount + shl eax, 6 + mov edi, OFFSET accountList + add edi, eax + mov esi, OFFSET findData + add esi, 44 + mov ecx, 63 +copy_find_name_loop: + mov al, [esi] + mov [edi], al + cmp al, 0 + je copy_find_name_done + inc esi + inc edi + loop copy_find_name_loop + mov byte ptr [edi], 0 +copy_find_name_done: + ret +CopyFindAccountName ENDP + +; --- CopySelectedAccountName: àêêàóíòû, ôàéëû ñîõðàíåíèé è çàãðóçêà ïðîôèëÿ --- +CopySelectedAccountName PROC uses eax ecx esi edi + mov eax, selectedAccount + dec eax + shl eax, 6 + mov esi, OFFSET accountList + add esi, eax + mov edi, OFFSET saveFileName + mov ecx, 63 +copy_selected_name_loop: + mov al, [esi] + mov [edi], al + cmp al, 0 + je copy_selected_name_done + inc esi + inc edi + loop copy_selected_name_loop + mov byte ptr [edi], 0 +copy_selected_name_done: + ret +CopySelectedAccountName ENDP + +; --- CollectAccounts: àêêàóíòû, ôàéëû ñîõðàíåíèé è çàãðóçêà ïðîôèëÿ --- +CollectAccounts PROC uses eax + mov accountCount, 0 + call BuildAccountPatternFull + invoke FindFirstFileA, OFFSET accountPatternFull, OFFSET findData + cmp eax, INVALID_HANDLE_VALUE + je collect_accounts_done + mov findHandle, eax +collect_accounts_loop: + mov eax, DWORD PTR [findData] + test eax, 10h + jne collect_accounts_next + cmp accountCount, 20 + jae collect_accounts_close + call CopyFindAccountName + inc accountCount +collect_accounts_next: + invoke FindNextFileA, findHandle, OFFSET findData + cmp eax, 0 + jne collect_accounts_loop +collect_accounts_close: + invoke FindClose, findHandle +collect_accounts_done: + ret +CollectAccounts ENDP + +; --- PrintAccountList: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintAccountList PROC uses eax ebx + invoke PrintStr, OFFSET accountListTitle + mov ebx, 0 +print_account_loop: + cmp ebx, accountCount + jae print_account_done + mov eax, ebx + inc eax + invoke PrintUInt, eax + invoke PrintStr, OFFSET dotSpaceText + mov eax, ebx + shl eax, 6 + add eax, OFFSET accountList + invoke PrintStr, eax + invoke PrintStr, OFFSET nl + inc ebx + jmp print_account_loop +print_account_done: + ret +PrintAccountList ENDP + +; --- SelectExistingAccount: àêêàóíòû, ôàéëû ñîõðàíåíèé è çàãðóçêà ïðîôèëÿ --- +SelectExistingAccount PROC +select_account_again: + call ClearView + invoke PrintTitleColor, OFFSET titleText + call CollectAccounts + cmp accountCount, 0 + jne accounts_available + invoke PrintStr, OFFSET accountNoFilesText + call Pause + xor eax, eax + ret +accounts_available: + call PrintAccountList + invoke PrintStr, OFFSET accountSelectText + call ReadUInt + cmp eax, 1 + jb select_account_bad + cmp eax, accountCount + ja select_account_bad + mov selectedAccount, eax + call CopySelectedAccountName + mov eax, 1 + ret +select_account_bad: + invoke PrintStr, OFFSET badChoiceText + call Pause + jmp select_account_again +SelectExistingAccount ENDP + +; --- AccountMenu: àêêàóíòû, ôàéëû ñîõðàíåíèé è çàãðóçêà ïðîôèëÿ --- +AccountMenu PROC +account_menu_loop: + call ClearView + invoke PrintTitleColor, OFFSET titleText + invoke PrintStr, OFFSET accountMenuText + invoke PrintStr, OFFSET choiceText + call ReadKey + cmp al, '1' + je account_login + cmp al, '2' + je account_create + invoke PrintStr, OFFSET badChoiceText + call Pause + jmp account_menu_loop + +account_login: + call ResetProfileDefaults + call SelectExistingAccount + cmp eax, 1 + jne account_menu_loop + call LoadSave + invoke PrintStr, OFFSET accountLoginText + invoke PrintStr, OFFSET saveFileName + invoke PrintStr, OFFSET nl + invoke Sleep, 700 + ret + +account_create: + call ClearView + invoke PrintTitleColor, OFFSET titleText + call ResetProfileDefaults + call AskAccountName + call SaveGame + invoke PrintStr, OFFSET accountCreateText + invoke PrintStr, OFFSET saveFileName + invoke PrintStr, OFFSET nl + invoke Sleep, 700 + ret +AccountMenu ENDP +; --- CalcSaveSignature: ïðîñòàÿ ïîäïèñü ñîõðàíåíèÿ îò ðó÷íîé ïðàâêè --- +CalcSaveSignature PROC uses ecx esi edx + mov esi, OFFSET saveBuffer + mov ecx, SAVE_SIGN_SIZE / 4 + mov eax, SAVE_SALT +save_signature_loop: + rol eax, 5 + xor eax, [esi] + mov edx, eax + shr edx, 16 + xor eax, edx + add eax, 9E3779B9h + add esi, 4 + loop save_signature_loop + ret +CalcSaveSignature ENDP +; --- SaveGame: àêêàóíòû, ôàéëû ñîõðàíåíèé è çàãðóçêà ïðîôèëÿ --- +SaveGame PROC uses eax ecx esi edi + mov DWORD PTR [saveBuffer], SAVE_MAGIC + mov eax, bankroll + mov DWORD PTR [saveBuffer+4], eax + mov eax, targetBank + mov DWORD PTR [saveBuffer+36], eax + mov eax, gamesPlayed + mov DWORD PTR [saveBuffer+8], eax + mov eax, gamesWon + mov DWORD PTR [saveBuffer+12], eax + mov eax, gamesLost + mov DWORD PTR [saveBuffer+16], eax + mov eax, gamesDrawn + mov DWORD PTR [saveBuffer+20], eax + mov eax, bestWin + mov DWORD PTR [saveBuffer+24], eax + mov eax, bestLoss + mov DWORD PTR [saveBuffer+28], eax + mov eax, aiDifficulty + mov DWORD PTR [saveBuffer+32], eax + mov eax, shopBackOwned + mov DWORD PTR [saveBuffer+40], eax + mov eax, shopBackStyle + mov DWORD PTR [saveBuffer+44], eax + mov eax, shopCharmLevel + mov DWORD PTR [saveBuffer+48], eax + mov eax, achievements + mov DWORD PTR [saveBuffer+52], eax + mov eax, shopCharmUses + mov DWORD PTR [saveBuffer+56], eax + mov eax, casinoSuspicion + mov DWORD PTR [saveBuffer+236], eax + mov eax, dailyDateKey + mov DWORD PTR [saveBuffer+240], eax + mov eax, dailyRewardMask + mov DWORD PTR [saveBuffer+244], eax + mov eax, dailyProgressPacked + mov DWORD PTR [saveBuffer+248], eax + mov eax, dailyTaskPacked + mov DWORD PTR [saveBuffer+252], eax + mov eax, settingsVolume + mov DWORD PTR [saveBuffer+256], eax + mov eax, secretEndingSeen + mov DWORD PTR [saveBuffer+260], eax + mov eax, settingsLowSpec + mov DWORD PTR [saveBuffer+264], eax + mov eax, settingsIntroEnabled + mov DWORD PTR [saveBuffer+268], eax + mov eax, settingsDbdWindowEnabled + mov DWORD PTR [saveBuffer+272], eax + mov ecx, 44 + mov esi, OFFSET gameStatsPlayed + mov edi, OFFSET saveBuffer+60 +save_stats_played_loop: + mov eax, [esi] + mov [edi], eax + add esi, 4 + add edi, 4 + loop save_stats_played_loop + call CalcSaveSignature + mov DWORD PTR [saveBuffer+SAVE_SIGN_SIZE], eax + call BuildSaveFullPath + invoke CreateFileA, OFFSET saveFullPath, GENERIC_WRITE, 0, 0, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0 + cmp eax, INVALID_HANDLE_VALUE + je save_done + mov saveHandle, eax + invoke WriteFile, saveHandle, ADDR saveBuffer, SAVE_FILE_SIZE, ADDR charsWritten, 0 + invoke CloseHandle, saveHandle +save_done: + ret +SaveGame ENDP + +; --- LoadSave: àêêàóíòû, ôàéëû ñîõðàíåíèé è çàãðóçêà ïðîôèëÿ --- +LoadSave PROC uses eax ecx esi edi + mov dailyDateKey, 0 + mov dailyRewardMask, 0 + mov dailyProgressPacked, 0 + mov dailyTaskPacked, 0 + mov settingsVolume, 10 ; load default for old saves + mov secretEndingSeen, 0 + mov settingsLowSpec, 0 + mov settingsIntroEnabled, 1 + mov settingsDbdWindowEnabled, 1 + mov saveTampered, 0 + call BuildSaveFullPath + invoke CreateFileA, OFFSET saveFullPath, GENERIC_READ, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0 + cmp eax, INVALID_HANDLE_VALUE + jne load_file_opened + cmp appDataReady, 1 + jne load_done + invoke CreateFileA, OFFSET saveFileName, GENERIC_READ, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0 + cmp eax, INVALID_HANDLE_VALUE + je load_done +load_file_opened: + mov saveHandle, eax + invoke ReadFile, saveHandle, ADDR saveBuffer, SAVE_FILE_SIZE, ADDR charsRead, 0 + invoke CloseHandle, saveHandle + cmp charsRead, 32 + jb load_done + mov eax, DWORD PTR [saveBuffer] + cmp eax, SAVE_MAGIC + jne load_done + cmp charsRead, SAVE_FILE_SIZE + jb load_signature_ok + mov edx, DWORD PTR [saveBuffer+SAVE_SIGN_SIZE] + call CalcSaveSignature + cmp eax, edx + jne load_tampered +load_signature_ok: + mov eax, DWORD PTR [saveBuffer+4] + mov bankroll, eax + cmp eax, 0 + jne load_bank_ok + mov bankroll, 10000 + mov bankRecovered, 1 +load_bank_ok: + mov eax, DWORD PTR [saveBuffer+8] + mov gamesPlayed, eax + mov eax, DWORD PTR [saveBuffer+12] + mov gamesWon, eax + mov eax, DWORD PTR [saveBuffer+16] + mov gamesLost, eax + mov eax, DWORD PTR [saveBuffer+20] + mov gamesDrawn, eax + mov eax, DWORD PTR [saveBuffer+24] + mov bestWin, eax + mov eax, DWORD PTR [saveBuffer+28] + mov bestLoss, eax + cmp charsRead, 36 + jb load_done + mov eax, DWORD PTR [saveBuffer+32] + cmp eax, 1 + jb load_done + cmp eax, 3 + ja load_done + mov aiDifficulty, eax + cmp charsRead, 40 + jb load_done + mov eax, DWORD PTR [saveBuffer+36] + cmp eax, 50000 + jb load_done + mov targetBank, eax + cmp charsRead, 52 + jb load_done + mov eax, DWORD PTR [saveBuffer+40] + cmp eax, 0 + je load_done + mov shopBackOwned, eax + mov eax, DWORD PTR [saveBuffer+44] + cmp eax, 12 + ja load_shop_charm + mov shopBackStyle, eax +load_shop_charm: + mov eax, DWORD PTR [saveBuffer+48] + cmp eax, 24 + ja load_done + mov shopCharmLevel, eax + cmp charsRead, 56 + jb load_done + mov eax, DWORD PTR [saveBuffer+52] + mov achievements, eax + cmp charsRead, 60 + jb load_done + mov eax, DWORD PTR [saveBuffer+56] + cmp eax, 8 + ja load_done + mov shopCharmUses, eax + cmp charsRead, 236 + jb load_done + mov ecx, 44 + mov esi, OFFSET saveBuffer+60 + mov edi, OFFSET gameStatsPlayed +load_stats_played_loop: + mov eax, [esi] + mov [edi], eax + add esi, 4 + add edi, 4 + loop load_stats_played_loop + cmp charsRead, 240 + jb load_done + mov eax, DWORD PTR [saveBuffer+236] + cmp eax, 100 + ja load_done + mov casinoSuspicion, eax + cmp charsRead, 252 + jb load_done + mov eax, DWORD PTR [saveBuffer+240] + mov dailyDateKey, eax + mov eax, DWORD PTR [saveBuffer+244] + mov dailyRewardMask, eax + mov eax, DWORD PTR [saveBuffer+248] + mov dailyProgressPacked, eax + cmp charsRead, 256 + jb load_daily_check + mov eax, DWORD PTR [saveBuffer+252] + mov dailyTaskPacked, eax + cmp charsRead, 260 + jb load_daily_check +load_settings_volume: + mov eax, DWORD PTR [saveBuffer+256] + cmp eax, 10 + ja load_secret_seen + mov settingsVolume, eax +load_secret_seen: + cmp charsRead, 264 + jb load_daily_check + mov eax, DWORD PTR [saveBuffer+260] + cmp eax, 1 + ja load_low_spec_setting + mov secretEndingSeen, eax +load_low_spec_setting: + cmp charsRead, 268 + jb load_daily_check + mov eax, DWORD PTR [saveBuffer+264] + cmp eax, 2 + ja load_intro_setting + mov settingsLowSpec, eax +load_intro_setting: + cmp charsRead, 272 + jb load_daily_check + mov eax, DWORD PTR [saveBuffer+268] + cmp eax, 1 + ja load_dbd_setting + mov settingsIntroEnabled, eax +load_dbd_setting: + cmp charsRead, 276 + jb load_daily_check + mov eax, DWORD PTR [saveBuffer+272] + cmp eax, 1 + ja load_daily_check + mov settingsDbdWindowEnabled, eax +load_daily_check: + call DailyCheckDate + jmp load_done +load_tampered: + mov bankroll, 10000 + mov bankRecovered, 1 + mov saveTampered, 1 + jmp load_done +load_done: + ret +LoadSave ENDP + +; --- RegisterGamePlayed: ñòàòèñòèêà, äîñòèæåíèÿ è òàáëèöû ëèäåðîâ --- +RegisterGamePlayed PROC uses eax ebx + mov eax, currentGameId + cmp eax, 1 + jb register_game_played_done + cmp eax, 11 + ja register_game_played_done + dec eax + mov ebx, eax + inc dword ptr gameStatsPlayed[ebx * 4] +register_game_played_done: + ret +RegisterGamePlayed ENDP + +; --- RegisterGameWin: ñòàòèñòèêà, äîñòèæåíèÿ è òàáëèöû ëèäåðîâ --- +RegisterGameWin PROC uses eax ebx + call RegisterGamePlayed + mov eax, currentGameId + cmp eax, 1 + jb register_game_win_done + cmp eax, 10 + ja register_game_win_done + dec eax + mov ebx, eax + inc dword ptr gameStatsWon[ebx * 4] +register_game_win_done: + ret +RegisterGameWin ENDP + +; --- RegisterGameLoss: ñòàòèñòèêà, äîñòèæåíèÿ è òàáëèöû ëèäåðîâ --- +RegisterGameLoss PROC uses eax ebx + call RegisterGamePlayed + mov eax, currentGameId + cmp eax, 1 + jb register_game_loss_done + cmp eax, 10 + ja register_game_loss_done + dec eax + mov ebx, eax + inc dword ptr gameStatsLost[ebx * 4] +register_game_loss_done: + ret +RegisterGameLoss ENDP + +; --- RegisterGameDraw: ñòàòèñòèêà, äîñòèæåíèÿ è òàáëèöû ëèäåðîâ --- +RegisterGameDraw PROC uses eax ebx + call RegisterGamePlayed + mov eax, currentGameId + cmp eax, 1 + jb register_game_draw_done + cmp eax, 10 + ja register_game_draw_done + dec eax + mov ebx, eax + inc dword ptr gameStatsDraw[ebx * 4] +register_game_draw_done: + ret +RegisterGameDraw ENDP +; --- RegisterWin: ñòàòèñòèêà, äîñòèæåíèÿ è òàáëèöû ëèäåðîâ --- +RegisterWin PROC uses eax, amount:DWORD + inc gamesPlayed + inc gamesWon + call DailyAddWin + call RegisterGameWin + mov eax, amount + cmp eax, bestWin + jbe register_win_save + mov bestWin, eax +register_win_save: + call SaveGame + ret +RegisterWin ENDP + +; --- RegisterLoss: ñòàòèñòèêà, äîñòèæåíèÿ è òàáëèöû ëèäåðîâ --- +RegisterLoss PROC uses eax, amount:DWORD + inc gamesPlayed + inc gamesLost + call DailyAddLoss + call RegisterGameLoss + mov eax, amount + cmp eax, bestLoss + jbe register_loss_save + mov bestLoss, eax +register_loss_save: + invoke UnlockAchievement, 2, OFFSET achFirstLossName +register_loss_ach_done: + call SaveGame + ret +RegisterLoss ENDP + +; --- RegisterDraw: ñòàòèñòèêà, äîñòèæåíèÿ è òàáëèöû ëèäåðîâ --- +RegisterDraw PROC + inc gamesPlayed + inc gamesDrawn + call DailyAddDraw + call RegisterGameDraw + call SaveGame + ret +RegisterDraw ENDP + +; --- DailyTaskGoal: öåëü çàäàíèÿ èç ïóëà 40 --- +DailyTaskGoal PROC taskId:DWORD + mov eax, taskId + cmp eax, 2 + je daily_goal_5 + cmp eax, 3 + je daily_goal_7 + cmp eax, 5 + je daily_goal_2 + cmp eax, 6 + je daily_goal_3 + cmp eax, 8 + je daily_goal_2 + cmp eax, 11 + je daily_goal_3 + cmp eax, 35 + je daily_goal_2 + cmp eax, 37 + je daily_goal_3 + cmp eax, 38 + je daily_goal_2 + cmp eax, 39 + je daily_goal_2 + mov eax, 1 + ret +daily_goal_2: + mov eax, 2 + ret +daily_goal_3: + mov eax, 3 + ret +daily_goal_5: + mov eax, 5 + ret +daily_goal_7: + mov eax, 7 + ret +DailyTaskGoal ENDP + +; --- DailyTaskReward: äåíåæíàÿ íàãðàäà çàäàíèÿ èç ïóëà 40 --- +DailyTaskReward PROC taskId:DWORD + mov eax, taskId + cmp eax, 12 + je daily_reward_big + cmp eax, 30 + je daily_reward_big + cmp eax, 34 + je daily_reward_big + cmp eax, 36 + je daily_reward_big + cmp eax, 38 + je daily_reward_mid + cmp eax, 40 + je daily_reward_mid + cmp eax, 10 + jb daily_reward_small + cmp eax, 28 + jbe daily_reward_mid + mov eax, 2000 + ret +daily_reward_small: + mov eax, 1000 + ret +daily_reward_mid: + mov eax, 2500 + ret +daily_reward_big: + mov eax, 4000 + ret +DailyTaskReward ENDP + +; --- DailyGenerateTasks: âûáèðàåò 3 çàäàíèÿ èç 40 ïî êàëåíäàðíîé äàòå --- +DailyGenerateTasks PROC uses eax ebx ecx edx + mov eax, dailyDateKey + xor edx, edx + mov ebx, 40 + div ebx + inc edx + mov byte ptr [dailyTaskPacked], dl + + mov eax, dailyDateKey + xor edx, edx + mov ebx, 3 + div ebx + add eax, 17 + xor edx, edx + mov ebx, 40 + div ebx + inc edx + mov al, dl + cmp al, byte ptr [dailyTaskPacked] + jne daily_gen_store2 + inc al + cmp al, 41 + jb daily_gen_store2 + mov al, 1 +daily_gen_store2: + mov byte ptr [dailyTaskPacked+1], al + + mov eax, dailyDateKey + xor edx, edx + mov ebx, 7 + div ebx + add eax, 29 + xor edx, edx + mov ebx, 40 + div ebx + inc edx + mov al, dl +daily_gen_unique3: + cmp al, byte ptr [dailyTaskPacked] + je daily_gen_inc3 + cmp al, byte ptr [dailyTaskPacked+1] + je daily_gen_inc3 + jmp daily_gen_store3 +daily_gen_inc3: + inc al + cmp al, 41 + jb daily_gen_unique3 + mov al, 1 + jmp daily_gen_unique3 +daily_gen_store3: + mov byte ptr [dailyTaskPacked+2], al + mov byte ptr [dailyTaskPacked+3], 0 + ret +DailyGenerateTasks ENDP + +; --- DailyCheckDate: êàëåíäàðíûå åæåäíåâíûå çàäàíèÿ --- +DailyCheckDate PROC uses eax ebx + invoke GetLocalTime, OFFSET systemTime + movzx eax, word ptr [systemTime] + imul eax, eax, 10000 + movzx ebx, word ptr [systemTime+2] + imul ebx, ebx, 100 + add eax, ebx + movzx ebx, word ptr [systemTime+6] + add eax, ebx + cmp dailyDateKey, eax + je daily_date_has_date + mov dailyDateKey, eax + mov dailyRewardMask, 0 + mov dailyProgressPacked, 0 + mov dailyTaskPacked, 0 + call DailyGenerateTasks + ret +daily_date_has_date: + cmp byte ptr [dailyTaskPacked], 0 + jne daily_date_done + call DailyGenerateTasks +daily_date_done: + ret +DailyCheckDate ENDP + +; --- DailyTaskMatches: ïðîâåðÿåò, ðåàãèðóåò ëè çàäàíèå íà ñîáûòèå --- +; eventType: 1 played, 2 win, 3 loss, 4 draw, 5 bet>=5000, 6 bet>=10000 +DailyTaskMatches PROC uses ebx ecx edx, taskId:DWORD, eventType:DWORD + mov eax, taskId + mov ebx, eventType + cmp eax, 1 + je daily_match_play_any + cmp eax, 2 + je daily_match_play_any + cmp eax, 3 + je daily_match_play_any + cmp eax, 4 + je daily_match_win_any + cmp eax, 5 + je daily_match_win_any + cmp eax, 6 + je daily_match_win_any + cmp eax, 7 + je daily_match_loss_any + cmp eax, 8 + je daily_match_loss_any + cmp eax, 9 + je daily_match_draw_any + cmp eax, 10 + je daily_match_bet5 + cmp eax, 11 + je daily_match_bet5 + cmp eax, 12 + je daily_match_bet10 + + cmp eax, 13 + jb daily_match_none + cmp eax, 34 + ja daily_match_groups + mov ecx, eax + sub ecx, 13 + shr ecx, 1 + inc ecx + ; map compact game order 1..11 to actual currentGameId + cmp ecx, 3 + jb daily_match_game_ready + cmp ecx, 3 + je daily_match_game_clover + cmp ecx, 4 + je daily_match_game_rr + cmp ecx, 5 + je daily_match_game_skulls + cmp ecx, 6 + je daily_match_game_coin + cmp ecx, 7 + je daily_match_game_dice + cmp ecx, 8 + je daily_match_game_casino_roulette + cmp ecx, 9 + je daily_match_game_slot + cmp ecx, 10 + je daily_match_game_durak + mov ecx, 11 + jmp daily_match_game_ready +daily_match_game_clover: + mov ecx, 3 + jmp daily_match_game_ready +daily_match_game_rr: + mov ecx, 4 + jmp daily_match_game_ready +daily_match_game_skulls: + mov ecx, 5 + jmp daily_match_game_ready +daily_match_game_coin: + mov ecx, 6 + jmp daily_match_game_ready +daily_match_game_dice: + mov ecx, 7 + jmp daily_match_game_ready +daily_match_game_casino_roulette: + mov ecx, 8 + jmp daily_match_game_ready +daily_match_game_slot: + mov ecx, 9 + jmp daily_match_game_ready +daily_match_game_durak: + mov ecx, 10 +daily_match_game_ready: + cmp currentGameId, ecx + jne daily_match_none + test eax, 1 + jnz daily_match_play_any + jmp daily_match_win_any + +daily_match_groups: + cmp eax, 35 + je daily_match_card_play + cmp eax, 36 + je daily_match_card_win + cmp eax, 37 + je daily_match_luck_play + cmp eax, 38 + je daily_match_luck_win + cmp eax, 39 + je daily_match_risk_play + cmp eax, 40 + je daily_match_risk_win + jmp daily_match_none + +daily_match_play_any: + cmp ebx, 1 + je daily_match_yes + jmp daily_match_none +daily_match_win_any: + cmp ebx, 2 + je daily_match_yes + jmp daily_match_none +daily_match_loss_any: + cmp ebx, 3 + je daily_match_yes + jmp daily_match_none +daily_match_draw_any: + cmp ebx, 4 + je daily_match_yes + jmp daily_match_none +daily_match_bet5: + cmp ebx, 5 + je daily_match_yes + jmp daily_match_none +daily_match_bet10: + cmp ebx, 6 + je daily_match_yes + jmp daily_match_none + +daily_match_card_play: + cmp ebx, 1 + jne daily_match_none + cmp currentGameId, 1 + je daily_match_yes + cmp currentGameId, 2 + je daily_match_yes + cmp currentGameId, 10 + je daily_match_yes + jmp daily_match_none +daily_match_card_win: + cmp ebx, 2 + jne daily_match_none + cmp currentGameId, 1 + je daily_match_yes + cmp currentGameId, 2 + je daily_match_yes + cmp currentGameId, 10 + je daily_match_yes + jmp daily_match_none +daily_match_luck_play: + cmp ebx, 1 + jne daily_match_none + cmp currentGameId, 3 + je daily_match_yes + cmp currentGameId, 6 + je daily_match_yes + cmp currentGameId, 7 + je daily_match_yes + cmp currentGameId, 8 + je daily_match_yes + cmp currentGameId, 9 + je daily_match_yes + jmp daily_match_none +daily_match_luck_win: + cmp ebx, 2 + jne daily_match_none + cmp currentGameId, 3 + je daily_match_yes + cmp currentGameId, 6 + je daily_match_yes + cmp currentGameId, 7 + je daily_match_yes + cmp currentGameId, 8 + je daily_match_yes + cmp currentGameId, 9 + je daily_match_yes + jmp daily_match_none +daily_match_risk_play: + cmp ebx, 1 + jne daily_match_none + cmp currentGameId, 4 + je daily_match_yes + cmp currentGameId, 5 + je daily_match_yes + cmp currentGameId, 11 + je daily_match_yes + jmp daily_match_none +daily_match_risk_win: + cmp ebx, 2 + jne daily_match_none + cmp currentGameId, 4 + je daily_match_yes + cmp currentGameId, 5 + je daily_match_yes + cmp currentGameId, 11 + je daily_match_yes + jmp daily_match_none + +daily_match_yes: + mov eax, 1 + ret +daily_match_none: + xor eax, eax + ret +DailyTaskMatches ENDP + +; --- DailyApplyEvent: ïðèìåíÿåò èãðîâîå ñîáûòèå ê òð¸ì çàäàíèÿì äíÿ --- +DailyApplyEvent PROC uses eax ebx ecx edx esi, eventType:DWORD + call DailyCheckDate + mov esi, 0 +daily_apply_loop: + cmp esi, 3 + jae daily_apply_done + movzx eax, byte ptr [dailyTaskPacked + esi] + cmp eax, 0 + je daily_apply_next + mov ebx, eax + invoke DailyTaskMatches, ebx, eventType + cmp eax, 1 + jne daily_apply_next + movzx ecx, byte ptr [dailyProgressPacked + esi] + invoke DailyTaskGoal, ebx + cmp ecx, eax + jae daily_apply_next + inc byte ptr [dailyProgressPacked + esi] +daily_apply_next: + inc esi + jmp daily_apply_loop +daily_apply_done: + ret +DailyApplyEvent ENDP + +DailyAddPlayed PROC + invoke DailyApplyEvent, 1 + ret +DailyAddPlayed ENDP + +DailyAddWin PROC + call DailyAddPlayed + invoke DailyApplyEvent, 2 + ret +DailyAddWin ENDP + +DailyAddLoss PROC + call DailyAddPlayed + invoke DailyApplyEvent, 3 + ret +DailyAddLoss ENDP + +DailyAddDraw PROC + call DailyAddPlayed + invoke DailyApplyEvent, 4 + ret +DailyAddDraw ENDP + +DailyAddHighBet PROC + call DailyCheckDate + cmp currentBet, 5000 + jb daily_bet_done + invoke DailyApplyEvent, 5 + cmp currentBet, 10000 + jb daily_bet_done + invoke DailyApplyEvent, 6 +daily_bet_done: + ret +DailyAddHighBet ENDP + +; --- DailyClaimSlot: âûäà÷à íàãðàäû çà îäèí ñëîò åæåäíåâêè --- +DailyClaimSlot PROC uses eax ebx ecx edx, slotIndex:DWORD, maskValue:DWORD + mov eax, dailyRewardMask + and eax, maskValue + cmp eax, 0 + jne daily_claim_slot_done + mov ecx, slotIndex + movzx ebx, byte ptr [dailyTaskPacked + ecx] + cmp ebx, 0 + je daily_claim_slot_done + movzx edx, byte ptr [dailyProgressPacked + ecx] + invoke DailyTaskGoal, ebx + cmp edx, eax + jb daily_claim_slot_done + mov eax, maskValue + or dailyRewardMask, eax + invoke DailyTaskReward, ebx + add bankroll, eax + push eax + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET dailyClaimText + pop eax + invoke PrintUInt, eax + invoke PrintStr, OFFSET nl + call ResetColor +daily_claim_slot_done: + ret +DailyClaimSlot ENDP + +DailyClaimRewards PROC + call DailyCheckDate + invoke DailyClaimSlot, 0, 1 + invoke DailyClaimSlot, 1, 2 + invoke DailyClaimSlot, 2, 4 + call SaveGame + ret +DailyClaimRewards ENDP + +; --- PrintDailySlot: ñòðîêà îäíîãî åæåäíåâíîãî çàäàíèÿ --- +PrintDailySlot PROC uses eax ebx ecx edx, slotIndex:DWORD, maskValue:DWORD + mov ecx, slotIndex + mov eax, ecx + inc eax + invoke PrintUInt, eax + invoke PrintStr, OFFSET dotSpaceText + movzx ebx, byte ptr [dailyTaskPacked + ecx] + cmp ebx, 1 + jb daily_slot_done + cmp ebx, 40 + ja daily_slot_done + mov eax, ebx + dec eax + mov edx, dword ptr [dailyTaskNameTable + eax * 4] + invoke PrintStr, edx + invoke PrintStr, OFFSET dailySlashText + mov ecx, slotIndex + movzx eax, byte ptr [dailyProgressPacked + ecx] + push eax + invoke PrintUInt, eax + invoke PrintStr, OFFSET dailySlashText + invoke DailyTaskGoal, ebx + mov edx, eax + invoke PrintUInt, edx + invoke PrintStr, OFFSET dailyRewardText + invoke DailyTaskReward, ebx + invoke PrintUInt, eax + mov eax, dailyRewardMask + and eax, maskValue + cmp eax, 0 + jne daily_slot_status_done + pop eax + cmp eax, edx + jae daily_slot_status_ready + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET dailyOpenText + call ResetColor + ret +daily_slot_status_ready: + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET dailyReadyText + call ResetColor + ret +daily_slot_status_done: + pop eax + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET dailyDoneText + call ResetColor + ret +daily_slot_done: + ret +PrintDailySlot ENDP + +GameDailyTasks PROC + call ClearView + invoke PrintTitleColor, OFFSET dailyTitle + invoke PrintStr, OFFSET dailyIntro + call DailyClaimRewards + call PrintBank + invoke PrintStr, OFFSET dailyDateText + invoke PrintUInt, dailyDateKey + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET dailyPoolText + invoke PrintDailySlot, 0, 1 + invoke PrintDailySlot, 1, 2 + invoke PrintDailySlot, 2, 4 + call Pause + ret +GameDailyTasks ENDP + +; --- PrintDifficultyName: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintDifficultyName PROC + cmp aiDifficulty, 1 + je print_easy_name + cmp aiDifficulty, 3 + je print_hard_name + invoke PrintStr, OFFSET normalName + ret +print_easy_name: + invoke PrintStr, OFFSET easyName + ret +print_hard_name: + invoke PrintStr, OFFSET hardName + ret +PrintDifficultyName ENDP + +; --- PrintBankLevelName: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintBankLevelName PROC + mov eax, bankroll + cmp eax, 100000 + jae print_level_legend + cmp eax, 50000 + jae print_level_high + cmp eax, 20000 + jae print_level_player + invoke PrintStr, OFFSET bankLevelNewbie + ret +print_level_player: + invoke PrintStr, OFFSET bankLevelPlayer + ret +print_level_high: + invoke PrintStr, OFFSET bankLevelHigh + ret +print_level_legend: + invoke PrintStr, OFFSET bankLevelLegend + ret +PrintBankLevelName ENDP + +; --- PrintBankLevel: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintBankLevel PROC + invoke PrintStr, OFFSET bankLevelText + call PrintBankLevelName + ret +PrintBankLevel ENDP + +; --- ApplySoundVolume: íàñòðîéêè ãðîìêîñòè WinMM, 0-10 --- +ApplySoundVolume PROC uses eax edx + mov eax, settingsVolume + cmp eax, 10 + jb volume_scaled + mov eax, 0FFFFh + jmp volume_pack +volume_scaled: + imul eax, eax, 6553 +volume_pack: + mov edx, eax + shl edx, 16 + or eax, edx + invoke waveOutSetVolume, 0FFFFFFFFh, eax + ret +ApplySoundVolume ENDP +; --- AnimShouldDrawFrame: animation profile frame skipper --- +AnimShouldDrawFrame PROC uses ecx edx + inc animFrameCounter + mov eax, settingsLowSpec + cmp eax, 0 + je anim_draw_yes + cmp eax, 1 + je anim_adaptive_check + mov eax, animFrameCounter + xor edx, edx + mov ecx, 3 + div ecx + cmp edx, 1 + je anim_draw_yes + xor eax, eax + ret +anim_adaptive_check: + mov eax, animFrameCounter + and eax, 1 + cmp eax, 1 + je anim_draw_yes + xor eax, eax + ret +anim_draw_yes: + mov eax, 1 + ret +AnimShouldDrawFrame ENDP + +; --- AnimFrameDelay: keeps scene timing while reducing redraws --- +AnimFrameDelay PROC baseDelay:DWORD + mov eax, baseDelay + cmp settingsLowSpec, 1 + je anim_delay_adaptive + cmp settingsLowSpec, 2 + je anim_delay_stable + ret +anim_delay_adaptive: + shl eax, 1 + ret +anim_delay_stable: + imul eax, eax, 3 + ret +AnimFrameDelay ENDP + +; --- PrintVIPStatus: VIP-ñòàòóñ ïî ðàçìåðó áàíêà --- +PrintVIPStatus PROC + invoke PrintStr, OFFSET vipStatusText + mov eax, bankroll + cmp eax, 500000 + jae print_vip_diamond + cmp eax, 250000 + jae print_vip_gold + cmp eax, 100000 + jae print_vip_silver + invoke PrintStr, OFFSET vipBronzeText + ret +print_vip_silver: + invoke SetColor, COLOR_CARD + invoke PrintStr, OFFSET vipSilverText + call ResetColor + ret +print_vip_gold: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET vipGoldText + call ResetColor + ret +print_vip_diamond: + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET vipDiamondText + call ResetColor + ret +PrintVIPStatus ENDP + +; --- ApplyVIPTax: êàçèíî áåðåò êîìèññèþ ñ áîëüøèõ VIP-ñòàâîê --- +ApplyVIPTax PROC uses eax ebx edx + mov vipTaxAmount, 0 + mov eax, bankroll + cmp eax, 100000 + jb vip_tax_done + mov eax, currentBet + cmp bankroll, 500000 + jae vip_tax_diamond + cmp bankroll, 250000 + jae vip_tax_gold + mov ebx, 1 + jmp vip_tax_calc +vip_tax_gold: + mov ebx, 2 + jmp vip_tax_calc +vip_tax_diamond: + mov ebx, 3 +vip_tax_calc: + mul ebx + mov ebx, 100 + xor edx, edx + div ebx + cmp eax, 0 + jne vip_tax_have + mov eax, 1 +vip_tax_have: + mov vipTaxAmount, eax + cmp bankroll, eax + jae vip_tax_sub + mov eax, bankroll + mov vipTaxAmount, eax +vip_tax_sub: + sub bankroll, eax + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET vipTaxText + invoke PrintUInt, vipTaxAmount + invoke PrintStr, OFFSET nl + call ResetColor + call SaveGame +vip_tax_done: + ret +ApplyVIPTax ENDP + +; --- CheckSecretEnding: ñåêðåòíàÿ êîíöîâêà çà ïîëíîå çàêðûòèå êàçèíî --- +CheckSecretEnding PROC uses eax + cmp secretEndingSeen, 0 + jne secret_ending_done + mov eax, achievements + and eax, 3FFFFh + cmp eax, 3FFFFh + jne secret_ending_done + mov eax, shopBackOwned + and eax, 1FFFh + cmp eax, 1FFFh + jne secret_ending_done + cmp bankroll, 1000000 + jb secret_ending_done + mov secretEndingSeen, 1 + call SaveGame + call ClearView + call PlayVictorySound + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET secretEndingTitle + invoke PrintStr, OFFSET secretEndingArt1 + invoke Sleep, 500 + invoke PrintStr, OFFSET secretEndingArt2 + call ResetColor + invoke PrintStr, OFFSET secretEndingBody + call Pause +secret_ending_done: + ret +CheckSecretEnding ENDP + +; --- GameSettings: íàñòðîéêè çâóêà è èãðîâûõ îïöèé --- +GameSettings PROC +settings_loop: + call ClearView + invoke PrintTitleColor, OFFSET settingsTitle + invoke PrintStr, OFFSET settingsVolumeText + invoke PrintUInt, settingsVolume + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET settingsVolumeHint + call PrintVIPStatus + + invoke PrintStr, OFFSET settingsModeText + cmp settingsLowSpec, 0 + je settings_print_cinematic + cmp settingsLowSpec, 1 + je settings_print_adaptive + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET settingsStableText + call ResetColor + jmp settings_print_intro +settings_print_cinematic: + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET settingsCinematicText + call ResetColor + jmp settings_print_intro +settings_print_adaptive: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET settingsAdaptiveText + call ResetColor +settings_print_intro: + invoke PrintStr, OFFSET settingsIntroText + cmp settingsIntroEnabled, 1 + je settings_intro_on + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET settingsOffText + call ResetColor + jmp settings_print_dbd +settings_intro_on: + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET settingsOnText + call ResetColor +settings_print_dbd: + invoke PrintStr, OFFSET settingsDbdText + cmp settingsDbdWindowEnabled, 1 + je settings_dbd_on + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET settingsOffText + call ResetColor + jmp settings_show_menu +settings_dbd_on: + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET settingsOnText + call ResetColor +settings_show_menu: + invoke PrintStr, OFFSET settingsAnimHintText + invoke PrintStr, OFFSET settingsMenuText + call ReadUInt + cmp eax, 0 + je settings_exit + cmp eax, 1 + je settings_quieter + cmp eax, 2 + je settings_louder + cmp eax, 3 + je settings_toggle_low + cmp eax, 4 + je settings_toggle_intro + cmp eax, 5 + je settings_toggle_dbd + invoke PrintStr, OFFSET badChoiceText + call Pause + jmp settings_loop +settings_quieter: + cmp settingsVolume, 0 + jbe settings_apply + dec settingsVolume + jmp settings_apply +settings_louder: + cmp settingsVolume, 10 + jae settings_apply + inc settingsVolume + jmp settings_apply +settings_toggle_low: + inc settingsLowSpec + cmp settingsLowSpec, 3 + jb settings_apply + mov settingsLowSpec, 0 + jmp settings_apply +settings_toggle_intro: + mov eax, settingsIntroEnabled + xor eax, 1 + mov settingsIntroEnabled, eax + jmp settings_apply +settings_toggle_dbd: + mov eax, settingsDbdWindowEnabled + xor eax, 1 + mov settingsDbdWindowEnabled, eax +settings_apply: + call ApplySoundVolume + call SaveGame + jmp settings_loop +settings_exit: + ret +GameSettings ENDP +; --- CalcStressLevel: áàíê, ñòàâêè, ñòðåññ, ïîäîçðåíèå è ýêîíîìèêà êàçèíî --- +CalcStressLevel PROC uses eax ebx edx + mov stressLevel, 0 + cmp bankroll, 0 + je calc_stress_done + cmp currentBet, 0 + je calc_stress_done + mov eax, currentBet + mov ebx, 100 + mul ebx + mov ebx, bankroll + xor edx, edx + div ebx + cmp eax, 75 + jae calc_stress_max + cmp eax, 50 + jae calc_stress_high + cmp eax, 25 + jae calc_stress_mid + jmp calc_stress_done +calc_stress_mid: + mov stressLevel, 1 + jmp calc_stress_done +calc_stress_high: + mov stressLevel, 2 + jmp calc_stress_done +calc_stress_max: + mov stressLevel, 3 +calc_stress_done: + ret +CalcStressLevel ENDP + +; --- PrintStressLevel: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintStressLevel PROC + invoke PrintStr, OFFSET stressText + mov eax, stressLevel + cmp eax, 0 + je print_stress_low + cmp eax, 1 + je print_stress_mid + cmp eax, 2 + je print_stress_high + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET stressMaxText + call ResetColor + ret +print_stress_low: + invoke PrintStr, OFFSET stressLowText + ret +print_stress_mid: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET stressMidText + call ResetColor + ret +print_stress_high: + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET stressHighText + call ResetColor + ret +PrintStressLevel ENDP + +; --- PrintSuspicion: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintSuspicion PROC + invoke PrintStr, OFFSET suspicionText + mov eax, casinoSuspicion + cmp eax, 44 + jae print_suspicion_hunt + cmp eax, 25 + jae print_suspicion_watch + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET suspicionCalmText + call ResetColor + ret +print_suspicion_watch: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET suspicionWatchText + call ResetColor + ret +print_suspicion_hunt: + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET suspicionHuntText + call ResetColor + ret +PrintSuspicion ENDP + +; --- AddSuspicion: áàíê, ñòàâêè, ñòðåññ, ïîäîçðåíèå è ýêîíîìèêà êàçèíî --- +AddSuspicion PROC uses eax ebx, amount:DWORD + mov eax, casinoSuspicion + add eax, amount + cmp eax, 100 + jbe add_suspicion_store + mov eax, 100 +add_suspicion_store: + mov casinoSuspicion, eax + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET suspicionUpText + call ResetColor + call SaveGame + ret +AddSuspicion ENDP + +; --- CheckCasinoHeat: ñëóæåáíûé áëîê èãðîâîé ëîãèêè --- +CheckCasinoHeat PROC uses eax ebx + mov eax, casinoSuspicion + cmp eax, 44 + jb casino_heat_done + sub eax, 40 + mov ebx, eax + invoke RandomRange, 100 + cmp eax, ebx + jae casino_heat_done + mov eax, currentBet + shr eax, 1 + cmp eax, 1 + jae casino_heat_have_fine + mov eax, 1 +casino_heat_have_fine: + cmp bankroll, eax + jae casino_heat_sub + mov eax, bankroll +casino_heat_sub: + sub bankroll, eax + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET suspicionFineText + invoke PrintUInt, eax + invoke PrintStr, OFFSET nl + call ResetColor + call PrintBank + call SaveGame +casino_heat_done: + ret +CheckCasinoHeat ENDP +; --- ShowStats: ñòàòèñòèêà, äîñòèæåíèÿ è òàáëèöû ëèäåðîâ --- +ShowStats PROC + invoke PrintStr, OFFSET difficultyNowText + call PrintDifficultyName + call PrintBankLevel + invoke PrintStr, OFFSET statsGamesText + invoke PrintUInt, gamesPlayed + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET statsWinsText + invoke PrintUInt, gamesWon + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET statsLossText + invoke PrintUInt, gamesLost + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET statsDrawText + invoke PrintUInt, gamesDrawn + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET statsBestWinText + invoke PrintUInt, bestWin + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET statsBestLossText + invoke PrintUInt, bestLoss + invoke PrintStr, OFFSET nl + call PrintSuspicion + ret +ShowStats ENDP + + +; --- WriteAchievementPopup: ñòàòèñòèêà, äîñòèæåíèÿ è òàáëèöû ëèäåðîâ --- +WriteAchievementPopup PROC uses eax ecx esi, pName:DWORD + mov esi, pName + xor ecx, ecx +achievement_len_loop: + mov al, [esi + ecx] + cmp al, 0 + je achievement_len_ready + cmp al, 13 + je achievement_len_ready + cmp ecx, 64 + jae achievement_len_ready + inc ecx + jmp achievement_len_loop +achievement_len_ready: + invoke CreateFileA, OFFSET achievementFileName, GENERIC_WRITE, 0, 0, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0 + cmp eax, INVALID_HANDLE_VALUE + je achievement_popup_run + mov achievementHandle, eax + invoke WriteFile, achievementHandle, pName, ecx, ADDR charsWritten, 0 + invoke CloseHandle, achievementHandle +achievement_popup_run: + invoke WinExec, OFFSET achievementCmd, 1 + ret +WriteAchievementPopup ENDP + +; --- UnlockAchievement: ñòàòèñòèêà, äîñòèæåíèÿ è òàáëèöû ëèäåðîâ --- +UnlockAchievement PROC uses eax ebx, maskValue:DWORD, pName:DWORD + mov eax, achievements + mov ebx, maskValue + test eax, ebx + jz unlock_achievement_new + ret +unlock_achievement_new: + or eax, ebx + mov achievements, eax + call SaveGame + invoke WriteAchievementPopup, pName + ret +UnlockAchievement ENDP + +; --- PrintAchievementLine: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintAchievementLine PROC uses eax ebx, maskValue:DWORD, pName:DWORD + mov eax, achievements + mov ebx, maskValue + test eax, ebx + jz print_achievement_locked + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET achDoneText + call ResetColor + jmp print_achievement_name +print_achievement_locked: + invoke SetColor, COLOR_BACK_CARD + invoke PrintStr, OFFSET achTodoText + call ResetColor +print_achievement_name: + invoke PrintStr, pName + ret +PrintAchievementLine ENDP +; --- ShowWelcome: ñëóæåáíûé áëîê èãðîâîé ëîãèêè --- +ShowWelcome PROC + call ClearView + invoke PrintTitleColor, OFFSET titleText + invoke PrintStr, OFFSET welcomeText + call PrintGoal + cmp bankRecovered, 0 + je welcome_check_tampered + invoke PrintStr, OFFSET bankRecoveredText +welcome_check_tampered: + cmp saveTampered, 0 + je welcome_bank_normal + invoke PrintStr, OFFSET saveTamperedText +welcome_bank_normal: + call PrintBank + call ShowStats + call Pause + ret +ShowWelcome ENDP + +; --- SelectDifficulty: ñëóæåáíûé áëîê èãðîâîé ëîãèêè --- +SelectDifficulty PROC +select_difficulty_again: + call ClearView + invoke PrintTitleColor, OFFSET titleText + invoke PrintStr, OFFSET difficultyText + call ReadKey + cmp al, '1' + je set_easy_ai + cmp al, '2' + je set_normal_ai + cmp al, '3' + je set_hard_ai + jmp select_difficulty_again +set_easy_ai: + mov aiDifficulty, 1 + jmp difficulty_selected +set_normal_ai: + mov aiDifficulty, 2 + jmp difficulty_selected +set_hard_ai: + mov aiDifficulty, 3 +difficulty_selected: + call SaveGame + ret +SelectDifficulty ENDP + +; --- ShowPokerChips: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +ShowPokerChips PROC uses eax ebx edx + invoke PrintStr, OFFSET pokerChipTitle + + mov eax, currentBet + mov ebx, 5000 + xor edx, edx + div ebx + add eax, 5 + cmp eax, 10 + jbe poker_chips_count_ready + mov eax, 10 +poker_chips_count_ready: + mov rowIndex, eax + +poker_chips_loop: + cmp rowIndex, 0 + je poker_chips_done + mov eax, rowIndex + cmp eax, 7 + ja poker_chips_high + cmp eax, 4 + ja poker_chips_mid + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET pokerChipLow + jmp poker_chips_next +poker_chips_mid: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET pokerChipMid + jmp poker_chips_next +poker_chips_high: + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET pokerChipHigh +poker_chips_next: + dec rowIndex + jmp poker_chips_loop + +poker_chips_done: + call ResetColor + ret +ShowPokerChips ENDP + +; --- ShowPokerMoney: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +ShowPokerMoney PROC uses eax ebx + call ShowPokerChips + invoke PrintStr, OFFSET pokerPotText + mov eax, currentBet + mov ebx, 2 + mul ebx + invoke PrintUInt, eax + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET pokerBetText + invoke PrintUInt, currentBet + invoke PrintStr, OFFSET nl + ret +ShowPokerMoney ENDP + +; --- PromptPokerRaise: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +PromptPokerRaise PROC uses ebx + call PrintBank + invoke PrintStr, OFFSET pokerRaiseAskText + call ReadUInt + cmp eax, 0 + je raise_bad + mov pokerRaiseAmount, eax + mov ebx, currentBet + add ebx, eax + cmp ebx, bankroll + ja raise_bad + mov currentBet, ebx + invoke PrintStr, OFFSET pokerRaisedText + invoke PrintUInt, currentBet + invoke PrintStr, OFFSET nl + mov eax, 1 + ret +raise_bad: + invoke PrintStr, OFFSET pokerBadRaiseText + xor eax, eax + ret +PromptPokerRaise ENDP + +; --- PaySlotMultiplier: áàíê, ñòàâêè, ñòðåññ, ïîäîçðåíèå è ýêîíîìèêà êàçèíî --- +PaySlotMultiplier PROC uses eax ebx edx, multiplier:DWORD + mov lastGameResult, 1 + mov eax, currentBet + mov ebx, multiplier + mul ebx + mov pokerRaiseAmount, eax + add bankroll, eax + invoke PrintStr, OFFSET slotPayoutText + invoke PrintUInt, multiplier + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET moneyWinText + invoke PrintUInt, pokerRaiseAmount + invoke PrintStr, OFFSET nl + invoke RegisterWin, pokerRaiseAmount + invoke UnlockAchievement, 1, OFFSET achFirstWinName + call PrintBank + call PrintCroupierWin + cmp multiplier, 10 + jb slot_multiplier_no_ach + invoke UnlockAchievement, 4, OFFSET achJackpotName +slot_multiplier_no_ach: + call CheckVictory + ret +PaySlotMultiplier ENDP +; --- CheckBankrupt: áàíê, ñòàâêè, ñòðåññ, ïîäîçðåíèå è ýêîíîìèêà êàçèíî --- +CheckBankrupt PROC + cmp bankroll, 0 + ja bankroll_ok + call PlayBankruptSound + invoke Sleep, 300 + invoke PrintStr, OFFSET casinoKickText + invoke PrintStr, OFFSET casinoExitText + call ReadAnyKey + invoke ExitProcess, 0 +bankroll_ok: + ret +CheckBankrupt ENDP +; --- CheckVictory: áàíê, ñòàâêè, ñòðåññ, ïîäîçðåíèå è ýêîíîìèêà êàçèíî --- +CheckVictory PROC + mov eax, bankroll + cmp eax, targetBank + jb victory_not_yet + call PlayVictorySound + call ClearView + invoke PrintTitleColor, OFFSET titleText + invoke PrintStr, OFFSET victoryText + invoke PrintStr, OFFSET victoryReachedText + invoke PrintUInt, targetBank + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET victoryTailText + call PrintBank + +advance_victory_goal: + mov eax, bankroll + cmp eax, targetBank + jb victory_goal_ready + add targetBank, 50000 + jmp advance_victory_goal +victory_goal_ready: + call SaveGame + invoke UnlockAchievement, 40h, OFFSET achGoalName + invoke PrintStr, OFFSET nextGoalText + invoke PrintUInt, targetBank + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET victoryExitText + call CheckSecretEnding +victory_secret_checked: + call ReadAnyKey + ret +victory_not_yet: + call CheckSecretEnding + ret +CheckVictory ENDP + +; --- ShowStressPulse: áàíê, ñòàâêè, ñòðåññ, ïîäîçðåíèå è ýêîíîìèêà êàçèíî --- +ShowStressPulse PROC uses eax ebx edx + cmp bankroll, 0 + je stress_pulse_done + mov eax, currentBet + cmp eax, 0 + je stress_pulse_done + mov ebx, 100 + mul ebx + mov ebx, bankroll + xor edx, edx + div ebx + cmp eax, 25 + jb stress_pulse_done + + invoke PrintStr, OFFSET pulseTitleText + cmp eax, 50 + jae stress_pulse_hot + invoke SetColor, COLOR_WARN + jmp stress_pulse_frames +stress_pulse_hot: + invoke SetColor, COLOR_BAD +stress_pulse_frames: + mov eax, stressLevel + inc eax + mov pulseCycles, eax +stress_pulse_cycle: + invoke PrintStr, OFFSET pulseFrame1 + invoke Sleep, 70 + invoke PrintStr, OFFSET pulseFrame2 + invoke Sleep, 70 + invoke PrintStr, OFFSET pulseFrame3 + invoke Sleep, 70 + invoke PrintStr, OFFSET pulseFrame4 + invoke Sleep, 70 + invoke PrintStr, OFFSET pulseFrame5 + invoke Sleep, 90 + dec pulseCycles + cmp pulseCycles, 0 + jne stress_pulse_cycle + call ResetColor +stress_pulse_done: + ret +ShowStressPulse ENDP + +; --- PromptBet: áàíê, ñòàâêè, ñòðåññ, ïîäîçðåíèå è ýêîíîìèêà êàçèíî --- +PromptBet PROC +prompt_bet_again: + call CheckBankrupt + call PrintBank + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET betText + call ReadBetInput + push eax + call ResetColor + pop eax + cmp eax, 0FFFFFFFFh + je prompt_bet_again + cmp eax, 0FFFFFFFEh + je prompt_bet_again + cmp eax, 0FFFFFFFDh + je prompt_bet_again + cmp eax, 0 + jne bet_check_money + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET badBetText + call ResetColor + jmp prompt_bet_again + +bet_check_money: + cmp eax, bankroll + jbe bet_store + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET tooBigBetText + call ResetColor + jmp prompt_bet_again +bet_store: + mov currentBet, eax + call ApplyVIPTax + cmp currentBet, 10000 + jb bet_highroller_done + invoke UnlockAchievement, 8, OFFSET achHighRollerName +bet_highroller_done: + call DailyAddHighBet + invoke PrintStr, OFFSET betChosenText + invoke PrintMoney, currentBet + invoke PrintStr, OFFSET nl + call CalcStressLevel + call PrintStressLevel + call ShowStressPulse + invoke Sleep, 500 + ret +PromptBet ENDP + +; --- PayWin: áàíê, ñòàâêè, ñòðåññ, ïîäîçðåíèå è ýêîíîìèêà êàçèíî --- +PayWin PROC + mov lastGameResult, 1 + mov eax, currentBet + add bankroll, eax + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET moneyWinText + invoke PrintUInt, currentBet + call ResetColor + invoke PrintStr, OFFSET nl + invoke RegisterWin, currentBet + invoke UnlockAchievement, 1, OFFSET achFirstWinName + call PrintBank + call PrintCroupierWin + call CheckVictory + ret +PayWin ENDP + +; --- TryCharmSave: òàëèñìàíû ñïàñàþò ñòàâêó, íî ó ñèëüíûõ åñòü öåíà --- +TryCharmSave PROC uses ebx ecx edx + cmp shopCharmLevel, 0 + jne charm_has_level + xor eax, eax + ret +charm_has_level: + cmp shopCharmUses, 0 + jne charm_has_uses + mov shopCharmLevel, 0 + xor eax, eax + ret +charm_has_uses: + mov ebx, shopCharmLevel + cmp ebx, 1 + je charm_chance_clover + cmp ebx, 2 + je charm_chance_bell + cmp ebx, 3 + je charm_chance_diamond + cmp ebx, 4 + je charm_chance_skull + cmp ebx, 5 + je charm_chance_web + cmp ebx, 6 + je charm_chance_bee + cmp ebx, 7 + je charm_chance_moon + cmp ebx, 8 + je charm_chance_crown + cmp ebx, 9 + je charm_chance_mirror + cmp ebx, 10 + je charm_chance_dice + cmp ebx, 11 + je charm_chance_blood + cmp ebx, 12 + je charm_chance_hourglass + cmp ebx, 13 + je charm_chance_horseshoe + cmp ebx, 14 + je charm_chance_joker + cmp ebx, 15 + je charm_chance_phoenix + cmp ebx, 16 + je charm_chance_compass + cmp ebx, 17 + je charm_chance_tooth + cmp ebx, 18 + je charm_chance_eye + cmp ebx, 19 + je charm_chance_key + cmp ebx, 20 + je charm_chance_candle + cmp ebx, 21 + je charm_chance_chip + cmp ebx, 22 + je charm_chance_snake + cmp ebx, 23 + je charm_chance_ace + cmp ebx, 24 + je charm_chance_devil + xor eax, eax + ret +charm_chance_clover: + mov ecx, 7 + jmp charm_roll +charm_chance_bell: + mov ecx, 14 + jmp charm_roll +charm_chance_diamond: + mov ecx, 21 + jmp charm_roll +charm_chance_skull: + mov ecx, 28 + jmp charm_roll +charm_chance_web: + mov ecx, 35 + jmp charm_roll +charm_chance_bee: + mov ecx, 12 + jmp charm_roll +charm_chance_moon: + mov ecx, 18 + jmp charm_roll +charm_chance_crown: + mov ecx, 24 + jmp charm_roll +charm_chance_mirror: + mov ecx, 16 + jmp charm_roll +charm_chance_dice: + mov ecx, 10 + jmp charm_roll +charm_chance_blood: + mov ecx, 40 + jmp charm_roll +charm_chance_hourglass: + mov ecx, 22 + jmp charm_roll +charm_chance_horseshoe: + mov ecx, 9 + jmp charm_roll +charm_chance_joker: + mov ecx, 33 + jmp charm_roll +charm_chance_phoenix: + mov ecx, 26 + jmp charm_roll +charm_chance_compass: + mov ecx, 19 + jmp charm_roll +charm_chance_tooth: + mov ecx, 15 + jmp charm_roll +charm_chance_eye: + mov ecx, 31 + jmp charm_roll +charm_chance_key: + mov ecx, 13 + jmp charm_roll +charm_chance_candle: + mov ecx, 38 + jmp charm_roll +charm_chance_chip: + mov ecx, 20 + jmp charm_roll +charm_chance_snake: + mov ecx, 29 + jmp charm_roll +charm_chance_ace: + mov ecx, 17 + jmp charm_roll +charm_chance_devil: + mov ecx, 50 +charm_roll: + invoke RandomRange, 100 + cmp eax, ecx + jb charm_save_hit + xor eax, eax + ret + +charm_save_hit: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET shopCharmSaveText + call ResetColor + dec shopCharmUses + + mov ebx, shopCharmLevel + cmp ebx, 2 + je charm_penalty_bell + cmp ebx, 3 + je charm_penalty_diamond + cmp ebx, 4 + je charm_penalty_skull + cmp ebx, 5 + je charm_penalty_web + cmp ebx, 7 + je charm_penalty_moon + cmp ebx, 8 + je charm_penalty_crown + cmp ebx, 9 + je charm_penalty_mirror + cmp ebx, 11 + je charm_penalty_blood + cmp ebx, 12 + je charm_penalty_hourglass + cmp ebx, 14 + je charm_penalty_joker + cmp ebx, 15 + je charm_penalty_phoenix + cmp ebx, 16 + je charm_penalty_compass + cmp ebx, 17 + je charm_penalty_tooth + cmp ebx, 18 + je charm_penalty_eye + cmp ebx, 20 + je charm_penalty_candle + cmp ebx, 22 + je charm_penalty_snake + cmp ebx, 23 + je charm_penalty_ace + cmp ebx, 24 + je charm_penalty_devil + jmp charm_penalty_done + +charm_penalty_bell: + invoke AddSuspicion, 4 + jmp charm_penalty_done +charm_penalty_diamond: + invoke AddSuspicion, 8 + jmp charm_penalty_done +charm_penalty_web: + invoke AddSuspicion, 20 + jmp charm_penalty_done +charm_penalty_moon: + invoke AddSuspicion, 8 + jmp charm_penalty_done +charm_penalty_crown: + invoke AddSuspicion, 12 + jmp charm_penalty_done +charm_penalty_mirror: + invoke AddSuspicion, 6 + jmp charm_penalty_done +charm_penalty_hourglass: + invoke AddSuspicion, 15 + jmp charm_penalty_done +charm_penalty_joker: + invoke AddSuspicion, 30 + jmp charm_penalty_done +charm_penalty_phoenix: + invoke AddSuspicion, 10 + jmp charm_penalty_done +charm_penalty_compass: + invoke AddSuspicion, 12 + jmp charm_penalty_done +charm_penalty_eye: + invoke AddSuspicion, 18 + jmp charm_penalty_done +charm_penalty_snake: + invoke AddSuspicion, 16 + jmp charm_penalty_done +charm_penalty_ace: + invoke AddSuspicion, 7 + jmp charm_penalty_done +charm_penalty_blood: + invoke AddSuspicion, 25 + mov ebx, 4 + jmp charm_take_fraction +charm_penalty_skull: + mov ebx, 2 + jmp charm_take_fraction +charm_penalty_tooth: + mov ebx, 5 + jmp charm_take_fraction +charm_penalty_candle: + invoke AddSuspicion, 35 + mov ebx, 3 + jmp charm_take_fraction +charm_penalty_devil: + invoke AddSuspicion, 45 + mov ebx, 2 +charm_take_fraction: + mov eax, currentBet + xor edx, edx + div ebx + cmp eax, 1 + jae charm_have_price + mov eax, 1 +charm_have_price: + cmp bankroll, eax + jae charm_sub_price + mov eax, bankroll +charm_sub_price: + sub bankroll, eax + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET charmPenaltyText + invoke PrintUInt, eax + invoke PrintStr, OFFSET nl + call ResetColor + +charm_penalty_done: + call RegisterDraw + invoke UnlockAchievement, 20h, OFFSET achCharmName + cmp shopCharmUses, 0 + jne charm_still_alive + mov shopCharmLevel, 0 + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET shopCharmBurnText + call ResetColor +charm_still_alive: + call SaveGame + call PrintBank + call PrintCroupierDraw + mov eax, 1 + ret +TryCharmSave ENDP + +; --- PayLose: áàíê, ñòàâêè, ñòðåññ, ïîäîçðåíèå è ýêîíîìèêà êàçèíî --- +PayLose PROC + cmp cheatGodMode, 0 + jne pay_lose_cheat_win + cmp cheatLuckyWin, 0 + jne pay_lose_cheat_once + jmp pay_lose_normal +pay_lose_cheat_once: + mov cheatLuckyWin, 0 +pay_lose_cheat_win: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET cheatSavedText + call ResetColor + call PayWin + ret +pay_lose_normal: + call TryCharmSave + cmp eax, 1 + je pay_lose_charm_saved + mov eax, currentBet + cmp bankroll, eax + jae pay_lose_sub + mov bankroll, 0 + jmp pay_lose_done +pay_lose_sub: + sub bankroll, eax +pay_lose_done: + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET moneyLoseText + invoke PrintUInt, currentBet + call ResetColor + invoke PrintStr, OFFSET nl + invoke RegisterLoss, currentBet + call PrintBank + call PrintCroupierLose + call CheckBankrupt +pay_lose_charm_saved: + ret +PayLose ENDP + +; --- PayDraw: áàíê, ñòàâêè, ñòðåññ, ïîäîçðåíèå è ýêîíîìèêà êàçèíî --- +PayDraw PROC + mov lastGameResult, 3 + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET moneyDrawText + call ResetColor + call RegisterDraw + call PrintBank + call PrintCroupierDraw + ret +PayDraw ENDP + +; --- PaySlotPair: áàíê, ñòàâêè, ñòðåññ, ïîäîçðåíèå è ýêîíîìèêà êàçèíî --- +PaySlotPair PROC + mov lastGameResult, 1 + mov eax, currentBet + add bankroll, eax + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET moneyWinText + invoke PrintUInt, currentBet + call ResetColor + invoke PrintStr, OFFSET nl + call PrintBank + ret +PaySlotPair ENDP + +; --- PaySlotJackpot: áàíê, ñòàâêè, ñòðåññ, ïîäîçðåíèå è ýêîíîìèêà êàçèíî --- +PaySlotJackpot PROC uses ebx + mov lastGameResult, 1 + mov eax, currentBet + mov ebx, 5 + mul ebx + add bankroll, eax + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET moneyWinText + invoke PrintUInt, eax + call ResetColor + invoke PrintStr, OFFSET nl + call PrintBank + invoke UnlockAchievement, 4, OFFSET achJackpotName + ret +PaySlotJackpot ENDP + +; --- ConfigureConsoleSize: çàäàåò ñòàðòîâûé ðàçìåð îêíà êîíñîëè áåç ìàñøòàáèðîâàíèÿ ASCII --- +ConfigureConsoleSize PROC + invoke SetConsoleWindowInfo, hOut, 1, OFFSET consoleRectTiny + + invoke SetConsoleScreenBufferSize, hOut, 012C00A0h ; 160 x 300 buffer + cmp eax, 0 + je try_console_140 + invoke SetConsoleWindowInfo, hOut, 1, OFFSET consoleRect160 + cmp eax, 0 + jne console_size_done + +try_console_140: + invoke SetConsoleWindowInfo, hOut, 1, OFFSET consoleRectTiny + invoke SetConsoleScreenBufferSize, hOut, 012C008Ch ; 140 x 300 buffer + cmp eax, 0 + je try_console_120 + invoke SetConsoleWindowInfo, hOut, 1, OFFSET consoleRect140 + cmp eax, 0 + jne console_size_done + +try_console_120: + invoke SetConsoleWindowInfo, hOut, 1, OFFSET consoleRectTiny + invoke SetConsoleScreenBufferSize, hOut, 012C0078h ; 120 x 300 buffer + cmp eax, 0 + je console_size_done + invoke SetConsoleWindowInfo, hOut, 1, OFFSET consoleRect120 + +console_size_done: + ret +ConfigureConsoleSize ENDP +; --- HomeCursor: ñëóæåáíûå ôóíêöèè êîíñîëè è ñëó÷àéíûõ ÷èñåë --- +HomeCursor PROC + invoke SetConsoleCursorPosition, hOut, 0 + ret +HomeCursor ENDP + +; --- ClearView: ñëóæåáíûå ôóíêöèè êîíñîëè è ñëó÷àéíûõ ÷èñåë --- +ClearView PROC uses eax edx + LOCAL csbi[22]:BYTE + LOCAL cells:DWORD + + call ResetColor + invoke GetConsoleScreenBufferInfo, hOut, ADDR csbi + cmp eax, 0 + jne clear_console_buffer + invoke PrintStr, OFFSET clearLines + ret + +clear_console_buffer: + movzx eax, word ptr csbi[0] + movzx edx, word ptr csbi[2] + mul edx + mov cells, eax + invoke FillConsoleOutputCharacterA, hOut, 32, cells, 0, ADDR charsWritten + call HomeCursor + ret +ClearView ENDP + +; --- RandomRange: ñëóæåáíûå ôóíêöèè êîíñîëè è ñëó÷àéíûõ ÷èñåë --- +RandomRange PROC uses ecx edx, range:DWORD + mov eax, seed + imul eax, 214013 + add eax, 2531011 + mov seed, eax + shr eax, 16 + and eax, 7FFFh + xor edx, edx + mov ecx, range + div ecx + mov eax, edx + ret +RandomRange ENDP + +; --- ResetDeck: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +ResetDeck PROC uses ecx edi + mov ecx, 52 + mov edi, OFFSET deckUsed +reset_loop: + mov byte ptr [edi], 0 + inc edi + loop reset_loop + ret +ResetDeck ENDP + +; --- DrawCard: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +DrawCard PROC uses edi +draw_again: + invoke RandomRange, 52 + mov edi, OFFSET deckUsed + add edi, eax + cmp byte ptr [edi], 0 + jne draw_again + mov byte ptr [edi], 1 + ret +DrawCard ENDP +; --- CardValue21: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +CardValue21 PROC uses ecx edx, card:DWORD + mov eax, card + xor edx, edx + mov ecx, 13 + div ecx + mov eax, edx + cmp eax, 8 + jbe numeric_card + cmp eax, 9 + je jack_card + cmp eax, 10 + je queen_card + cmp eax, 11 + je king_card + mov eax, 11 + ret +numeric_card: + add eax, 2 + ret +jack_card: + mov eax, 2 + ret +queen_card: + mov eax, 3 + ret +king_card: + mov eax, 4 + ret +CardValue21 ENDP + +; --- CardValueBJ: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +CardValueBJ PROC uses ecx edx, card:DWORD + mov eax, card + xor edx, edx + mov ecx, 13 + div ecx + mov eax, edx + cmp eax, 8 + jbe bj_numeric + cmp eax, 12 + je bj_ace + mov eax, 10 + ret +bj_numeric: + add eax, 2 + ret +bj_ace: + mov eax, 11 + ret +CardValueBJ ENDP + +; --- AdjustPlayerAces: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +AdjustPlayerAces PROC +adjust_player: + cmp playerTotal, 21 + jbe adjust_player_done + cmp playerAces, 0 + je adjust_player_done + sub playerTotal, 10 + dec playerAces + jmp adjust_player +adjust_player_done: + ret +AdjustPlayerAces ENDP + +; --- AdjustDealerAces: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +AdjustDealerAces PROC +adjust_dealer: + cmp dealerTotal, 21 + jbe adjust_dealer_done + cmp dealerAces, 0 + je adjust_dealer_done + sub dealerTotal, 10 + dec dealerAces + jmp adjust_dealer +adjust_dealer_done: + ret +AdjustDealerAces ENDP + +; --- PrintScore: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintScore PROC + invoke PrintStr, OFFSET yourScoreText + invoke PrintUInt, playerTotal + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET dealerScoreText + invoke PrintUInt, dealerTotal + invoke PrintStr, OFFSET nl + ret +PrintScore ENDP + +; --- PrintCard: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintCard PROC uses eax ebx ecx edx esi, card:DWORD + mov eax, card + xor edx, edx + mov ecx, 13 + div ecx + mov ebx, eax + mov esi, edx + + invoke PrintUtf8, OFFSET cardTop + invoke PrintUtf8, OFFSET cardSuitLeft + invoke PrintSuit, ebx + invoke PrintUtf8, OFFSET cardSuitRight + + cmp esi, 8 + jne one_rank + invoke PrintUtf8, OFFSET cardRankTenL + invoke PrintStr, ranks[esi * 4] + invoke PrintUtf8, OFFSET cardRankTenR + jmp rank_done +one_rank: + invoke PrintUtf8, OFFSET cardRankOneL + invoke PrintStr, ranks[esi * 4] + invoke PrintUtf8, OFFSET cardRankOneR +rank_done: + invoke PrintUtf8, OFFSET cardEmpty + invoke PrintUtf8, OFFSET cardEmpty + invoke PrintUtf8, OFFSET cardCenterL + invoke PrintSuit, ebx + invoke PrintUtf8, OFFSET cardCenterR + invoke PrintUtf8, OFFSET cardBottom + ret +PrintCard ENDP + +; --- AddPlayer21: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +AddPlayer21 PROC uses eax ebx + call PlayCardSound + call DrawCard + mov ebx, eax + invoke PrintStr, OFFSET yourCardText + invoke PrintCard, ebx + invoke CardValue21, ebx + add playerTotal, eax + ret +AddPlayer21 ENDP + +; --- AddDealer21: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +AddDealer21 PROC uses eax ebx + call PlayCardSound + call DrawCard + mov ebx, eax + invoke PrintStr, OFFSET dealerCardText + invoke PrintCard, ebx + invoke CardValue21, ebx + add dealerTotal, eax + ret +AddDealer21 ENDP + +; --- Reset21Hands: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +Reset21Hands PROC + mov playerTotal, 0 + mov dealerTotal, 0 + mov playerCnt21, 0 + mov aiCnt21, 0 + mov revealAI21, 0 + ret +Reset21Hands ENDP + +; --- DrawPlayer21Hand: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +DrawPlayer21Hand PROC uses ebx ecx + cmp playerCnt21, 10 + jae draw_player21_done + call PlayCardSound + call DrawCard + mov ebx, playerCnt21 + mov playerHand21[ebx * 4], eax + inc playerCnt21 +draw_player21_done: + ret +DrawPlayer21Hand ENDP + +; --- DrawAI21Hand: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +DrawAI21Hand PROC uses ebx ecx + cmp aiCnt21, 10 + jae draw_ai21_done + call PlayCardSound + call DrawCard + mov ebx, aiCnt21 + mov aiHand21[ebx * 4], eax + inc aiCnt21 +draw_ai21_done: + ret +DrawAI21Hand ENDP + +; --- PrintHandTop: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintHandTop PROC uses eax, count:DWORD + mov rowIndex, 0 +top_loop: + mov eax, rowIndex + cmp eax, count + jae top_done + invoke PrintUtf8, OFFSET cardTopSeg + invoke PrintUtf8, OFFSET cardGap + inc rowIndex + jmp top_loop +top_done: + invoke PrintStr, OFFSET nl + ret +PrintHandTop ENDP + +; --- PrintHandBottom: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintHandBottom PROC uses eax, count:DWORD + mov rowIndex, 0 +bottom_loop: + mov eax, rowIndex + cmp eax, count + jae bottom_done + invoke PrintUtf8, OFFSET cardBottomSeg + invoke PrintUtf8, OFFSET cardGap + inc rowIndex + jmp bottom_loop +bottom_done: + invoke PrintStr, OFFSET nl + ret +PrintHandBottom ENDP + +; --- PrintHandBlankLine: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintHandBlankLine PROC uses eax, count:DWORD, reveal:DWORD + mov rowIndex, 0 +blank_loop: + mov eax, rowIndex + cmp eax, count + jae blank_done + cmp reveal, 0 + je blank_hidden + invoke PrintUtf8, OFFSET cardEmptySeg + jmp blank_next +blank_hidden: + call SetCardBackColor + invoke PrintCardBackSegLine, 4 + call ResetColor +blank_next: + invoke PrintUtf8, OFFSET cardGap + inc rowIndex + jmp blank_loop +blank_done: + invoke PrintStr, OFFSET nl + ret +PrintHandBlankLine ENDP + +; --- PrintHandSuitLine: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintHandSuitLine PROC uses eax ebx ecx edx, pHand:DWORD, count:DWORD, reveal:DWORD + LOCAL suitIndex:DWORD + + mov rowIndex, 0 +suit_loop: + mov eax, rowIndex + cmp eax, count + jae suit_done + cmp reveal, 0 + je suit_hidden + + mov ebx, pHand + mov eax, [ebx + eax * 4] + xor edx, edx + mov ecx, 13 + div ecx + mov suitIndex, eax + + invoke PrintUtf8, OFFSET cardSuitLeft + mov eax, suitIndex + invoke PrintSuit, eax + invoke PrintUtf8, OFFSET cardSuitRightSeg + jmp suit_next +suit_hidden: + call SetCardBackColor + invoke PrintCardBackSegLine, 1 + call ResetColor +suit_next: + invoke PrintUtf8, OFFSET cardGap + inc rowIndex + jmp suit_loop +suit_done: + invoke PrintStr, OFFSET nl + ret +PrintHandSuitLine ENDP + +; --- PrintHandRankLine: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintHandRankLine PROC uses eax ebx ecx edx, pHand:DWORD, count:DWORD, reveal:DWORD + LOCAL rankIndex:DWORD + + mov rowIndex, 0 +rank_loop_row: + mov eax, rowIndex + cmp eax, count + jae rank_done_row + cmp reveal, 0 + je rank_hidden + + mov ebx, pHand + mov eax, [ebx + eax * 4] + xor edx, edx + mov ecx, 13 + div ecx + mov rankIndex, edx + + cmp edx, 8 + jne rank_one_char + invoke PrintUtf8, OFFSET cardRankTenL + mov eax, rankIndex + invoke PrintStr, ranks[eax * 4] + invoke PrintUtf8, OFFSET cardRankTenRSeg + jmp rank_next +rank_one_char: + invoke PrintUtf8, OFFSET cardRankOneL + mov eax, rankIndex + invoke PrintStr, ranks[eax * 4] + invoke PrintUtf8, OFFSET cardRankOneRSeg + jmp rank_next +rank_hidden: + call SetCardBackColor + invoke PrintCardBackSegLine, 2 + call ResetColor +rank_next: + invoke PrintUtf8, OFFSET cardGap + inc rowIndex + jmp rank_loop_row +rank_done_row: + invoke PrintStr, OFFSET nl + ret +PrintHandRankLine ENDP + +; --- PrintHandCenterLine: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintHandCenterLine PROC uses eax ebx ecx edx, pHand:DWORD, count:DWORD, reveal:DWORD + LOCAL suitIndex:DWORD + + mov rowIndex, 0 +center_loop: + mov eax, rowIndex + cmp eax, count + jae center_done + cmp reveal, 0 + je center_hidden + + mov ebx, pHand + mov eax, [ebx + eax * 4] + xor edx, edx + mov ecx, 13 + div ecx + mov suitIndex, eax + + invoke PrintUtf8, OFFSET cardCenterL + mov eax, suitIndex + invoke PrintSuit, eax + invoke PrintUtf8, OFFSET cardCenterRSeg + jmp center_next +center_hidden: + call SetCardBackColor + invoke PrintCardBackSegLine, 5 + call ResetColor +center_next: + invoke PrintUtf8, OFFSET cardGap + inc rowIndex + jmp center_loop +center_done: + invoke PrintStr, OFFSET nl + ret +PrintHandCenterLine ENDP + +; --- PrintHandRow21: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintHandRow21 PROC pHand:DWORD, count:DWORD, reveal:DWORD + invoke PrintHandTop, count + invoke PrintHandSuitLine, pHand, count, reveal + invoke PrintHandRankLine, pHand, count, reveal + invoke PrintHandBlankLine, count, reveal + invoke PrintHandBlankLine, count, reveal + invoke PrintHandCenterLine, pHand, count, reveal + invoke PrintHandBottom, count + ret +PrintHandRow21 ENDP + +; --- PrintCommunitySuitLine: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintCommunitySuitLine PROC uses eax ebx ecx edx + LOCAL suitIndex:DWORD + + mov rowIndex, 0 +community_suit_loop: + mov eax, rowIndex + cmp eax, 5 + jae community_suit_done + cmp eax, communityCnt + jae community_suit_hidden + + mov eax, communityHand[eax * 4] + xor edx, edx + mov ecx, 13 + div ecx + mov suitIndex, eax + invoke PrintUtf8, OFFSET cardSuitLeft + mov eax, suitIndex + invoke PrintSuit, eax + invoke PrintUtf8, OFFSET cardSuitRightSeg + jmp community_suit_next +community_suit_hidden: + call SetCardBackColor + invoke PrintCardBackSegLine, 1 + call ResetColor +community_suit_next: + invoke PrintUtf8, OFFSET cardGap + inc rowIndex + jmp community_suit_loop +community_suit_done: + invoke PrintStr, OFFSET nl + ret +PrintCommunitySuitLine ENDP + +; --- PrintCommunityRankLine: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintCommunityRankLine PROC uses eax ecx edx + LOCAL rankIndex:DWORD + + mov rowIndex, 0 +community_rank_loop: + mov eax, rowIndex + cmp eax, 5 + jae community_rank_done + cmp eax, communityCnt + jae community_rank_hidden + + mov eax, communityHand[eax * 4] + xor edx, edx + mov ecx, 13 + div ecx + mov rankIndex, edx + cmp edx, 8 + jne community_rank_one + invoke PrintUtf8, OFFSET cardRankTenL + mov eax, rankIndex + invoke PrintStr, ranks[eax * 4] + invoke PrintUtf8, OFFSET cardRankTenRSeg + jmp community_rank_next +community_rank_one: + invoke PrintUtf8, OFFSET cardRankOneL + mov eax, rankIndex + invoke PrintStr, ranks[eax * 4] + invoke PrintUtf8, OFFSET cardRankOneRSeg + jmp community_rank_next +community_rank_hidden: + call SetCardBackColor + invoke PrintCardBackSegLine, 2 + call ResetColor +community_rank_next: + invoke PrintUtf8, OFFSET cardGap + inc rowIndex + jmp community_rank_loop +community_rank_done: + invoke PrintStr, OFFSET nl + ret +PrintCommunityRankLine ENDP + +; --- PrintCommunityBlankLine: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintCommunityBlankLine PROC uses eax + mov rowIndex, 0 +community_blank_loop: + mov eax, rowIndex + cmp eax, 5 + jae community_blank_done + cmp eax, communityCnt + jae community_blank_hidden + invoke PrintUtf8, OFFSET cardEmptySeg + jmp community_blank_next +community_blank_hidden: + call SetCardBackColor + invoke PrintCardBackSegLine, 4 + call ResetColor +community_blank_next: + invoke PrintUtf8, OFFSET cardGap + inc rowIndex + jmp community_blank_loop +community_blank_done: + invoke PrintStr, OFFSET nl + ret +PrintCommunityBlankLine ENDP + +; --- PrintCommunityCenterLine: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintCommunityCenterLine PROC uses eax ecx edx + LOCAL suitIndex:DWORD + + mov rowIndex, 0 +community_center_loop: + mov eax, rowIndex + cmp eax, 5 + jae community_center_done + cmp eax, communityCnt + jae community_center_hidden + + mov eax, communityHand[eax * 4] + xor edx, edx + mov ecx, 13 + div ecx + mov suitIndex, eax + invoke PrintUtf8, OFFSET cardCenterL + mov eax, suitIndex + invoke PrintSuit, eax + invoke PrintUtf8, OFFSET cardCenterRSeg + jmp community_center_next +community_center_hidden: + call SetCardBackColor + invoke PrintCardBackSegLine, 5 + call ResetColor +community_center_next: + invoke PrintUtf8, OFFSET cardGap + inc rowIndex + jmp community_center_loop +community_center_done: + invoke PrintStr, OFFSET nl + ret +PrintCommunityCenterLine ENDP + +; --- PrintCommunityRow: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintCommunityRow PROC + invoke PrintHandTop, 5 + call PrintCommunitySuitLine + call PrintCommunityRankLine + call PrintCommunityBlankLine + call PrintCommunityBlankLine + call PrintCommunityCenterLine + invoke PrintHandBottom, 5 + ret +PrintCommunityRow ENDP + +; --- PrintFlipLine: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintFlipLine PROC uses eax, count:DWORD, pSegment:DWORD + mov rowIndex, 0 +flip_line_loop: + mov eax, rowIndex + cmp eax, count + jae flip_line_done + invoke PrintUtf8, pSegment + invoke PrintUtf8, OFFSET cardGap + inc rowIndex + jmp flip_line_loop +flip_line_done: + invoke PrintStr, OFFSET nl + ret +PrintFlipLine ENDP + +; --- PrintFlipCards: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintFlipCards PROC count:DWORD, pSegment:DWORD + invoke PrintHandTop, count + invoke PrintFlipLine, count, pSegment + invoke PrintFlipLine, count, pSegment + invoke PrintFlipLine, count, pSegment + invoke PrintFlipLine, count, pSegment + invoke PrintFlipLine, count, pSegment + invoke PrintHandBottom, count + ret +PrintFlipCards ENDP + +; --- ShowRevealFrame21: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +ShowRevealFrame21 PROC pSegment:DWORD + call ClearView + invoke PrintTitleColor, OFFSET twentyOneTitle + invoke PrintStr, OFFSET revealText + invoke PrintStr, OFFSET aiCardsText + invoke PrintFlipCards, aiCnt21, pSegment + invoke PrintStr, OFFSET playerCardsText + invoke PrintHandRow21, OFFSET playerHand21, playerCnt21, 1 + call CalcPlayerScore21 + invoke PrintStr, OFFSET yourScoreText + invoke PrintUInt, playerTotal + invoke PrintStr, OFFSET nl + ret +ShowRevealFrame21 ENDP + +; --- AnimateReveal21: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +AnimateReveal21 PROC + call PlayCardSound + invoke ShowRevealFrame21, OFFSET cardBackSeg + invoke Sleep, FLIP_DELAY + invoke ShowRevealFrame21, OFFSET cardFlipLeft + invoke Sleep, FLIP_DELAY + invoke ShowRevealFrame21, OFFSET cardFlipMid + invoke Sleep, FLIP_DELAY + invoke ShowRevealFrame21, OFFSET cardFlipRight + invoke Sleep, FLIP_DELAY + mov revealAI21, 1 + call ClearView + invoke PrintTitleColor, OFFSET twentyOneTitle + call ShowAllCards21 + invoke Sleep, FLIP_FINAL_DELAY + ret +AnimateReveal21 ENDP + +; --- CalcPlayerScore21: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +CalcPlayerScore21 PROC uses eax ebx + mov playerTotal, 0 + mov rowIndex, 0 +calc_player21_loop: + mov eax, rowIndex + cmp eax, playerCnt21 + jae calc_player21_done + mov ebx, playerHand21[eax * 4] + invoke CardValue21, ebx + add playerTotal, eax + inc rowIndex + jmp calc_player21_loop +calc_player21_done: + ret +CalcPlayerScore21 ENDP + +; --- CalcAIScore21: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +CalcAIScore21 PROC uses eax ebx + mov dealerTotal, 0 + mov rowIndex, 0 +calc_ai21_loop: + mov eax, rowIndex + cmp eax, aiCnt21 + jae calc_ai21_done + mov ebx, aiHand21[eax * 4] + invoke CardValue21, ebx + add dealerTotal, eax + inc rowIndex + jmp calc_ai21_loop +calc_ai21_done: + ret +CalcAIScore21 ENDP + +; --- ShowAllCards21: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +ShowAllCards21 PROC + cmp revealAI21, 0 + jne show_ai_cards + invoke PrintStr, OFFSET aiThinkText +show_ai_cards: + invoke PrintStr, OFFSET aiCardsText + invoke PrintHandRow21, OFFSET aiHand21, aiCnt21, revealAI21 + invoke PrintStr, OFFSET playerCardsText + invoke PrintHandRow21, OFFSET playerHand21, playerCnt21, 1 + + call CalcPlayerScore21 + call CalcAIScore21 + invoke PrintStr, OFFSET yourScoreText + invoke PrintUInt, playerTotal + invoke PrintStr, OFFSET nl + cmp revealAI21, 0 + je show_cards_done + invoke PrintStr, OFFSET aiScoreText + invoke PrintUInt, dealerTotal + invoke PrintStr, OFFSET nl +show_cards_done: + ret +ShowAllCards21 ENDP +; --- PeekUnusedCard: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +PeekUnusedCard PROC uses edi +peek_unused_again: + invoke RandomRange, 52 + mov edi, OFFSET deckUsed + add edi, eax + cmp byte ptr [edi], 0 + jne peek_unused_again + ret +PeekUnusedCard ENDP + +; --- CheatPeek21: áàíê, ñòàâêè, ñòðåññ, ïîäîçðåíèå è ýêîíîìèêà êàçèíî --- +CheatPeek21 PROC uses eax ebx + invoke PrintStr, OFFSET cheatPeekText + call PeekUnusedCard + mov ebx, eax + invoke PrintCard, ebx + invoke AddSuspicion, 12 + call CheckCasinoHeat + call Pause + ret +CheatPeek21 ENDP + +; --- CheatSwap21: áàíê, ñòàâêè, ñòðåññ, ïîäîçðåíèå è ýêîíîìèêà êàçèíî --- +CheatSwap21 PROC uses eax ebx + cmp playerCnt21, 0 + je cheat_swap21_none + call DrawCard + mov ebx, playerCnt21 + dec ebx + mov playerHand21[ebx * 4], eax + call CalcPlayerScore21 + invoke PrintStr, OFFSET cheatSwapText + invoke AddSuspicion, 18 + call CheckCasinoHeat + call Pause + ret +cheat_swap21_none: + invoke PrintStr, OFFSET cheatNoTargetText + call Pause + ret +CheatSwap21 ENDP + +; --- CheatPeekPoker: áàíê, ñòàâêè, ñòðåññ, ïîäîçðåíèå è ýêîíîìèêà êàçèíî --- +CheatPeekPoker PROC uses eax ebx + mov ebx, communityCnt + cmp ebx, 5 + jb cheat_peek_poker_table + invoke PrintStr, OFFSET cheatPeekText + mov ebx, 0 + mov eax, aiHand21[ebx * 4] + invoke PrintCard, eax + jmp cheat_peek_poker_done +cheat_peek_poker_table: + invoke PrintStr, OFFSET cheatPeekText + mov eax, communityHand[ebx * 4] + invoke PrintCard, eax +cheat_peek_poker_done: + invoke AddSuspicion, 12 + call CheckCasinoHeat + call Pause + ret +CheatPeekPoker ENDP + +; --- CheatSwapPoker: áàíê, ñòàâêè, ñòðåññ, ïîäîçðåíèå è ýêîíîìèêà êàçèíî --- +CheatSwapPoker PROC uses eax + cmp playerCnt21, 0 + je cheat_swap_poker_none + call DrawCard + mov DWORD PTR playerHand21[0], eax + invoke PrintStr, OFFSET cheatSwapText + invoke AddSuspicion, 18 + call CheckCasinoHeat + call Pause + ret +cheat_swap_poker_none: + invoke PrintStr, OFFSET cheatNoTargetText + call Pause + ret +CheatSwapPoker ENDP + + +; --- CountDanger21: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +CountDanger21 PROC uses eax ebx esi + call CalcAIScore21 + mov dangerLvl21, 0 + mov cardsLeft21, 0 + mov rowIndex, 0 +danger_loop: + mov eax, rowIndex + cmp eax, 52 + jae danger_done + mov esi, OFFSET deckUsed + cmp byte ptr [esi + eax], 0 + jne danger_next + + inc cardsLeft21 + invoke CardValue21, rowIndex + mov ebx, dealerTotal + add ebx, eax + cmp ebx, 21 + jbe danger_next + inc dangerLvl21 +danger_next: + inc rowIndex + jmp danger_loop +danger_done: + ret +CountDanger21 ENDP + +; --- FinalScreen21: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +FinalScreen21 PROC + call ClearView + mov revealAI21, 1 + call ShowAllCards21 + + mov eax, playerTotal + mov ebx, dealerTotal + cmp eax, 21 + ja final_21_lose + cmp ebx, 21 + ja final_21_win + cmp eax, ebx + ja final_21_win + jb final_21_lose + call PrintDrawEvent + call PayDraw + ret +final_21_win: + call PrintWinEvent + call PayWin + ret +final_21_lose: + call PrintLoseEvent + call PayLose + ret +FinalScreen21 ENDP + +; --- ResetPokerHands: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +ResetPokerHands PROC + mov playerCnt21, 0 + mov aiCnt21, 0 + mov communityCnt, 0 + mov revealAI21, 0 + ret +ResetPokerHands ENDP + +; --- DrawCommunityPoker: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +DrawCommunityPoker PROC uses ebx ecx + cmp communityCnt, 5 + jae draw_community_done + call PlayCardSound + call DrawCard + mov ebx, communityCnt + mov communityHand[ebx * 4], eax + inc communityCnt +draw_community_done: + ret +DrawCommunityPoker ENDP + +; --- DealPokerHands: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +DealPokerHands PROC uses ecx + mov ecx, 2 +deal_poker_hands_loop: + call DrawPlayer21Hand + call DrawAI21Hand + loop deal_poker_hands_loop + + mov ecx, 5 +deal_poker_table_loop: + call DrawCommunityPoker + loop deal_poker_table_loop + mov communityCnt, 3 + ret +DealPokerHands ENDP + +; --- ShowPokerTable: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +ShowPokerTable PROC + invoke PrintStr, OFFSET aiCardsText + invoke PrintHandRow21, OFFSET aiHand21, aiCnt21, revealAI21 + invoke PrintStr, OFFSET pokerTableText + call PrintCommunityRow + invoke PrintStr, OFFSET playerCardsText + invoke PrintHandRow21, OFFSET playerHand21, playerCnt21, 1 + ret +ShowPokerTable ENDP + +; --- ShowPokerRevealFrame: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +ShowPokerRevealFrame PROC pSegment:DWORD + call ClearView + invoke PrintTitleColor, OFFSET pokerTitle + invoke PrintStr, OFFSET pokerRevealText + invoke PrintStr, OFFSET aiCardsText + invoke PrintFlipCards, aiCnt21, pSegment + invoke PrintStr, OFFSET pokerTableText + call PrintCommunityRow + invoke PrintStr, OFFSET playerCardsText + invoke PrintHandRow21, OFFSET playerHand21, playerCnt21, 1 + ret +ShowPokerRevealFrame ENDP + +; --- AnimateRevealPoker: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +AnimateRevealPoker PROC + call PlayCardSound + invoke ShowPokerRevealFrame, OFFSET cardBackSeg + invoke Sleep, FLIP_DELAY + invoke ShowPokerRevealFrame, OFFSET cardFlipLeft + invoke Sleep, FLIP_DELAY + invoke ShowPokerRevealFrame, OFFSET cardFlipMid + invoke Sleep, FLIP_DELAY + invoke ShowPokerRevealFrame, OFFSET cardFlipRight + invoke Sleep, FLIP_DELAY + mov revealAI21, 1 + call ClearView + invoke PrintTitleColor, OFFSET pokerTitle + call ShowPokerTable + invoke Sleep, FLIP_FINAL_DELAY + ret +AnimateRevealPoker ENDP + +; --- ClearPokerCounts: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +ClearPokerCounts PROC uses ecx edi + mov ecx, 13 + mov edi, OFFSET rankCounts +clear_rank_counts: + mov byte ptr [edi], 0 + inc edi + loop clear_rank_counts + + mov ecx, 4 + mov edi, OFFSET suitCounts +clear_suit_counts: + mov byte ptr [edi], 0 + inc edi + loop clear_suit_counts + ret +ClearPokerCounts ENDP + +; --- EvaluatePokerN: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +EvaluatePokerN PROC uses ebx ecx edx esi edi, pHand:DWORD, cardCount:DWORD + call ClearPokerCounts + mov pokerStraight, 0 + mov pokerFlush, 0 + mov pokerHigh, 0 + mov pokerFour, 0FFFFFFFFh + mov pokerTrip, 0FFFFFFFFh + mov pokerPairHigh, 0FFFFFFFFh + mov pokerPairLow, 0FFFFFFFFh + + mov esi, pHand + mov ecx, cardCount +count_poker_cards: + mov eax, [esi] + xor edx, edx + mov ebx, 13 + div ebx + inc byte ptr suitCounts[eax] + inc byte ptr rankCounts[edx] + add esi, 4 + loop count_poker_cards + + mov ecx, 4 + xor ebx, ebx +check_flush_loop: + cmp byte ptr suitCounts[ebx], 5 + jb next_flush_suit + mov pokerFlush, 1 +next_flush_suit: + inc ebx + loop check_flush_loop + + mov ecx, 13 + mov ebx, 12 +find_high_card: + cmp byte ptr rankCounts[ebx], 0 + jne high_card_found + dec ebx + loop find_high_card + jmp check_wheel_straight +high_card_found: + mov pokerHigh, ebx + +check_wheel_straight: + cmp byte ptr rankCounts[12], 0 + je check_normal_straight + cmp byte ptr rankCounts[0], 0 + je check_normal_straight + cmp byte ptr rankCounts[1], 0 + je check_normal_straight + cmp byte ptr rankCounts[2], 0 + je check_normal_straight + cmp byte ptr rankCounts[3], 0 + je check_normal_straight + mov pokerStraight, 1 + mov pokerHigh, 3 + jmp scan_duplicates + +check_normal_straight: + mov ebx, 12 +normal_straight_loop: + cmp ebx, 4 + jb scan_duplicates + cmp byte ptr rankCounts[ebx], 0 + je normal_straight_next + mov eax, ebx + dec eax + cmp byte ptr rankCounts[eax], 0 + je normal_straight_next + dec eax + cmp byte ptr rankCounts[eax], 0 + je normal_straight_next + dec eax + cmp byte ptr rankCounts[eax], 0 + je normal_straight_next + dec eax + cmp byte ptr rankCounts[eax], 0 + je normal_straight_next + mov pokerStraight, 1 + mov pokerHigh, ebx + jmp scan_duplicates +normal_straight_next: + dec ebx + jmp normal_straight_loop + +scan_duplicates: + mov ebx, 12 +duplicate_loop: + cmp ebx, 0FFFFFFFFh + je decide_poker_score + mov al, byte ptr rankCounts[ebx] + cmp al, 4 + jne check_trip_count + mov pokerFour, ebx + jmp duplicate_next +check_trip_count: + cmp al, 3 + jne check_pair_count + cmp pokerTrip, 0FFFFFFFFh + jne second_trip_as_pair + mov pokerTrip, ebx + jmp duplicate_next +second_trip_as_pair: + cmp pokerPairHigh, 0FFFFFFFFh + jne duplicate_next + mov pokerPairHigh, ebx + jmp duplicate_next +check_pair_count: + cmp al, 2 + jne duplicate_next + cmp pokerPairHigh, 0FFFFFFFFh + jne set_low_pair + mov pokerPairHigh, ebx + jmp duplicate_next +set_low_pair: + mov pokerPairLow, ebx +duplicate_next: + dec ebx + jmp duplicate_loop + +decide_poker_score: + cmp pokerStraight, 1 + jne not_straight_flush + cmp pokerFlush, 1 + jne not_straight_flush + mov eax, 8000 + add eax, pokerHigh + ret +not_straight_flush: + cmp pokerFour, 0FFFFFFFFh + je not_four_kind + mov eax, 7000 + add eax, pokerFour + ret +not_four_kind: + cmp pokerTrip, 0FFFFFFFFh + je not_full_house + cmp pokerPairHigh, 0FFFFFFFFh + je not_full_house + mov eax, 6000 + add eax, pokerTrip + ret +not_full_house: + cmp pokerFlush, 1 + jne not_flush + mov eax, 5000 + add eax, pokerHigh + ret +not_flush: + cmp pokerStraight, 1 + jne not_straight + mov eax, 4000 + add eax, pokerHigh + ret +not_straight: + cmp pokerTrip, 0FFFFFFFFh + je not_three_kind + mov eax, 3000 + add eax, pokerTrip + ret +not_three_kind: + cmp pokerPairLow, 0FFFFFFFFh + je not_two_pair + mov eax, pokerPairHigh + mov ebx, 13 + mul ebx + add eax, pokerPairLow + add eax, 2000 + ret +not_two_pair: + cmp pokerPairHigh, 0FFFFFFFFh + je high_card_score + mov eax, 1000 + add eax, pokerPairHigh + ret +high_card_score: + mov eax, pokerHigh + ret +EvaluatePokerN ENDP + +; --- EvaluatePoker: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +EvaluatePoker PROC pHand:DWORD + invoke EvaluatePokerN, pHand, 5 + ret +EvaluatePoker ENDP + +; --- PrintPokerHandName: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintPokerHandName PROC uses eax ebx edx, score:DWORD + mov eax, score + xor edx, edx + mov ebx, 1000 + div ebx + invoke PrintStr, pokerNames[eax * 4] + ret +PrintPokerHandName ENDP + +; --- BuildPokerEvalHand: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +BuildPokerEvalHand PROC uses eax ebx esi edi, pHole:DWORD, pOut:DWORD + mov esi, pHole + mov edi, pOut + + mov eax, [esi] + mov [edi], eax + mov eax, [esi + 4] + mov [edi + 4], eax + + mov eax, communityCnt + add eax, 2 + mov pokerEvalCount, eax + + mov ebx, 0 +build_table_cards: + cmp ebx, communityCnt + jae build_eval_done + mov eax, communityHand[ebx * 4] + mov [edi + ebx * 4 + 8], eax + inc ebx + jmp build_table_cards +build_eval_done: + ret +BuildPokerEvalHand ENDP + +; --- ShowPokerHint: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +ShowPokerHint PROC + invoke BuildPokerEvalHand, OFFSET playerHand21, OFFSET pokerPlayerEvalHand + invoke EvaluatePokerN, OFFSET pokerPlayerEvalHand, pokerEvalCount + mov pokerPlayerScore, eax + invoke PrintStr, OFFSET pokerHintText + invoke PrintPokerHandName, pokerPlayerScore + ret +ShowPokerHint ENDP + +; --- ShowPokerResult: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +ShowPokerResult PROC uses ebx + invoke BuildPokerEvalHand, OFFSET playerHand21, OFFSET pokerPlayerEvalHand + mov ebx, pokerEvalCount + invoke BuildPokerEvalHand, OFFSET aiHand21, OFFSET pokerAIEvalHand + mov pokerEvalCount, ebx + + invoke EvaluatePokerN, OFFSET pokerPlayerEvalHand, pokerEvalCount + mov pokerPlayerScore, eax + invoke EvaluatePokerN, OFFSET pokerAIEvalHand, pokerEvalCount + mov pokerAIScore, eax + + invoke PrintStr, OFFSET pokerYourComboText + invoke PrintPokerHandName, pokerPlayerScore + invoke PrintStr, OFFSET pokerAIComboText + invoke PrintPokerHandName, pokerAIScore + + mov eax, pokerPlayerScore + cmp eax, pokerAIScore + ja poker_player_win + jb poker_ai_win + call PrintDrawEvent + call PayDraw + ret +poker_player_win: + call PrintWinEvent + call PayWin + ret +poker_ai_win: + call PrintLoseEvent + call PayLose + ret +ShowPokerResult ENDP + +; --- PokerAIDecide: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +PokerAIDecide PROC uses ebx edx + invoke BuildPokerEvalHand, OFFSET aiHand21, OFFSET pokerAIEvalHand + invoke EvaluatePokerN, OFFSET pokerAIEvalHand, pokerEvalCount + mov pokerAIScore, eax + + mov eax, pokerAIScore + xor edx, edx + mov ebx, 1000 + div ebx + cmp eax, 1 + jae ai_will_play + + cmp aiDifficulty, 1 + je ai_easy_decide + cmp aiDifficulty, 3 + je ai_hard_decide + +ai_normal_decide: + mov eax, pokerAIScore + cmp eax, 11 + jae ai_normal_random + jmp ai_will_fold +ai_normal_random: + invoke RandomRange, 3 + cmp eax, 0 + je ai_will_fold + jmp ai_will_play + +ai_easy_decide: + invoke RandomRange, 2 + cmp eax, 0 + je ai_will_play + mov eax, pokerAIScore + cmp eax, 10 + jae ai_will_play + jmp ai_will_fold + +ai_hard_decide: + mov eax, pokerAIScore + cmp eax, 10 + jae ai_hard_high_card + invoke RandomRange, 3 + cmp eax, 0 + je ai_will_play + jmp ai_will_fold +ai_hard_high_card: + invoke RandomRange, 4 + cmp eax, 0 + je ai_will_fold + jmp ai_will_play + +ai_will_fold: + xor eax, eax + ret +ai_will_play: + mov eax, 1 + ret +PokerAIDecide ENDP + +; --- PokerAICallRaise: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +PokerAICallRaise PROC uses ebx ecx edx + invoke BuildPokerEvalHand, OFFSET aiHand21, OFFSET pokerAIEvalHand + invoke EvaluatePokerN, OFFSET pokerAIEvalHand, pokerEvalCount + mov pokerAIScore, eax + + mov eax, pokerAIScore + xor edx, edx + mov ebx, 1000 + div ebx + mov ecx, eax + cmp ecx, 1 + jae ai_call_raise + + mov eax, pokerRaiseAmount + mov ebx, 2 + mul ebx + cmp eax, currentBet + ja ai_big_raise + + cmp aiDifficulty, 1 + je ai_easy_call_bluff + cmp aiDifficulty, 3 + je ai_hard_call_bluff + invoke RandomRange, 3 + cmp eax, 0 + jne ai_call_raise + jmp ai_fold_raise + +ai_big_raise: + cmp aiDifficulty, 1 + je ai_easy_big_raise + cmp aiDifficulty, 3 + je ai_fold_raise + invoke RandomRange, 5 + cmp eax, 0 + je ai_call_raise + jmp ai_fold_raise + +ai_easy_call_bluff: + invoke RandomRange, 2 + cmp eax, 0 + je ai_call_raise + jmp ai_fold_raise + +ai_easy_big_raise: + invoke RandomRange, 3 + cmp eax, 0 + jne ai_call_raise + jmp ai_fold_raise + +ai_hard_call_bluff: + mov eax, pokerAIScore + cmp eax, 12 + jae ai_call_raise + jmp ai_fold_raise + +ai_fold_raise: + xor eax, eax + ret +ai_call_raise: + mov eax, 1 + ret +PokerAICallRaise ENDP + + +; --- HardPokerPlayerExchange: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +HardPokerPlayerExchange PROC uses eax ebx + cmp aiDifficulty, 3 + jne hard_player_exchange_done + call ClearView + invoke PrintTitleColor, OFFSET pokerTitle + call ShowPokerTable + call ShowPokerHint + invoke PrintStr, OFFSET pokerHardIntroText + invoke PrintStr, OFFSET pokerHardExchangeText + call ReadKey + cmp al, '1' + je hard_replace_first + cmp al, '2' + je hard_replace_second + jmp hard_player_exchange_done +hard_replace_first: + xor ebx, ebx + jmp hard_replace_card +hard_replace_second: + mov ebx, 1 +hard_replace_card: + call PlayCardSound + call DrawCard + mov playerHand21[ebx * 4], eax +hard_player_exchange_done: + ret +HardPokerPlayerExchange ENDP + +; --- HardPokerAIExchange: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +HardPokerAIExchange PROC uses eax ebx ecx edx + cmp aiDifficulty, 3 + jne hard_ai_exchange_done + invoke PrintStr, OFFSET pokerHardAIExchangeText + invoke Sleep, 650 + + mov eax, aiHand21[0] + xor edx, edx + mov ecx, 13 + div ecx + mov ebx, edx + + mov eax, aiHand21[4] + xor edx, edx + mov ecx, 13 + div ecx + + cmp ebx, edx + je hard_ai_exchange_done + cmp ebx, 8 + jb hard_ai_check_second + cmp edx, 8 + jae hard_ai_exchange_done + +hard_ai_check_second: + cmp ebx, edx + jbe hard_replace_ai_first + mov ebx, 1 + jmp hard_replace_ai_card +hard_replace_ai_first: + xor ebx, ebx +hard_replace_ai_card: + call PlayCardSound + call DrawCard + mov aiHand21[ebx * 4], eax +hard_ai_exchange_done: + ret +HardPokerAIExchange ENDP + +; --- PokerAIRaiseMaybe: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +PokerAIRaiseMaybe PROC uses ebx ecx edx + invoke BuildPokerEvalHand, OFFSET aiHand21, OFFSET pokerAIEvalHand + invoke EvaluatePokerN, OFFSET pokerAIEvalHand, pokerEvalCount + mov pokerAIScore, eax + + mov eax, bankroll + sub eax, currentBet + cmp eax, 0 + jbe ai_no_raise + mov ecx, eax + + mov eax, pokerAIScore + xor edx, edx + mov ebx, 1000 + div ebx + cmp eax, 2 + jae ai_strong_raise + cmp eax, 1 + je ai_pair_raise_check + + cmp aiDifficulty, 3 + jne ai_no_raise + mov eax, pokerAIScore + cmp eax, 12 + jne ai_no_raise + invoke RandomRange, 7 + cmp eax, 0 + jne ai_no_raise + mov eax, currentBet + xor edx, edx + mov ebx, 3 + div ebx + jmp ai_raise_amount_ready + +ai_pair_raise_check: + cmp aiDifficulty, 1 + je ai_easy_pair_raise + cmp aiDifficulty, 2 + je ai_normal_pair_raise + invoke RandomRange, 3 + cmp eax, 0 + je ai_no_raise + mov eax, currentBet + xor edx, edx + mov ebx, 2 + div ebx + jmp ai_raise_amount_ready + +ai_easy_pair_raise: + invoke RandomRange, 5 + cmp eax, 0 + jne ai_no_raise + mov eax, currentBet + xor edx, edx + mov ebx, 3 + div ebx + jmp ai_raise_amount_ready + +ai_normal_pair_raise: + invoke RandomRange, 3 + cmp eax, 0 + je ai_no_raise + mov eax, currentBet + xor edx, edx + mov ebx, 2 + div ebx + jmp ai_raise_amount_ready + +ai_strong_raise: + cmp aiDifficulty, 1 + je ai_easy_strong_raise + cmp aiDifficulty, 2 + je ai_normal_strong_raise + mov eax, currentBet + jmp ai_raise_amount_ready + +ai_easy_strong_raise: + invoke RandomRange, 3 + cmp eax, 0 + jne ai_no_raise + mov eax, currentBet + xor edx, edx + mov ebx, 2 + div ebx + jmp ai_raise_amount_ready + +ai_normal_strong_raise: + invoke RandomRange, 2 + cmp eax, 0 + je ai_no_raise + mov eax, currentBet + xor edx, edx + mov ebx, 2 + div ebx + jmp ai_raise_amount_ready + +ai_raise_amount_ready: + cmp eax, 50 + jae ai_raise_min_ok + mov eax, 50 +ai_raise_min_ok: + cmp eax, ecx + jbe ai_raise_store + mov eax, ecx +ai_raise_store: + cmp eax, 0 + jbe ai_no_raise + mov pokerAIRaiseAmount, eax + mov pokerRaiseAmount, eax + mov eax, 1 + ret +ai_no_raise: + xor eax, eax + ret +PokerAIRaiseMaybe ENDP +; --- PokerPlayerExchange: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +PokerPlayerExchange PROC uses eax ebx + mov pokerReplaceIndex, 0 +player_exchange_loop: + cmp pokerReplaceIndex, 5 + jae player_exchange_done + call ClearView + invoke PrintTitleColor, OFFSET pokerTitle + call ShowPokerTable + invoke PrintStr, OFFSET pokerReplaceText + mov eax, pokerReplaceIndex + inc eax + invoke PrintUInt, eax + invoke PrintStr, OFFSET pokerReplaceTail + call ReadKey + cmp al, 'y' + je replace_player_card + cmp al, 'Y' + je replace_player_card + cmp al, '1' + je replace_player_card + jmp next_player_exchange +replace_player_card: + call DrawCard + mov ebx, pokerReplaceIndex + mov playerHand21[ebx * 4], eax +next_player_exchange: + inc pokerReplaceIndex + jmp player_exchange_loop +player_exchange_done: + ret +PokerPlayerExchange ENDP + +; --- PokerAIExchange: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +PokerAIExchange PROC uses eax ebx ecx edx + invoke EvaluatePoker, OFFSET aiHand21 + xor edx, edx + mov ebx, 1000 + div ebx + cmp eax, 4 + jae ai_exchange_done + + mov pokerReplaced, 0 + mov pokerReplaceIndex, 0 +ai_exchange_loop: + cmp pokerReplaceIndex, 5 + jae ai_exchange_done + cmp pokerReplaced, 3 + jae ai_exchange_done + + mov ebx, pokerReplaceIndex + mov eax, aiHand21[ebx * 4] + xor edx, edx + mov ecx, 13 + div ecx + cmp byte ptr rankCounts[edx], 1 + jne next_ai_exchange + call DrawCard + mov ebx, pokerReplaceIndex + mov aiHand21[ebx * 4], eax + inc pokerReplaced +next_ai_exchange: + inc pokerReplaceIndex + jmp ai_exchange_loop +ai_exchange_done: + ret +PokerAIExchange ENDP + +; --- AddPlayerBJ: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +AddPlayerBJ PROC uses eax ebx edx + call DrawCard + mov ebx, eax + invoke PrintStr, OFFSET yourCardText + invoke PrintCard, ebx + invoke CardValueBJ, ebx + add playerTotal, eax + cmp eax, 11 + jne no_player_ace + inc playerAces +no_player_ace: + inc playerCards + call AdjustPlayerAces + ret +AddPlayerBJ ENDP + +; --- AddDealerBJ: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +AddDealerBJ PROC uses eax ebx + call DrawCard + mov ebx, eax + invoke PrintStr, OFFSET dealerCardText + invoke PrintCard, ebx + invoke CardValueBJ, ebx + add dealerTotal, eax + cmp eax, 11 + jne no_dealer_ace + inc dealerAces +no_dealer_ace: + call AdjustDealerAces + ret +AddDealerBJ ENDP + +; --- CompareTotals: ñëóæåáíûé áëîê èãðîâîé ëîãèêè --- +CompareTotals PROC + call PrintScore + cmp playerTotal, 21 + ja player_lost + cmp dealerTotal, 21 + ja dealer_lost + mov eax, playerTotal + cmp eax, dealerTotal + ja player_won + jb player_lost + call PrintDrawEvent + ret +player_won: + call PrintWinEvent + ret +player_lost: + call PrintLoseEvent + ret +dealer_lost: + invoke PrintStr, OFFSET dealerBustText + ret +CompareTotals ENDP + +; --- Game21: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +Game21 PROC +start_21: + call ClearView + invoke PrintTitleColor, OFFSET twentyOneTitle + call PromptBet + call ResetDeck + call Reset21Hands + + call DrawPlayer21Hand + call DrawPlayer21Hand + call DrawAI21Hand + call DrawAI21Hand + +player_21_loop: + call ClearView + invoke PrintTitleColor, OFFSET twentyOneTitle + call ShowAllCards21 + + cmp playerTotal, 21 + ja player_21_bust + cmp playerTotal, 21 + je ai_21_turn + + invoke PrintStr, OFFSET hitText + invoke PrintStr, OFFSET cheatMoveText + call ReadKey + cmp al, '1' + je hit_21 + cmp al, 'y' + je hit_21 + cmp al, 'Y' + je hit_21 + cmp al, '3' + je cheat_peek_21_action + cmp al, '4' + je cheat_swap_21_action + jmp ai_21_turn +cheat_peek_21_action: + call CheatPeek21 + jmp player_21_loop +cheat_swap_21_action: + call CheatSwap21 + jmp player_21_loop +hit_21: + cmp playerCnt21, 10 + jae ai_21_turn + call DrawPlayer21Hand + jmp player_21_loop + +player_21_bust: + invoke PrintStr, OFFSET bustText + call PayLose + jmp ask_21_again + +ai_21_turn: +ai_21_cycle: + call ClearView + invoke PrintTitleColor, OFFSET twentyOneTitle + call ShowAllCards21 + + cmp playerTotal, 21 + ja finish_21 + cmp dealerTotal, 21 + je finish_21 + cmp aiDifficulty, 1 + je ai_21_easy + cmp aiDifficulty, 2 + je ai_21_normal + cmp dealerTotal, 12 + jb ai_21_must_hit + + mov eax, dealerTotal + cmp eax, playerTotal + jae finish_21 + + call CountDanger21 + mov eax, dangerLvl21 + mov ebx, 2 + mul ebx + cmp eax, cardsLeft21 + ja finish_21 + jmp ai_21_must_hit + +ai_21_easy: + cmp dealerTotal, 16 + jb ai_21_must_hit + jmp finish_21 + +ai_21_normal: + cmp dealerTotal, 17 + jb ai_21_must_hit + jmp finish_21 + +ai_21_must_hit: + cmp aiCnt21, 10 + jae finish_21 + invoke PrintStr, OFFSET aiMoveText + invoke Sleep, 650 + call DrawAI21Hand + call CalcAIScore21 + cmp dealerTotal, 21 + ja finish_21 + jmp ai_21_cycle + +finish_21: + call AnimateReveal21 + call FinalScreen21 +ask_21_again: + cmp tournamentMode, 1 + je game21_tournament_return + invoke PrintStr, OFFSET againText + call ReadKey + cmp al, 'y' + je start_21 + cmp al, 'Y' + je start_21 +game21_tournament_return: + ret +Game21 ENDP + +; --- GamePoker: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +GamePoker PROC +start_poker: + call ClearView + invoke PrintTitleColor, OFFSET pokerTitle + call PromptBet + call ResetDeck + call ResetPokerHands + call DealPokerHands + call HardPokerPlayerExchange + call HardPokerAIExchange + +poker_stage_loop: + call ClearView + invoke PrintTitleColor, OFFSET pokerTitle + call ShowPokerTable + call ShowPokerHint + call ShowPokerMoney + cmp communityCnt, 5 + jae poker_showdown + invoke PrintStr, OFFSET pokerDecisionText + invoke PrintStr, OFFSET cheatMoveText + call ReadKey + cmp al, '1' + je poker_play + cmp al, 'y' + je poker_play + cmp al, 'Y' + je poker_play + cmp al, '2' + je poker_raise + cmp al, 'r' + je poker_raise + cmp al, 'R' + je poker_raise + cmp al, '3' + je poker_cheat_peek + cmp al, '4' + je poker_cheat_swap + invoke PrintStr, OFFSET pokerFoldText + call PayLose + jmp ask_poker_again + +poker_cheat_peek: + call CheatPeekPoker + jmp poker_stage_loop +poker_cheat_swap: + call CheatSwapPoker + jmp poker_stage_loop + +poker_raise: + call PromptPokerRaise + cmp eax, 0 + je poker_stage_loop + invoke UnlockAchievement, 200h, OFFSET achPokerRaiseName + invoke PrintStr, OFFSET aiThinkText + invoke Sleep, 700 + call PokerAICallRaise + cmp eax, 0 + jne poker_raise_called + invoke PrintStr, OFFSET pokerAIFoldRaiseText + invoke UnlockAchievement, 400h, OFFSET achPokerBluffName + call PayWin + jmp ask_poker_again +poker_raise_called: + invoke PrintStr, OFFSET pokerAICallRaiseText + invoke Sleep, 700 + jmp poker_next_stage + +poker_play: + invoke PrintStr, OFFSET aiThinkText + invoke Sleep, 700 + call PokerAIDecide + cmp eax, 0 + jne poker_ai_plays + invoke PrintStr, OFFSET pokerAIFoldText + call PayWin + jmp ask_poker_again + +poker_ai_plays: + call PokerAIRaiseMaybe + cmp eax, 0 + je poker_next_stage + invoke PrintStr, OFFSET pokerAIRaiseText + invoke PrintUInt, pokerAIRaiseAmount + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET pokerCallRaiseText + call ReadKey + cmp al, '1' + je poker_call_ai_raise + cmp al, 'y' + je poker_call_ai_raise + cmp al, 'Y' + je poker_call_ai_raise + invoke PrintStr, OFFSET pokerFoldToRaiseText + call PayLose + jmp ask_poker_again +poker_call_ai_raise: + mov eax, currentBet + add eax, pokerAIRaiseAmount + cmp eax, bankroll + jbe poker_call_ai_raise_ok + invoke PrintStr, OFFSET tooBigBetText + invoke PrintStr, OFFSET pokerFoldToRaiseText + call PayLose + jmp ask_poker_again +poker_call_ai_raise_ok: + mov currentBet, eax + invoke PrintStr, OFFSET pokerPlayerCallText + invoke PrintUInt, currentBet + invoke PrintStr, OFFSET nl + invoke Sleep, 700 +poker_next_stage: + cmp communityCnt, 5 + jae poker_showdown + invoke PrintStr, OFFSET pokerNextCardText + invoke Sleep, 900 + inc communityCnt + jmp poker_stage_loop + +poker_showdown: + call AnimateRevealPoker + call ShowPokerResult + +ask_poker_again: + cmp tournamentMode, 1 + je poker_tournament_return + invoke PrintStr, OFFSET againText + call ReadKey + cmp al, 'y' + je start_poker + cmp al, 'Y' + je start_poker +poker_tournament_return: + ret +GamePoker ENDP + +; --- PrintSlotSymbol: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintSlotSymbol PROC uses eax, value:DWORD + mov eax, value + cmp eax, 0 + je slot_symbol_green + cmp eax, 1 + je slot_symbol_yellow + cmp eax, 2 + je slot_symbol_red + cmp eax, 3 + je slot_symbol_yellow + cmp eax, 4 + je slot_symbol_cyan + cmp eax, 5 + je slot_symbol_yellow + invoke SetColor, COLOR_BAD + jmp slot_symbol_print +slot_symbol_green: + invoke SetColor, COLOR_MONEY + jmp slot_symbol_print +slot_symbol_yellow: + invoke SetColor, COLOR_WARN + jmp slot_symbol_print +slot_symbol_red: + invoke SetColor, COLOR_BAD + jmp slot_symbol_print +slot_symbol_cyan: + invoke SetColor, COLOR_TITLE +slot_symbol_print: + mov eax, value + invoke PrintStr, slotSymbols[eax * 4] + call ResetColor + ret +PrintSlotSymbol ENDP + +; --- MoveCursor: ñëóæåáíûå ôóíêöèè êîíñîëè è ñëó÷àéíûõ ÷èñåë --- +MoveCursor PROC uses eax edx, xPos:DWORD, yPos:DWORD + mov eax, yPos + shl eax, 16 + mov edx, xPos + and edx, 0FFFFh + or eax, edx + invoke SetConsoleCursorPosition, hOut, eax + ret +MoveCursor ENDP + +; --- PrintSkullAt: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintSkullAt PROC uses eax, xPos:DWORD, yPos:DWORD + mov eax, yPos + invoke MoveCursor, xPos, eax + invoke PrintUtf8, OFFSET skullSeg1 + mov eax, yPos + inc eax + invoke MoveCursor, xPos, eax + invoke PrintUtf8, OFFSET skullSeg2 + mov eax, yPos + add eax, 2 + invoke MoveCursor, xPos, eax + invoke PrintUtf8, OFFSET skullSeg3 + mov eax, yPos + add eax, 3 + invoke MoveCursor, xPos, eax + invoke PrintUtf8, OFFSET skullSeg4 + mov eax, yPos + add eax, 4 + invoke MoveCursor, xPos, eax + invoke PrintUtf8, OFFSET skullSeg5 + mov eax, yPos + add eax, 5 + invoke MoveCursor, xPos, eax + invoke PrintUtf8, OFFSET skullSeg6 + mov eax, yPos + add eax, 6 + invoke MoveCursor, xPos, eax + invoke PrintUtf8, OFFSET skullSeg7 + mov eax, yPos + add eax, 7 + invoke MoveCursor, xPos, eax + invoke PrintUtf8, OFFSET skullSeg8 + ret +PrintSkullAt ENDP + +; --- ShowSkullSlideFrame: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +ShowSkullSlideFrame PROC x1:DWORD, y1:DWORD, x2:DWORD, y2:DWORD, x3:DWORD, y3:DWORD + call ClearView + invoke PrintTitleColor, OFFSET skullsTitle + invoke PrintStr, OFFSET skullsShuffleText + invoke PrintSkullAt, x1, y1 + invoke PrintSkullAt, x2, y2 + invoke PrintSkullAt, x3, y3 + invoke Sleep, 220 + ret +ShowSkullSlideFrame ENDP + +; --- AnimateSkullSwap12: èãðà ñ ÷åðåïàìè è øàðèêîì, ïåðåìåøèâàíèå è îòðèñîâêà --- +AnimateSkullSwap12 PROC + invoke ShowSkullSlideFrame, 0, 5, 18, 5, 36, 5 + invoke ShowSkullSlideFrame, 4, 6, 14, 4, 36, 5 + invoke ShowSkullSlideFrame, 8, 7, 10, 3, 36, 5 + invoke ShowSkullSlideFrame, 14, 6, 4, 4, 36, 5 + invoke ShowSkullSlideFrame, 18, 5, 0, 5, 36, 5 + ret +AnimateSkullSwap12 ENDP + +; --- AnimateSkullSwap23: èãðà ñ ÷åðåïàìè è øàðèêîì, ïåðåìåøèâàíèå è îòðèñîâêà --- +AnimateSkullSwap23 PROC + invoke ShowSkullSlideFrame, 0, 5, 18, 5, 36, 5 + invoke ShowSkullSlideFrame, 0, 5, 22, 6, 32, 4 + invoke ShowSkullSlideFrame, 0, 5, 26, 7, 28, 3 + invoke ShowSkullSlideFrame, 0, 5, 32, 6, 22, 4 + invoke ShowSkullSlideFrame, 0, 5, 36, 5, 18, 5 + ret +AnimateSkullSwap23 ENDP + +; --- AnimateSkullSwap13: èãðà ñ ÷åðåïàìè è øàðèêîì, ïåðåìåøèâàíèå è îòðèñîâêà --- +AnimateSkullSwap13 PROC + invoke ShowSkullSlideFrame, 0, 5, 18, 5, 36, 5 + invoke ShowSkullSlideFrame, 8, 7, 18, 5, 28, 3 + invoke ShowSkullSlideFrame, 18, 8, 18, 5, 18, 2 + invoke ShowSkullSlideFrame, 28, 7, 18, 5, 8, 3 + invoke ShowSkullSlideFrame, 36, 5, 18, 5, 0, 5 + ret +AnimateSkullSwap13 ENDP + + +; --- PrintSkullRows: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintSkullRows PROC + invoke PrintUtf8, OFFSET skullSeg1 + invoke PrintUtf8, OFFSET skullSeg1 + invoke PrintUtf8, OFFSET skullSeg1 + invoke PrintStr, OFFSET nl + invoke PrintUtf8, OFFSET skullSeg2 + invoke PrintUtf8, OFFSET skullSeg2 + invoke PrintUtf8, OFFSET skullSeg2 + invoke PrintStr, OFFSET nl + invoke PrintUtf8, OFFSET skullSeg3 + invoke PrintUtf8, OFFSET skullSeg3 + invoke PrintUtf8, OFFSET skullSeg3 + invoke PrintStr, OFFSET nl + invoke PrintUtf8, OFFSET skullSeg4 + invoke PrintUtf8, OFFSET skullSeg4 + invoke PrintUtf8, OFFSET skullSeg4 + invoke PrintStr, OFFSET nl + invoke PrintUtf8, OFFSET skullSeg5 + invoke PrintUtf8, OFFSET skullSeg5 + invoke PrintUtf8, OFFSET skullSeg5 + invoke PrintStr, OFFSET nl + invoke PrintUtf8, OFFSET skullSeg6 + invoke PrintUtf8, OFFSET skullSeg6 + invoke PrintUtf8, OFFSET skullSeg6 + invoke PrintStr, OFFSET nl + invoke PrintUtf8, OFFSET skullSeg7 + invoke PrintUtf8, OFFSET skullSeg7 + invoke PrintUtf8, OFFSET skullSeg7 + invoke PrintStr, OFFSET nl + invoke PrintUtf8, OFFSET skullSeg8 + invoke PrintUtf8, OFFSET skullSeg8 + invoke PrintUtf8, OFFSET skullSeg8 + invoke PrintStr, OFFSET nl + ret +PrintSkullRows ENDP +; --- PrintSkulls: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintSkulls PROC reveal:DWORD + call PrintSkullRows + invoke PrintStr, OFFSET skullNums + cmp reveal, 0 + je print_skull_blank_ball + mov eax, skullBallPos + cmp eax, 0 + je print_skull_ball_1 + cmp eax, 1 + je print_skull_ball_2 + invoke PrintStr, OFFSET skullBall3 + ret +print_skull_ball_1: + invoke PrintStr, OFFSET skullBall1 + ret +print_skull_ball_2: + invoke PrintStr, OFFSET skullBall2 + ret +print_skull_blank_ball: + invoke PrintStr, OFFSET skullBlankBall + ret +PrintSkulls ENDP +; --- PrintSkullFaces: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintSkullFaces PROC + call PrintSkullRows + invoke PrintStr, OFFSET skullBlankBall + ret +PrintSkullFaces ENDP +; --- ShowSkullShuffleFrame: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +ShowSkullShuffleFrame PROC pSwapText:DWORD + call ClearView + invoke PrintTitleColor, OFFSET skullsTitle + invoke PrintStr, OFFSET skullsShuffleText + invoke PrintStr, pSwapText + call PrintSkullFaces + invoke Sleep, 400 + ret +ShowSkullShuffleFrame ENDP + +; --- ShuffleSkulls: èãðà ñ ÷åðåïàìè è øàðèêîì, ïåðåìåøèâàíèå è îòðèñîâêà --- +ShuffleSkulls PROC uses eax ebx + cmp aiDifficulty, 1 + je skulls_easy_steps + cmp aiDifficulty, 3 + je skulls_hard_steps + +skulls_normal_steps: + invoke RandomRange, 4 + add eax, 9 + jmp skulls_store_steps + +skulls_easy_steps: + invoke RandomRange, 4 + add eax, 5 + jmp skulls_store_steps + +skulls_hard_steps: + invoke RandomRange, 5 + add eax, 12 + +skulls_store_steps: + mov skullMax, eax + mov skullStep, 0 + +shuffle_skulls_loop: + mov eax, skullStep + cmp eax, skullMax + jae shuffle_skulls_done + + cmp skullStep, 0 + je skulls_play_first_move_sound + mov eax, skullMax + dec eax + cmp skullStep, eax + je skulls_play_last_move_sound + jmp skulls_after_move_sound + +skulls_play_first_move_sound: + call PlayStoneSound + invoke Sleep, 180 + jmp skulls_after_move_sound +skulls_play_last_move_sound: + call PlayStoneSound + +skulls_after_move_sound: + invoke RandomRange, 3 + cmp eax, 0 + je shuffle_12 + cmp eax, 1 + je shuffle_23 + jmp shuffle_13 + +shuffle_12: + mov eax, skullBallPos + cmp eax, 0 + je ball_12_to_2 + cmp eax, 1 + je ball_12_to_1 + jmp show_shuffle_12 +ball_12_to_2: + mov skullBallPos, 1 + jmp show_shuffle_12 +ball_12_to_1: + mov skullBallPos, 0 +show_shuffle_12: + call AnimateSkullSwap12 + jmp shuffle_next + +shuffle_23: + mov eax, skullBallPos + cmp eax, 1 + je ball_23_to_3 + cmp eax, 2 + je ball_23_to_2 + jmp show_shuffle_23 +ball_23_to_3: + mov skullBallPos, 2 + jmp show_shuffle_23 +ball_23_to_2: + mov skullBallPos, 1 +show_shuffle_23: + call AnimateSkullSwap23 + jmp shuffle_next + +shuffle_13: + mov eax, skullBallPos + cmp eax, 0 + je ball_13_to_3 + cmp eax, 2 + je ball_13_to_1 + jmp show_shuffle_13 +ball_13_to_3: + mov skullBallPos, 2 + jmp show_shuffle_13 +ball_13_to_1: + mov skullBallPos, 0 +show_shuffle_13: + call AnimateSkullSwap13 + +shuffle_next: + inc skullStep + jmp shuffle_skulls_loop +shuffle_skulls_done: + ret +ShuffleSkulls ENDP + +; --- GameSkulls: èãðà ñ ÷åðåïàìè è øàðèêîì, ïåðåìåøèâàíèå è îòðèñîâêà --- +GameSkulls PROC +skulls_start: + call ClearView + invoke PrintTitleColor, OFFSET skullsTitle + invoke PrintStr, OFFSET skullsIntroText + call PromptBet + invoke RandomRange, 3 + mov skullBallPos, eax + + call ClearView + invoke PrintTitleColor, OFFSET skullsTitle + invoke PrintStr, OFFSET skullsShowText + invoke PrintSkulls, 1 + invoke Sleep, 1600 + + call ClearView + invoke PrintTitleColor, OFFSET skullsTitle + invoke PrintStr, OFFSET skullsHideText + invoke PrintSkulls, 0 + invoke Sleep, 800 + + call ShuffleSkulls + +skulls_guess_again: + call ClearView + invoke PrintTitleColor, OFFSET skullsTitle + invoke PrintSkulls, 0 + invoke PrintStr, OFFSET skullsGuessText + call ReadKey + cmp al, '1' + je skull_guess_1 + cmp al, '2' + je skull_guess_2 + cmp al, '3' + je skull_guess_3 + invoke PrintStr, OFFSET badChoiceText + call Pause + jmp skulls_guess_again + +skull_guess_1: + mov skullGuess, 0 + jmp skulls_reveal +skull_guess_2: + mov skullGuess, 1 + jmp skulls_reveal +skull_guess_3: + mov skullGuess, 2 + +skulls_reveal: + call ClearView + invoke PrintTitleColor, OFFSET skullsTitle + invoke PrintSkulls, 1 + invoke PrintStr, OFFSET skullsBallText + mov eax, skullBallPos + inc eax + invoke PrintUInt, eax + invoke PrintStr, OFFSET nl + + mov eax, skullGuess + cmp eax, skullBallPos + jne skulls_lost + invoke PrintStr, OFFSET skullsWinText + invoke PaySlotMultiplier, 2 + jmp ask_skulls_again + +skulls_lost: + invoke PrintStr, OFFSET skullsLoseText + call PayLose + +ask_skulls_again: + cmp tournamentMode, 1 + je skulls_tournament_return + invoke PrintStr, OFFSET againText + call ReadKey + cmp al, 'y' + je skulls_start + cmp al, 'Y' + je skulls_start +skulls_tournament_return: + ret +GameSkulls ENDP +; --- PrintRevolver: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintRevolver PROC pGun:DWORD + invoke SetColor, COLOR_WARN + invoke PrintStr, pGun + call ResetColor + ret +PrintRevolver ENDP + +; --- PrintRouletteTurnGun: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintRouletteTurnGun PROC + cmp rrTurn, 0 + jne print_rr_ai_gun + invoke PrintRevolver, OFFSET rrGunDown + ret +print_rr_ai_gun: + invoke PrintRevolver, OFFSET rrGunUp + ret +PrintRouletteTurnGun ENDP + +; --- ShowRouletteStatus: ðóññêàÿ ðóëåòêà èëè êàçèíî-ðóëåòêà --- +ShowRouletteStatus PROC + call ClearView + invoke PrintTitleColor, OFFSET rouletteTitle + call PrintRouletteTurnGun + invoke PrintStr, OFFSET rrDangerText + invoke PrintUInt, rrBullets + invoke PrintStr, OFFSET nl + ret +ShowRouletteStatus ENDP + +; --- ShowRouletteSpinFrame: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +ShowRouletteSpinFrame PROC pGun:DWORD + call ClearView + invoke PrintTitleColor, OFFSET rouletteTitle + invoke PrintRevolver, pGun + invoke PrintStr, OFFSET rrSpinText + invoke Sleep, 85 + ret +ShowRouletteSpinFrame ENDP + +; --- AnimateRouletteSpin: ðóññêàÿ ðóëåòêà èëè êàçèíî-ðóëåòêà --- +AnimateRouletteSpin PROC + invoke ShowRouletteSpinFrame, OFFSET rrGunUp + invoke ShowRouletteSpinFrame, OFFSET rrGunUpLeft + invoke ShowRouletteSpinFrame, OFFSET rrGunLeft + invoke ShowRouletteSpinFrame, OFFSET rrGunDownLeft + invoke ShowRouletteSpinFrame, OFFSET rrGunDown + invoke ShowRouletteSpinFrame, OFFSET rrGunDownRight + invoke ShowRouletteSpinFrame, OFFSET rrGunRight + invoke ShowRouletteSpinFrame, OFFSET rrGunUpRight + invoke ShowRouletteSpinFrame, OFFSET rrGunUp + invoke ShowRouletteSpinFrame, OFFSET rrGunUpLeft + invoke ShowRouletteSpinFrame, OFFSET rrGunLeft + invoke ShowRouletteSpinFrame, OFFSET rrGunDownLeft + invoke ShowRouletteSpinFrame, OFFSET rrGunDown + invoke ShowRouletteSpinFrame, OFFSET rrGunDownRight + invoke ShowRouletteSpinFrame, OFFSET rrGunRight + invoke ShowRouletteSpinFrame, OFFSET rrGunUpRight + cmp rrTurn, 0 + jne roulette_spin_ai_final + invoke ShowRouletteSpinFrame, OFFSET rrGunUp + invoke ShowRouletteSpinFrame, OFFSET rrGunUpLeft + invoke ShowRouletteSpinFrame, OFFSET rrGunLeft + invoke ShowRouletteSpinFrame, OFFSET rrGunDownLeft + invoke ShowRouletteSpinFrame, OFFSET rrGunDown + jmp roulette_spin_final_message +roulette_spin_ai_final: + invoke ShowRouletteSpinFrame, OFFSET rrGunUp +roulette_spin_final_message: + call ShowRouletteStatus + cmp rrTurn, 0 + jne roulette_start_ai + invoke PrintStr, OFFSET rrStartsPlayerText + jmp roulette_start_done +roulette_start_ai: + invoke PrintStr, OFFSET rrStartsAIText +roulette_start_done: + invoke Sleep, 400 + ret +AnimateRouletteSpin ENDP + +; --- SetupRoulette: ðóññêàÿ ðóëåòêà èëè êàçèíî-ðóëåòêà --- +SetupRoulette PROC uses eax ebx ecx edx + mov rrBulletMask, 0 + mov eax, aiDifficulty + mov rrBullets, eax + mov ecx, eax +roulette_place_loop: + cmp ecx, 0 + je roulette_setup_done_bullets +roulette_pick_chamber: + invoke RandomRange, 6 + mov ebx, 1 + push ecx + mov ecx, eax + shl ebx, cl + pop ecx + mov edx, rrBulletMask + test edx, ebx + jne roulette_pick_chamber + or rrBulletMask, ebx + dec ecx + jmp roulette_place_loop +roulette_setup_done_bullets: + invoke RandomRange, 6 + mov rrChamber, eax + invoke RandomRange, 2 + mov rrTurn, eax + ret +SetupRoulette ENDP + +; --- RouletteChamberLoaded: àêêàóíòû, ôàéëû ñîõðàíåíèé è çàãðóçêà ïðîôèëÿ --- +RouletteChamberLoaded PROC uses ecx edx + mov edx, 1 + mov ecx, rrChamber + shl edx, cl + mov eax, rrBulletMask + test eax, edx + jne roulette_loaded + xor eax, eax + ret +roulette_loaded: + mov eax, 1 + ret +RouletteChamberLoaded ENDP + +; --- AdvanceRouletteChamber: ðóññêàÿ ðóëåòêà èëè êàçèíî-ðóëåòêà --- +AdvanceRouletteChamber PROC + inc rrChamber + cmp rrChamber, 6 + jb advance_roulette_done + mov rrChamber, 0 +advance_roulette_done: + ret +AdvanceRouletteChamber ENDP + +; --- PrintBang: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintBang PROC + call PlayRouletteShotSound + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET rrBangText + call ResetColor + ret +PrintBang ENDP + +; --- GameRoulette: ðóññêàÿ ðóëåòêà èëè êàçèíî-ðóëåòêà --- +GameRoulette PROC +roulette_start: + call ClearView + invoke PrintTitleColor, OFFSET rouletteTitle + invoke PrintStr, OFFSET rrIntroText + call PromptBet + call PlayRouletteSpinSound + call SetupRoulette + call AnimateRouletteSpin + +roulette_turn_loop: + call ShowRouletteStatus + cmp rrTurn, 0 + je roulette_player_turn + +roulette_ai_turn: + invoke PrintStr, OFFSET rrAITurnText + invoke Sleep, 900 + call RouletteChamberLoaded + cmp eax, 1 + je roulette_ai_dead + call PlayRouletteDrySound + invoke PrintStr, OFFSET rrClickText + invoke Sleep, 900 + call AdvanceRouletteChamber + mov rrTurn, 0 + jmp roulette_turn_loop + +roulette_player_turn: + invoke PrintStr, OFFSET rrPlayerTurnText + call ReadAnyKey + invoke PrintStr, OFFSET nl + call RouletteChamberLoaded + cmp eax, 1 + je roulette_player_dead + call PlayRouletteDrySound + invoke PrintStr, OFFSET rrClickText + invoke Sleep, 900 + call AdvanceRouletteChamber + mov rrTurn, 1 + jmp roulette_turn_loop + +roulette_player_dead: + call PrintBang + invoke PrintStr, OFFSET rrPlayerLoseText + call PayLose + jmp ask_roulette_again + +roulette_ai_dead: + invoke UnlockAchievement, 1000h, OFFSET achRussianWinName + call PrintBang + invoke PrintStr, OFFSET rrAIShotText + invoke PrintStr, OFFSET rrPayoutText + mov eax, aiDifficulty + inc eax + mov rrPayout, eax + invoke PaySlotMultiplier, rrPayout + +ask_roulette_again: + cmp tournamentMode, 1 + je roulette_tournament_return + invoke PrintStr, OFFSET againText + call ReadKey + cmp al, 'y' + je roulette_start + cmp al, 'Y' + je roulette_start +roulette_tournament_return: + ret +GameRoulette ENDP + + +; --- ShowBuckshotFrame: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +ShowBuckshotFrame PROC pFrame:DWORD, frameDelay:DWORD + call ClearView + invoke PrintTitleColor, OFFSET buckshotTitle + invoke SetColor, COLOR_CARD + invoke PrintStr, pFrame + call ResetColor + invoke Sleep, frameDelay + ret +ShowBuckshotFrame ENDP + +; --- AnimateBuckshotLoad: àêêàóíòû, ôàéëû ñîõðàíåíèé è çàãðóçêà ïðîôèëÿ --- +AnimateBuckshotLoad PROC + invoke ShowBuckshotFrame, OFFSET bsShotgunLoad1, 180 + invoke ShowBuckshotFrame, OFFSET bsShotgunLoad2, 260 + invoke ShowBuckshotFrame, OFFSET bsShotgunLoad3, 260 + ret +AnimateBuckshotLoad ENDP + +; --- AnimateBuckshotFire: Buckshot Roulette: ïàòðîíû, ïðåäìåòû, õîäû èãðîêà è ÈÈ --- +AnimateBuckshotFire PROC + invoke ShowBuckshotFrame, OFFSET bsShotgunFire, 220 + ret +AnimateBuckshotFire ENDP + +; --- AnimateBuckshotDry: Buckshot Roulette: ïàòðîíû, ïðåäìåòû, õîäû èãðîêà è ÈÈ --- +AnimateBuckshotDry PROC + invoke ShowBuckshotFrame, OFFSET bsShotgunDry, 180 + ret +AnimateBuckshotDry ENDP +; --- BuckshotGiveItems: Buckshot Roulette: ïàòðîíû, ïðåäìåòû, õîäû èãðîêà è ÈÈ --- +BuckshotGiveItems PROC uses eax + invoke RandomRange, 2 + inc eax + mov bsPlayerGlass, eax + invoke RandomRange, 2 + mov bsPlayerSaw, eax + invoke RandomRange, 2 + inc eax + mov bsPlayerBeer, eax + invoke RandomRange, 2 + mov bsPlayerCuffs, eax + invoke RandomRange, 2 + inc eax + mov bsAIGlass, eax + invoke RandomRange, 2 + mov bsAISaw, eax + invoke RandomRange, 2 + inc eax + mov bsAIBeer, eax + invoke RandomRange, 2 + mov bsAICuffs, eax + ret +BuckshotGiveItems ENDP + +; --- BuckshotLoad: àêêàóíòû, ôàéëû ñîõðàíåíèé è çàãðóçêà ïðîôèëÿ --- +BuckshotLoad PROC uses eax ebx ecx edi + invoke RandomRange, 5 + add eax, 4 + mov bsShellCount, eax + mov bsShellIndex, 0 + mov bsLiveCount, 0 + mov bsBlankCount, 0 + mov bsKnownShell, 0FFFFFFFFh + mov edi, OFFSET bsShells + mov ecx, bsShellCount +bs_load_loop: + invoke RandomRange, 2 + mov [edi], eax + cmp eax, 1 + je bs_count_live + inc bsBlankCount + jmp bs_count_done +bs_count_live: + inc bsLiveCount +bs_count_done: + add edi, 4 + loop bs_load_loop + cmp bsLiveCount, 0 + jne bs_has_live + mov dword ptr bsShells, 1 + inc bsLiveCount + dec bsBlankCount +bs_has_live: + cmp bsBlankCount, 0 + jne bs_has_blank + mov dword ptr bsShells+4, 0 + inc bsBlankCount + dec bsLiveCount +bs_has_blank: + invoke PrintStr, OFFSET bsLoadText + invoke PrintUInt, bsLiveCount + invoke PrintStr, OFFSET bsLiveText + invoke PrintUInt, bsBlankCount + invoke PrintStr, OFFSET bsBlankText + invoke Sleep, 900 + ret +BuckshotLoad ENDP + +; --- BuckshotCurrentShell: Buckshot Roulette: ïàòðîíû, ïðåäìåòû, õîäû èãðîêà è ÈÈ --- +BuckshotCurrentShell PROC uses ebx + mov ebx, bsShellIndex + mov eax, bsShells[ebx*4] + ret +BuckshotCurrentShell ENDP + +; --- BuckshotAdvance: Buckshot Roulette: ïàòðîíû, ïðåäìåòû, õîäû èãðîêà è ÈÈ --- +BuckshotAdvance PROC + cmp bsShell, 1 + je bs_advance_live + cmp bsBlankCount, 0 + je bs_advance_count_done + dec bsBlankCount + jmp bs_advance_count_done +bs_advance_live: + cmp bsLiveCount, 0 + je bs_advance_count_done + dec bsLiveCount +bs_advance_count_done: + inc bsShellIndex + mov bsKnownShell, 0FFFFFFFFh + mov bsDamage, 1 + ret +BuckshotAdvance ENDP + +; --- BuckshotRemaining: Buckshot Roulette: ïàòðîíû, ïðåäìåòû, õîäû èãðîêà è ÈÈ --- +BuckshotRemaining PROC uses ebx + mov eax, bsShellCount + sub eax, bsShellIndex + ret +BuckshotRemaining ENDP + +; --- BuckshotPrintKnown: Buckshot Roulette: ïàòðîíû, ïðåäìåòû, õîäû èãðîêà è ÈÈ --- +BuckshotPrintKnown PROC + mov eax, bsKnownShell + cmp eax, 1 + je bs_print_known_live + cmp eax, 0 + je bs_print_known_blank + invoke PrintStr, OFFSET bsKnownUnknownText + ret +bs_print_known_live: + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET bsKnownLiveText + call ResetColor + ret +bs_print_known_blank: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET bsKnownBlankText + call ResetColor + ret +BuckshotPrintKnown ENDP + +; --- BuckshotStatus: Buckshot Roulette: ïàòðîíû, ïðåäìåòû, õîäû èãðîêà è ÈÈ --- +BuckshotStatus PROC + call ClearView + invoke PrintTitleColor, OFFSET buckshotTitle + invoke SetColor, COLOR_CARD + invoke PrintStr, OFFSET bsShotgunArt + call ResetColor + invoke PrintStr, OFFSET bsHPText + invoke PrintUInt, bsPlayerHP + invoke PrintStr, OFFSET bsAIHPText + invoke PrintUInt, bsAIHP + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET bsShellInfoText + invoke PrintUInt, bsLiveCount + invoke PrintStr, OFFSET bsLiveText + invoke PrintUInt, bsBlankCount + invoke PrintStr, OFFSET bsBlankText + invoke PrintStr, OFFSET bsLeftText + call BuckshotRemaining + invoke PrintUInt, eax + invoke PrintStr, OFFSET nl + call BuckshotPrintKnown + invoke PrintStr, OFFSET bsItemsText + invoke PrintUInt, bsPlayerGlass + invoke PrintStr, OFFSET bsSawText + invoke PrintUInt, bsPlayerSaw + invoke PrintStr, OFFSET bsBeerText + invoke PrintUInt, bsPlayerBeer + invoke PrintStr, OFFSET bsCuffsText + invoke PrintUInt, bsPlayerCuffs + invoke PrintStr, OFFSET nl + ret +BuckshotStatus ENDP + +; --- BuckshotAfterShotTurn: Buckshot Roulette: ïàòðîíû, ïðåäìåòû, õîäû èãðîêà è ÈÈ --- +BuckshotAfterShotTurn PROC + cmp bsShell, 1 + je bs_after_switch + cmp bsTurn, 0 + je bs_after_player_blank + cmp bsTarget, 1 + je bs_after_keep + jmp bs_after_switch +bs_after_player_blank: + cmp bsTarget, 0 + je bs_after_keep +bs_after_switch: + xor bsTurn, 1 +bs_after_keep: + cmp bsTurn, 0 + je bs_check_skip_player + cmp bsSkipAI, 0 + je bs_after_done + mov bsSkipAI, 0 + invoke PrintStr, OFFSET bsSkipAIText + invoke Sleep, 800 + mov bsTurn, 0 + ret +bs_check_skip_player: + cmp bsSkipPlayer, 0 + je bs_after_done + mov bsSkipPlayer, 0 + invoke PrintStr, OFFSET bsSkipPlayerText + invoke Sleep, 800 + mov bsTurn, 1 +bs_after_done: + ret +BuckshotAfterShotTurn ENDP + +; --- BuckshotShoot: Buckshot Roulette: ïàòðîíû, ïðåäìåòû, õîäû èãðîêà è ÈÈ --- +BuckshotShoot PROC uses eax ebx + call BuckshotCurrentShell + mov bsShell, eax + cmp bsTarget, 0 + je bs_shoot_player_text + invoke PrintStr, OFFSET bsShootAIText + jmp bs_shoot_text_done +bs_shoot_player_text: + invoke PrintStr, OFFSET bsShootPlayerText +bs_shoot_text_done: + cmp bsShell, 1 + je bs_live_shot + call AnimateBuckshotDry + call PlayRouletteDrySound + invoke PrintStr, OFFSET bsDryText + call BuckshotAdvance + invoke Sleep, 900 + call BuckshotAfterShotTurn + ret +bs_live_shot: + call AnimateBuckshotFire + call PlayRouletteShotSound + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET bsHitText + invoke PrintUInt, bsDamage + invoke PrintStr, OFFSET nl + call ResetColor + mov eax, bsDamage + cmp bsTarget, 0 + je bs_damage_player + cmp bsAIHP, eax + ja bs_sub_ai + mov bsAIHP, 0 + jmp bs_damage_done +bs_sub_ai: + sub bsAIHP, eax + jmp bs_damage_done +bs_damage_player: + cmp bsPlayerHP, eax + ja bs_sub_player + mov bsPlayerHP, 0 + jmp bs_damage_done +bs_sub_player: + sub bsPlayerHP, eax +bs_damage_done: + call BuckshotAdvance + invoke Sleep, 1000 + call BuckshotAfterShotTurn + ret +BuckshotShoot ENDP + +; --- BuckshotUseGlass: Buckshot Roulette: ïàòðîíû, ïðåäìåòû, õîäû èãðîêà è ÈÈ --- +BuckshotUseGlass PROC + call BuckshotCurrentShell + mov bsKnownShell, eax + invoke PrintStr, OFFSET bsGlassUseText + call BuckshotPrintKnown + invoke Sleep, 1000 + ret +BuckshotUseGlass ENDP + +; --- BuckshotUseBeer: Buckshot Roulette: ïàòðîíû, ïðåäìåòû, õîäû èãðîêà è ÈÈ --- +BuckshotUseBeer PROC + call BuckshotCurrentShell + mov bsShell, eax + invoke PrintStr, OFFSET bsBeerUseText + cmp bsShell, 1 + je bs_beer_live + invoke PrintStr, OFFSET bsBlankLoadedText + jmp bs_beer_done +bs_beer_live: + invoke PrintStr, OFFSET bsLiveLoadedText +bs_beer_done: + call BuckshotAdvance + invoke Sleep, 1000 + ret +BuckshotUseBeer ENDP + +; --- BuckshotPlayerTurn: Buckshot Roulette: ïàòðîíû, ïðåäìåòû, õîäû èãðîêà è ÈÈ --- +BuckshotPlayerTurn PROC +bs_player_again: + call BuckshotStatus + invoke PrintStr, OFFSET bsPlayerTurnText + invoke PrintStr, OFFSET bsMenuText + call ReadKey + cmp al, '1' + je bs_player_self + cmp al, '2' + je bs_player_ai + cmp al, '3' + je bs_player_glass + cmp al, '4' + je bs_player_saw + cmp al, '5' + je bs_player_beer + cmp al, '6' + je bs_player_cuffs + invoke PrintStr, OFFSET badChoiceText + call Pause + jmp bs_player_again +bs_player_self: + mov bsTarget, 0 + call BuckshotShoot + ret +bs_player_ai: + mov bsTarget, 1 + call BuckshotShoot + ret +bs_player_glass: + cmp bsPlayerGlass, 0 + je bs_player_no_item + dec bsPlayerGlass + call BuckshotUseGlass + jmp bs_player_again +bs_player_saw: + cmp bsPlayerSaw, 0 + je bs_player_no_item + dec bsPlayerSaw + mov bsDamage, 2 + invoke PrintStr, OFFSET bsSawUseText + invoke Sleep, 900 + jmp bs_player_again +bs_player_beer: + cmp bsPlayerBeer, 0 + je bs_player_no_item + dec bsPlayerBeer + call BuckshotUseBeer + call BuckshotRemaining + cmp eax, 0 + je bs_player_done + jmp bs_player_again +bs_player_cuffs: + cmp bsPlayerCuffs, 0 + je bs_player_no_item + dec bsPlayerCuffs + mov bsSkipAI, 1 + invoke PrintStr, OFFSET bsCuffsUseText + invoke Sleep, 900 + jmp bs_player_again +bs_player_no_item: + invoke PrintStr, OFFSET bsNoItemText + invoke Sleep, 800 + jmp bs_player_again +bs_player_done: + ret +BuckshotPlayerTurn ENDP + +; --- BuckshotAITurn: Buckshot Roulette: ïàòðîíû, ïðåäìåòû, õîäû èãðîêà è ÈÈ --- +BuckshotAITurn PROC + call BuckshotStatus + invoke PrintStr, OFFSET bsAITurnText + invoke Sleep, 900 + cmp bsKnownShell, 0FFFFFFFFh + jne bs_ai_known + cmp bsAIGlass, 0 + je bs_ai_no_glass + dec bsAIGlass + invoke PrintStr, OFFSET bsAIGlassText + call BuckshotUseGlass +bs_ai_no_glass: +bs_ai_known: + cmp bsKnownShell, 1 + je bs_ai_live + cmp bsKnownShell, 0 + je bs_ai_blank + mov eax, bsLiveCount + cmp eax, bsBlankCount + jae bs_ai_live +bs_ai_blank: + mov bsTarget, 1 + call BuckshotShoot + ret +bs_ai_live: + cmp bsAISaw, 0 + je bs_ai_maybe_cuffs + dec bsAISaw + mov bsDamage, 2 + invoke PrintStr, OFFSET bsAISawText + invoke Sleep, 700 +bs_ai_maybe_cuffs: + cmp bsAICuffs, 0 + je bs_ai_shoot_player + dec bsAICuffs + mov bsSkipPlayer, 1 + invoke PrintStr, OFFSET bsAICuffsText + invoke Sleep, 700 +bs_ai_shoot_player: + mov bsTarget, 0 + call BuckshotShoot + ret +BuckshotAITurn ENDP + +; --- GameBuckshot: Buckshot Roulette: ïàòðîíû, ïðåäìåòû, õîäû èãðîêà è ÈÈ --- +GameBuckshot PROC +buckshot_start: + call ClearView + invoke PrintTitleColor, OFFSET buckshotTitle + invoke PrintStr, OFFSET buckshotIntro + call PromptBet + mov bsPlayerHP, 4 + mov bsAIHP, 4 + mov bsTurn, 0 + mov bsDamage, 1 + mov bsSkipPlayer, 0 + mov bsSkipAI, 0 + call BuckshotGiveItems + call PlayRouletteSpinSound + call AnimateBuckshotLoad + call BuckshotLoad +buckshot_loop: + call BuckshotRemaining + cmp eax, 0 + jne buckshot_has_shells + call AnimateBuckshotLoad + call BuckshotLoad +buckshot_has_shells: + cmp bsPlayerHP, 0 + je buckshot_lost + cmp bsAIHP, 0 + je buckshot_won + cmp bsTurn, 0 + je buckshot_player + call BuckshotAITurn + jmp buckshot_loop +buckshot_player: + call BuckshotPlayerTurn + jmp buckshot_loop +buckshot_won: + call BuckshotStatus + invoke PrintStr, OFFSET bsWinText + invoke PaySlotMultiplier, 3 + jmp buckshot_again +buckshot_lost: + call BuckshotStatus + invoke PrintStr, OFFSET bsLoseText + call PayLose +buckshot_again: + call SaveGame + cmp tournamentMode, 1 + je buckshot_tournament_return + invoke PrintStr, OFFSET againText + call ReadKey + cmp al, 'y' + je buckshot_start + cmp al, 'Y' + je buckshot_start +buckshot_tournament_return: + ret +GameBuckshot ENDP +; --- PrintDiceParity: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintDiceParity PROC parity:DWORD + cmp parity, 1 + jne print_dice_odd + invoke PrintStr, OFFSET diceEvenText + ret +print_dice_odd: + invoke PrintStr, OFFSET diceOddText + ret +PrintDiceParity ENDP + +; --- GameDice: êîñòè: áðîñîê, ÷åòíîñòü è ðåçóëüòàò --- +GameDice PROC +dice_start: + call ClearView + invoke PrintTitleColor, OFFSET diceTitle + invoke PrintStr, OFFSET diceIntroText + call PromptBet + +dice_choose: + call ClearView + invoke PrintTitleColor, OFFSET diceTitle + invoke PrintStr, OFFSET diceIntroText + call PrintBank + invoke PrintStr, OFFSET diceChoiceText + call ReadKey + cmp al, '1' + je dice_pick_even + cmp al, '2' + je dice_pick_odd + invoke PrintStr, OFFSET badChoiceText + call Pause + jmp dice_choose + +dice_pick_even: + mov diceChoice, 1 + jmp dice_roll +dice_pick_odd: + mov diceChoice, 2 + +dice_roll: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET diceRollText + call ResetColor + invoke Sleep, 500 + invoke RandomRange, 6 + inc eax + mov diceA, eax + invoke RandomRange, 6 + inc eax + mov diceB, eax + mov eax, diceA + add eax, diceB + mov diceSum, eax + invoke PrintStr, OFFSET diceFirstText + invoke PrintUInt, diceA + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET diceSecondText + invoke PrintUInt, diceB + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET diceSumText + invoke PrintUInt, diceSum + invoke PrintStr, OFFSET nl + mov eax, diceSum + and eax, 1 + cmp eax, 0 + je dice_result_even + mov eax, 2 + jmp dice_compare +dice_result_even: + mov eax, 1 +dice_compare: + cmp eax, diceChoice + je dice_win + call PrintLoseEvent + call PayLose + jmp dice_again +dice_win: + call PrintWinEvent + call PayWin + +dice_again: + cmp tournamentMode, 1 + je dice_tournament_return + invoke PrintStr, OFFSET againText + call ReadKey + cmp al, 'y' + je dice_start + cmp al, 'Y' + je dice_start +dice_tournament_return: + ret +GameDice ENDP +; --- Online Dice: Radmin LAN match without a separate server process --- +onlineTitle db 13,10,"--- Online Casino (Radmin) ---",13,10,0 +onlineMenuText db "1. Host room",13,10,"2. Join room",13,10,"0. Back",13,10,0 +onlineHostInfo db "Give your Radmin IPv4 and port 27015 to your friend.",13,10,"Waiting for one player...",13,10,0 +onlineJoinPrompt db "Host Radmin IPv4: ",0 +onlineConnectingText db "Connecting...",13,10,0 +onlineConnectedText db "Connected.",13,10,0 +onlineYouRollText db "Your roll: ",0 +onlineFriendRollText db "Friend roll: ",0 +onlineWinText db "You win this friendly match.",13,10,0 +onlineLoseText db "Friend wins this friendly match.",13,10,0 +onlineDrawText db "Draw. Same roll.",13,10,0 +onlineErrorText db "Network error. Winsock code: ",0 +onlineBadIpText db "IPv4 address is invalid.",13,10,0 + +OnlineStartWinsock PROC + invoke WSAStartup, 0202h, OFFSET onlineWsaData + test eax, eax + jnz online_start_fail + mov onlineWsaReady, 1 + mov eax, 1 + ret +online_start_fail: + xor eax, eax + ret +OnlineStartWinsock ENDP + +OnlineCleanup PROC + cmp onlinePeerSock, -1 + je online_cleanup_listener + invoke closesocket, onlinePeerSock + mov onlinePeerSock, -1 +online_cleanup_listener: + cmp onlineListenSock, -1 + je online_cleanup_wsa + invoke closesocket, onlineListenSock + mov onlineListenSock, -1 +online_cleanup_wsa: + cmp onlineWsaReady, 1 + jne online_cleanup_done + invoke WSACleanup + mov onlineWsaReady, 0 +online_cleanup_done: + ret +OnlineCleanup ENDP + +OnlineBuildAddress PROC uses eax ecx edi + lea edi, onlineAddr + xor eax, eax + mov ecx, 4 + rep stosd + mov word ptr onlineAddr, AF_INET + mov word ptr onlineAddr+2, ONLINE_PORT_NET + ret +OnlineBuildAddress ENDP + +ReadOnlineIp PROC uses eax ecx esi edi + lea edi, onlineIp + xor eax, eax + mov ecx, 32 + rep stosb + invoke ReadFile, hIn, OFFSET onlineIp, 31, ADDR charsRead, 0 + mov ecx, charsRead + cmp ecx, 31 + jbe online_ip_len_ok + mov ecx, 31 +online_ip_len_ok: + mov byte ptr onlineIp[ecx], 0 + mov esi, OFFSET onlineIp +online_ip_trim: + cmp ecx, 0 + je online_ip_done + mov al, [esi] + cmp al, 13 + je online_ip_end + cmp al, 10 + je online_ip_end + inc esi + dec ecx + jmp online_ip_trim +online_ip_end: + mov byte ptr [esi], 0 +online_ip_done: + ret +ReadOnlineIp ENDP + +NetSendAll PROC uses esi edi, hSocket:DWORD, pData:DWORD, byteCount:DWORD + mov esi, pData + mov edi, byteCount +online_send_loop: + cmp edi, 0 + je online_send_ok + invoke send, hSocket, esi, edi, 0 + test eax, eax + jle online_send_fail + add esi, eax + sub edi, eax + jmp online_send_loop +online_send_ok: + mov eax, 1 + ret +online_send_fail: + xor eax, eax + ret +NetSendAll ENDP + +NetRecvAll PROC uses esi edi, hSocket:DWORD, pData:DWORD, byteCount:DWORD + mov esi, pData + mov edi, byteCount +online_recv_loop: + cmp edi, 0 + je online_recv_ok + invoke recv, hSocket, esi, edi, 0 + test eax, eax + jle online_recv_fail + add esi, eax + sub edi, eax + jmp online_recv_loop +online_recv_ok: + mov eax, 1 + ret +online_recv_fail: + xor eax, eax + ret +NetRecvAll ENDP + +PrintOnlineError PROC + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET onlineErrorText + invoke WSAGetLastError + invoke PrintUInt, eax + invoke PrintStr, OFFSET nl + call ResetColor + ret +PrintOnlineError ENDP + +ShowOnlineResult PROC + call ClearView + invoke PrintTitleColor, OFFSET onlineTitle + invoke PrintStr, OFFSET onlineYouRollText + invoke PrintUInt, onlineLocalRoll + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET onlineFriendRollText + invoke PrintUInt, onlineRemoteRoll + invoke PrintStr, OFFSET nl + mov eax, onlineLocalRoll + cmp eax, onlineRemoteRoll + ja online_result_win + jb online_result_lose + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET onlineDrawText + call ResetColor + jmp online_result_done +online_result_win: + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET onlineWinText + call ResetColor + jmp online_result_done +online_result_lose: + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET onlineLoseText + call ResetColor +online_result_done: + ret +ShowOnlineResult ENDP + +OnlineHostGameText db "Choose online game:",13,10,"1. Dice 1v1",13,10,"2. Russian Roulette 1v1",13,10,"0. Back",13,10,0 +OnlineModeDiceText db "Room mode: Dice 1v1",13,10,0 +OnlineModeRRText db "Room mode: Russian Roulette 1v1",13,10,0 +OnlineProtocolText db "Players use different online protocol versions.",13,10,0 +OnlineRRYourTurnText db "Your turn. Press any key to pull the trigger...",0 +OnlineRRWaitText db "Friend is holding the revolver. Waiting for the trigger...",13,10,0 +OnlineRRStartsYouText db "The revolver points at you. You shoot first.",13,10,0 +OnlineRRStartsFriendText db "The revolver points at your friend. Friend shoots first.",13,10,0 +OnlineRRWinText db "Your friend caught the loaded chamber. You survived.",13,10,0 +OnlineRRLoseText db "The loaded chamber was yours. You lost.",13,10,0 + +OnlineHostConnect PROC + call OnlineStartWinsock + test eax, eax + jz online_host_connect_error + invoke socket, AF_INET, SOCK_STREAM, IPPROTO_TCP + cmp eax, SOCKET_ERROR + je online_host_connect_error + mov onlineListenSock, eax + call OnlineBuildAddress + invoke bind, onlineListenSock, OFFSET onlineAddr, 16 + test eax, eax + jnz online_host_connect_error + invoke listen, onlineListenSock, 1 + test eax, eax + jnz online_host_connect_error + call ClearView + invoke PrintTitleColor, OFFSET onlineTitle + invoke PrintStr, OFFSET onlineHostInfo + invoke accept, onlineListenSock, 0, 0 + cmp eax, SOCKET_ERROR + je online_host_connect_error + mov onlinePeerSock, eax + invoke closesocket, onlineListenSock + mov onlineListenSock, -1 + invoke PrintStr, OFFSET onlineConnectedText + mov eax, 1 + ret +online_host_connect_error: + call PrintOnlineError + call OnlineCleanup + call Pause + xor eax, eax + ret +OnlineHostConnect ENDP + +OnlineJoinConnect PROC + call OnlineStartWinsock + test eax, eax + jz online_join_connect_error + call ClearView + invoke PrintTitleColor, OFFSET onlineTitle + invoke PrintStr, OFFSET onlineJoinPrompt + call ReadOnlineIp + invoke inet_addr, OFFSET onlineIp + cmp eax, 0FFFFFFFFh + je online_join_connect_bad_ip + mov onlineHostIp, eax + invoke socket, AF_INET, SOCK_STREAM, IPPROTO_TCP + cmp eax, SOCKET_ERROR + je online_join_connect_error + mov onlinePeerSock, eax + call OnlineBuildAddress + mov eax, onlineHostIp + mov dword ptr onlineAddr+4, eax + invoke PrintStr, OFFSET onlineConnectingText + invoke connect, onlinePeerSock, OFFSET onlineAddr, 16 + test eax, eax + jnz online_join_connect_error + invoke PrintStr, OFFSET onlineConnectedText + mov eax, 1 + ret +online_join_connect_bad_ip: + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET onlineBadIpText + call ResetColor + call OnlineCleanup + call Pause + xor eax, eax + ret +online_join_connect_error: + call PrintOnlineError + call OnlineCleanup + call Pause + xor eax, eax + ret +OnlineJoinConnect ENDP + +OnlineDiceSessionHost PROC + invoke RandomRange, 6 + inc eax + mov onlinePacket, eax + mov onlineLocalRoll, eax + invoke RandomRange, 6 + inc eax + mov onlinePacket+4, eax + mov onlineRemoteRoll, eax + invoke NetSendAll, onlinePeerSock, OFFSET onlinePacket, 8 + test eax, eax + jz online_dice_host_fail + invoke Sleep, 450 + call ShowOnlineResult + mov eax, 1 + ret +online_dice_host_fail: + xor eax, eax + ret +OnlineDiceSessionHost ENDP + +OnlineDiceSessionClient PROC + invoke NetRecvAll, onlinePeerSock, OFFSET onlinePacket, 8 + test eax, eax + jz online_dice_client_fail + mov eax, onlinePacket+4 + mov onlineLocalRoll, eax + mov eax, onlinePacket + mov onlineRemoteRoll, eax + invoke Sleep, 450 + call ShowOnlineResult + mov eax, 1 + ret +online_dice_client_fail: + xor eax, eax + ret +OnlineDiceSessionClient ENDP + +ShowOnlineRRStatus PROC role:DWORD + call ClearView + invoke PrintTitleColor, OFFSET rouletteTitle + mov eax, rrTurn + cmp eax, role + jne online_rr_status_friend + invoke PrintRevolver, OFFSET rrGunDown + jmp online_rr_status_info +online_rr_status_friend: + invoke PrintRevolver, OFFSET rrGunUp +online_rr_status_info: + invoke PrintStr, OFFSET rrDangerText + invoke PrintUInt, rrBullets + invoke PrintStr, OFFSET nl + ret +ShowOnlineRRStatus ENDP + +AnimateOnlineRRStart PROC role:DWORD + invoke ShowRouletteSpinFrame, OFFSET rrGunUp + invoke ShowRouletteSpinFrame, OFFSET rrGunUpLeft + invoke ShowRouletteSpinFrame, OFFSET rrGunLeft + invoke ShowRouletteSpinFrame, OFFSET rrGunDownLeft + invoke ShowRouletteSpinFrame, OFFSET rrGunDown + invoke ShowRouletteSpinFrame, OFFSET rrGunDownRight + invoke ShowRouletteSpinFrame, OFFSET rrGunRight + invoke ShowRouletteSpinFrame, OFFSET rrGunUpRight + invoke ShowRouletteSpinFrame, OFFSET rrGunUp + invoke ShowRouletteSpinFrame, OFFSET rrGunUpLeft + invoke ShowRouletteSpinFrame, OFFSET rrGunLeft + invoke ShowRouletteSpinFrame, OFFSET rrGunDownLeft + invoke ShowRouletteSpinFrame, OFFSET rrGunDown + invoke ShowRouletteSpinFrame, OFFSET rrGunDownRight + invoke ShowRouletteSpinFrame, OFFSET rrGunRight + invoke ShowRouletteSpinFrame, OFFSET rrGunUpRight + invoke ShowOnlineRRStatus, role + mov eax, rrTurn + cmp eax, role + jne online_rr_start_friend + invoke PrintStr, OFFSET OnlineRRStartsYouText + ret +online_rr_start_friend: + invoke PrintStr, OFFSET OnlineRRStartsFriendText + ret +AnimateOnlineRRStart ENDP + +ShowOnlineRRShot PROC role:DWORD + cmp onlinePacket, 1 + je online_rr_shot_bang + call PlayRouletteDrySound + invoke PrintStr, OFFSET rrClickText + invoke Sleep, 850 + ret +online_rr_shot_bang: + call PrintBang + mov eax, onlinePacket+4 + cmp eax, role + jne online_rr_shot_win + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET OnlineRRLoseText + call ResetColor + ret +online_rr_shot_win: + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET OnlineRRWinText + call ResetColor + ret +ShowOnlineRRShot ENDP + +OnlineRRSessionHost PROC + call SetupRoulette + mov eax, rrBullets + mov onlinePacket, eax + mov eax, rrTurn + mov onlinePacket+4, eax + invoke NetSendAll, onlinePeerSock, OFFSET onlinePacket, 8 + test eax, eax + jz online_rr_host_fail + call PlayRouletteSpinSound + invoke AnimateOnlineRRStart, 0 +online_rr_host_loop: + invoke ShowOnlineRRStatus, 0 + cmp rrTurn, 0 + je online_rr_host_own_turn + invoke PrintStr, OFFSET OnlineRRWaitText + invoke NetRecvAll, onlinePeerSock, OFFSET onlineAction, 4 + test eax, eax + jz online_rr_host_fail + jmp online_rr_host_fire +online_rr_host_own_turn: + invoke PrintStr, OFFSET OnlineRRYourTurnText + call ReadAnyKey + invoke PrintStr, OFFSET nl +online_rr_host_fire: + mov onlinePacket, 0 + call RouletteChamberLoaded + cmp eax, 1 + jne online_rr_host_event_ready + mov onlinePacket, 1 +online_rr_host_event_ready: + mov eax, rrTurn + mov onlinePacket+4, eax + invoke NetSendAll, onlinePeerSock, OFFSET onlinePacket, 8 + test eax, eax + jz online_rr_host_fail + invoke ShowOnlineRRShot, 0 + cmp onlinePacket, 1 + je online_rr_host_done + call AdvanceRouletteChamber + xor rrTurn, 1 + jmp online_rr_host_loop +online_rr_host_done: + mov eax, 1 + ret +online_rr_host_fail: + xor eax, eax + ret +OnlineRRSessionHost ENDP + +OnlineRRSessionClient PROC + invoke NetRecvAll, onlinePeerSock, OFFSET onlinePacket, 8 + test eax, eax + jz online_rr_client_fail + mov eax, onlinePacket + mov rrBullets, eax + mov eax, onlinePacket+4 + mov rrTurn, eax + call PlayRouletteSpinSound + invoke AnimateOnlineRRStart, 1 +online_rr_client_loop: + invoke ShowOnlineRRStatus, 1 + cmp rrTurn, 1 + jne online_rr_client_wait + invoke PrintStr, OFFSET OnlineRRYourTurnText + call ReadAnyKey + invoke PrintStr, OFFSET nl + mov onlineAction, 1 + invoke NetSendAll, onlinePeerSock, OFFSET onlineAction, 4 + test eax, eax + jz online_rr_client_fail + jmp online_rr_client_receive +online_rr_client_wait: + invoke PrintStr, OFFSET OnlineRRWaitText +online_rr_client_receive: + invoke NetRecvAll, onlinePeerSock, OFFSET onlinePacket, 8 + test eax, eax + jz online_rr_client_fail + mov eax, onlinePacket+4 + mov rrTurn, eax + invoke ShowOnlineRRShot, 1 + cmp onlinePacket, 1 + je online_rr_client_done + xor rrTurn, 1 + jmp online_rr_client_loop +online_rr_client_done: + mov eax, 1 + ret +online_rr_client_fail: + xor eax, eax + ret +OnlineRRSessionClient ENDP + +GameOnlineCasino PROC +online_casino_menu: + call ClearView + invoke PrintTitleColor, OFFSET onlineTitle + invoke PrintStr, OFFSET onlineMenuText + invoke PrintStr, OFFSET choiceText + call ReadKey + cmp al, '1' + je online_casino_host_choose + cmp al, '2' + je online_casino_join + cmp al, '0' + je online_casino_done + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET badChoiceText + call ResetColor + invoke Sleep, 650 + jmp online_casino_menu +online_casino_host_choose: + call ClearView + invoke PrintTitleColor, OFFSET onlineTitle + invoke PrintStr, OFFSET OnlineHostGameText + invoke PrintStr, OFFSET choiceText + call ReadKey + cmp al, '1' + je online_casino_host_dice + cmp al, '2' + je online_casino_host_rr + cmp al, '0' + je online_casino_menu + invoke PrintStr, OFFSET badChoiceText + invoke Sleep, 650 + jmp online_casino_host_choose +online_casino_host_dice: + mov onlineGameMode, ONLINE_GAME_DICE + jmp online_casino_host_connect +online_casino_host_rr: + mov onlineGameMode, ONLINE_GAME_RR +online_casino_host_connect: + call OnlineHostConnect + test eax, eax + jz online_casino_done + mov onlinePacket, ONLINE_MAGIC + mov eax, onlineGameMode + mov onlinePacket+4, eax + invoke NetSendAll, onlinePeerSock, OFFSET onlinePacket, 8 + test eax, eax + jz online_casino_session_error + cmp onlineGameMode, ONLINE_GAME_DICE + je online_casino_run_host_dice + invoke PrintStr, OFFSET OnlineModeRRText + call OnlineRRSessionHost + jmp online_casino_session_done +online_casino_run_host_dice: + invoke PrintStr, OFFSET OnlineModeDiceText + call OnlineDiceSessionHost + jmp online_casino_session_done +online_casino_join: + call OnlineJoinConnect + test eax, eax + jz online_casino_done + invoke NetRecvAll, onlinePeerSock, OFFSET onlinePacket, 8 + test eax, eax + jz online_casino_session_error + cmp onlinePacket, ONLINE_MAGIC + jne online_casino_protocol_error + mov eax, onlinePacket+4 + mov onlineGameMode, eax + cmp eax, ONLINE_GAME_DICE + je online_casino_run_client_dice + cmp eax, ONLINE_GAME_RR + je online_casino_run_client_rr + jmp online_casino_protocol_error +online_casino_run_client_dice: + invoke PrintStr, OFFSET OnlineModeDiceText + call OnlineDiceSessionClient + jmp online_casino_session_done +online_casino_run_client_rr: + invoke PrintStr, OFFSET OnlineModeRRText + call OnlineRRSessionClient +online_casino_session_done: + test eax, eax + jz online_casino_session_error + call OnlineCleanup + call Pause + ret +online_casino_protocol_error: + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET OnlineProtocolText + call ResetColor + call OnlineCleanup + call Pause + ret +online_casino_session_error: + call PrintOnlineError + call OnlineCleanup + call Pause +online_casino_done: + ret +GameOnlineCasino ENDP + +; --- PrintCoinSide: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintCoinSide PROC side:DWORD + cmp side, 1 + jne print_coin_tails + invoke PrintStr, OFFSET coinHeadsText + ret +print_coin_tails: + invoke PrintStr, OFFSET coinTailsText + ret +PrintCoinSide ENDP + +; --- ShowCoinFlipFrame: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +ShowCoinFlipFrame PROC uses eax, pFrame:DWORD + call ClearView + invoke PrintTitleColor, OFFSET coinTitle + invoke PrintStr, OFFSET coinIntroText + call PrintBank + invoke PrintStr, OFFSET coinPickText + invoke PrintCoinSide, coinPick + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET coinSpinText + mov eax, pFrame + invoke PrintStr, eax + call ResetColor + invoke Sleep, 170 + ret +ShowCoinFlipFrame ENDP + +; --- AnimateCoinFlip: îðåë è ðåøêà: âûáîð ñòîðîíû, çâóê è àíèìàöèÿ ìîíåòû --- +AnimateCoinFlip PROC + invoke ShowCoinFlipFrame, OFFSET coinFrame1 + invoke ShowCoinFlipFrame, OFFSET coinFrame2 + invoke ShowCoinFlipFrame, OFFSET coinFrame3 + invoke ShowCoinFlipFrame, OFFSET coinFrame4 + invoke ShowCoinFlipFrame, OFFSET coinFrame5 + invoke ShowCoinFlipFrame, OFFSET coinFrame6 + invoke ShowCoinFlipFrame, OFFSET coinFrame7 + invoke ShowCoinFlipFrame, OFFSET coinFrame8 + invoke ShowCoinFlipFrame, OFFSET coinFrame9 + invoke ShowCoinFlipFrame, OFFSET coinFrame10 + invoke ShowCoinFlipFrame, OFFSET coinFrame11 + invoke ShowCoinFlipFrame, OFFSET coinFrame12 + invoke ShowCoinFlipFrame, OFFSET coinFrame13 + invoke ShowCoinFlipFrame, OFFSET coinFrame14 + ret +AnimateCoinFlip ENDP + +; --- GameCoin: îðåë è ðåøêà: âûáîð ñòîðîíû, çâóê è àíèìàöèÿ ìîíåòû --- +GameCoin PROC +coin_start: + call ClearView + invoke PrintTitleColor, OFFSET coinTitle + invoke PrintStr, OFFSET coinIntroText + call PromptBet + +coin_choose: + call ClearView + invoke PrintTitleColor, OFFSET coinTitle + invoke PrintStr, OFFSET coinIntroText + call PrintBank + invoke PrintStr, OFFSET coinChoiceText + call ReadKey + cmp al, '1' + je coin_pick_heads + cmp al, '2' + je coin_pick_tails + invoke PrintStr, OFFSET badChoiceText + call Pause + jmp coin_choose + +coin_pick_heads: + mov coinPick, 1 + jmp coin_flip +coin_pick_tails: + mov coinPick, 2 + +coin_flip: + invoke PrintStr, OFFSET coinPickText + invoke PrintCoinSide, coinPick + call PlayCoinSound + call AnimateCoinFlip + invoke RandomRange, 2 + inc eax + mov coinResult, eax + invoke PrintStr, OFFSET coinResultText + invoke PrintCoinSide, coinResult + mov eax, coinPick + cmp eax, coinResult + je coin_win + call PrintLoseEvent + call PayLose + jmp coin_again +coin_win: + call PrintWinEvent + call PayWin + +coin_again: + cmp tournamentMode, 1 + je coin_tournament_return + invoke PrintStr, OFFSET againText + call ReadKey + cmp al, 'y' + je coin_start + cmp al, 'Y' + je coin_start +coin_tournament_return: + ret +GameCoin ENDP + +; --- PrintRouletteColorName: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintRouletteColorName PROC uses eax ebx, value:DWORD + mov eax, value + cmp eax, 0 + jne roulette_color_not_zero + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET rouletteGreenName + call ResetColor + ret +roulette_color_not_zero: + movzx ebx, byte ptr [rouletteColors + eax] + cmp ebx, 1 + jne roulette_color_black + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET rouletteRedName + call ResetColor + ret +roulette_color_black: + invoke SetColor, COLOR_CARD + invoke PrintStr, OFFSET rouletteBlackName + call ResetColor + ret +PrintRouletteColorName ENDP + +; --- PrintRouletteNumberColored: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintRouletteNumberColored PROC uses eax ebx, value:DWORD + mov eax, value + cmp eax, 0 + jne roulette_number_not_zero + invoke SetColor, COLOR_MONEY + jmp roulette_number_print +roulette_number_not_zero: + movzx ebx, byte ptr [rouletteColors + eax] + cmp ebx, 1 + jne roulette_number_black + invoke SetColor, COLOR_BAD + jmp roulette_number_print +roulette_number_black: + invoke SetColor, COLOR_CARD +roulette_number_print: + invoke PrintUInt, value + call ResetColor + ret +PrintRouletteNumberColored ENDP + +; --- PrintRoulettePocket: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintRoulettePocket PROC uses eax, wheelIndex:DWORD + invoke PrintStr, OFFSET roulettePocketLeft + mov eax, wheelIndex + mov eax, [rouletteWheel + eax * 4] + push eax + cmp eax, 10 + jae roulette_pocket_no_pad + invoke PrintStr, OFFSET rouletteNumSpace +roulette_pocket_no_pad: + pop eax + invoke PrintRouletteNumberColored, eax + invoke PrintStr, OFFSET roulettePocketRight + ret +PrintRoulettePocket ENDP + +; --- PrintRoulettePocketOffset: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintRoulettePocketOffset PROC uses eax, wheelOffset:DWORD + mov eax, casinoRouletteSpinIndex + add eax, wheelOffset +roulette_offset_wrap: + cmp eax, 37 + jb roulette_offset_ready + sub eax, 37 + jmp roulette_offset_wrap +roulette_offset_ready: + invoke PrintRoulettePocket, eax + ret +PrintRoulettePocketOffset ENDP + +; --- PrintRouletteTopRow: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintRouletteTopRow PROC + invoke PrintStr, OFFSET casinoRoulettePad + invoke PrintRoulettePocketOffset, 31 + invoke PrintRoulettePocketOffset, 32 + invoke PrintRoulettePocketOffset, 33 + invoke PrintRoulettePocketOffset, 34 + invoke PrintRoulettePocketOffset, 35 + invoke PrintRoulettePocketOffset, 36 + invoke PrintRoulettePocketOffset, 0 + invoke PrintRoulettePocketOffset, 1 + invoke PrintRoulettePocketOffset, 2 + invoke PrintRoulettePocketOffset, 3 + invoke PrintRoulettePocketOffset, 4 + invoke PrintRoulettePocketOffset, 5 + invoke PrintRoulettePocketOffset, 6 + invoke PrintStr, OFFSET nl + ret +PrintRouletteTopRow ENDP + +; --- PrintRouletteBottomRow: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintRouletteBottomRow PROC + invoke PrintStr, OFFSET casinoRoulettePad + invoke PrintRoulettePocketOffset, 24 + invoke PrintRoulettePocketOffset, 23 + invoke PrintRoulettePocketOffset, 22 + invoke PrintRoulettePocketOffset, 21 + invoke PrintRoulettePocketOffset, 20 + invoke PrintRoulettePocketOffset, 19 + invoke PrintRoulettePocketOffset, 18 + invoke PrintRoulettePocketOffset, 17 + invoke PrintRoulettePocketOffset, 16 + invoke PrintRoulettePocketOffset, 15 + invoke PrintRoulettePocketOffset, 14 + invoke PrintRoulettePocketOffset, 13 + invoke PrintStr, OFFSET nl + ret +PrintRouletteBottomRow ENDP + +; --- PrintRouletteSideRow: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintRouletteSideRow PROC leftOffset:DWORD, pGap:DWORD, rightOffset:DWORD + invoke SetColor, COLOR_WOOD + invoke PrintStr, OFFSET rouletteBigSidePad + call ResetColor + invoke PrintRoulettePocketOffset, leftOffset + invoke SetColor, COLOR_TABLE + invoke PrintStr, pGap + call ResetColor + invoke PrintRoulettePocketOffset, rightOffset + invoke PrintStr, OFFSET nl + ret +PrintRouletteSideRow ENDP + +; --- ShowCasinoRouletteFrame: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +ShowCasinoRouletteFrame PROC + call ClearView + invoke PrintTitleColor, OFFSET casinoRouletteTitle + invoke SetColor, COLOR_WOOD + invoke PrintStr, OFFSET casinoRouletteWheelTop + call ResetColor + call PrintRouletteTopRow + invoke PrintRouletteSideRow, 30, OFFSET rouletteBigSideGap1, 7 + invoke PrintRouletteSideRow, 29, OFFSET rouletteBigSideGap2, 8 + invoke PrintRouletteSideRow, 28, OFFSET rouletteBigSideGap3, 9 + invoke PrintRouletteSideRow, 27, OFFSET rouletteBigSideGap4, 10 + invoke PrintRouletteSideRow, 26, OFFSET rouletteBigSideGap5, 11 + invoke PrintRouletteSideRow, 25, OFFSET rouletteBigSideGap6, 12 + call PrintRouletteBottomRow + invoke SetColor, COLOR_WOOD + invoke PrintStr, OFFSET casinoRouletteWheelBottom + call ResetColor + invoke PrintStr, OFFSET casinoRouletteSpinText + ret +ShowCasinoRouletteFrame ENDP + +; --- AnimateCasinoRouletteSpin: ðóññêàÿ ðóëåòêà èëè êàçèíî-ðóëåòêà --- +AnimateCasinoRouletteSpin PROC uses eax ebx edx + invoke GetTickCount + xor seed, eax + invoke RandomRange, 37 + mov casinoRouletteResultIndex, eax + mov ebx, eax + mov eax, [rouletteWheel + ebx * 4] + mov casinoRouletteResult, eax + + invoke RandomRange, 18 + add eax, 72 + mov casinoRouletteSpinSteps, eax + mov casinoRouletteSpinCounter, eax + + xor edx, edx + mov ebx, 37 + div ebx + mov eax, casinoRouletteResultIndex + add eax, 37 + sub eax, edx + cmp eax, 37 + jb casino_roulette_start_ready + sub eax, 37 +casino_roulette_start_ready: + mov casinoRouletteSpinIndex, eax + +casino_roulette_spin_loop: + inc casinoRouletteSpinIndex + cmp casinoRouletteSpinIndex, 37 + jb casino_roulette_spin_index_ok + mov casinoRouletteSpinIndex, 0 +casino_roulette_spin_index_ok: + call ShowCasinoRouletteFrame + mov eax, casinoRouletteSpinCounter + cmp eax, 12 + jbe casino_roulette_sleep_slow + cmp eax, 26 + jbe casino_roulette_sleep_mid + invoke Sleep, 45 + jmp casino_roulette_after_sleep +casino_roulette_sleep_mid: + invoke Sleep, 95 + jmp casino_roulette_after_sleep +casino_roulette_sleep_slow: + invoke Sleep, 170 +casino_roulette_after_sleep: + dec casinoRouletteSpinCounter + cmp casinoRouletteSpinCounter, 0 + jne casino_roulette_spin_loop + mov ebx, casinoRouletteSpinIndex + mov casinoRouletteResultIndex, ebx + mov eax, [rouletteWheel + ebx * 4] + mov casinoRouletteResult, eax + ret +AnimateCasinoRouletteSpin ENDP + +; --- CasinoRouletteEvaluate: ðóññêàÿ ðóëåòêà èëè êàçèíî-ðóëåòêà --- +CasinoRouletteEvaluate PROC uses eax ebx edx + invoke PrintStr, OFFSET casinoRouletteResultText + invoke PrintRouletteNumberColored, casinoRouletteResult + invoke PrintStr, OFFSET rouletteNumSpace + invoke PrintRouletteColorName, casinoRouletteResult + + mov eax, casinoRouletteBetType + cmp eax, 1 + je casino_roulette_eval_number + cmp eax, 2 + je casino_roulette_eval_red + cmp eax, 3 + je casino_roulette_eval_black + cmp eax, 4 + je casino_roulette_eval_even + cmp eax, 5 + je casino_roulette_eval_odd + cmp eax, 6 + je casino_roulette_eval_dozen1 + cmp eax, 7 + je casino_roulette_eval_dozen2 + cmp eax, 8 + je casino_roulette_eval_dozen3 + cmp eax, 9 + je casino_roulette_eval_low + cmp eax, 10 + je casino_roulette_eval_high + cmp eax, 11 + je casino_roulette_eval_col1 + cmp eax, 12 + je casino_roulette_eval_col2 + cmp eax, 13 + je casino_roulette_eval_col3 + jmp casino_roulette_lost + +casino_roulette_eval_number: + mov eax, casinoRouletteResult + cmp eax, casinoRouletteBetNumber + jne casino_roulette_lost + invoke UnlockAchievement, 800h, OFFSET achRouletteWinName + invoke PrintStr, OFFSET casinoRouletteWinText + invoke PaySlotMultiplier, 35 + ret + +casino_roulette_eval_red: + mov eax, casinoRouletteResult + movzx ebx, byte ptr [rouletteColors + eax] + cmp ebx, 1 + je casino_roulette_won_even_money + jmp casino_roulette_lost + +casino_roulette_eval_black: + mov eax, casinoRouletteResult + movzx ebx, byte ptr [rouletteColors + eax] + cmp ebx, 2 + je casino_roulette_won_even_money + jmp casino_roulette_lost + +casino_roulette_eval_even: + mov eax, casinoRouletteResult + cmp eax, 0 + je casino_roulette_lost + test eax, 1 + jz casino_roulette_won_even_money + jmp casino_roulette_lost + +casino_roulette_eval_odd: + mov eax, casinoRouletteResult + cmp eax, 0 + je casino_roulette_lost + test eax, 1 + jnz casino_roulette_won_even_money + jmp casino_roulette_lost + +casino_roulette_eval_dozen1: + mov eax, casinoRouletteResult + cmp eax, 1 + jb casino_roulette_lost + cmp eax, 12 + jbe casino_roulette_won_double + jmp casino_roulette_lost +casino_roulette_eval_dozen2: + mov eax, casinoRouletteResult + cmp eax, 13 + jb casino_roulette_lost + cmp eax, 24 + jbe casino_roulette_won_double + jmp casino_roulette_lost +casino_roulette_eval_dozen3: + mov eax, casinoRouletteResult + cmp eax, 25 + jb casino_roulette_lost + cmp eax, 36 + jbe casino_roulette_won_double + jmp casino_roulette_lost +casino_roulette_eval_low: + mov eax, casinoRouletteResult + cmp eax, 1 + jb casino_roulette_lost + cmp eax, 18 + jbe casino_roulette_won_even_money + jmp casino_roulette_lost +casino_roulette_eval_high: + mov eax, casinoRouletteResult + cmp eax, 36 + jbe casino_roulette_won_even_money + jmp casino_roulette_lost +casino_roulette_eval_col1: + mov eax, casinoRouletteResult + cmp eax, 0 + je casino_roulette_lost + dec eax + xor edx, edx + mov ebx, 3 + div ebx + cmp edx, 0 + je casino_roulette_won_double + jmp casino_roulette_lost +casino_roulette_eval_col2: + mov eax, casinoRouletteResult + cmp eax, 0 + je casino_roulette_lost + dec eax + xor edx, edx + mov ebx, 3 + div ebx + cmp edx, 1 + je casino_roulette_won_double + jmp casino_roulette_lost +casino_roulette_eval_col3: + mov eax, casinoRouletteResult + cmp eax, 0 + je casino_roulette_lost + dec eax + xor edx, edx + mov ebx, 3 + div ebx + cmp edx, 2 + je casino_roulette_won_double + jmp casino_roulette_lost + +casino_roulette_won_double: + invoke UnlockAchievement, 800h, OFFSET achRouletteWinName + invoke PrintStr, OFFSET casinoRouletteWinText + invoke PaySlotMultiplier, 2 + ret +casino_roulette_won_even_money: + invoke UnlockAchievement, 800h, OFFSET achRouletteWinName + invoke PrintStr, OFFSET casinoRouletteWinText + call PayWin + ret +casino_roulette_lost: + invoke PrintStr, OFFSET casinoRouletteLoseText + call PayLose + ret +CasinoRouletteEvaluate ENDP + +; --- GameCasinoRoulette: ðóññêàÿ ðóëåòêà èëè êàçèíî-ðóëåòêà --- +GameCasinoRoulette PROC +casino_roulette_start: + call ClearView + invoke PrintTitleColor, OFFSET casinoRouletteTitle + invoke PrintStr, OFFSET casinoRouletteIntro + call PromptBet + +casino_roulette_choose: + call ClearView + invoke PrintTitleColor, OFFSET casinoRouletteTitle + invoke PrintStr, OFFSET casinoRouletteIntro + call PrintBank + invoke PrintStr, OFFSET casinoRouletteBetMenu + call ReadUInt + cmp eax, 1 + je casino_roulette_choose_number + cmp eax, 2 + je casino_roulette_choose_red + cmp eax, 3 + je casino_roulette_choose_black + cmp eax, 4 + je casino_roulette_choose_even + cmp eax, 5 + je casino_roulette_choose_odd + cmp eax, 6 + je casino_roulette_choose_dozen1 + cmp eax, 7 + je casino_roulette_choose_dozen2 + cmp eax, 8 + je casino_roulette_choose_dozen3 + cmp eax, 9 + je casino_roulette_choose_low + cmp eax, 10 + je casino_roulette_choose_high + cmp eax, 11 + je casino_roulette_choose_col1 + cmp eax, 12 + je casino_roulette_choose_col2 + cmp eax, 13 + je casino_roulette_choose_col3 + invoke PrintStr, OFFSET badChoiceText + call Pause + jmp casino_roulette_choose + +casino_roulette_choose_number: + mov casinoRouletteBetType, 1 + invoke PrintStr, OFFSET casinoRouletteNumberAsk + call ReadUInt + cmp eax, 36 + ja casino_roulette_bad_number + mov casinoRouletteBetNumber, eax + jmp casino_roulette_spin +casino_roulette_bad_number: + invoke PrintStr, OFFSET casinoRouletteBadNumber + call Pause + jmp casino_roulette_choose + +casino_roulette_choose_red: + mov casinoRouletteBetType, 2 + jmp casino_roulette_spin +casino_roulette_choose_black: + mov casinoRouletteBetType, 3 + jmp casino_roulette_spin +casino_roulette_choose_even: + mov casinoRouletteBetType, 4 + jmp casino_roulette_spin +casino_roulette_choose_odd: + mov casinoRouletteBetType, 5 + jmp casino_roulette_spin +casino_roulette_choose_dozen1: + mov casinoRouletteBetType, 6 + jmp casino_roulette_spin +casino_roulette_choose_dozen2: + mov casinoRouletteBetType, 7 + jmp casino_roulette_spin +casino_roulette_choose_dozen3: + mov casinoRouletteBetType, 8 + jmp casino_roulette_spin +casino_roulette_choose_low: + mov casinoRouletteBetType, 9 + jmp casino_roulette_spin +casino_roulette_choose_high: + mov casinoRouletteBetType, 10 + jmp casino_roulette_spin +casino_roulette_choose_col1: + mov casinoRouletteBetType, 11 + jmp casino_roulette_spin +casino_roulette_choose_col2: + mov casinoRouletteBetType, 12 + jmp casino_roulette_spin +casino_roulette_choose_col3: + mov casinoRouletteBetType, 13 + +casino_roulette_spin: + call PlayCasinoRouletteSound + call AnimateCasinoRouletteSpin + call CasinoRouletteEvaluate + +casino_roulette_again: + cmp tournamentMode, 1 + je casino_roulette_tournament_return + invoke PrintStr, OFFSET againText + call ReadKey + cmp al, 'y' + je casino_roulette_start + cmp al, 'Y' + je casino_roulette_start +casino_roulette_tournament_return: + ret +GameCasinoRoulette ENDP +; --- SlotApplyWin: ñëîò-ìàøèíû, áàðàáàíû, ñèìâîëû, âûïëàòû è äæåêïîòû --- +SlotApplyWin PROC uses ebx ecx edx, pName:DWORD, multiplier:DWORD, maskValue:DWORD + mov eax, pName + cmp eax, OFFSET slotComboJackpot + je slot_apply_jackpot + + mov eax, maskValue + mov ebx, slotBlockMask + mov ecx, eax + and ecx, ebx + cmp ecx, eax + je slot_apply_skip + or slotBlockMask, eax + jmp slot_apply_record + +slot_apply_jackpot: + mov slotJackpotHit, 1 + mov eax, maskValue + +slot_apply_record: + or slotWinMask, eax + mov ebx, slotMatch + mov eax, slotSymbolValues[ebx * 4] + mov ebx, multiplier + mul ebx + mov edx, eax + add slotBestMultiplier, edx + + mov ebx, slotComboCount + cmp ebx, 32 + jae slot_apply_no_store + mov eax, pName + mov slotComboNames[ebx * 4], eax + mov slotComboMults[ebx * 4], edx + inc slotComboCount +slot_apply_no_store: + mov eax, 1 + ret + +slot_apply_skip: + xor eax, eax + ret +SlotApplyWin ENDP + +; --- SlotSame3: ñëîò-ìàøèíû, áàðàáàíû, ñèìâîëû, âûïëàòû è äæåêïîòû --- +SlotSame3 PROC uses ebx ecx edx, i1:DWORD, i2:DWORD, i3:DWORD + mov ebx, i1 + mov eax, slotGrid[ebx * 4] + mov ecx, i2 + cmp eax, slotGrid[ecx * 4] + jne slot_same3_no + mov edx, i3 + cmp eax, slotGrid[edx * 4] + jne slot_same3_no + mov eax, 1 + ret +slot_same3_no: + xor eax, eax + ret +SlotSame3 ENDP + +; --- SlotSame4: ñëîò-ìàøèíû, áàðàáàíû, ñèìâîëû, âûïëàòû è äæåêïîòû --- +SlotSame4 PROC uses ebx ecx edx, i1:DWORD, i2:DWORD, i3:DWORD, i4:DWORD + mov ebx, i1 + mov eax, slotGrid[ebx * 4] + mov ecx, i2 + cmp eax, slotGrid[ecx * 4] + jne slot_same4_no + mov edx, i3 + cmp eax, slotGrid[edx * 4] + jne slot_same4_no + mov ebx, i4 + cmp eax, slotGrid[ebx * 4] + jne slot_same4_no + mov eax, 1 + ret +slot_same4_no: + xor eax, eax + ret +SlotSame4 ENDP + +; --- SlotSame5: ñëîò-ìàøèíû, áàðàáàíû, ñèìâîëû, âûïëàòû è äæåêïîòû --- +SlotSame5 PROC uses ebx ecx edx, i1:DWORD, i2:DWORD, i3:DWORD, i4:DWORD, i5:DWORD + mov ebx, i1 + mov eax, slotGrid[ebx * 4] + mov ecx, i2 + cmp eax, slotGrid[ecx * 4] + jne slot_same5_no + mov edx, i3 + cmp eax, slotGrid[edx * 4] + jne slot_same5_no + mov ebx, i4 + cmp eax, slotGrid[ebx * 4] + jne slot_same5_no + mov ecx, i5 + cmp eax, slotGrid[ecx * 4] + jne slot_same5_no + mov eax, 1 + ret +slot_same5_no: + xor eax, eax + ret +SlotSame5 ENDP + +; --- SlotAllSame15: ñëîò-ìàøèíû, áàðàáàíû, ñèìâîëû, âûïëàòû è äæåêïîòû --- +SlotAllSame15 PROC uses ebx ecx + mov eax, slotGrid + mov ebx, 1 +slot_all15_loop: + cmp ebx, 15 + jae slot_all15_yes + mov ecx, slotGrid[ebx * 4] + cmp eax, ecx + jne slot_all15_no + inc ebx + jmp slot_all15_loop +slot_all15_yes: + mov eax, 1 + ret +slot_all15_no: + xor eax, eax + ret +SlotAllSame15 ENDP + +; --- SlotTry3: ñëîò-ìàøèíû, áàðàáàíû, ñèìâîëû, âûïëàòû è äæåêïîòû --- +SlotTry3 PROC uses ebx, pName:DWORD, multiplier:DWORD, maskValue:DWORD, i1:DWORD, i2:DWORD, i3:DWORD + invoke SlotSame3, i1, i2, i3 + cmp eax, 0 + je slot_try3_no + mov ebx, i1 + mov eax, slotGrid[ebx * 4] + mov slotMatch, eax + invoke SlotApplyWin, pName, multiplier, maskValue + ret +slot_try3_no: + xor eax, eax + ret +SlotTry3 ENDP + +; --- SlotTry4: ñëîò-ìàøèíû, áàðàáàíû, ñèìâîëû, âûïëàòû è äæåêïîòû --- +SlotTry4 PROC uses ebx, pName:DWORD, multiplier:DWORD, maskValue:DWORD, i1:DWORD, i2:DWORD, i3:DWORD, i4:DWORD + invoke SlotSame4, i1, i2, i3, i4 + cmp eax, 0 + je slot_try4_no + mov ebx, i1 + mov eax, slotGrid[ebx * 4] + mov slotMatch, eax + invoke SlotApplyWin, pName, multiplier, maskValue + ret +slot_try4_no: + xor eax, eax + ret +SlotTry4 ENDP + +; --- SlotTry5: ñëîò-ìàøèíû, áàðàáàíû, ñèìâîëû, âûïëàòû è äæåêïîòû --- +SlotTry5 PROC uses ebx, pName:DWORD, multiplier:DWORD, maskValue:DWORD, i1:DWORD, i2:DWORD, i3:DWORD, i4:DWORD, i5:DWORD + invoke SlotSame5, i1, i2, i3, i4, i5 + cmp eax, 0 + je slot_try5_no + mov ebx, i1 + mov eax, slotGrid[ebx * 4] + mov slotMatch, eax + invoke SlotApplyWin, pName, multiplier, maskValue + ret +slot_try5_no: + xor eax, eax + ret +SlotTry5 ENDP + +; --- EvaluateSlotCombos: ñëîò-ìàøèíû, áàðàáàíû, ñèìâîëû, âûïëàòû è äæåêïîòû --- +EvaluateSlotCombos PROC + mov slotWinMask, 0 + mov slotBlockMask, 0 + mov slotBestMultiplier, 0 + mov slotComboNamePtr, 0 + mov slotComboCount, 0 + mov slotJackpotHit, 0 + + call SlotAllSame15 + cmp eax, 0 + je slot_eval_eye + mov eax, slotGrid + mov slotMatch, eax + invoke SlotApplyWin, OFFSET slotComboJackpot, 10, 32767 + +slot_eval_eye: + invoke SlotTry5, OFFSET slotComboEye, 8, 17553, 0, 4, 7, 10, 14 + + invoke SlotTry5, OFFSET slotComboSky, 7, 31, 0, 1, 2, 3, 4 + invoke SlotTry5, OFFSET slotComboEarth, 7, 31744, 10, 11, 12, 13, 14 + + invoke SlotTry5, OFFSET slotComboUp, 4, 17732, 10, 6, 2, 8, 14 + invoke SlotTry5, OFFSET slotComboDown, 4, 4433, 0, 6, 12, 8, 4 + + invoke SlotTry5, OFFSET slotComboHorXL, 3, 31, 0, 1, 2, 3, 4 + invoke SlotTry5, OFFSET slotComboHorXL, 3, 992, 5, 6, 7, 8, 9 + invoke SlotTry5, OFFSET slotComboHorXL, 3, 31744, 10, 11, 12, 13, 14 + + invoke SlotTry4, OFFSET slotComboHorL, 2, 15, 0, 1, 2, 3 + invoke SlotTry4, OFFSET slotComboHorL, 2, 30, 1, 2, 3, 4 + invoke SlotTry4, OFFSET slotComboHorL, 2, 480, 5, 6, 7, 8 + invoke SlotTry4, OFFSET slotComboHorL, 2, 960, 6, 7, 8, 9 + invoke SlotTry4, OFFSET slotComboHorL, 2, 15360, 10, 11, 12, 13 + invoke SlotTry4, OFFSET slotComboHorL, 2, 30720, 11, 12, 13, 14 + + invoke SlotTry3, OFFSET slotComboVertM, 1, 1057, 0, 5, 10 + invoke SlotTry3, OFFSET slotComboVertM, 1, 2114, 1, 6, 11 + invoke SlotTry3, OFFSET slotComboVertM, 1, 4228, 2, 7, 12 + invoke SlotTry3, OFFSET slotComboVertM, 1, 8456, 3, 8, 13 + invoke SlotTry3, OFFSET slotComboVertM, 1, 16912, 4, 9, 14 + + invoke SlotTry3, OFFSET slotComboDiagM, 1, 4161, 0, 6, 12 + invoke SlotTry3, OFFSET slotComboDiagM, 1, 8322, 1, 7, 13 + invoke SlotTry3, OFFSET slotComboDiagM, 1, 16644, 2, 8, 14 + invoke SlotTry3, OFFSET slotComboDiagM, 1, 1092, 10, 6, 2 + invoke SlotTry3, OFFSET slotComboDiagM, 1, 2184, 11, 7, 3 + invoke SlotTry3, OFFSET slotComboDiagM, 1, 4368, 12, 8, 4 + + invoke SlotTry3, OFFSET slotComboHorM, 1, 7, 0, 1, 2 + invoke SlotTry3, OFFSET slotComboHorM, 1, 14, 1, 2, 3 + invoke SlotTry3, OFFSET slotComboHorM, 1, 28, 2, 3, 4 + invoke SlotTry3, OFFSET slotComboHorM, 1, 224, 5, 6, 7 + invoke SlotTry3, OFFSET slotComboHorM, 1, 448, 6, 7, 8 + invoke SlotTry3, OFFSET slotComboHorM, 1, 896, 7, 8, 9 + invoke SlotTry3, OFFSET slotComboHorM, 1, 7168, 10, 11, 12 + invoke SlotTry3, OFFSET slotComboHorM, 1, 14336, 11, 12, 13 + invoke SlotTry3, OFFSET slotComboHorM, 1, 28672, 12, 13, 14 + ret +EvaluateSlotCombos ENDP + +; --- AwardSlotWin: ñëîò-ìàøèíû, áàðàáàíû, ñèìâîëû, âûïëàòû è äæåêïîòû --- +AwardSlotWin PROC uses ebx + invoke UnlockAchievement, 80h, OFFSET achCloverPitName + call PrintSlotWindow + invoke PrintStr, OFFSET slotPair + mov slotCurrentCell, 0 +slot_award_combo_loop: + mov eax, slotCurrentCell + cmp eax, slotComboCount + jae slot_award_combo_done + invoke PrintStr, OFFSET slotComboText + mov ebx, slotCurrentCell + mov eax, slotComboNames[ebx * 4] + invoke PrintStr, eax + invoke PrintStr, OFFSET cardGap + invoke PrintStr, OFFSET slotMultiplierText + mov ebx, slotCurrentCell + mov eax, slotComboMults[ebx * 4] + invoke PrintUInt, eax + invoke PrintStr, OFFSET nl + inc slotCurrentCell + jmp slot_award_combo_loop +slot_award_combo_done: + invoke PrintStr, OFFSET slotTotalMultiplierText + invoke PrintUInt, slotBestMultiplier + invoke PrintStr, OFFSET nl + cmp slotJackpotHit, 1 + jne slot_award_regular + call PlayJackpotSound + invoke Sleep, 650 + call PlayHakariSound + call PlayHakariDance + call PrintSlotWindow +slot_award_regular: + invoke PaySlotMultiplier, slotBestMultiplier + ret +AwardSlotWin ENDP +; --- GameSlot: ñëîò-ìàøèíû, áàðàáàíû, ñèìâîëû, âûïëàòû è äæåêïîòû --- +GameSlot PROC +slot_start: + call ClearView + invoke PrintTitleColor, OFFSET slotTitle + invoke PrintStr, OFFSET slotPayTableText + call PromptBet + call PlaySlotSound + invoke Sleep, 400 + invoke PrintStr, OFFSET slotPullText + mov slotWinMask, 0 + mov slotVisible, 0 + call PrintSlotWindow + invoke Sleep, 1400 + + invoke FillSlotColumn, 0 + mov slotVisible, 1 + call PrintSlotWindow + invoke Sleep, 620 + + invoke FillSlotColumn, 1 + mov slotVisible, 2 + call PrintSlotWindow + invoke Sleep, 620 + + invoke FillSlotColumn, 2 + mov slotVisible, 3 + call PrintSlotWindow + invoke Sleep, 620 + + invoke FillSlotColumn, 3 + mov slotVisible, 4 + call PrintSlotWindow + invoke Sleep, 620 + + invoke FillSlotColumn, 4 + mov slotVisible, 5 + call PrintSlotWindow + invoke Sleep, 450 + + cmp cheatSlotJackpot, 1 + jne slot_no_forced_jackpot + mov cheatSlotJackpot, 0 + mov ecx, 15 + mov edi, OFFSET slotGrid +slot_force_jackpot_loop: + mov dword ptr [edi], 6 + add edi, 4 + loop slot_force_jackpot_loop + call PrintSlotWindow + invoke Sleep, 300 +slot_no_forced_jackpot: + + call EvaluateSlotCombos + cmp slotBestMultiplier, 0 + jne slot_has_win + invoke PrintStr, OFFSET slotEmpty + call PayLose + jmp ask_slot_again + +slot_has_win: + call AwardSlotWin + +ask_slot_again: + invoke PrintStr, OFFSET againText + call ReadKey + cmp al, 'y' + je slot_start + cmp al, 'Y' + je slot_start + ret +GameSlot ENDP +; --- PrintClassicSlotSymbol: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintClassicSlotSymbol PROC uses eax, value:DWORD + mov eax, value + cmp eax, 0 + je classic_symbol_red + cmp eax, 1 + je classic_symbol_yellow + cmp eax, 2 + je classic_symbol_green + cmp eax, 5 + je classic_symbol_cyan + invoke SetColor, COLOR_WARN + jmp classic_symbol_print +classic_symbol_red: + invoke SetColor, COLOR_BAD + jmp classic_symbol_print +classic_symbol_yellow: + invoke SetColor, COLOR_WARN + jmp classic_symbol_print +classic_symbol_green: + invoke SetColor, COLOR_MONEY + jmp classic_symbol_print +classic_symbol_cyan: + invoke SetColor, COLOR_TITLE +classic_symbol_print: + mov eax, value + invoke PrintStr, classicSlotSymbols[eax * 4] + call ResetColor + ret +PrintClassicSlotSymbol ENDP + +; --- PrintClassicSlotCell: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintClassicSlotCell PROC uses eax, value:DWORD + mov eax, value + cmp eax, 1 + je classic_slot_cell_bar + invoke PrintStr, OFFSET slotWall + invoke PrintStr, OFFSET slotPadTwo + invoke PrintClassicSlotSymbol, value + invoke PrintStr, OFFSET slotPadTwo + ret +classic_slot_cell_bar: + invoke PrintStr, OFFSET slotWall + invoke PrintStr, OFFSET slotPadOne + invoke PrintClassicSlotSymbol, value + invoke PrintStr, OFFSET slotPadOne + ret +PrintClassicSlotCell ENDP + +; --- PrintClassicSlotBlankCell: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintClassicSlotBlankCell PROC + invoke PrintStr, OFFSET slotWall + invoke PrintStr, OFFSET slotCellBlank + ret +PrintClassicSlotBlankCell ENDP + +; --- PrintClassicSlotWindow: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintClassicSlotWindow PROC uses eax ebx + call ClearView + invoke PrintTitleColor, OFFSET classicSlotTitle + invoke PrintStr, OFFSET classicSlotBorder + + mov rowIndex, 0 +classic_slot_window_row_loop: + cmp rowIndex, 3 + jae classic_slot_window_done + mov ebx, rowIndex + imul ebx, 3 + + cmp slotVisible, 1 + jb classic_slot_blank_col1 + invoke PrintClassicSlotCell, slotGrid[ebx * 4] + jmp classic_slot_col2 +classic_slot_blank_col1: + call PrintClassicSlotBlankCell + +classic_slot_col2: + cmp slotVisible, 2 + jb classic_slot_blank_col2 + mov eax, ebx + inc eax + invoke PrintClassicSlotCell, slotGrid[eax * 4] + jmp classic_slot_col3 +classic_slot_blank_col2: + call PrintClassicSlotBlankCell + +classic_slot_col3: + cmp slotVisible, 3 + jb classic_slot_blank_col3 + mov eax, ebx + add eax, 2 + invoke PrintClassicSlotCell, slotGrid[eax * 4] + jmp classic_slot_row_end +classic_slot_blank_col3: + call PrintClassicSlotBlankCell + +classic_slot_row_end: + invoke PrintStr, OFFSET slotWall + invoke PrintStr, OFFSET nl + cmp rowIndex, 1 + jne classic_no_payline + invoke PrintStr, OFFSET classicSlotPayline +classic_no_payline: + invoke PrintStr, OFFSET classicSlotBorder + inc rowIndex + jmp classic_slot_window_row_loop + +classic_slot_window_done: + ret +PrintClassicSlotWindow ENDP + +; --- FillClassicSlotColumn: ñëîò-ìàøèíû, áàðàáàíû, ñèìâîëû, âûïëàòû è äæåêïîòû --- +FillClassicSlotColumn PROC uses eax ebx, column:DWORD + mov ebx, column + invoke RandomRange, 6 + mov slotGrid[ebx * 4], eax + mov ebx, column + add ebx, 3 + invoke RandomRange, 6 + mov slotGrid[ebx * 4], eax + mov ebx, column + add ebx, 7 + invoke RandomRange, 6 + mov slotGrid[ebx * 4], eax + ret +FillClassicSlotColumn ENDP + +; --- DurakCardRank: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +DurakCardRank PROC uses ecx edx, card:DWORD + mov eax, card + xor edx, edx + mov ecx, 13 + div ecx + mov eax, edx + ret +DurakCardRank ENDP + +; --- DurakCardSuit: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +DurakCardSuit PROC uses ecx edx, card:DWORD + mov eax, card + xor edx, edx + mov ecx, 13 + div ecx + ret +DurakCardSuit ENDP + +; --- DrawDurakCard: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +DrawDurakCard PROC uses ebx ecx edx edi + cmp durakDeckLeft, 0 + ja draw_durak_random_start + mov eax, 0FFFFFFFFh + ret + +; Ñíà÷àëà ïðîáóåì ñëó÷àéíî, íî íå áåñêîíå÷íî: â êîíöå ïàðòèè èíà÷å ìîæíî äîëãî æäàòü îäíó êàðòó. +draw_durak_random_start: + mov rowIndex, 120 +draw_durak_try: + invoke RandomRange, 52 + mov ebx, eax + xor edx, edx + mov ecx, 13 + div ecx + cmp edx, 4 + jb draw_durak_next_try + mov edi, OFFSET deckUsed + add edi, ebx + cmp byte ptr [edi], 0 + je draw_durak_take + +draw_durak_next_try: + dec rowIndex + cmp rowIndex, 0 + jne draw_durak_try + + xor ebx, ebx +draw_durak_scan_loop: + cmp ebx, 52 + jae draw_durak_none_left + mov eax, ebx + xor edx, edx + mov ecx, 13 + div ecx + cmp edx, 4 + jb draw_durak_scan_next + mov edi, OFFSET deckUsed + add edi, ebx + cmp byte ptr [edi], 0 + je draw_durak_take + +draw_durak_scan_next: + inc ebx + jmp draw_durak_scan_loop + +draw_durak_take: + mov edi, OFFSET deckUsed + add edi, ebx + mov byte ptr [edi], 1 + cmp durakDeckLeft, 0 + jbe draw_durak_return_card + dec durakDeckLeft +draw_durak_return_card: + mov eax, ebx + ret + +draw_durak_none_left: + mov durakDeckLeft, 0 + mov eax, 0FFFFFFFFh + ret +DrawDurakCard ENDP + +; --- PrintDurakCardName: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintDurakCardName PROC uses eax ebx ecx edx, card:DWORD + mov eax, card + cmp eax, 0FFFFFFFFh + jne print_durak_card_real + invoke PrintStr, OFFSET durakUnbeatenText + ret +print_durak_card_real: + xor edx, edx + mov ecx, 13 + div ecx + mov ebx, eax + mov eax, edx + invoke PrintStr, ranks[eax * 4] + invoke PrintSuit, ebx + ret +PrintDurakCardName ENDP + +; --- AddDurakCard: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +AddDurakCard PROC uses ebx ecx, pHand:DWORD, pCount:DWORD, card:DWORD + mov ecx, pCount + mov ebx, [ecx] + cmp ebx, 40 + jae add_durak_done + mov eax, pHand + mov ecx, card + mov [eax + ebx * 4], ecx + mov ecx, pCount + inc dword ptr [ecx] +add_durak_done: + ret +AddDurakCard ENDP + +; --- RemoveDurakCard: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +RemoveDurakCard PROC uses ebx ecx edx esi edi, pHand:DWORD, pCount:DWORD, index:DWORD + mov esi, pHand + mov edi, pCount + mov ecx, [edi] + mov ebx, index + cmp ebx, ecx + jae remove_durak_bad + mov eax, [esi + ebx * 4] + dec ecx + mov [edi], ecx +remove_durak_shift: + cmp ebx, ecx + jae remove_durak_done + mov edx, [esi + ebx * 4 + 4] + mov [esi + ebx * 4], edx + inc ebx + jmp remove_durak_shift +remove_durak_done: + ret +remove_durak_bad: + mov eax, 0FFFFFFFFh + ret +RemoveDurakCard ENDP + +; --- CanDurakBeat: äóðàê: êîçûðü, àòàêà, çàùèòà, ïîäêèäûâàíèå è äîáîð --- +CanDurakBeat PROC uses ebx ecx edx esi edi, attackCard:DWORD, defenseCard:DWORD + invoke DurakCardSuit, attackCard + mov esi, eax + invoke DurakCardRank, attackCard + mov edi, eax + invoke DurakCardSuit, defenseCard + mov ebx, eax + invoke DurakCardRank, defenseCard + mov ecx, eax + cmp ebx, esi + jne can_durak_check_trump + cmp ecx, edi + ja can_durak_yes + jmp can_durak_no +can_durak_check_trump: + cmp ebx, durakTrumpSuit + jne can_durak_no + cmp esi, durakTrumpSuit + je can_durak_no +can_durak_yes: + mov eax, 1 + ret +can_durak_no: + xor eax, eax + ret +CanDurakBeat ENDP + +; --- ClearDurakTable: äóðàê: êîçûðü, àòàêà, çàùèòà, ïîäêèäûâàíèå è äîáîð --- +ClearDurakTable PROC uses ecx edi + mov durakTableCnt, 0 + mov ecx, 6 + mov edi, OFFSET durakAttackCards +clear_durak_attack_loop: + mov dword ptr [edi], 0FFFFFFFFh + add edi, 4 + loop clear_durak_attack_loop + mov ecx, 6 + mov edi, OFFSET durakDefenseCards +clear_durak_def_loop: + mov dword ptr [edi], 0FFFFFFFFh + add edi, 4 + loop clear_durak_def_loop + ret +ClearDurakTable ENDP + +; --- AddDurakAttack: äóðàê: êîçûðü, àòàêà, çàùèòà, ïîäêèäûâàíèå è äîáîð --- +AddDurakAttack PROC uses ebx + mov ebx, durakTableCnt + cmp ebx, 6 + jae add_attack_done + mov durakAttackCards[ebx * 4], eax + mov durakDefenseCards[ebx * 4], 0FFFFFFFFh + inc durakTableCnt +add_attack_done: + ret +AddDurakAttack ENDP + +; --- DurakTableHasDefense: äóðàê: êîçûðü, àòàêà, çàùèòà, ïîäêèäûâàíèå è äîáîð --- +DurakTableHasDefense PROC uses ebx + mov rowIndex, 0 +has_def_loop: + mov eax, rowIndex + cmp eax, durakTableCnt + jae has_def_no + mov ebx, eax + cmp durakDefenseCards[ebx * 4], 0FFFFFFFFh + jne has_def_yes + inc rowIndex + jmp has_def_loop +has_def_yes: + mov eax, 1 + ret +has_def_no: + xor eax, eax + ret +DurakTableHasDefense ENDP + +; --- DurakFirstUnbeaten: äóðàê: êîçûðü, àòàêà, çàùèòà, ïîäêèäûâàíèå è äîáîð --- +DurakFirstUnbeaten PROC uses ebx + mov rowIndex, 0 +first_unbeaten_loop: + mov eax, rowIndex + cmp eax, durakTableCnt + jae first_unbeaten_none + mov ebx, eax + cmp durakDefenseCards[ebx * 4], 0FFFFFFFFh + je first_unbeaten_found + inc rowIndex + jmp first_unbeaten_loop +first_unbeaten_found: + mov eax, rowIndex + ret +first_unbeaten_none: + mov eax, 0FFFFFFFFh + ret +DurakFirstUnbeaten ENDP + +; --- DurakAllDefended: äóðàê: êîçûðü, àòàêà, çàùèòà, ïîäêèäûâàíèå è äîáîð --- +DurakAllDefended PROC + call DurakFirstUnbeaten + cmp eax, 0FFFFFFFFh + jne all_def_no + mov eax, 1 + ret +all_def_no: + xor eax, eax + ret +DurakAllDefended ENDP + +; --- DurakRankOnTable: äóðàê: êîçûðü, àòàêà, çàùèòà, ïîäêèäûâàíèå è äîáîð --- +DurakRankOnTable PROC uses ebx ecx edx, card:DWORD + invoke DurakCardRank, card + mov ecx, eax + mov rowIndex, 0 +rank_on_table_loop: + mov eax, rowIndex + cmp eax, durakTableCnt + jae rank_on_table_no + mov ebx, eax + invoke DurakCardRank, durakAttackCards[ebx * 4] + cmp eax, ecx + je rank_on_table_yes + cmp durakDefenseCards[ebx * 4], 0FFFFFFFFh + je rank_on_table_next + invoke DurakCardRank, durakDefenseCards[ebx * 4] + cmp eax, ecx + je rank_on_table_yes +rank_on_table_next: + inc rowIndex + jmp rank_on_table_loop +rank_on_table_yes: + mov eax, 1 + ret +rank_on_table_no: + xor eax, eax + ret +DurakRankOnTable ENDP + +; --- CollectDurakTable: àêêàóíòû, ôàéëû ñîõðàíåíèé è çàãðóçêà ïðîôèëÿ --- +CollectDurakTable PROC uses ebx, pHand:DWORD, pCount:DWORD + mov rowIndex, 0 +collect_table_loop: + mov eax, rowIndex + cmp eax, durakTableCnt + jae collect_table_done + mov ebx, eax + invoke AddDurakCard, pHand, pCount, durakAttackCards[ebx * 4] + cmp durakDefenseCards[ebx * 4], 0FFFFFFFFh + je collect_next + invoke AddDurakCard, pHand, pCount, durakDefenseCards[ebx * 4] +collect_next: + inc rowIndex + jmp collect_table_loop +collect_table_done: + call ClearDurakTable + ret +CollectDurakTable ENDP + +; --- DrawDurakPlayer: äóðàê: êîçûðü, àòàêà, çàùèòà, ïîäêèäûâàíèå è äîáîð --- +DrawDurakPlayer PROC + call PlayCardSound + call DrawDurakCard + cmp eax, 0FFFFFFFFh + je draw_durak_player_done + invoke AddDurakCard, OFFSET durakPlayerHand, OFFSET durakPlayerCnt, eax +draw_durak_player_done: + ret +DrawDurakPlayer ENDP + +; --- DrawDurakAI: äóðàê: êîçûðü, àòàêà, çàùèòà, ïîäêèäûâàíèå è äîáîð --- +DrawDurakAI PROC + call PlayCardSound + call DrawDurakCard + cmp eax, 0FFFFFFFFh + je draw_durak_ai_done + invoke AddDurakCard, OFFSET durakAIHand, OFFSET durakAICnt, eax +draw_durak_ai_done: + ret +DrawDurakAI ENDP + +; --- RefillDurakHands: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +RefillDurakHands PROC +refill_player_loop: + cmp durakPlayerCnt, 6 + jae refill_ai_loop + cmp durakDeckLeft, 0 + jbe refill_ai_loop + call DrawDurakPlayer + jmp refill_player_loop +refill_ai_loop: + cmp durakAICnt, 6 + jae refill_done + cmp durakDeckLeft, 0 + jbe refill_done + call DrawDurakAI + jmp refill_ai_loop +refill_done: + ret +RefillDurakHands ENDP +; --- RefillDurakHandsAIFirst: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +RefillDurakHandsAIFirst PROC +refill_ai_first_loop: + cmp durakAICnt, 6 + jae refill_player_after_ai_loop + cmp durakDeckLeft, 0 + jbe refill_player_after_ai_loop + call DrawDurakAI + jmp refill_ai_first_loop +refill_player_after_ai_loop: + cmp durakPlayerCnt, 6 + jae refill_ai_first_done + cmp durakDeckLeft, 0 + jbe refill_ai_first_done + call DrawDurakPlayer + jmp refill_player_after_ai_loop +refill_ai_first_done: + ret +RefillDurakHandsAIFirst ENDP + +; --- PrintDurakHand: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintDurakHand PROC uses eax ebx, pHand:DWORD, count:DWORD + mov rowIndex, 0 +print_durak_hand_loop: + mov eax, rowIndex + cmp eax, count + jae print_durak_hand_done + inc eax + invoke PrintUInt, eax + invoke PrintStr, OFFSET dotSpaceText + mov ebx, pHand + mov eax, rowIndex + invoke PrintDurakCardName, dword ptr [ebx + eax * 4] + invoke PrintStr, OFFSET cardGap + inc rowIndex + jmp print_durak_hand_loop +print_durak_hand_done: + invoke PrintStr, OFFSET nl + ret +PrintDurakHand ENDP + +; --- PrintDurakTable: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintDurakTable PROC uses ebx + cmp durakTableCnt, 0 + je print_table_done + invoke PrintStr, OFFSET durakTablePairsText + invoke PrintHandRow21, OFFSET durakAttackCards, durakTableCnt, 1 + mov rowIndex, 0 +print_table_pairs_loop: + mov eax, rowIndex + cmp eax, durakTableCnt + jae print_table_done + inc eax + invoke PrintUInt, eax + invoke PrintStr, OFFSET dotSpaceText + mov ebx, rowIndex + invoke PrintDurakCardName, durakAttackCards[ebx * 4] + invoke PrintStr, OFFSET durakSlashText + invoke PrintDurakCardName, durakDefenseCards[ebx * 4] + invoke PrintStr, OFFSET nl + inc rowIndex + jmp print_table_pairs_loop +print_table_done: + ret +PrintDurakTable ENDP + +; --- ShowDurakTable: äóðàê: êîçûðü, àòàêà, çàùèòà, ïîäêèäûâàíèå è äîáîð --- +ShowDurakTable PROC + call ClearView + invoke PrintTitleColor, OFFSET durakTitle + invoke PrintStr, OFFSET durakDeckVisualText + invoke PrintDurakCardName, durakTrumpCard + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET durakDeckText + invoke PrintUInt, durakDeckLeft + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET durakAICardsText + invoke PrintUInt, durakAICnt + invoke PrintStr, OFFSET nl + cmp durakAICnt, 10 + ja show_ai_no_graphics + invoke PrintStr, OFFSET durakAIFaceText + invoke PrintHandRow21, OFFSET durakAIHand, durakAICnt, 0 +show_ai_no_graphics: + call PrintDurakTable + invoke PrintStr, OFFSET durakYourHandText + cmp durakPlayerCnt, 10 + ja show_player_list_only + invoke PrintHandRow21, OFFSET durakPlayerHand, durakPlayerCnt, 1 +show_player_list_only: + invoke PrintDurakHand, OFFSET durakPlayerHand, durakPlayerCnt + ret +ShowDurakTable ENDP + +; --- FindAIDurakDefense: àêêàóíòû, ôàéëû ñîõðàíåíèé è çàãðóçêà ïðîôèëÿ --- +FindAIDurakDefense PROC uses ebx ecx, tableIndex:DWORD + mov rowIndex, 0 +find_ai_defense_loop: + mov eax, rowIndex + cmp eax, durakAICnt + jae find_ai_defense_no + mov ebx, OFFSET durakAIHand + mov ecx, [ebx + eax * 4] + mov ebx, tableIndex + invoke CanDurakBeat, durakAttackCards[ebx * 4], ecx + cmp eax, 1 + je find_ai_defense_yes + inc rowIndex + jmp find_ai_defense_loop +find_ai_defense_yes: + mov eax, rowIndex + ret +find_ai_defense_no: + mov eax, 0FFFFFFFFh + ret +FindAIDurakDefense ENDP + +; --- AIDefendAll: äóðàê: êîçûðü, àòàêà, çàùèòà, ïîäêèäûâàíèå è äîáîð --- +AIDefendAll PROC uses ebx + mov durakLoopGuard, 0 +ai_defend_loop: + inc durakLoopGuard + cmp durakLoopGuard, 20 + ja ai_defend_fail + call DurakFirstUnbeaten + cmp eax, 0FFFFFFFFh + je ai_defend_success + mov ebx, eax + invoke FindAIDurakDefense, ebx + cmp eax, 0FFFFFFFFh + je ai_defend_fail + invoke RemoveDurakCard, OFFSET durakAIHand, OFFSET durakAICnt, eax + mov durakDefenseCards[ebx * 4], eax + jmp ai_defend_loop +ai_defend_success: + mov eax, 1 + ret +ai_defend_fail: + xor eax, eax + ret +AIDefendAll ENDP + +; --- FindAIThrowIn: àêêàóíòû, ôàéëû ñîõðàíåíèé è çàãðóçêà ïðîôèëÿ --- +FindAIThrowIn PROC uses ebx ecx + cmp durakTableCnt, 6 + jae ai_throw_none + mov eax, durakTableCnt + cmp eax, durakPlayerCnt + jae ai_throw_none + mov rowIndex, 0 +ai_throw_loop: + mov eax, rowIndex + cmp eax, durakAICnt + jae ai_throw_none + mov ebx, OFFSET durakAIHand + mov ecx, [ebx + eax * 4] + invoke DurakRankOnTable, ecx + cmp eax, 1 + je ai_throw_found + inc rowIndex + jmp ai_throw_loop +ai_throw_found: + mov eax, rowIndex + ret +ai_throw_none: + mov eax, 0FFFFFFFFh + ret +FindAIThrowIn ENDP + +; --- CheckDurakEnd: äóðàê: êîçûðü, àòàêà, çàùèòà, ïîäêèäûâàíèå è äîáîð --- +CheckDurakEnd PROC + cmp durakDeckLeft, 0 + ja durak_not_finished + cmp durakPlayerCnt, 0 + jne check_ai_empty + cmp durakAICnt, 0 + jne durak_player_won + mov eax, 3 + ret +check_ai_empty: + cmp durakAICnt, 0 + jne durak_not_finished + mov eax, 2 + ret +durak_player_won: + mov eax, 1 + ret +durak_not_finished: + xor eax, eax + ret +CheckDurakEnd ENDP + +; --- SetupDurak: äóðàê: êîçûðü, àòàêà, çàùèòà, ïîäêèäûâàíèå è äîáîð --- +SetupDurak PROC uses ecx + call ResetDeck + mov durakPlayerCnt, 0 + mov durakAICnt, 0 + mov durakDeckLeft, 36 + mov durakPlayerTurn, 1 + mov durakSafeTurns, 0 + call ClearDurakTable + call DrawDurakCard + mov durakTrumpCard, eax + invoke DurakCardSuit, eax + mov durakTrumpSuit, eax + mov ecx, 6 +setup_durak_deal: + call DrawDurakPlayer + call DrawDurakAI + loop setup_durak_deal + ret +SetupDurak ENDP + +; --- PlayerOpenAttackLoop: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlayerOpenAttackLoop PROC uses ebx ecx +player_open_attack_loop: + mov eax, durakTableCnt + cmp eax, 6 + jae player_open_attack_done + cmp eax, durakAICnt + jae player_open_attack_done + call ShowDurakTable + invoke PrintStr, OFFSET durakThrowAsk + call ReadUInt + cmp eax, 0 + je player_open_attack_done + cmp eax, 1 + jb player_open_attack_bad + cmp eax, durakPlayerCnt + ja player_open_attack_bad + dec eax + mov durakChoice, eax + mov ebx, OFFSET durakPlayerHand + mov ecx, [ebx + eax * 4] + invoke DurakRankOnTable, ecx + cmp eax, 1 + jne player_open_attack_bad + invoke RemoveDurakCard, OFFSET durakPlayerHand, OFFSET durakPlayerCnt, durakChoice + call AddDurakAttack + jmp player_open_attack_loop +player_open_attack_bad: + invoke PrintStr, OFFSET durakBadMoveText + invoke Sleep, 650 + jmp player_open_attack_loop +player_open_attack_done: + ret +PlayerOpenAttackLoop ENDP + +; --- AIInitialThrowLoop: äóðàê: êîçûðü, àòàêà, çàùèòà, ïîäêèäûâàíèå è äîáîð --- +AIInitialThrowLoop PROC + mov durakLoopGuard, 0 +ai_initial_throw_loop: + inc durakLoopGuard + cmp durakLoopGuard, 20 + ja ai_initial_throw_done + call FindAIThrowIn + cmp eax, 0FFFFFFFFh + je ai_initial_throw_done + invoke RemoveDurakCard, OFFSET durakAIHand, OFFSET durakAICnt, eax + call AddDurakAttack + jmp ai_initial_throw_loop +ai_initial_throw_done: + ret +AIInitialThrowLoop ENDP +; --- PlayerThrowLoop: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlayerThrowLoop PROC uses ebx ecx + mov durakLoopGuard, 0 +player_throw_loop: + inc durakLoopGuard + cmp durakLoopGuard, 30 + ja player_throw_done + call ShowDurakTable + call AIDefendAll + cmp eax, 1 + je player_throw_after_defense + invoke CollectDurakTable, OFFSET durakAIHand, OFFSET durakAICnt + invoke PrintStr, OFFSET durakAITakeText + mov durakPlayerTurn, 1 + call RefillDurakHands + call Pause + ret +player_throw_after_defense: + call ShowDurakTable + invoke PrintStr, OFFSET durakThrowAsk + call ReadUInt + cmp eax, 0 + je player_throw_done + cmp eax, 1 + jb player_throw_bad + cmp eax, durakPlayerCnt + ja player_throw_bad + cmp durakTableCnt, 6 + jae player_throw_bad + dec eax + mov durakChoice, eax + mov ebx, OFFSET durakPlayerHand + mov ecx, [ebx + eax * 4] + invoke DurakRankOnTable, ecx + cmp eax, 1 + jne player_throw_bad + invoke RemoveDurakCard, OFFSET durakPlayerHand, OFFSET durakPlayerCnt, durakChoice + call AddDurakAttack + jmp player_throw_loop +player_throw_bad: + invoke PrintStr, OFFSET durakBadMoveText + invoke Sleep, 650 + jmp player_throw_loop +player_throw_done: + call ClearDurakTable + mov durakPlayerTurn, 0 + call RefillDurakHands + ret +PlayerThrowLoop ENDP + +; --- PlayerDefendLoop: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlayerDefendLoop PROC uses ebx ecx + mov durakLoopGuard, 0 +player_defend_loop: + inc durakLoopGuard + cmp durakLoopGuard, 30 + ja player_take_table + call DurakAllDefended + cmp eax, 1 + je player_defended_all + call ShowDurakTable + invoke PrintStr, OFFSET durakDefendAsk + call ReadUInt + cmp eax, 0 + je player_take_table + cmp eax, 1 + jb player_def_bad + cmp eax, durakPlayerCnt + ja player_def_bad + dec eax + mov durakChoice, eax + mov ebx, OFFSET durakPlayerHand + mov ecx, [ebx + eax * 4] + + call DurakTableHasDefense + cmp eax, 0 + jne player_try_beat + invoke DurakRankOnTable, ecx + cmp eax, 1 + jne player_try_beat + mov eax, durakTableCnt + cmp durakAICnt, eax + jbe player_try_beat + invoke RemoveDurakCard, OFFSET durakPlayerHand, OFFSET durakPlayerCnt, durakChoice + call AddDurakAttack + invoke PrintStr, OFFSET durakTransferText + call Pause + call PlayerThrowLoop + ret + +player_try_beat: + call DurakFirstUnbeaten + mov ebx, eax + mov ecx, OFFSET durakPlayerHand + mov eax, durakChoice + mov ecx, [ecx + eax * 4] + invoke CanDurakBeat, durakAttackCards[ebx * 4], ecx + cmp eax, 1 + jne player_def_bad + invoke RemoveDurakCard, OFFSET durakPlayerHand, OFFSET durakPlayerCnt, durakChoice + mov durakDefenseCards[ebx * 4], eax + jmp player_defend_loop +player_def_bad: + invoke PrintStr, OFFSET durakBadMoveText + invoke Sleep, 650 + jmp player_defend_loop +player_take_table: + invoke CollectDurakTable, OFFSET durakPlayerHand, OFFSET durakPlayerCnt + invoke PrintStr, OFFSET durakPlayerTakeText + mov durakPlayerTurn, 0 + call RefillDurakHandsAIFirst + call Pause + ret +player_defended_all: + call FindAIThrowIn + cmp eax, 0FFFFFFFFh + je player_defense_done + invoke RemoveDurakCard, OFFSET durakAIHand, OFFSET durakAICnt, eax + call AddDurakAttack + jmp player_defend_loop +player_defense_done: + invoke PrintStr, OFFSET durakPlayerDefendText + call ClearDurakTable + mov durakPlayerTurn, 1 + call RefillDurakHandsAIFirst + call Pause + ret +PlayerDefendLoop ENDP + +; --- GameDurak: äóðàê: êîçûðü, àòàêà, çàùèòà, ïîäêèäûâàíèå è äîáîð --- +GameDurak PROC + durak_start: + call ClearView + invoke PrintTitleColor, OFFSET durakTitle + call PromptBet + call SetupDurak + +durak_round_loop: + call CheckDurakEnd + cmp eax, 1 + je durak_finish_win + cmp eax, 2 + je durak_finish_lose + cmp eax, 3 + je durak_finish_draw + inc durakSafeTurns + cmp durakSafeTurns, 300 + ja durak_finish_stuck + call ClearDurakTable + cmp durakPlayerTurn, 1 + je durak_check_player_attack + jmp durak_check_ai_attack + +durak_check_player_attack: + cmp durakPlayerCnt, 0 + jne durak_player_attack + cmp durakDeckLeft, 0 + jbe durak_round_loop + call RefillDurakHands + cmp durakPlayerCnt, 0 + jne durak_player_attack + jmp durak_finish_stuck + +durak_check_ai_attack: + cmp durakAICnt, 0 + jne durak_ai_attack + cmp durakDeckLeft, 0 + jbe durak_round_loop + call RefillDurakHandsAIFirst + cmp durakAICnt, 0 + jne durak_ai_attack + jmp durak_finish_stuck + +durak_player_attack: +player_attack_choose: + call ShowDurakTable + invoke PrintStr, OFFSET durakAttackAsk + call ReadUInt + cmp eax, 1 + jb player_attack_bad + cmp eax, durakPlayerCnt + ja player_attack_bad + dec eax + invoke RemoveDurakCard, OFFSET durakPlayerHand, OFFSET durakPlayerCnt, eax + call AddDurakAttack + call PlayerOpenAttackLoop + call PlayerThrowLoop + jmp durak_round_loop +player_attack_bad: + invoke PrintStr, OFFSET durakBadMoveText + invoke Sleep, 650 + jmp player_attack_choose + +durak_ai_attack: + cmp durakAICnt, 0 + jne durak_ai_has_card + call RefillDurakHandsAIFirst + cmp durakAICnt, 0 + je durak_round_loop +durak_ai_has_card: + invoke RemoveDurakCard, OFFSET durakAIHand, OFFSET durakAICnt, 0 + call AddDurakAttack + call AIInitialThrowLoop + call PlayerDefendLoop + jmp durak_round_loop + +durak_finish_win: + invoke UnlockAchievement, 2000h, OFFSET achDurakWinName + call ShowDurakTable + invoke PrintStr, OFFSET durakWinText + call PayWin + jmp durak_again + +durak_finish_lose: + call ShowDurakTable + invoke PrintStr, OFFSET durakLoseText + call PayLose + jmp durak_again + +durak_finish_stuck: + call ShowDurakTable + invoke PrintStr, OFFSET durakStuckText + call PayDraw + jmp durak_again + +durak_finish_draw: + call ShowDurakTable + invoke PrintStr, OFFSET drawText + call PayDraw + +durak_again: + cmp tournamentMode, 1 + je durak_tournament_return + invoke PrintStr, OFFSET againText + call ReadKey + cmp al, 'y' + je durak_start + cmp al, 'Y' + je durak_start +durak_tournament_return: + ret +GameDurak ENDP +; --- GameClassicSlot: ñëîò-ìàøèíû, áàðàáàíû, ñèìâîëû, âûïëàòû è äæåêïîòû --- +GameClassicSlot PROC +classic_slot_start: + call ClearView + invoke PrintTitleColor, OFFSET classicSlotTitle + invoke PrintStr, OFFSET classicSlotPayTableText + call PromptBet + call PlaySlotSound + invoke Sleep, 400 + invoke PrintStr, OFFSET slotPullText + mov slotWinMask, 0 + mov slotVisible, 0 + call PrintClassicSlotWindow + invoke Sleep, 1600 + + invoke FillClassicSlotColumn, 0 + mov slotVisible, 1 + call PrintClassicSlotWindow + invoke Sleep, 750 + + invoke FillClassicSlotColumn, 1 + mov slotVisible, 2 + call PrintClassicSlotWindow + invoke Sleep, 750 + + invoke FillClassicSlotColumn, 2 + mov slotVisible, 3 + call PrintClassicSlotWindow + invoke Sleep, 450 + + cmp cheatSlotJackpot, 1 + jne classic_no_forced_jackpot + mov cheatSlotJackpot, 0 + mov dword ptr slotGrid[12], 0 + mov dword ptr slotGrid[16], 0 + mov dword ptr slotGrid[20], 0 + call PrintClassicSlotWindow + invoke Sleep, 300 +classic_no_forced_jackpot: + + mov eax, slotGrid[12] + mov slotA, eax + mov eax, slotGrid[16] + mov slotB, eax + mov eax, slotGrid[20] + mov slotC, eax + + mov eax, slotA + cmp eax, slotB + jne classic_slot_check_pair_1 + mov eax, slotB + cmp eax, slotC + jne classic_slot_pair + invoke UnlockAchievement, 100h, OFFSET achClassicSlotName + call PlayJackpotSound + invoke PrintStr, OFFSET classicSlotJackpot + invoke Sleep, 650 + call PlayHakariSound + call PlayHakariDance + call PrintClassicSlotWindow + mov eax, slotA + cmp eax, 0 + je classic_slot_pay_777 + cmp eax, 2 + je classic_slot_pay_dollar + cmp eax, 1 + je classic_slot_pay_bar + cmp eax, 5 + je classic_slot_pay_aaa + invoke PaySlotMultiplier, 3 + jmp classic_ask_slot_again +classic_slot_pay_777: + invoke UnlockAchievement, 100h, OFFSET achClassicSlotName + invoke PaySlotMultiplier, 10 + jmp classic_ask_slot_again +classic_slot_pay_dollar: + invoke PaySlotMultiplier, 7 + jmp classic_ask_slot_again +classic_slot_pay_bar: + invoke PaySlotMultiplier, 5 + jmp classic_ask_slot_again +classic_slot_pay_aaa: + invoke PaySlotMultiplier, 4 + jmp classic_ask_slot_again + +classic_slot_check_pair_1: + mov eax, slotA + cmp eax, slotC + je classic_slot_pair + mov eax, slotB + cmp eax, slotC + je classic_slot_pair + invoke PrintStr, OFFSET classicSlotEmpty + call PayLose + jmp classic_ask_slot_again + +classic_slot_pair: + invoke UnlockAchievement, 100h, OFFSET achClassicSlotName + invoke PrintStr, OFFSET classicSlotPair + invoke PaySlotMultiplier, 2 + +classic_ask_slot_again: + invoke PrintStr, OFFSET againText + call ReadKey + cmp al, 'y' + je classic_slot_start + cmp al, 'Y' + je classic_slot_start + ret +GameClassicSlot ENDP +; --- ObserverDrawAI1: ðåæèì íàáëþäàòåëÿ AI vs AI --- +ObserverDrawAI1 PROC + call DrawPlayer21Hand + call CalcPlayerScore21 + ret +ObserverDrawAI1 ENDP + +; --- ObserverDrawAI2: ðåæèì íàáëþäàòåëÿ AI vs AI --- +ObserverDrawAI2 PROC + call DrawAI21Hand + call CalcAIScore21 + ret +ObserverDrawAI2 ENDP + +; --- ObserverShow21: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +ObserverShow21 PROC + call ClearView + invoke PrintTitleColor, OFFSET observer21Title + invoke PrintStr, OFFSET observerAI1CardsText + invoke PrintHandRow21, OFFSET playerHand21, playerCnt21, 1 + invoke PrintStr, OFFSET observerAI1Text + invoke PrintUInt, playerTotal + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET observerAI2CardsText + invoke PrintHandRow21, OFFSET aiHand21, aiCnt21, 1 + invoke PrintStr, OFFSET observerAI2Text + invoke PrintUInt, dealerTotal + invoke PrintStr, OFFSET nl + ret +ObserverShow21 ENDP + +; --- GameObserver21: êàðòû, ðóêè, î÷êè è áàçîâàÿ êàðòî÷íàÿ ëîãèêà --- +GameObserver21 PROC + call ClearView + invoke PrintTitleColor, OFFSET observer21Title + call ResetDeck + mov playerCnt21, 0 + mov aiCnt21, 0 + mov revealAI21, 1 + call ObserverDrawAI1 + call ObserverDrawAI1 + call ObserverDrawAI2 + call ObserverDrawAI2 +observer21_loop: + call ObserverShow21 + invoke Sleep, 750 + cmp playerTotal, 17 + jae observer21_ai2 + call ObserverDrawAI1 + jmp observer21_loop +observer21_ai2: + cmp dealerTotal, 17 + jae observer21_compare + call ObserverDrawAI2 + jmp observer21_loop +observer21_compare: + call ObserverShow21 + mov eax, playerTotal + cmp eax, 21 + ja observer21_ai1_bust + mov eax, dealerTotal + cmp eax, 21 + ja observer21_ai1_win + mov eax, playerTotal + cmp eax, dealerTotal + ja observer21_ai1_win + jb observer21_ai2_win + invoke PrintStr, OFFSET observerDrawText + jmp observer21_done +observer21_ai1_bust: + mov eax, dealerTotal + cmp eax, 21 + ja observer21_draw + jmp observer21_ai2_win +observer21_draw: + invoke PrintStr, OFFSET observerDrawText + jmp observer21_done +observer21_ai1_win: + invoke PrintStr, OFFSET observerWin1Text + jmp observer21_done +observer21_ai2_win: + invoke PrintStr, OFFSET observerWin2Text +observer21_done: + call Pause + ret +GameObserver21 ENDP + +; --- ObserverPokerEvaluate: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +ObserverPokerEvaluate PROC + invoke BuildPokerEvalHand, OFFSET playerHand21, OFFSET pokerPlayerEvalHand + invoke EvaluatePokerN, OFFSET pokerPlayerEvalHand, pokerEvalCount + mov pokerPlayerScore, eax + invoke BuildPokerEvalHand, OFFSET aiHand21, OFFSET pokerAIEvalHand + invoke EvaluatePokerN, OFFSET pokerAIEvalHand, pokerEvalCount + mov pokerAIScore, eax + ret +ObserverPokerEvaluate ENDP + +; --- ObserverShowPoker: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +ObserverShowPoker PROC + call ClearView + invoke PrintTitleColor, OFFSET observerPokerTitle + call ShowPokerTable + call ShowPokerMoney + call ObserverPokerEvaluate + invoke PrintStr, OFFSET pokerYourComboText + invoke PrintPokerHandName, pokerPlayerScore + invoke PrintStr, OFFSET pokerAIComboText + invoke PrintPokerHandName, pokerAIScore + ret +ObserverShowPoker ENDP + +; --- ObserverPokerDecision: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +ObserverPokerDecision PROC uses ebx edx + call ObserverPokerEvaluate + mov eax, pokerPlayerScore + cmp eax, 9 + ja observer_poker_ai2_check_fold + invoke RandomRange, 4 + cmp eax, 0 + je observer_poker_ai1_fold +observer_poker_ai2_check_fold: + mov eax, pokerAIScore + cmp eax, 9 + ja observer_poker_raise_check + invoke RandomRange, 4 + cmp eax, 0 + je observer_poker_ai2_fold +observer_poker_raise_check: + mov eax, pokerPlayerScore + cmp eax, 1000 + jb observer_poker_ai2_raise_check + invoke RandomRange, 2 + cmp eax, 0 + jne observer_poker_ai2_raise_check + invoke PrintStr, OFFSET observerAI1RaiseText + add currentBet, 500 + invoke Sleep, 450 + mov eax, pokerAIScore + cmp eax, pokerPlayerScore + jae observer_poker_call_1 + invoke RandomRange, 2 + cmp eax, 0 + je observer_poker_ai2_fold +observer_poker_call_1: + invoke PrintStr, OFFSET observerCallText +observer_poker_ai2_raise_check: + mov eax, pokerAIScore + cmp eax, 1000 + jb observer_poker_continue + invoke RandomRange, 2 + cmp eax, 0 + jne observer_poker_continue + invoke PrintStr, OFFSET observerAI2RaiseText + add currentBet, 500 + invoke Sleep, 450 + mov eax, pokerPlayerScore + cmp eax, pokerAIScore + jae observer_poker_call_2 + invoke RandomRange, 2 + cmp eax, 0 + je observer_poker_ai1_fold +observer_poker_call_2: + invoke PrintStr, OFFSET observerCallText +observer_poker_continue: + xor eax, eax + ret +observer_poker_ai1_fold: + invoke PrintStr, OFFSET observerFold1Text + mov eax, 2 + ret +observer_poker_ai2_fold: + invoke PrintStr, OFFSET observerFold2Text + mov eax, 1 + ret +ObserverPokerDecision ENDP + +; --- GameObserverPoker: ïîêåð: îöåíêà êîìáèíàöèé, ñòàâêè, ôîëäû è ÈÈ --- +GameObserverPoker PROC + call ClearView + invoke PrintTitleColor, OFFSET observerPokerTitle + call ResetDeck + call ResetPokerHands + mov revealAI21, 1 + mov currentBet, 500 + call DealPokerHands +observer_poker_stage_loop: + call ObserverShowPoker + invoke Sleep, 700 + cmp communityCnt, 5 + jae observer_poker_showdown + call ObserverPokerDecision + cmp eax, 1 + je observer_poker_ai1_wins + cmp eax, 2 + je observer_poker_ai2_wins + invoke PrintStr, OFFSET pokerNextCardText + invoke Sleep, 700 + inc communityCnt + jmp observer_poker_stage_loop +observer_poker_showdown: + call ObserverShowPoker + mov eax, pokerPlayerScore + cmp eax, pokerAIScore + ja observer_poker_ai1_wins + jb observer_poker_ai2_wins + invoke PrintStr, OFFSET observerDrawText + jmp observer_poker_done +observer_poker_ai1_wins: + invoke PrintStr, OFFSET observerWin1Text + jmp observer_poker_done +observer_poker_ai2_wins: + invoke PrintStr, OFFSET observerWin2Text +observer_poker_done: + call Pause + ret +GameObserverPoker ENDP + +; --- FindPlayerDurakDefense: àêêàóíòû, ôàéëû ñîõðàíåíèé è çàãðóçêà ïðîôèëÿ --- +FindPlayerDurakDefense PROC uses ebx ecx, tableIndex:DWORD + mov rowIndex, 0 +find_player_defense_loop: + mov eax, rowIndex + cmp eax, durakPlayerCnt + jae find_player_defense_no + mov ebx, OFFSET durakPlayerHand + mov ecx, [ebx + eax * 4] + mov ebx, tableIndex + invoke CanDurakBeat, durakAttackCards[ebx * 4], ecx + cmp eax, 1 + je find_player_defense_yes + inc rowIndex + jmp find_player_defense_loop +find_player_defense_yes: + mov eax, rowIndex + ret +find_player_defense_no: + mov eax, 0FFFFFFFFh + ret +FindPlayerDurakDefense ENDP + +; --- PlayerAIDefendAll: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlayerAIDefendAll PROC uses ebx +player_ai_defend_loop: + call DurakFirstUnbeaten + cmp eax, 0FFFFFFFFh + je player_ai_defend_success + mov ebx, eax + invoke FindPlayerDurakDefense, ebx + cmp eax, 0FFFFFFFFh + je player_ai_defend_fail + invoke RemoveDurakCard, OFFSET durakPlayerHand, OFFSET durakPlayerCnt, eax + mov durakDefenseCards[ebx * 4], eax + jmp player_ai_defend_loop +player_ai_defend_success: + mov eax, 1 + ret +player_ai_defend_fail: + xor eax, eax + ret +PlayerAIDefendAll ENDP + +; --- FindPlayerThrowIn: àêêàóíòû, ôàéëû ñîõðàíåíèé è çàãðóçêà ïðîôèëÿ --- +FindPlayerThrowIn PROC uses ebx ecx + cmp durakTableCnt, 6 + jae player_ai_throw_none + mov eax, durakTableCnt + cmp eax, durakAICnt + jae player_ai_throw_none + mov rowIndex, 0 +player_ai_throw_loop: + mov eax, rowIndex + cmp eax, durakPlayerCnt + jae player_ai_throw_none + mov ebx, OFFSET durakPlayerHand + mov ecx, [ebx + eax * 4] + invoke DurakRankOnTable, ecx + cmp eax, 1 + je player_ai_throw_found + inc rowIndex + jmp player_ai_throw_loop +player_ai_throw_found: + mov eax, rowIndex + ret +player_ai_throw_none: + mov eax, 0FFFFFFFFh + ret +FindPlayerThrowIn ENDP + +; --- PlayerAIInitialThrowLoop: çâóê, èíòðî èëè ïîêàäðîâàÿ àíèìàöèÿ --- +PlayerAIInitialThrowLoop PROC +player_ai_initial_throw_loop: + call FindPlayerThrowIn + cmp eax, 0FFFFFFFFh + je player_ai_initial_throw_done + invoke RemoveDurakCard, OFFSET durakPlayerHand, OFFSET durakPlayerCnt, eax + call AddDurakAttack + jmp player_ai_initial_throw_loop +player_ai_initial_throw_done: + ret +PlayerAIInitialThrowLoop ENDP + +; --- ShowDurakObserverTable: äóðàê: êîçûðü, àòàêà, çàùèòà, ïîäêèäûâàíèå è äîáîð --- +ShowDurakObserverTable PROC + call ClearView + invoke PrintTitleColor, OFFSET observerDurakTitle + invoke PrintStr, OFFSET durakDeckVisualText + invoke PrintDurakCardName, durakTrumpCard + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET durakDeckText + invoke PrintUInt, durakDeckLeft + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET observerAI1CardsText + invoke PrintHandRow21, OFFSET durakPlayerHand, durakPlayerCnt, 1 + call PrintDurakTable + invoke PrintStr, OFFSET observerAI2CardsText + invoke PrintHandRow21, OFFSET durakAIHand, durakAICnt, 1 + ret +ShowDurakObserverTable ENDP + +; --- GameObserverDurak: äóðàê: êîçûðü, àòàêà, çàùèòà, ïîäêèäûâàíèå è äîáîð --- +GameObserverDurak PROC + call SetupDurak + mov pokerReplaceIndex, 0 +observer_durak_loop: + inc pokerReplaceIndex + cmp pokerReplaceIndex, 32 + ja observer_durak_draw + call CheckDurakEnd + cmp eax, 1 + je observer_durak_ai1_win + cmp eax, 2 + je observer_durak_ai2_win + cmp eax, 3 + je observer_durak_draw + call ClearDurakTable + cmp durakPlayerTurn, 1 + je observer_durak_ai1_attack + jmp observer_durak_ai2_attack +observer_durak_ai1_attack: + cmp durakPlayerCnt, 0 + je observer_durak_ai1_win + invoke RemoveDurakCard, OFFSET durakPlayerHand, OFFSET durakPlayerCnt, 0 + call AddDurakAttack + call PlayerAIInitialThrowLoop + call ShowDurakObserverTable + invoke Sleep, 750 + call AIDefendAll + cmp eax, 1 + je observer_durak_ai2_defended + invoke CollectDurakTable, OFFSET durakAIHand, OFFSET durakAICnt + invoke PrintStr, OFFSET durakAITakeText + mov durakPlayerTurn, 1 + call RefillDurakHands + invoke Sleep, 850 + jmp observer_durak_loop +observer_durak_ai2_defended: + call ShowDurakObserverTable + invoke Sleep, 750 + call ClearDurakTable + mov durakPlayerTurn, 0 + call RefillDurakHands + jmp observer_durak_loop +observer_durak_ai2_attack: + cmp durakAICnt, 0 + je observer_durak_ai2_win + invoke RemoveDurakCard, OFFSET durakAIHand, OFFSET durakAICnt, 0 + call AddDurakAttack + call AIInitialThrowLoop + call ShowDurakObserverTable + invoke Sleep, 750 + call PlayerAIDefendAll + cmp eax, 1 + je observer_durak_ai1_defended + invoke CollectDurakTable, OFFSET durakPlayerHand, OFFSET durakPlayerCnt + invoke PrintStr, OFFSET durakPlayerTakeText + mov durakPlayerTurn, 0 + call RefillDurakHandsAIFirst + invoke Sleep, 850 + jmp observer_durak_loop +observer_durak_ai1_defended: + call ShowDurakObserverTable + invoke Sleep, 750 + call ClearDurakTable + mov durakPlayerTurn, 1 + call RefillDurakHandsAIFirst + jmp observer_durak_loop +observer_durak_ai1_win: + call ShowDurakObserverTable + invoke PrintStr, OFFSET observerWin1Text + jmp observer_durak_done +observer_durak_ai2_win: + call ShowDurakObserverTable + invoke PrintStr, OFFSET observerWin2Text + jmp observer_durak_done +observer_durak_draw: + call ShowDurakObserverTable + invoke PrintStr, OFFSET observerDrawText +observer_durak_done: + call Pause + ret +GameObserverDurak ENDP + +; --- GameObserverRoulette: ðóññêàÿ ðóëåòêà èëè êàçèíî-ðóëåòêà --- +GameObserverRoulette PROC + call ClearView + invoke PrintTitleColor, OFFSET observerRRTitle + call PlayRouletteSpinSound + call SetupRoulette + call AnimateRouletteSpin +observer_rr_loop: + call ShowRouletteStatus + cmp rrTurn, 0 + je observer_rr_ai1_turn + invoke PrintStr, OFFSET rrAITurnText + invoke Sleep, 850 + call RouletteChamberLoaded + cmp eax, 1 + je observer_rr_ai2_dead + call PlayRouletteDrySound + invoke PrintStr, OFFSET rrClickText + invoke Sleep, 750 + call AdvanceRouletteChamber + mov rrTurn, 0 + jmp observer_rr_loop +observer_rr_ai1_turn: + invoke PrintStr, OFFSET rrPlayerTurnText + invoke Sleep, 850 + call RouletteChamberLoaded + cmp eax, 1 + je observer_rr_ai1_dead + call PlayRouletteDrySound + invoke PrintStr, OFFSET rrClickText + invoke Sleep, 750 + call AdvanceRouletteChamber + mov rrTurn, 1 + jmp observer_rr_loop +observer_rr_ai1_dead: + call PrintBang + invoke PrintStr, OFFSET observerShotAI1Text + jmp observer_rr_done +observer_rr_ai2_dead: + call PrintBang + invoke PrintStr, OFFSET observerShotAI2Text +observer_rr_done: + call Pause + ret +GameObserverRoulette ENDP + +; --- GameObserver: ðåæèì íàáëþäàòåëÿ AI vs AI --- +GameObserver PROC +observer_menu_loop: + call ClearView + invoke PrintTitleColor, OFFSET observerTitle + invoke PrintStr, OFFSET observerMenuText + call ReadUInt + cmp eax, 0 + je observer_exit + cmp eax, 1 + je observer_run_rr + cmp eax, 2 + je observer_run_21 + cmp eax, 3 + je observer_run_poker + cmp eax, 4 + je observer_run_durak + invoke PrintStr, OFFSET badChoiceText + call Pause + jmp observer_menu_loop +observer_run_rr: + invoke UnlockAchievement, 10000h, OFFSET achObserverName + call GameObserverRoulette + jmp observer_menu_loop +observer_run_21: + mov currentGameId, 1 + invoke UnlockAchievement, 10000h, OFFSET achObserverName + call GameObserver21 + jmp observer_menu_loop +observer_run_poker: + mov currentGameId, 2 + invoke UnlockAchievement, 10000h, OFFSET achObserverName + call GameObserverPoker + jmp observer_menu_loop +observer_run_durak: + mov currentGameId, 10 + invoke UnlockAchievement, 10000h, OFFSET achObserverName + call GameObserverDurak + jmp observer_menu_loop +observer_exit: + ret +GameObserver ENDP + +; --- PrintShopBackName: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintShopBackName PROC + mov eax, shopBackStyle + cmp eax, 1 + je print_shop_back_blue + cmp eax, 2 + je print_shop_back_red + cmp eax, 3 + je print_shop_back_gold + cmp eax, 4 + je print_shop_back_skull + cmp eax, 5 + je print_shop_back_clover + cmp eax, 6 + je print_shop_back_arcane + cmp eax, 7 + je print_shop_back_noir + cmp eax, 8 + je print_shop_back_diamond + cmp eax, 9 + je print_shop_back_rider + cmp eax, 10 + je print_shop_back_bee + cmp eax, 11 + je print_shop_back_fan + cmp eax, 12 + je print_shop_back_web + invoke PrintStr, OFFSET shopBackGray + ret +print_shop_back_blue: + invoke SetColor, COLOR_TITLE + invoke PrintStr, OFFSET shopBackBlue + call ResetColor + ret +print_shop_back_red: + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET shopBackRed + call ResetColor + ret +print_shop_back_gold: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET shopBackGold + call ResetColor + ret +print_shop_back_skull: + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET shopBackSkull + call ResetColor + ret +print_shop_back_clover: + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET shopBackClover + call ResetColor + ret +print_shop_back_arcane: + invoke SetColor, COLOR_TITLE + invoke PrintStr, OFFSET shopBackArcane + call ResetColor + ret +print_shop_back_noir: + invoke SetColor, COLOR_CARD + invoke PrintStr, OFFSET shopBackNoir + call ResetColor + ret +print_shop_back_diamond: + invoke SetColor, COLOR_TITLE + invoke PrintStr, OFFSET shopBackDiamond + call ResetColor + ret +print_shop_back_rider: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET shopBackRider + call ResetColor + ret +print_shop_back_bee: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET shopBackBee + call ResetColor + ret +print_shop_back_fan: + invoke SetColor, COLOR_TITLE + invoke PrintStr, OFFSET shopBackFan + call ResetColor + ret +print_shop_back_web: + invoke SetColor, COLOR_CARD + invoke PrintStr, OFFSET shopBackWeb + call ResetColor + ret +PrintShopBackName ENDP + +; --- PrintShopCharmName: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintShopCharmName PROC + mov eax, shopCharmLevel + cmp eax, 1 + je print_shop_charm_clover + cmp eax, 2 + je print_shop_charm_bell + cmp eax, 3 + je print_shop_charm_diamond + cmp eax, 4 + je print_shop_charm_skull + cmp eax, 5 + je print_shop_charm_web + cmp eax, 6 + je print_shop_charm_bee + cmp eax, 7 + je print_shop_charm_moon + cmp eax, 8 + je print_shop_charm_crown + cmp eax, 9 + je print_shop_charm_mirror + cmp eax, 10 + je print_shop_charm_dice + cmp eax, 11 + je print_shop_charm_blood + cmp eax, 12 + je print_shop_charm_hourglass + cmp eax, 13 + je print_shop_charm_horseshoe + cmp eax, 14 + je print_shop_charm_joker + cmp eax, 15 + je print_shop_charm_phoenix + cmp eax, 16 + je print_shop_charm_compass + cmp eax, 17 + je print_shop_charm_tooth + cmp eax, 18 + je print_shop_charm_eye + cmp eax, 19 + je print_shop_charm_key + cmp eax, 20 + je print_shop_charm_candle + cmp eax, 21 + je print_shop_charm_chip + cmp eax, 22 + je print_shop_charm_snake + cmp eax, 23 + je print_shop_charm_ace + cmp eax, 24 + je print_shop_charm_devil + invoke PrintStr, OFFSET shopCharmNone + ret +print_shop_charm_clover: + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET shopCharmClover + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_bell: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET shopCharmBell + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_diamond: + invoke SetColor, COLOR_TITLE + invoke PrintStr, OFFSET shopCharmDiamond + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_skull: + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET shopCharmSkull + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_web: + invoke SetColor, COLOR_CARD + invoke PrintStr, OFFSET shopCharmWeb + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_bee: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET shopCharmBee + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_moon: + invoke SetColor, COLOR_TITLE + invoke PrintStr, OFFSET shopCharmMoon + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_crown: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET shopCharmCrown + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_mirror: + invoke SetColor, COLOR_CARD + invoke PrintStr, OFFSET shopCharmMirror + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_dice: + invoke SetColor, COLOR_TITLE + invoke PrintStr, OFFSET shopCharmDice + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_blood: + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET shopCharmBlood + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_hourglass: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET shopCharmHourglass + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_horseshoe: + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET shopCharmHorseshoe + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_joker: + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET shopCharmJoker + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_phoenix: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET shopCharmPhoenix + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_compass: + invoke SetColor, COLOR_CARD + invoke PrintStr, OFFSET shopCharmCompass + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_tooth: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET shopCharmTooth + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_eye: + invoke SetColor, COLOR_TITLE + invoke PrintStr, OFFSET shopCharmEye + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_key: + invoke SetColor, COLOR_CARD + invoke PrintStr, OFFSET shopCharmKey + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_candle: + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET shopCharmCandle + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_chip: + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET shopCharmChip + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_snake: + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET shopCharmSnake + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_ace: + invoke SetColor, COLOR_TITLE + invoke PrintStr, OFFSET shopCharmAce + call ResetColor + jmp print_shop_charm_uses +print_shop_charm_devil: + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET shopCharmDevil + call ResetColor +print_shop_charm_uses: + invoke PrintStr, OFFSET shopCharmUsesText + invoke PrintUInt, shopCharmUses + invoke PrintStr, OFFSET nl + ret +PrintShopCharmName ENDP + +; --- PrintShopStatus: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintShopStatus PROC + call PrintBank + invoke PrintStr, OFFSET shopBackText + call PrintShopBackName + invoke PrintStr, OFFSET shopCharmText + call PrintShopCharmName + invoke PrintStr, OFFSET nl + ret +PrintShopStatus ENDP + +; --- ShopBuyBack: ìàãàçèí ðóáàøåê, òàëèñìàíîâ è ïîêóïîê --- +ShopBuyBack PROC uses eax ebx, style:DWORD, cost:DWORD, maskValue:DWORD + mov eax, shopBackOwned + mov ebx, maskValue + test eax, ebx + jne shop_back_already_owned + + mov eax, cost + cmp bankroll, eax + jae shop_back_buy + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET tooBigBetText + call ResetColor + ret +shop_back_buy: + sub bankroll, eax + mov eax, shopBackOwned + or eax, ebx + mov shopBackOwned, eax + mov eax, style + mov shopBackStyle, eax + call SaveGame + invoke UnlockAchievement, 10h, OFFSET achShopperName + mov eax, shopBackOwned + and eax, 1FFFh + cmp eax, 1FFFh + jne shop_back_collector_skip + invoke UnlockAchievement, 4000h, OFFSET achBackCollectorName +shop_back_collector_skip: + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET shopBoughtText + call ResetColor + call PrintBank + call CheckBankrupt + ret +shop_back_already_owned: + mov eax, style + mov shopBackStyle, eax + call SaveGame + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET shopSelectedText + call ResetColor + ret +ShopBuyBack ENDP + +; --- ShopBuyCharm: ïîêóïêà òàëèñìàíà ñ ðàçíûìè çàðÿäàìè --- +ShopBuyCharm PROC uses eax, charmLevel:DWORD, cost:DWORD + mov eax, cost + cmp bankroll, eax + jae shop_charm_buy + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET tooBigBetText + call ResetColor + ret +shop_charm_buy: + sub bankroll, eax + mov eax, charmLevel + mov shopCharmLevel, eax + cmp eax, 5 + je shop_charm_one_use + cmp eax, 11 + je shop_charm_one_use + cmp eax, 14 + je shop_charm_one_use + cmp eax, 18 + je shop_charm_one_use + cmp eax, 20 + je shop_charm_one_use + cmp eax, 24 + je shop_charm_one_use + cmp eax, 4 + je shop_charm_two_uses + cmp eax, 8 + je shop_charm_two_uses + cmp eax, 12 + je shop_charm_two_uses + cmp eax, 15 + je shop_charm_two_uses + cmp eax, 22 + je shop_charm_two_uses + cmp eax, 7 + je shop_charm_four_uses + cmp eax, 9 + je shop_charm_four_uses + cmp eax, 21 + je shop_charm_four_uses + cmp eax, 6 + je shop_charm_five_uses + cmp eax, 17 + je shop_charm_five_uses + cmp eax, 23 + je shop_charm_five_uses + cmp eax, 10 + je shop_charm_six_uses + cmp eax, 19 + je shop_charm_six_uses + cmp eax, 13 + je shop_charm_eight_uses + mov shopCharmUses, 3 + jmp shop_charm_store +shop_charm_one_use: + mov shopCharmUses, 1 + jmp shop_charm_store +shop_charm_two_uses: + mov shopCharmUses, 2 + jmp shop_charm_store +shop_charm_four_uses: + mov shopCharmUses, 4 + jmp shop_charm_store +shop_charm_five_uses: + mov shopCharmUses, 5 + jmp shop_charm_store +shop_charm_six_uses: + mov shopCharmUses, 6 + jmp shop_charm_store +shop_charm_eight_uses: + mov shopCharmUses, 8 +shop_charm_store: + call SaveGame + invoke UnlockAchievement, 10h, OFFSET achShopperName + invoke UnlockAchievement, 8000h, OFFSET achCharmBuyerName + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET shopBoughtText + call ResetColor + call PrintBank + call CheckBankrupt + ret +ShopBuyCharm ENDP + +; --- ShowBestiaryPage: êàðòî÷êà òàëèñìàíà â áåñòèàðèè --- +ShowBestiaryPage PROC artPtr:DWORD, infoPtr:DWORD, colorValue:DWORD + call ClearView + invoke SetColor, colorValue + invoke PrintStr, artPtr + call ResetColor + invoke PrintStr, infoPtr + invoke PrintStr, OFFSET bestiaryBackText + call ReadKey + ret +ShowBestiaryPage ENDP + +; --- GameCharmBestiary: ýíöèêëîïåäèÿ òàëèñìàíîâ ñ ASCII-àðòàìè --- +GameCharmBestiary PROC +bestiary_loop: + call ClearView + invoke PrintTitleColor, OFFSET bestiaryTitle + invoke PrintStr, OFFSET bestiaryMenuText + call ReadUInt + cmp eax, 0 + je bestiary_exit + cmp eax, 1 + je bestiary_clover + cmp eax, 2 + je bestiary_bell + cmp eax, 3 + je bestiary_diamond + cmp eax, 4 + je bestiary_skull + cmp eax, 5 + je bestiary_web + cmp eax, 6 + je bestiary_bee + cmp eax, 7 + je bestiary_moon + cmp eax, 8 + je bestiary_crown + cmp eax, 9 + je bestiary_mirror + cmp eax, 10 + je bestiary_dice + cmp eax, 11 + je bestiary_blood + cmp eax, 12 + je bestiary_hourglass + cmp eax, 13 + je bestiary_horseshoe + cmp eax, 14 + je bestiary_joker + cmp eax, 15 + je bestiary_phoenix + cmp eax, 16 + je bestiary_compass + cmp eax, 17 + je bestiary_tooth + cmp eax, 18 + je bestiary_eye + cmp eax, 19 + je bestiary_key + cmp eax, 20 + je bestiary_candle + cmp eax, 21 + je bestiary_chip + cmp eax, 22 + je bestiary_snake + cmp eax, 23 + je bestiary_ace + cmp eax, 24 + je bestiary_devil + invoke PrintStr, OFFSET badChoiceText + call Pause + jmp bestiary_loop +bestiary_clover: + invoke ShowBestiaryPage, OFFSET bestiaryCloverArt, OFFSET bestiaryCloverInfo, COLOR_MONEY + jmp bestiary_loop +bestiary_bell: + invoke ShowBestiaryPage, OFFSET bestiaryBellArt, OFFSET bestiaryBellInfo, COLOR_WARN + jmp bestiary_loop +bestiary_diamond: + invoke ShowBestiaryPage, OFFSET bestiaryDiamondArt, OFFSET bestiaryDiamondInfo, COLOR_TITLE + jmp bestiary_loop +bestiary_skull: + invoke ShowBestiaryPage, OFFSET bestiarySkullArt, OFFSET bestiarySkullInfo, COLOR_BAD + jmp bestiary_loop +bestiary_web: + invoke ShowBestiaryPage, OFFSET bestiaryWebArt, OFFSET bestiaryWebInfo, COLOR_CARD + jmp bestiary_loop +bestiary_bee: + invoke ShowBestiaryPage, OFFSET bestiaryBeeArt, OFFSET bestiaryBeeInfo, COLOR_WARN + jmp bestiary_loop +bestiary_moon: + invoke ShowBestiaryPage, OFFSET bestiaryMoonArt, OFFSET bestiaryMoonInfo, COLOR_TITLE + jmp bestiary_loop +bestiary_crown: + invoke ShowBestiaryPage, OFFSET bestiaryCrownArt, OFFSET bestiaryCrownInfo, COLOR_WARN + jmp bestiary_loop +bestiary_mirror: + invoke ShowBestiaryPage, OFFSET bestiaryMirrorArt, OFFSET bestiaryMirrorInfo, COLOR_CARD + jmp bestiary_loop +bestiary_dice: + invoke ShowBestiaryPage, OFFSET bestiaryDiceArt, OFFSET bestiaryDiceInfo, COLOR_TITLE + jmp bestiary_loop +bestiary_blood: + invoke ShowBestiaryPage, OFFSET bestiaryBloodArt, OFFSET bestiaryBloodInfo, COLOR_BAD + jmp bestiary_loop +bestiary_hourglass: + invoke ShowBestiaryPage, OFFSET bestiaryHourglassArt, OFFSET bestiaryHourglassInfo, COLOR_WARN + jmp bestiary_loop +bestiary_horseshoe: + invoke ShowBestiaryPage, OFFSET bestiaryHorseshoeArt, OFFSET bestiaryHorseshoeInfo, COLOR_MONEY + jmp bestiary_loop +bestiary_joker: + invoke ShowBestiaryPage, OFFSET bestiaryJokerArt, OFFSET bestiaryJokerInfo, COLOR_BAD + jmp bestiary_loop +bestiary_phoenix: + invoke ShowBestiaryPage, OFFSET bestiaryPhoenixArt, OFFSET bestiaryPhoenixInfo, COLOR_WARN + jmp bestiary_loop +bestiary_compass: + invoke ShowBestiaryPage, OFFSET bestiaryCompassArt, OFFSET bestiaryCompassInfo, COLOR_CARD + jmp bestiary_loop +bestiary_tooth: + invoke ShowBestiaryPage, OFFSET bestiaryToothArt, OFFSET bestiaryToothInfo, COLOR_WARN + jmp bestiary_loop +bestiary_eye: + invoke ShowBestiaryPage, OFFSET bestiaryEyeArt, OFFSET bestiaryEyeInfo, COLOR_TITLE + jmp bestiary_loop +bestiary_key: + invoke ShowBestiaryPage, OFFSET bestiaryKeyArt, OFFSET bestiaryKeyInfo, COLOR_CARD + jmp bestiary_loop +bestiary_candle: + invoke ShowBestiaryPage, OFFSET bestiaryCandleArt, OFFSET bestiaryCandleInfo, COLOR_BAD + jmp bestiary_loop +bestiary_chip: + invoke ShowBestiaryPage, OFFSET bestiaryChipArt, OFFSET bestiaryChipInfo, COLOR_MONEY + jmp bestiary_loop +bestiary_snake: + invoke ShowBestiaryPage, OFFSET bestiarySnakeArt, OFFSET bestiarySnakeInfo, COLOR_MONEY + jmp bestiary_loop +bestiary_ace: + invoke ShowBestiaryPage, OFFSET bestiaryAceArt, OFFSET bestiaryAceInfo, COLOR_TITLE + jmp bestiary_loop +bestiary_devil: + invoke ShowBestiaryPage, OFFSET bestiaryDevilArt, OFFSET bestiaryDevilInfo, COLOR_BAD + jmp bestiary_loop +bestiary_exit: + ret +GameCharmBestiary ENDP + +; --- GameShop: ìàãàçèí ðóáàøåê, òàëèñìàíîâ è ïîêóïîê --- +GameShop PROC +shop_loop: + call ClearView + invoke PrintTitleColor, OFFSET shopTitle + call PrintShopStatus + invoke PrintStr, OFFSET shopMainMenuText + call ReadUInt + cmp eax, 0 + je shop_exit + cmp eax, 1 + je shop_backs_menu + cmp eax, 2 + je shop_charms_menu + cmp eax, 3 + je shop_bestiary_menu + invoke PrintStr, OFFSET badChoiceText + call Pause + jmp shop_loop + +shop_bestiary_menu: + call GameCharmBestiary + jmp shop_loop + +shop_backs_menu: + call ClearView + invoke PrintTitleColor, OFFSET shopBackTitle + call PrintShopStatus + invoke PrintStr, OFFSET shopBackMenuText + call ReadUInt + cmp eax, 0 + je shop_loop + cmp eax, 1 + je shop_blue + cmp eax, 2 + je shop_red + cmp eax, 3 + je shop_gold + cmp eax, 4 + je shop_skull + cmp eax, 5 + je shop_clover_back + cmp eax, 6 + je shop_arcane + cmp eax, 7 + je shop_noir + cmp eax, 8 + je shop_diamond_back + cmp eax, 9 + je shop_rider + cmp eax, 10 + je shop_bee + cmp eax, 11 + je shop_fan + cmp eax, 12 + je shop_web + invoke PrintStr, OFFSET badChoiceText + call Pause + jmp shop_backs_menu + +shop_charms_menu: + call ClearView + invoke PrintTitleColor, OFFSET shopCharmTitle + call PrintShopStatus + invoke PrintStr, OFFSET shopCharmMenuText + call ReadUInt + cmp eax, 0 + je shop_loop + cmp eax, 1 + je buy_charm_clover + cmp eax, 2 + je buy_charm_bell + cmp eax, 3 + je buy_charm_diamond + cmp eax, 4 + je buy_charm_skull + cmp eax, 5 + je buy_charm_web + cmp eax, 6 + je buy_charm_bee_item + cmp eax, 7 + je buy_charm_moon + cmp eax, 8 + je buy_charm_crown + cmp eax, 9 + je buy_charm_mirror + cmp eax, 10 + je buy_charm_dice + cmp eax, 11 + je buy_charm_blood + cmp eax, 12 + je buy_charm_hourglass + cmp eax, 13 + je buy_charm_horseshoe + cmp eax, 14 + je buy_charm_joker + cmp eax, 15 + je buy_charm_phoenix + cmp eax, 16 + je buy_charm_compass + cmp eax, 17 + je buy_charm_tooth + cmp eax, 18 + je buy_charm_eye + cmp eax, 19 + je buy_charm_key + cmp eax, 20 + je buy_charm_candle + cmp eax, 21 + je buy_charm_chip + cmp eax, 22 + je buy_charm_snake + cmp eax, 23 + je buy_charm_ace + cmp eax, 24 + je buy_charm_devil + invoke PrintStr, OFFSET badChoiceText + call Pause + jmp shop_charms_menu + +shop_blue: + invoke ShopBuyBack, 1, 3000, 2 + call Pause + jmp shop_backs_menu +shop_red: + invoke ShopBuyBack, 2, 3000, 4 + call Pause + jmp shop_backs_menu +shop_gold: + invoke ShopBuyBack, 3, 10000, 8 + call Pause + jmp shop_backs_menu +shop_skull: + invoke ShopBuyBack, 4, 12000, 10h + call Pause + jmp shop_backs_menu +shop_clover_back: + invoke ShopBuyBack, 5, 15000, 20h + call Pause + jmp shop_backs_menu +shop_arcane: + invoke ShopBuyBack, 6, 17000, 40h + call Pause + jmp shop_backs_menu +shop_noir: + invoke ShopBuyBack, 7, 18000, 80h + call Pause + jmp shop_backs_menu +shop_diamond_back: + invoke ShopBuyBack, 8, 20000, 100h + call Pause + jmp shop_backs_menu +shop_rider: + invoke ShopBuyBack, 9, 22000, 200h + call Pause + jmp shop_backs_menu +shop_bee: + invoke ShopBuyBack, 10, 22000, 400h + call Pause + jmp shop_backs_menu +shop_fan: + invoke ShopBuyBack, 11, 23000, 800h + call Pause + jmp shop_backs_menu +shop_web: + invoke ShopBuyBack, 12, 24000, 1000h + call Pause + jmp shop_backs_menu + +buy_charm_clover: + invoke ShopBuyCharm, 1, 12000 + call Pause + jmp shop_charms_menu +buy_charm_bell: + invoke ShopBuyCharm, 2, 18000 + call Pause + jmp shop_charms_menu +buy_charm_diamond: + invoke ShopBuyCharm, 3, 25000 + call Pause + jmp shop_charms_menu +buy_charm_skull: + invoke ShopBuyCharm, 4, 32000 + call Pause + jmp shop_charms_menu +buy_charm_web: + invoke ShopBuyCharm, 5, 40000 + call Pause + jmp shop_charms_menu +buy_charm_bee_item: + invoke ShopBuyCharm, 6, 30000 + call Pause + jmp shop_charms_menu +buy_charm_moon: + invoke ShopBuyCharm, 7, 36000 + call Pause + jmp shop_charms_menu +buy_charm_crown: + invoke ShopBuyCharm, 8, 52000 + call Pause + jmp shop_charms_menu +buy_charm_mirror: + invoke ShopBuyCharm, 9, 42000 + call Pause + jmp shop_charms_menu +buy_charm_dice: + invoke ShopBuyCharm, 10, 35000 + call Pause + jmp shop_charms_menu +buy_charm_blood: + invoke ShopBuyCharm, 11, 65000 + call Pause + jmp shop_charms_menu +buy_charm_hourglass: + invoke ShopBuyCharm, 12, 48000 + call Pause + jmp shop_charms_menu +buy_charm_horseshoe: + invoke ShopBuyCharm, 13, 39000 + call Pause + jmp shop_charms_menu +buy_charm_joker: + invoke ShopBuyCharm, 14, 70000 + call Pause + jmp shop_charms_menu +buy_charm_phoenix: + invoke ShopBuyCharm, 15, 56000 + call Pause + jmp shop_charms_menu +buy_charm_compass: + invoke ShopBuyCharm, 16, 44000 + call Pause + jmp shop_charms_menu +buy_charm_tooth: + invoke ShopBuyCharm, 17, 47000 + call Pause + jmp shop_charms_menu +buy_charm_eye: + invoke ShopBuyCharm, 18, 60000 + call Pause + jmp shop_charms_menu +buy_charm_key: + invoke ShopBuyCharm, 19, 41000 + call Pause + jmp shop_charms_menu +buy_charm_candle: + invoke ShopBuyCharm, 20, 76000 + call Pause + jmp shop_charms_menu +buy_charm_chip: + invoke ShopBuyCharm, 21, 50000 + call Pause + jmp shop_charms_menu +buy_charm_snake: + invoke ShopBuyCharm, 22, 62000 + call Pause + jmp shop_charms_menu +buy_charm_ace: + invoke ShopBuyCharm, 23, 53000 + call Pause + jmp shop_charms_menu +buy_charm_devil: + invoke ShopBuyCharm, 24, 100000 + call Pause + jmp shop_charms_menu +shop_exit: + ret +GameShop ENDP + + +; --- CopyName: ñëóæåáíûé áëîê èãðîâîé ëîãèêè --- +CopyName PROC uses eax ecx esi edi, pDst:DWORD, pSrc:DWORD + mov edi, pDst + mov esi, pSrc + mov ecx, 63 +copy_name_loop: + mov al, [esi] + cmp al, '.' + je copy_name_stop + mov [edi], al + cmp al, 0 + je copy_name_done + inc esi + inc edi + loop copy_name_loop +copy_name_stop: + mov byte ptr [edi], 0 +copy_name_done: + ret +CopyName ENDP + +; --- ClearLeaderboards: ñòàòèñòèêà, äîñòèæåíèÿ è òàáëèöû ëèäåðîâ --- +ClearLeaderboards PROC uses eax ecx edi + mov leaderBestBank, 0 + mov leaderBestWins, 0 + mov leaderBestLosses, 0 + mov leaderValidCount, 0 + mov ecx, 22 + mov edi, OFFSET leaderBestGameWins +clear_leader_counts: + mov dword ptr [edi], 0 + add edi, 4 + loop clear_leader_counts + mov ecx, 1600 + mov edi, OFFSET leaderBestBankName +clear_leader_names: + mov byte ptr [edi], 0 + inc edi + loop clear_leader_names + ret +ClearLeaderboards ENDP + +; --- LeaderboardUpdateGame: ñòàòèñòèêà, äîñòèæåíèÿ è òàáëèöû ëèäåðîâ --- +LeaderboardUpdateGame PROC uses eax ebx edx + mov ebx, rowIndex + mov eax, DWORD PTR [saveBuffer+104+ebx*4] + cmp eax, leaderBestGameWins[ebx*4] + jbe leaderboard_check_losses + mov leaderBestGameWins[ebx*4], eax + mov edx, ebx + shl edx, 6 + add edx, OFFSET leaderBestGameWinNames + invoke CopyName, edx, leaderAccountPtr +leaderboard_check_losses: + mov eax, DWORD PTR [saveBuffer+148+ebx*4] + cmp eax, leaderBestGameLosses[ebx*4] + jbe leaderboard_game_done + mov leaderBestGameLosses[ebx*4], eax + mov edx, ebx + shl edx, 6 + add edx, OFFSET leaderBestGameLossNames + invoke CopyName, edx, leaderAccountPtr +leaderboard_game_done: + ret +LeaderboardUpdateGame ENDP + +; --- LeaderboardReadAccount: àêêàóíòû, ôàéëû ñîõðàíåíèé è çàãðóçêà ïðîôèëÿ --- +LeaderboardReadAccount PROC uses eax + call BuildLeaderSavePath + invoke CreateFileA, OFFSET leaderSavePath, GENERIC_READ, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0 + cmp eax, INVALID_HANDLE_VALUE + jne leaderboard_file_opened + cmp appDataReady, 1 + jne leaderboard_read_done + invoke CreateFileA, leaderAccountPtr, GENERIC_READ, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0 + cmp eax, INVALID_HANDLE_VALUE + je leaderboard_read_done +leaderboard_file_opened: + mov saveHandle, eax + invoke ReadFile, saveHandle, ADDR saveBuffer, SAVE_FILE_SIZE, ADDR charsRead, 0 + invoke CloseHandle, saveHandle + cmp charsRead, 32 + jb leaderboard_read_done + mov eax, DWORD PTR [saveBuffer] + cmp eax, SAVE_MAGIC + jne leaderboard_read_done + cmp charsRead, SAVE_FILE_SIZE + jb leaderboard_signature_ok + mov edx, DWORD PTR [saveBuffer+SAVE_SIGN_SIZE] + call CalcSaveSignature + cmp eax, edx + jne leaderboard_read_done +leaderboard_signature_ok: + inc leaderValidCount + mov eax, DWORD PTR [saveBuffer+4] + cmp eax, leaderBestBank + jbe leaderboard_check_total_wins + mov leaderBestBank, eax + invoke CopyName, OFFSET leaderBestBankName, leaderAccountPtr +leaderboard_check_total_wins: + mov eax, DWORD PTR [saveBuffer+12] + cmp eax, leaderBestWins + jbe leaderboard_check_total_losses + mov leaderBestWins, eax + invoke CopyName, OFFSET leaderBestWinsName, leaderAccountPtr +leaderboard_check_total_losses: + mov eax, DWORD PTR [saveBuffer+16] + cmp eax, leaderBestLosses + jbe leaderboard_check_games + mov leaderBestLosses, eax + invoke CopyName, OFFSET leaderBestLossName, leaderAccountPtr +leaderboard_check_games: + cmp charsRead, 236 + jb leaderboard_read_done + mov rowIndex, 0 +leaderboard_game_loop: + cmp rowIndex, 11 + jae leaderboard_read_done + call LeaderboardUpdateGame + inc rowIndex + jmp leaderboard_game_loop +leaderboard_read_done: + ret +LeaderboardReadAccount ENDP + +; --- BuildLeaderboards: ñòàòèñòèêà, äîñòèæåíèÿ è òàáëèöû ëèäåðîâ --- +BuildLeaderboards PROC uses eax + call ClearLeaderboards + call CollectAccounts + mov leaderScanIndex, 0 +leaderboard_account_loop: + mov eax, leaderScanIndex + cmp eax, accountCount + jae leaderboard_build_done + shl eax, 6 + add eax, OFFSET accountList + mov leaderAccountPtr, eax + call LeaderboardReadAccount + inc leaderScanIndex + jmp leaderboard_account_loop +leaderboard_build_done: + ret +BuildLeaderboards ENDP + +; --- PrintLeaderPair: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintLeaderPair PROC uses eax, pName:DWORD, value:DWORD + mov eax, value + cmp eax, 0 + jne print_leader_pair_value + invoke PrintStr, OFFSET leaderDashText + ret +print_leader_pair_value: + invoke PrintStr, pName + invoke PrintStr, OFFSET leaderOpenText + invoke PrintUInt, value + invoke PrintStr, OFFSET leaderCloseText + ret +PrintLeaderPair ENDP + +; --- PrintLeaderGameLine: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintLeaderGameLine PROC uses eax ebx edx + mov eax, rowIndex + invoke PrintStr, statsGameNames[eax*4] + invoke PrintStr, OFFSET leaderGameWinText + mov ebx, rowIndex + mov edx, ebx + shl edx, 6 + add edx, OFFSET leaderBestGameWinNames + invoke PrintLeaderPair, edx, leaderBestGameWins[ebx*4] + invoke PrintStr, OFFSET leaderGameLossText + mov ebx, rowIndex + mov edx, ebx + shl edx, 6 + add edx, OFFSET leaderBestGameLossNames + invoke PrintLeaderPair, edx, leaderBestGameLosses[ebx*4] + invoke PrintStr, OFFSET nl + ret +PrintLeaderGameLine ENDP + +; --- PrintLeaderboards: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintLeaderboards PROC + call BuildLeaderboards + invoke PrintTitleColor, OFFSET leaderTitle + cmp leaderValidCount, 0 + jne print_leaders_have_data + invoke PrintStr, OFFSET leaderNoDataText + ret +print_leaders_have_data: + invoke PrintStr, OFFSET leaderBankText + invoke PrintStr, OFFSET leaderBestBankName + invoke PrintStr, OFFSET leaderOpenText + invoke PrintStr, OFFSET leaderMoneyPrefix + invoke PrintUInt, leaderBestBank + invoke PrintStr, OFFSET leaderCloseText + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET leaderWinsText + invoke PrintLeaderPair, OFFSET leaderBestWinsName, leaderBestWins + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET leaderLossText + invoke PrintLeaderPair, OFFSET leaderBestLossName, leaderBestLosses + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET leaderGameTitle + mov rowIndex, 0 +leader_print_game_loop: + cmp rowIndex, 11 + jae leader_print_done + call PrintLeaderGameLine + inc rowIndex + jmp leader_print_game_loop +leader_print_done: + ret +PrintLeaderboards ENDP +; --- PrintGameStatLine: âûâîä òåêñòà, öâåòîâ, êàðòèíîê è ýëåìåíòîâ èíòåðôåéñà --- +PrintGameStatLine PROC uses eax ebx + mov eax, rowIndex + invoke PrintStr, statsGameNames[eax * 4] + invoke PrintStr, OFFSET statsLinePlayed + mov ebx, rowIndex + invoke PrintUInt, gameStatsPlayed[ebx * 4] + invoke PrintStr, OFFSET statsLineWins + mov ebx, rowIndex + invoke PrintUInt, gameStatsWon[ebx * 4] + invoke PrintStr, OFFSET statsLineLoss + mov ebx, rowIndex + invoke PrintUInt, gameStatsLost[ebx * 4] + invoke PrintStr, OFFSET statsLineDraw + mov ebx, rowIndex + invoke PrintUInt, gameStatsDraw[ebx * 4] + invoke PrintStr, OFFSET nl + ret +PrintGameStatLine ENDP + +; --- GameStatsByGame: ñòàòèñòèêà, äîñòèæåíèÿ è òàáëèöû ëèäåðîâ --- +GameStatsByGame PROC + call ClearView + invoke PrintTitleColor, OFFSET statsByGameTitle + invoke PrintStr, OFFSET leaderCurrentTitle + mov rowIndex, 0 +stats_by_game_loop: + cmp rowIndex, 11 + jae stats_by_game_done + call PrintGameStatLine + inc rowIndex + jmp stats_by_game_loop +stats_by_game_done: + call PrintLeaderboards + call Pause + ret +GameStatsByGame ENDP + +; --- SkillCheckFlushKeys: Skill Check íà êðþêå: øêàëà, ïîïàäàíèÿ è ïðîìàõè --- +SkillCheckFlushKeys PROC + invoke GetAsyncKeyState, VK_SPACE + invoke GetAsyncKeyState, VK_RETURN + invoke Sleep, 80 + invoke GetAsyncKeyState, VK_SPACE + invoke GetAsyncKeyState, VK_RETURN + ret +SkillCheckFlushKeys ENDP + +; --- SkillCheckPollKey: Skill Check íà êðþêå: øêàëà, ïîïàäàíèÿ è ïðîìàõè --- +SkillCheckPollKey PROC + invoke GetAsyncKeyState, VK_SPACE + test ax, 0001h + jne skill_key_pressed + invoke GetAsyncKeyState, VK_RETURN + test ax, 0001h + jne skill_key_pressed + xor eax, eax + ret +skill_key_pressed: + mov eax, 1 + ret +SkillCheckPollKey ENDP + +; --- SkillCheckDraw: Skill Check íà êðþêå: øêàëà, ïîïàäàíèÿ è ïðîìàõè --- +SkillCheckDraw PROC uses eax ebx edx + call ClearView + invoke PrintTitleColor, OFFSET skillTitle + invoke PrintStr, OFFSET skillIntro + + invoke PrintStr, OFFSET skillStateText + mov eax, skillMisses + cmp eax, 0 + je skill_draw_state_good + cmp eax, 1 + je skill_draw_state_warn + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET skillStateBad + call ResetColor + jmp skill_draw_state_done +skill_draw_state_good: + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET skillStateGood + call ResetColor + jmp skill_draw_state_done +skill_draw_state_warn: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET skillStateWarn + call ResetColor +skill_draw_state_done: + invoke PrintStr, OFFSET skillProgressText + invoke PrintUInt, skillHits + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET skillMissText + invoke PrintUInt, skillMisses + invoke PrintStr, OFFSET nl + invoke PrintStr, OFFSET skillGaugeHint + invoke PrintStr, OFFSET skillGaugeLeft + + mov skillGaugeIndex, 0 +skill_draw_gauge_loop: + mov eax, skillGaugeIndex + cmp eax, 45 + jae skill_draw_gauge_done + cmp eax, skillNeedle + je skill_draw_needle + cmp eax, skillPerfectPos + je skill_draw_perfect + cmp eax, skillSuccessStart + jb skill_draw_empty + cmp eax, skillSuccessEnd + ja skill_draw_empty + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET skillGaugeSuccess + call ResetColor + jmp skill_draw_next +skill_draw_perfect: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET skillGaugePerfect + call ResetColor + jmp skill_draw_next +skill_draw_needle: + invoke SetColor, COLOR_TITLE + invoke PrintStr, OFFSET skillGaugeNeedle + call ResetColor + jmp skill_draw_next +skill_draw_empty: + invoke PrintStr, OFFSET skillGaugeEmpty +skill_draw_next: + inc skillGaugeIndex + jmp skill_draw_gauge_loop +skill_draw_gauge_done: + invoke PrintStr, OFFSET skillGaugeRight + invoke PrintStr, OFFSET skillGaugeLeft + mov skillGaugeIndex, 0 +skill_draw_gauge_loop2: + mov eax, skillGaugeIndex + cmp eax, 45 + jae skill_draw_gauge_done2 + cmp eax, skillNeedle + je skill_draw_needle2 + cmp eax, skillPerfectPos + je skill_draw_perfect2 + cmp eax, skillSuccessStart + jb skill_draw_empty2 + cmp eax, skillSuccessEnd + ja skill_draw_empty2 + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET skillGaugeSuccess + call ResetColor + jmp skill_draw_next2 +skill_draw_perfect2: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET skillGaugePerfect + call ResetColor + jmp skill_draw_next2 +skill_draw_needle2: + invoke SetColor, COLOR_TITLE + invoke PrintStr, OFFSET skillGaugeNeedle + call ResetColor + jmp skill_draw_next2 +skill_draw_empty2: + invoke PrintStr, OFFSET skillGaugeEmpty +skill_draw_next2: + inc skillGaugeIndex + jmp skill_draw_gauge_loop2 +skill_draw_gauge_done2: + invoke PrintStr, OFFSET skillGaugeRight + + invoke PrintStr, OFFSET skillGaugeLeft + mov skillGaugeIndex, 0 +skill_draw_gauge_loop3: + mov eax, skillGaugeIndex + cmp eax, 45 + jae skill_draw_gauge_done3 + cmp eax, skillNeedle + je skill_draw_needle3 + cmp eax, skillPerfectPos + je skill_draw_perfect3 + cmp eax, skillSuccessStart + jb skill_draw_empty3 + cmp eax, skillSuccessEnd + ja skill_draw_empty3 + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET skillGaugeSuccess + call ResetColor + jmp skill_draw_next3 +skill_draw_perfect3: + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET skillGaugePerfect + call ResetColor + jmp skill_draw_next3 +skill_draw_needle3: + invoke SetColor, COLOR_TITLE + invoke PrintStr, OFFSET skillGaugeNeedle + call ResetColor + jmp skill_draw_next3 +skill_draw_empty3: + invoke PrintStr, OFFSET skillGaugeEmpty +skill_draw_next3: + inc skillGaugeIndex + jmp skill_draw_gauge_loop3 +skill_draw_gauge_done3: + invoke PrintStr, OFFSET skillGaugeRight + ret +SkillCheckDraw ENDP + +; --- SkillCheckMoveNeedle: Skill Check íà êðþêå: øêàëà, ïîïàäàíèÿ è ïðîìàõè --- +SkillCheckMoveNeedle PROC uses eax + mov eax, skillDir + cmp eax, 0FFFFFFFFh + je skill_move_left +skill_move_right: + mov eax, skillNeedle + inc eax + cmp eax, 44 + jbe skill_move_store_right + mov eax, 43 + mov skillDir, 0FFFFFFFFh +skill_move_store_right: + mov skillNeedle, eax + ret +skill_move_left: + mov eax, skillNeedle + cmp eax, 0 + ja skill_move_dec + mov eax, 1 + mov skillDir, 1 + mov skillNeedle, eax + ret +skill_move_dec: + dec eax + mov skillNeedle, eax + ret +SkillCheckMoveNeedle ENDP + +; --- SkillCheckEvaluate: Skill Check íà êðþêå: øêàëà, ïîïàäàíèÿ è ïðîìàõè --- +SkillCheckEvaluate PROC uses eax + mov eax, skillNeedle + cmp eax, skillPerfectPos + je skill_eval_perfect + cmp eax, skillSuccessStart + jb skill_eval_fail + cmp eax, skillSuccessEnd + ja skill_eval_fail + mov skillResult, 1 + ret +skill_eval_perfect: + mov skillResult, 2 + ret +skill_eval_fail: + mov skillResult, 0 + ret +SkillCheckEvaluate ENDP + +; --- SkillCheckRound: Skill Check íà êðþêå: øêàëà, ïîïàäàíèÿ è ïðîìàõè --- +SkillCheckRound PROC uses eax ebx + invoke RandomRange, 27 + add eax, 8 + mov skillSuccessStart, eax + mov ebx, eax + add ebx, 7 + mov skillSuccessEnd, ebx + invoke RandomRange, 6 + add eax, skillSuccessStart + inc eax + mov skillPerfectPos, eax + invoke RandomRange, 45 + mov skillNeedle, eax + invoke RandomRange, 2 + cmp eax, 0 + je skill_round_left + mov skillDir, 1 + jmp skill_round_begin +skill_round_left: + mov skillDir, 0FFFFFFFFh +skill_round_begin: + mov skillFrameCount, 0 + mov skillResult, 0 + mov eax, skillHits + mov ebx, eax + shl ebx, 2 + add eax, ebx + mov ebx, 45 + sub ebx, eax + mov eax, stressLevel + shl eax, 2 + sub ebx, eax + cmp ebx, 18 + jae skill_delay_ready + mov ebx, 18 +skill_delay_ready: + mov skillDelay, ebx + call SkillCheckFlushKeys +skill_round_loop: + call SkillCheckDraw + mov eax, skillDelay + invoke Sleep, eax + call SkillCheckPollKey + cmp eax, 1 + je skill_round_pressed + call SkillCheckMoveNeedle + inc skillFrameCount + cmp skillFrameCount, 120 + jb skill_round_loop + mov skillResult, 0 + ret +skill_round_pressed: + call SkillCheckEvaluate + ret +SkillCheckRound ENDP + +; --- GameSkillCheck: Skill Check íà êðþêå: øêàëà, ïîïàäàíèÿ è ïðîìàõè --- +GameSkillCheck PROC +skill_game_start: + call ClearView + invoke PrintTitleColor, OFFSET skillTitle + invoke PrintStr, OFFSET skillIntro + call PromptBet + call PlayDbDHookScene + mov skillHits, 0 + mov skillMisses, 0 + mov skillPerfects, 0 +skill_game_loop: + call SkillCheckRound + call SkillCheckDraw + mov eax, skillResult + cmp eax, 2 + je skill_game_perfect + cmp eax, 1 + je skill_game_success +skill_game_fail: + inc skillMisses + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET skillFailText + call ResetColor + invoke Sleep, 850 + cmp skillMisses, 3 + jae skill_game_lost + jmp skill_game_loop +skill_game_success: + inc skillHits + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET skillSuccessText + call ResetColor + invoke Sleep, 750 + cmp skillHits, 5 + jae skill_game_won + jmp skill_game_loop +skill_game_perfect: + add skillHits, 2 + inc skillPerfects + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET skillPerfectText + call ResetColor + invoke Sleep, 850 + cmp skillHits, 5 + jae skill_game_won + jmp skill_game_loop +skill_game_won: + call StopDbDHookScene + call SkillCheckDraw + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET skillEscapeText + call ResetColor + invoke PaySlotMultiplier, 2 + invoke UnlockAchievement, 20000h, OFFSET achSkillCheckName + call SaveGame + jmp skill_game_again +skill_game_lost: + call StopDbDHookScene + call SkillCheckDraw + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET skillDarkText + call ResetColor + call PayLose + call SaveGame +skill_game_again: + cmp tournamentMode, 1 + je skill_game_exit + invoke PrintStr, OFFSET againText + call ReadKey + cmp al, 'y' + je skill_game_start + cmp al, 'Y' + je skill_game_start +skill_game_exit: + ret +GameSkillCheck ENDP +; --- GameAchievements: ñòàòèñòèêà, äîñòèæåíèÿ è òàáëèöû ëèäåðîâ --- +GameAchievements PROC + call ClearView + invoke PrintTitleColor, OFFSET achMenuTitle + invoke PrintAchievementLine, 1, OFFSET achFirstWinName + invoke PrintAchievementLine, 2, OFFSET achFirstLossName + invoke PrintAchievementLine, 4, OFFSET achJackpotName + invoke PrintAchievementLine, 8, OFFSET achHighRollerName + invoke PrintAchievementLine, 10h, OFFSET achShopperName + invoke PrintAchievementLine, 20h, OFFSET achCharmName + invoke PrintAchievementLine, 40h, OFFSET achGoalName + invoke PrintAchievementLine, 80h, OFFSET achCloverPitName + invoke PrintAchievementLine, 100h, OFFSET achClassicSlotName + invoke PrintAchievementLine, 200h, OFFSET achPokerRaiseName + invoke PrintAchievementLine, 400h, OFFSET achPokerBluffName + invoke PrintAchievementLine, 800h, OFFSET achRouletteWinName + invoke PrintAchievementLine, 1000h, OFFSET achRussianWinName + invoke PrintAchievementLine, 2000h, OFFSET achDurakWinName + invoke PrintAchievementLine, 4000h, OFFSET achBackCollectorName + invoke PrintAchievementLine, 8000h, OFFSET achCharmBuyerName + invoke PrintAchievementLine, 10000h, OFFSET achObserverName + invoke PrintAchievementLine, 20000h, OFFSET achSkillCheckName + call Pause + ret +GameAchievements ENDP +; --- GameTraining: ñëóæåáíûé áëîê èãðîâîé ëîãèêè --- +GameTraining PROC + call ClearView + invoke PrintTitleColor, OFFSET trainingTitle + invoke PrintStr, OFFSET trainingText + call Pause + ret +GameTraining ENDP +; --- ShowTournamentStage: òóðíèð-áàøíÿ è ïîáåäíàÿ àíèìàöèÿ ôèíàëà --- +ShowTournamentStage PROC + call ClearView + invoke PrintTitleColor, OFFSET tournamentTitle + invoke PrintStr, OFFSET tournamentStageText + invoke PrintUInt, tournamentStage + invoke PrintStr, OFFSET nl + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET hellStageCurseText + invoke RandomRange, 4 + cmp eax, 0 + je hell_stage_curse1 + cmp eax, 1 + je hell_stage_curse2 + cmp eax, 2 + je hell_stage_curse3 + invoke PrintStr, OFFSET hellCurse4 + jmp hell_stage_curse_done +hell_stage_curse1: + invoke PrintStr, OFFSET hellCurse1 + jmp hell_stage_curse_done +hell_stage_curse2: + invoke PrintStr, OFFSET hellCurse2 + jmp hell_stage_curse_done +hell_stage_curse3: + invoke PrintStr, OFFSET hellCurse3 +hell_stage_curse_done: + call ResetColor + invoke PrintStr, OFFSET tournamentMusicHint + call ReadKey + cmp al, 'm' + je tower_stage_change_music + cmp al, 'M' + jne tower_stage_done +tower_stage_change_music: + call PlayTowerRandomMusic +tower_stage_done: + ret +ShowTournamentStage ENDP + +; --- AnimateTournamentVictory: áàíê, ñòàâêè, ñòðåññ, ïîäîçðåíèå è ýêîíîìèêà êàçèíî --- +AnimateTournamentVictory PROC + call PlayVictorySound + call ClearView + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET tournamentFire1 + call ResetColor + invoke Sleep, 360 + call ClearView + invoke SetColor, COLOR_TITLE + invoke PrintStr, OFFSET tournamentFire2 + call ResetColor + invoke Sleep, 360 + call ClearView + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET tournamentFire3 + call ResetColor + invoke Sleep, 420 + call ClearView + invoke SetColor, COLOR_WARN + invoke PrintStr, OFFSET tournamentFire4 + call ResetColor + invoke Sleep, 520 + ret +AnimateTournamentVictory ENDP + +; --- GameTournament: òóðíèð-áàøíÿ è ïîáåäíàÿ àíèìàöèÿ ôèíàëà --- +GameTournament PROC + mov tournamentMode, 1 + call ClearView + invoke PrintTitleColor, OFFSET tournamentTitle + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET secretHellText + call ResetColor + invoke PrintStr, OFFSET tournamentIntro + call Pause + call PlayTowerRandomMusic ; tower start + + mov tournamentStage, 1 + call ShowTournamentStage + mov currentGameId, 6 + mov lastGameResult, 0 + call GameCoin + cmp lastGameResult, 2 + je tournament_failed + + mov tournamentStage, 2 + call ShowTournamentStage + mov currentGameId, 7 + mov lastGameResult, 0 + call GameDice + cmp lastGameResult, 2 + je tournament_failed + + mov tournamentStage, 3 + call ShowTournamentStage + mov currentGameId, 5 + mov lastGameResult, 0 + call GameSkulls + cmp lastGameResult, 2 + je tournament_failed + + mov tournamentStage, 4 + call ShowTournamentStage + mov currentGameId, 1 + mov lastGameResult, 0 + call Game21 + cmp lastGameResult, 2 + je tournament_failed + + mov tournamentStage, 5 + call ShowTournamentStage + mov currentGameId, 2 + mov lastGameResult, 0 + call GamePoker + cmp lastGameResult, 2 + je tournament_failed + + mov tournamentStage, 6 + call ShowTournamentStage + mov currentGameId, 4 + mov lastGameResult, 0 + call GameRoulette + cmp lastGameResult, 2 + je tournament_failed + + mov tournamentStage, 7 + call ShowTournamentStage + mov currentGameId, 8 + mov lastGameResult, 0 + call GameCasinoRoulette + cmp lastGameResult, 2 + je tournament_failed + + mov tournamentStage, 8 + call ShowTournamentStage + mov currentGameId, 10 + mov lastGameResult, 0 + call GameDurak + cmp lastGameResult, 2 + je tournament_failed + + mov tournamentStage, 9 + call ShowTournamentStage + mov currentGameId, 11 + mov lastGameResult, 0 + call GameSkillCheck + cmp lastGameResult, 2 + je tournament_failed + + mov tournamentStage, 10 + call ShowTournamentStage + mov currentGameId, 0 + mov lastGameResult, 0 + call GameBuckshot + cmp lastGameResult, 2 + je tournament_failed + + call StopTowerMusic ; before tower victory + call AnimateTournamentVictory + invoke SetColor, COLOR_MONEY + invoke PrintStr, OFFSET tournamentWinText + call ResetColor + mov currentBet, 66600 + call PayWin + call SaveGame + mov tournamentMode, 0 + call Pause + ret + +tournament_failed: + call StopTowerMusic ; tower failed + invoke SetColor, COLOR_BAD + invoke PrintStr, OFFSET tournamentFailText + call ResetColor + mov tournamentMode, 0 + call Pause + ret +GameTournament ENDP + + +; --- GameUmamusume: Umamusume Pretty Derby Minigame --- +GameUmamusume PROC uses ebx esi edi + invoke PrintStr, OFFSET umaTitleText + call PromptBet + cmp eax, 0 + jle uma_exit + +uma_select_horse: + invoke PrintStr, OFFSET umaMenuText + invoke PrintStr, OFFSET umaChoiceText + call ReadBetInput + cmp eax, 1 + jl uma_invalid + cmp eax, 5 + jg uma_invalid + mov umaChoice, eax + jmp uma_start_race + +uma_invalid: + invoke PrintStr, OFFSET badChoiceText + jmp uma_select_horse + +uma_start_race: + xor eax, eax + mov umaPos[0], eax + mov umaPos[4], eax + mov umaPos[8], eax + mov umaPos[12], eax + mov umaPos[16], eax + mov umaWinner, 0 + +uma_race_loop: + invoke PrintStr, OFFSET clearLines + invoke PrintStr, OFFSET umaTrackHeader + + ; Horse 1: Special Week (1-3) + invoke RandomRange, 3 + inc eax + add umaPos[0], eax + + ; Horse 2: Silence Suzuka (1-4) + invoke RandomRange, 4 + inc eax + add umaPos[4], eax + + ; Horse 3: Tokai Teio (1-3, boost if pos > 18) + invoke RandomRange, 3 + inc eax + cmp umaPos[8], 18 + jbe uma_t3_no_boost + add eax, 2 +uma_t3_no_boost: + add umaPos[8], eax + + ; Horse 4: Gold Ship (0-6 wildcard) + invoke RandomRange, 7 + add umaPos[12], eax + + ; Horse 5: Mejiro McQueen (steady 2-4) + invoke RandomRange, 3 + add eax, 2 + add umaPos[16], eax + + ; Render track + mov ecx, 0 +uma_render_lane: + push ecx + mov eax, [umaHorseNames + ecx*4] + invoke PrintStr, eax + + mov ebx, [umaPos + ecx*4] + cmp ebx, 0 + jbe uma_render_head + mov edi, ebx +uma_print_step: + push edi + invoke PrintStr, OFFSET umaStepChar + pop edi + dec edi + jnz uma_print_step + +uma_render_head: + invoke PrintStr, OFFSET umaHeadChar + invoke PrintStr, OFFSET umaFinishText + + pop ecx + inc ecx + cmp ecx, 5 + jl uma_render_lane + + ; Check if finish reached (>= 35) + mov eax, 0 +uma_check_finish: + cmp dword ptr [umaPos + eax*4], 35 + jge uma_finish_reached + inc eax + cmp eax, 5 + jl uma_check_finish + + invoke Sleep, 180 + jmp uma_race_loop + +uma_finish_reached: + mov ebx, 0 + mov edi, 1 + mov ecx, 0 +uma_find_max: + mov edx, [umaPos + ecx*4] + cmp edx, ebx + jle uma_next_max + mov ebx, edx + lea edi, [ecx + 1] +uma_next_max: + inc ecx + cmp ecx, 5 + jl uma_find_max + + mov umaWinner, edi + invoke PrintStr, OFFSET umaWinAnnouncement + mov eax, edi + dec eax + mov eax, [umaHorseNames + eax*4] + invoke PrintStr, eax + invoke PrintStr, OFFSET nl + + mov eax, umaChoice + cmp eax, umaWinner + jne uma_race_lost + + invoke PrintStr, OFFSET umaYouWinText + mov ecx, umaChoice + dec ecx + mov eax, currentBet + mov edx, [umaMultipliers + ecx*4] + imul eax, edx + push eax + invoke PrintUInt, eax + invoke PrintStr, OFFSET nl + pop eax + call PayWin + call PrintWinEvent + jmp uma_race_done + +uma_race_lost: + invoke PrintStr, OFFSET umaYouLoseText + call PayLose + call PrintLoseEvent + +uma_race_done: + call Pause +uma_exit: + ret +GameUmamusume ENDP + +include casino3d.inc + + + +; --- AutoLoadAccountFast: àâòîçàãðóçêà ïðîôèëÿ áåç áëîêèðîâêè â CMD --- +AutoLoadAccountFast PROC + call ResetProfileDefaults + call CollectAccounts + cmp accountCount, 0 + jbe autoload_exit + mov selectedAccount, 1 + call CopySelectedAccountName + call LoadSave +autoload_exit: + ret +AutoLoadAccountFast ENDP + +; --- MainMenu: òî÷êà âõîäà, ãëàâíîå ìåíþ è ìàðøðóòèçàöèÿ ïî èãðàì --- + +MainMenu PROC +menu_loop: + call DailyCheckDate + call CheckSecretEnding + invoke PrintStr, OFFSET clearLines + invoke PrintTitleColor, OFFSET titleText + call PrintBank + call PrintGoal + call ShowStats + invoke PrintStr, OFFSET menuText + invoke PrintStr, OFFSET choiceText + call ReadBetInput + cmp eax, 0FFFFFFFFh + je menu_loop + cmp eax, 0FFFFFFFDh + je menu_loop + cmp eax, 1 + je run_shop + cmp eax, 2 + je run_21 + cmp eax, 3 + je run_poker + cmp eax, 4 + je run_slot + cmp eax, 5 + je run_skulls + cmp eax, 6 + je run_roulette + cmp eax, 7 + je run_coin + cmp eax, 8 + je run_dice + cmp eax, 9 + je run_casino_roulette + cmp eax, 10 + je run_classic_slot + cmp eax, 11 + je run_durak + cmp eax, 12 + je run_skill_check + cmp eax, 13 + je run_buckshot + cmp eax, 14 + je run_observer + cmp eax, 15 + je run_training + cmp eax, 16 + je run_achievements + cmp eax, 17 + je run_stats_by_game + cmp eax, 18 + je run_daily + cmp eax, 19 + je run_settings + cmp eax, 20 + je run_online_dice + cmp eax, 21 + je run_umamusume + cmp eax, 25 + + je run_casino_3d + + cmp eax, 666 + je run_hell_tower + cmp eax, 0 + je exit_menu + invoke PrintStr, OFFSET badChoiceText + call Pause + jmp menu_loop +run_21: + mov currentGameId, 1 + call Game21 + jmp menu_loop +run_poker: + mov currentGameId, 2 + call GamePoker + jmp menu_loop +run_slot: + mov currentGameId, 3 + call PlaySlotIntroSound + call GameSlot + jmp menu_loop +run_skulls: + mov currentGameId, 5 + call GameSkulls + jmp menu_loop +run_coin: + mov currentGameId, 6 + call GameCoin + jmp menu_loop +run_dice: + mov currentGameId, 7 + call GameDice + jmp menu_loop +run_roulette: + mov currentGameId, 4 + call GameRoulette + jmp menu_loop +run_casino_roulette: + mov currentGameId, 8 + call GameCasinoRoulette + jmp menu_loop +run_classic_slot: + mov currentGameId, 9 + call PlaySlotIntroSound + call GameClassicSlot + jmp menu_loop +run_durak: + mov currentGameId, 10 + call GameDurak + jmp menu_loop +run_training: + mov currentGameId, 0 + call GameTraining + jmp menu_loop +run_observer: + mov currentGameId, 0 + call GameObserver + jmp menu_loop +run_shop: + mov currentGameId, 0 + call GameShop + jmp menu_loop +run_achievements: + mov currentGameId, 0 + call GameAchievements + jmp menu_loop +run_stats_by_game: + mov currentGameId, 0 + call GameStatsByGame + jmp menu_loop +run_daily: + mov currentGameId, 0 + call GameDailyTasks + jmp menu_loop +run_settings: + mov currentGameId, 0 + call GameSettings + jmp menu_loop +run_online_dice: + mov currentGameId, 0 + call GameOnlineCasino + jmp menu_loop +run_umamusume: + mov currentGameId, 0 + call GameUmamusume + jmp menu_loop +run_casino_3d: + + call StartCasino3D + + jmp menu_loop + +run_hell_tower: + mov currentGameId, 0 + call GameTournament + jmp menu_loop +run_skill_check: + mov tournamentMode, 0 + mov currentGameId, 11 + call GameSkillCheck + jmp menu_loop +run_buckshot: + mov currentGameId, 0 + call GameBuckshot + jmp menu_loop +exit_menu: + ret +MainMenu ENDP + +; --- main: òî÷êà âõîäà, ãëàâíîå ìåíþ è ìàðøðóòèçàöèÿ ïî èãðàì --- +main PROC + call InitPaths3D + invoke CreateMutexA, 0, 1, OFFSET mutexName3D + mov mutex3D, eax + invoke GetLastError + cmp eax, 183 + jne main_graphical + invoke FindWindowA, OFFSET sz3DClassName, 0 + test eax, eax + jz main_exit + push eax + invoke ShowWindow, eax, 9 + pop eax + invoke SetForegroundWindow, eax + jmp main_exit +main_graphical: + call LoadProgress3D + call StartCasino3D +main_exit: + cmp mutex3D, 0 + je @F + invoke CloseHandle, mutex3D +@@: + invoke ExitProcess, 0 +main ENDP + +END main diff --git a/backups/poker_before_enginefix_20260924_220800.exe b/backups/poker_before_enginefix_20260924_220800.exe new file mode 100644 index 0000000..8971354 Binary files /dev/null and b/backups/poker_before_enginefix_20260924_220800.exe differ diff --git a/docs/previews_minigames/font_test.png b/docs/previews_minigames/font_test.png new file mode 100644 index 0000000..5f0e621 Binary files /dev/null and b/docs/previews_minigames/font_test.png differ diff --git a/docs/render_view.png b/docs/render_view.png new file mode 100644 index 0000000..dde0dbc Binary files /dev/null and b/docs/render_view.png differ diff --git a/graphify-out/.graphify_labels.json b/graphify-out/.graphify_labels.json new file mode 100644 index 0000000..4a05256 --- /dev/null +++ b/graphify-out/.graphify_labels.json @@ -0,0 +1 @@ +{"0": "Account & Cloud Sync System", "1": "Portable Build & Networking", "2": "Architecture Constraints & Roadmap", "3": "Core Project & MASM Instructions", "4": "3D Asset Generation Pipeline", "5": "Visual FX & Variables Spec", "6": "Casino Sprite Atlas & Props", "7": "Renderer Texture Slot Packer", "8": "Cabaret Dancer Animation Sequence", "9": "3D Raycaster Environment Textures", "10": "Release Verification Smoke Tests", "11": "Dead by Daylight Helper Tool", "12": "Hakari Dance Animation Previewer", "13": "Skill Check Minigame & Reference", "14": "3D Engine Assembly Generator", "15": "Fixed-Point Math & Map Generator", "16": "Casino Intro Preview Utility", "17": "Raycasting Render Simulator", "18": "Casino 2.5D Engine Core Include", "19": "Casino 2.5D Data Constants", "20": "Bitmap 8x8 Font Module", "21": "Repository Overview & License", "22": "GDI Platform Event Loop", "23": "Platform Window State & Config", "24": "Software Raycaster Renderer", "25": "Engine Build Helper Script", "26": "Graphics Assembler Build Script", "27": "Casino 3D Builder Script", "28": "Font Generator Tool", "29": "Unified 3D Engine Generator", "30": "Casino 3D Make Script", "31": "ASM Hotpatching Utility"} \ No newline at end of file diff --git a/graphify-out/.graphify_python b/graphify-out/.graphify_python new file mode 100644 index 0000000..4350d36 --- /dev/null +++ b/graphify-out/.graphify_python @@ -0,0 +1 @@ +C:\Users\IKER\AppData\Roaming\uv\tools\graphifyy\Scripts\python.exe \ No newline at end of file diff --git a/graphify-out/.graphify_root b/graphify-out/.graphify_root new file mode 100644 index 0000000..9361e63 --- /dev/null +++ b/graphify-out/.graphify_root @@ -0,0 +1 @@ +E:\DEPAI IN 3D\KAZIK \ No newline at end of file diff --git a/graphify-out/.graphify_semantic_new.json b/graphify-out/.graphify_semantic_new.json new file mode 100644 index 0000000..f3c85c6 --- /dev/null +++ b/graphify-out/.graphify_semantic_new.json @@ -0,0 +1,1790 @@ +{ + "nodes": [ + { + "id": "agents", + "label": "AGENTS.md Project Instructions", + "file_type": "document", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\AGENTS.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "agents_masm32_build", + "label": "MASM32 Build Pipeline", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\AGENTS.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Single-file x86 assembly Windows console casino game assembled with ml.exe /c /coff /Cp /nologo and linked with link.exe /SUBSYSTEM:CONSOLE against kernel32, winmm, user32, ws2_32, gdi32." + }, + { + "id": "agents_cp1251_encoding", + "label": "CP1251 Console Encoding Standard", + "file_type": "rationale", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\AGENTS.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Source strings and dealer_phrases.txt must remain in Windows-1251 (CP1251) for Windows console rendering; do not re-save as UTF-8." + }, + { + "id": "agents_cheat_codes", + "label": "Console Cheat Codes System", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\AGENTS.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "agents_games_catalog", + "label": "Casino Games Catalog", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\AGENTS.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "agents_animation_assets", + "label": "ANSI Animation Assets Spec", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\AGENTS.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "casino_intro.ans and hakari_dance.ans use ANSI escape codes and CP1251 with form-feed frame separators for high-performance terminal animations." + }, + { + "id": "cmakelists", + "label": "CMake Portable Build Configuration", + "file_type": "document", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\CMakeLists.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "cmakelists_poker_portable", + "label": "poker_portable Target", + "file_type": "code", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\CMakeLists.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "cmakelists_winsock_dependency", + "label": "Win32 Winsock ws2_32 Dependency", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\CMakeLists.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "readme", + "label": "KAZIK Project Readme", + "file_type": "document", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\README.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "assets_data_dealer_phrases", + "label": "Dealer Dialogue Phrases", + "file_type": "document", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\data\\dealer_phrases.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "assets_data_dealer_phrases_outcome_prefixes", + "label": "Win Loss Draw Outcome Prefixes", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\data\\dealer_phrases.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Lines prefixed with W|, L|, and D| categorize dealer reactions to player outcomes for runtime dynamic selection." + }, + { + "id": "docs_known_limitations", + "label": "Known Limitations Specification", + "file_type": "document", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\KNOWN_LIMITATIONS.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "docs_known_limitations_windows_platform_lock", + "label": "Windows Platform Dependency", + "file_type": "rationale", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\KNOWN_LIMITATIONS.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Officially Windows-only due to tight coupling to MASM32, WinAPI, WinMM, MCI, and Windows console API." + }, + { + "id": "docs_known_limitations_wine_support", + "label": "Wine and CrossOver POSIX Support", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\KNOWN_LIMITATIONS.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Enables non-Windows execution on Linux and macOS via Wine translation layers without rewriting the assembly core." + }, + { + "id": "docs_known_limitations_ansi_console_speed", + "label": "ANSI Animation Console Bottleneck", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\KNOWN_LIMITATIONS.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Console throughput limits animation smoothness on older PCs, requiring frame-skip rendering profiles." + }, + { + "id": "docs_known_limitations_durak_logic_risk", + "label": "Durak Card Logic Complexity Risk", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\KNOWN_LIMITATIONS.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Durak is the most complex game logic in the suite due to card defense, tossing (podkidnoy), transferring (perevodnoy), and table clearing." + }, + { + "id": "docs_online_radmin", + "label": "Online Radmin VPN Guide", + "file_type": "document", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\ONLINE_RADMIN.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "docs_online_radmin_host_authoritative", + "label": "Host Authoritative Network Model", + "file_type": "rationale", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\ONLINE_RADMIN.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Host owns hidden chamber state in Russian roulette and dice seeds; client sends only inputs so both peers remain in sync without a dedicated server." + }, + { + "id": "docs_online_radmin_p2p_socket", + "label": "Winsock TCP Port 27015 LAN Protocol", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\ONLINE_RADMIN.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Built-in 1v1 match on TCP port 27015 directly inside poker.exe without installing separate servers or services." + }, + { + "id": "docs_readme_release", + "label": "Release Notes and User Guide", + "file_type": "document", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\README_RELEASE.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "docs_readme_release_rendering_profiles", + "label": "Animation Rendering Profiles", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\README_RELEASE.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Cinematic, Adaptive, and Stable profiles control frame-skipping to eliminate flicker and stutter without omitting entire scenes." + }, + { + "id": "docs_readme_release_package_architecture", + "label": "Release Package Architecture", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\README_RELEASE.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Bundles launcher Assembler Casino.exe, core bin/poker.exe, and assets into an installer for clean user experience." + }, + { + "id": "docs_release_checklist", + "label": "Release QA Checklist", + "file_type": "document", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\RELEASE_CHECKLIST.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "docs_release_checklist_smoke_check", + "label": "Automated Release Smoke Check", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\RELEASE_CHECKLIST.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "tools/release_smoke_check.ps1 automates pre-release verification of builds, installer, and payload integrity." + }, + { + "id": "docs_release_checklist_installer_validation", + "label": "Installer & Uninstaller Verification", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\RELEASE_CHECKLIST.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Validates installation directory selection, desktop shortcuts, registry entry under Add/Remove Programs, and clean uninstallation." + }, + { + "id": "docs_release_checklist_game_verification", + "label": "Casino Games QA Verification", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\RELEASE_CHECKLIST.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Comprehensive verification steps covering all 12 casino games, account persistence, bankruptcy handling, and win goals." + }, + { + "id": "docs_roadmap", + "label": "Development Roadmap", + "file_type": "document", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\ROADMAP.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "docs_roadmap_online_command_protocol", + "label": "Multiplayer Command Protocol", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\ROADMAP.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Client-server text command set (BET, HIT, STAND, FOLD, RAISE, PLAY_CARD, READY, CHAT) sent over TCP sockets." + }, + { + "id": "docs_roadmap_security_milestones", + "label": "Security & Signing Roadmap", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\ROADMAP.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Planned addition of Authenticode code-signing, release manifests, and stronger save checksum validation." + }, + { + "id": "docs_roadmap_future_expansions", + "label": "Future Casino Expansions", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\ROADMAP.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Planned expansions including casino tax, VIP tier benefits, charm bestiary, secret ending, and casino tower tournament." + }, + { + "id": "docs_security_notes", + "label": "Security Architecture Notes", + "file_type": "document", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\SECURITY_NOTES.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "docs_security_notes_sha256_payload_check", + "label": "SHA-256 Binary Integrity Verification", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\SECURITY_NOTES.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Installer verifies embedded archive hash and launcher validates bin/poker.exe hash to prevent payload tampering." + }, + { + "id": "docs_security_notes_save_tamper_signature", + "label": "Save File Salted Signature", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\SECURITY_NOTES.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Save files write a hash signature computed over the first 276 bytes with a hardcoded salt to catch manual progress hex editing." + }, + { + "id": "docs_security_notes_path_traversal_guard", + "label": "Installer Path Traversal Guard", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\SECURITY_NOTES.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Installer rejects archive entries containing ../ to guarantee unpacked files cannot escape the installation directory." + }, + { + "id": "docs_casino_intro_preview", + "label": "Casino Intro ASCII Preview", + "file_type": "document", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\casino_intro_preview.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "ASCII art banner preview for the main casino entry screen." + }, + { + "id": "docs_dbd_hook_static", + "label": "Dead by Daylight Hook Reference Graphic", + "file_type": "document", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\dbd_hook_static.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "docs_dbd_hook_static_skill_check", + "label": "Skill Check Hook Escape Minigame", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\dbd_hook_static.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Timed QTE skill check minigame inspired by Dead by Daylight requiring player to press SPACE or ENTER at the exact moment." + }, + { + "id": "docs_revolver_small_preview", + "label": "Revolver ASCII Preview", + "file_type": "document", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\revolver_small_preview.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "docs_revolver_small_preview_russian_roulette_visuals", + "label": "Russian Roulette Revolver ASCII Graphics", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\revolver_small_preview.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Detailed multi-angle ASCII art gun animations showing cylinder spin and hammer cocking for Russian Roulette." + }, + { + "id": "docs_читкоды", + "label": "Secret Cheat Codes Reference", + "file_type": "document", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\ЧИТКОДЫ.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "docs_читкоды_menu_codes", + "label": "Menu Cheat Code Definitions", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\ЧИТКОДЫ.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Keyboard cheat commands entered at the main menu including MONEYRAIN, SEVENS, WINNEXT, GODMODE, FAIRPLAY, GOAL, RESETBANK, AI difficulty, and ACHIEVER." + }, + { + "id": "docs_новый_текстовый_документ", + "label": "Intro Glitch Prototype Snippet", + "file_type": "document", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\Новый текстовый документ.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "docs_новый_текстовый_документ_showintro", + "label": "ShowIntro Procedure Prototype", + "file_type": "code", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\Новый текстовый документ.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "docs_новый_текстовый_документ_glitch_fx", + "label": "Terminal Glitch and Screen Shake FX", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\Новый текстовый документ.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Uses rdtsc CPU cycle counter to dynamically trigger screen shakes, ANSI 256-color flicker flashes, and character corruption." + }, + { + "id": "graphify_out_converted_variables_documentation_3fc6d2dc", + "label": "poker.asm Variables Reference", + "file_type": "document", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\graphify-out\\converted\\variables_documentation_3fc6d2dc.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "graphify_out_converted_variables_documentation_3fc6d2dc_save_magic", + "label": "SAVE_MAGIC Constant 31435653h", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\graphify-out\\converted\\variables_documentation_3fc6d2dc.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Magic header constant used to validate Assembler Casino save game integrity upon loading." + }, + { + "id": "graphify_out_converted_variables_documentation_3fc6d2dc_color_constants", + "label": "Console Color Attributes Constants", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\graphify-out\\converted\\variables_documentation_3fc6d2dc.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Defines standard color attribute constants for cards, table, wood, money, warnings, and titles in WinAPI console." + }, + { + "id": "graphify_out_converted_variables_documentation_3fc6d2dc_winapi_handles", + "label": "Standard Console Handles", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\graphify-out\\converted\\variables_documentation_3fc6d2dc.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Constants for STD_INPUT_HANDLE, STD_OUTPUT_HANDLE, and INVALID_HANDLE_VALUE for Windows console I/O." + }, + { + "id": "runtime_achievement", + "label": "Runtime Achievement Storage File", + "file_type": "document", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\runtime\\achievement.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Local file storing unlocked player achievements." + }, + { + "id": "runtime_achievement_tracking", + "label": "Runtime Achievement Tracker", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\runtime\\achievement.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "идеи", + "label": "Feature Backlog and Game Ideas", + "file_type": "document", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\ИДЕИ.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "идеи_appdata_saves", + "label": "AppData Save Migration Idea", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\ИДЕИ.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Moving player save data to %AppData% prevents accidental deletion when reinstalling or updating the casino." + }, + { + "id": "идеи_shop_and_charms", + "label": "Casino Shop and Charms Mechanic", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\ИДЕИ.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Allows spending winnings on charms, custom card decks, shirts, and lucky talismans with gameplay effects." + }, + { + "id": "идеи_pulse_stress", + "label": "Heart Rate Stress Visualization", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\ИДЕИ.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Visualizes player character pulse and anxiety level during high-stakes gambling decisions." + }, + { + "id": "идеи_durak_expansion", + "label": "Durak Card Game Expansion", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\ИДЕИ.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Addition of Russian card game Durak with podkidnoy and perevodnoy variants to broaden casino offerings." + }, + { + "id": "идеи_buckshot_roulette", + "label": "Buckshot Roulette Game Mode Idea", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\ИДЕИ.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Adaptation of shotgun-based Russian Roulette gameplay with items and bluffing mechanics." + }, + { + "id": "идеи_casino_tower", + "label": "Casino Tower Tournament Idea", + "file_type": "concept", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\ИДЕИ.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Multi-floor casino tower progression where players face escalating AI opponents with special modifiers." + }, + { + "id": "assets_icons_casino_preview_image", + "label": "Casino Preview Icon", + "file_type": "image", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\icons\\casino_preview.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "assets_sprites_cabaret_loop_v1_image", + "label": "Cabaret Loop Sprite Sheet", + "file_type": "image", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\sprites\\cabaret-loop-v1.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "assets_sprites_casino_atlas_v1_image", + "label": "Casino Atlas Sprite Sheet", + "file_type": "image", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\sprites\\casino-atlas-v1.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "assets_textures_sprite_bartender_shop_image", + "label": "Bartender Shop Sprite", + "file_type": "image", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_bartender_shop.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "assets_textures_sprite_blackjack_table_image", + "label": "Blackjack Table Sprite", + "file_type": "image", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_blackjack_table.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "assets_textures_sprite_dancer_frame_0_image", + "label": "Dancer Animation Frame 0 Sprite", + "file_type": "image", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_dancer_frame_0.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "assets_textures_sprite_dancer_frame_1_image", + "label": "Dancer Animation Frame 1 Sprite", + "file_type": "image", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_dancer_frame_1.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "assets_textures_sprite_dancer_frame_2_image", + "label": "Dancer Animation Frame 2 Sprite", + "file_type": "image", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_dancer_frame_2.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "assets_textures_sprite_dancer_frame_3_image", + "label": "Dancer Animation Frame 3 Sprite", + "file_type": "image", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_dancer_frame_3.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "assets_textures_sprite_roulette_table_image", + "label": "Roulette Table Sprite", + "file_type": "image", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_roulette_table.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "assets_textures_sprite_slot_frame_0_image", + "label": "Slot Machine Frame 0 Sprite", + "file_type": "image", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_slot_frame_0.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "assets_textures_sprite_slot_frame_1_image", + "label": "Slot Machine Frame 1 Sprite", + "file_type": "image", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_slot_frame_1.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "assets_textures_sprite_slot_frame_2_image", + "label": "Slot Machine Frame 2 Sprite", + "file_type": "image", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_slot_frame_2.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "assets_textures_tex_floor_carpet_image", + "label": "Casino Carpet Floor Texture", + "file_type": "image", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\tex_floor_carpet.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "assets_textures_tex_wall_hell_image", + "label": "Hell Wall Texture", + "file_type": "image", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\tex_wall_hell.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "assets_textures_tex_wall_stripclub_image", + "label": "Neon Strip Club Wall Texture", + "file_type": "image", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\tex_wall_stripclub.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + }, + { + "id": "assets_textures_tex_wall_velvet_image", + "label": "Velvet Wall Texture", + "file_type": "image", + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\tex_wall_velvet.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null + } + ], + "edges": [ + { + "source": "agents", + "target": "agents_masm32_build", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\AGENTS.md", + "source_location": null, + "weight": 1.0 + }, + { + "source": "agents", + "target": "agents_cp1251_encoding", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\AGENTS.md", + "source_location": null, + "weight": 1.0 + }, + { + "source": "agents", + "target": "agents_cheat_codes", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\AGENTS.md", + "source_location": null, + "weight": 1.0 + }, + { + "source": "agents", + "target": "agents_games_catalog", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\AGENTS.md", + "source_location": null, + "weight": 1.0 + }, + { + "source": "agents", + "target": "agents_animation_assets", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\AGENTS.md", + "source_location": null, + "weight": 1.0 + }, + { + "source": "agents_cheat_codes", + "target": "docs_читкоды_menu_codes", + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\AGENTS.md", + "source_location": null, + "weight": 1.0 + }, + { + "source": "agents_cp1251_encoding", + "target": "assets_data_dealer_phrases", + "relation": "rationale_for", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\AGENTS.md", + "source_location": null, + "weight": 1.0 + }, + { + "source": "agents_games_catalog", + "target": "docs_release_checklist_game_verification", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\AGENTS.md", + "source_location": null, + "weight": 1.0 + }, + { + "source": "cmakelists", + "target": "cmakelists_poker_portable", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\CMakeLists.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "cmakelists", + "target": "cmakelists_winsock_dependency", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\CMakeLists.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "cmakelists_winsock_dependency", + "target": "docs_online_radmin_p2p_socket", + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\CMakeLists.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_data_dealer_phrases", + "target": "assets_data_dealer_phrases_outcome_prefixes", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\data\\dealer_phrases.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_known_limitations", + "target": "docs_known_limitations_windows_platform_lock", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\KNOWN_LIMITATIONS.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_known_limitations", + "target": "docs_known_limitations_wine_support", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\KNOWN_LIMITATIONS.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_known_limitations", + "target": "docs_known_limitations_ansi_console_speed", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\KNOWN_LIMITATIONS.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_known_limitations", + "target": "docs_known_limitations_durak_logic_risk", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\KNOWN_LIMITATIONS.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_known_limitations_windows_platform_lock", + "target": "agents_masm32_build", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\KNOWN_LIMITATIONS.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_known_limitations_ansi_console_speed", + "target": "docs_readme_release_rendering_profiles", + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\KNOWN_LIMITATIONS.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_known_limitations_durak_logic_risk", + "target": "идеи_durak_expansion", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\KNOWN_LIMITATIONS.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_online_radmin", + "target": "docs_online_radmin_host_authoritative", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\ONLINE_RADMIN.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_online_radmin", + "target": "docs_online_radmin_p2p_socket", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\ONLINE_RADMIN.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_online_radmin_host_authoritative", + "target": "docs_roadmap_online_command_protocol", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\ONLINE_RADMIN.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_readme_release", + "target": "docs_readme_release_rendering_profiles", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\README_RELEASE.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_readme_release", + "target": "docs_readme_release_package_architecture", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\README_RELEASE.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_readme_release_package_architecture", + "target": "docs_release_checklist_installer_validation", + "relation": "references", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\README_RELEASE.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_release_checklist", + "target": "docs_release_checklist_smoke_check", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\RELEASE_CHECKLIST.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_release_checklist", + "target": "docs_release_checklist_installer_validation", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\RELEASE_CHECKLIST.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_release_checklist", + "target": "docs_release_checklist_game_verification", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\RELEASE_CHECKLIST.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_release_checklist_smoke_check", + "target": "docs_security_notes_sha256_payload_check", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\RELEASE_CHECKLIST.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_roadmap", + "target": "docs_roadmap_online_command_protocol", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\ROADMAP.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_roadmap", + "target": "docs_roadmap_security_milestones", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\ROADMAP.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_roadmap", + "target": "docs_roadmap_future_expansions", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\ROADMAP.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_roadmap_security_milestones", + "target": "docs_security_notes", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\ROADMAP.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_security_notes", + "target": "docs_security_notes_sha256_payload_check", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\SECURITY_NOTES.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_security_notes", + "target": "docs_security_notes_save_tamper_signature", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\SECURITY_NOTES.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_security_notes", + "target": "docs_security_notes_path_traversal_guard", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\SECURITY_NOTES.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_security_notes_save_tamper_signature", + "target": "graphify_out_converted_variables_documentation_3fc6d2dc_save_magic", + "relation": "shares_data_with", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\SECURITY_NOTES.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_security_notes_save_tamper_signature", + "target": "идеи_appdata_saves", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\SECURITY_NOTES.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_casino_intro_preview", + "target": "agents_animation_assets", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\casino_intro_preview.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_dbd_hook_static", + "target": "docs_dbd_hook_static_skill_check", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\dbd_hook_static.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_revolver_small_preview", + "target": "docs_revolver_small_preview_russian_roulette_visuals", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\revolver_small_preview.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_revolver_small_preview_russian_roulette_visuals", + "target": "идеи_buckshot_roulette", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.75, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\revolver_small_preview.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_читкоды", + "target": "docs_читкоды_menu_codes", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\ЧИТКОДЫ.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_новый_текстовый_документ", + "target": "docs_новый_текстовый_документ_showintro", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\Новый текстовый документ.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_новый_текстовый_документ_showintro", + "target": "docs_новый_текстовый_документ_glitch_fx", + "relation": "implements", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\Новый текстовый документ.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_новый_текстовый_документ_showintro", + "target": "graphify_out_converted_variables_documentation_3fc6d2dc_winapi_handles", + "relation": "calls", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\Новый текстовый документ.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "docs_новый_текстовый_документ_glitch_fx", + "target": "docs_casino_intro_preview", + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\Новый текстовый документ.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "graphify_out_converted_variables_documentation_3fc6d2dc", + "target": "graphify_out_converted_variables_documentation_3fc6d2dc_save_magic", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\graphify-out\\converted\\variables_documentation_3fc6d2dc.md", + "source_location": null, + "weight": 1.0 + }, + { + "source": "graphify_out_converted_variables_documentation_3fc6d2dc", + "target": "graphify_out_converted_variables_documentation_3fc6d2dc_color_constants", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\graphify-out\\converted\\variables_documentation_3fc6d2dc.md", + "source_location": null, + "weight": 1.0 + }, + { + "source": "graphify_out_converted_variables_documentation_3fc6d2dc", + "target": "graphify_out_converted_variables_documentation_3fc6d2dc_winapi_handles", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\graphify-out\\converted\\variables_documentation_3fc6d2dc.md", + "source_location": null, + "weight": 1.0 + }, + { + "source": "runtime_achievement", + "target": "runtime_achievement_tracking", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\runtime\\achievement.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "runtime_achievement_tracking", + "target": "docs_читкоды_menu_codes", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.75, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\runtime\\achievement.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "идеи", + "target": "идеи_appdata_saves", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\ИДЕИ.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "идеи", + "target": "идеи_shop_and_charms", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\ИДЕИ.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "идеи", + "target": "идеи_pulse_stress", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\ИДЕИ.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "идеи", + "target": "идеи_durak_expansion", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\ИДЕИ.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "идеи", + "target": "идеи_buckshot_roulette", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\ИДЕИ.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "идеи", + "target": "идеи_casino_tower", + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\ИДЕИ.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "идеи_shop_and_charms", + "target": "docs_roadmap_future_expansions", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\ИДЕИ.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "идеи_casino_tower", + "target": "docs_roadmap_future_expansions", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\ИДЕИ.txt", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_sprites_cabaret_loop_v1_image", + "target": "assets_textures_sprite_dancer_frame_0_image", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\sprites\\cabaret-loop-v1.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_sprites_cabaret_loop_v1_image", + "target": "assets_textures_sprite_dancer_frame_1_image", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\sprites\\cabaret-loop-v1.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_sprites_cabaret_loop_v1_image", + "target": "assets_textures_sprite_dancer_frame_2_image", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\sprites\\cabaret-loop-v1.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_sprites_cabaret_loop_v1_image", + "target": "assets_textures_sprite_dancer_frame_3_image", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\sprites\\cabaret-loop-v1.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_textures_sprite_dancer_frame_0_image", + "target": "assets_textures_sprite_dancer_frame_1_image", + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_dancer_frame_0.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_textures_sprite_dancer_frame_1_image", + "target": "assets_textures_sprite_dancer_frame_2_image", + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_dancer_frame_1.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_textures_sprite_dancer_frame_2_image", + "target": "assets_textures_sprite_dancer_frame_3_image", + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_dancer_frame_2.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_textures_sprite_dancer_frame_3_image", + "target": "assets_textures_sprite_dancer_frame_0_image", + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_dancer_frame_3.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_textures_sprite_slot_frame_0_image", + "target": "assets_textures_sprite_slot_frame_1_image", + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_slot_frame_0.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_textures_sprite_slot_frame_1_image", + "target": "assets_textures_sprite_slot_frame_2_image", + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_slot_frame_1.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_textures_sprite_slot_frame_2_image", + "target": "assets_textures_sprite_slot_frame_0_image", + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_slot_frame_2.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_sprites_casino_atlas_v1_image", + "target": "assets_textures_sprite_blackjack_table_image", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\sprites\\casino-atlas-v1.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_sprites_casino_atlas_v1_image", + "target": "assets_textures_sprite_roulette_table_image", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\sprites\\casino-atlas-v1.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_sprites_casino_atlas_v1_image", + "target": "assets_textures_sprite_bartender_shop_image", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\sprites\\casino-atlas-v1.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_sprites_casino_atlas_v1_image", + "target": "assets_textures_sprite_slot_frame_0_image", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\sprites\\casino-atlas-v1.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_textures_sprite_blackjack_table_image", + "target": "assets_textures_sprite_roulette_table_image", + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_blackjack_table.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_textures_sprite_roulette_table_image", + "target": "assets_textures_sprite_blackjack_table_image", + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_roulette_table.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_textures_sprite_bartender_shop_image", + "target": "assets_textures_sprite_blackjack_table_image", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.75, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_bartender_shop.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_textures_tex_wall_velvet_image", + "target": "assets_textures_tex_wall_stripclub_image", + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\tex_wall_velvet.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_textures_tex_wall_stripclub_image", + "target": "assets_textures_tex_wall_hell_image", + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\tex_wall_stripclub.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_textures_tex_wall_velvet_image", + "target": "assets_textures_tex_wall_hell_image", + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.75, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\tex_wall_velvet.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_textures_tex_floor_carpet_image", + "target": "assets_textures_tex_wall_velvet_image", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\tex_floor_carpet.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_textures_tex_floor_carpet_image", + "target": "assets_textures_tex_wall_stripclub_image", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.75, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\tex_floor_carpet.png", + "source_location": null, + "weight": 1.0 + }, + { + "source": "assets_icons_casino_preview_image", + "target": "assets_sprites_casino_atlas_v1_image", + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.75, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\icons\\casino_preview.png", + "source_location": null, + "weight": 1.0 + } + ], + "hyperedges": [ + { + "id": "he_p2p_multiplayer_architecture", + "label": "P2P Multiplayer Architecture", + "nodes": [ + "docs_online_radmin_host_authoritative", + "docs_online_radmin_p2p_socket", + "docs_roadmap_online_command_protocol" + ], + "relation": "implement", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\ONLINE_RADMIN.txt" + }, + { + "id": "he_save_integrity_protection", + "label": "Save File Integrity & Persistence Architecture", + "nodes": [ + "docs_security_notes_save_tamper_signature", + "graphify_out_converted_variables_documentation_3fc6d2dc_save_magic", + "идеи_appdata_saves" + ], + "relation": "form", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\SECURITY_NOTES.txt" + }, + { + "id": "he_release_packaging_verification", + "label": "Release Packaging & Verification Flow", + "nodes": [ + "docs_release_checklist_smoke_check", + "docs_release_checklist_installer_validation", + "docs_security_notes_sha256_payload_check" + ], + "relation": "implement", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\docs\\RELEASE_CHECKLIST.txt" + }, + { + "id": "cabaret_dancer_animation_set", + "label": "Cabaret Dancer Animation Sequence", + "nodes": [ + "assets_textures_sprite_dancer_frame_0_image", + "assets_textures_sprite_dancer_frame_1_image", + "assets_textures_sprite_dancer_frame_2_image", + "assets_textures_sprite_dancer_frame_3_image" + ], + "relation": "form", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\sprites\\cabaret-loop-v1.png" + }, + { + "id": "slot_machine_animation_set", + "label": "Slot Machine Reel Animation Sequence", + "nodes": [ + "assets_textures_sprite_slot_frame_0_image", + "assets_textures_sprite_slot_frame_1_image", + "assets_textures_sprite_slot_frame_2_image" + ], + "relation": "form", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_slot_frame_0.png" + }, + { + "id": "casino_wall_textures_set", + "label": "Casino Wall Textures Set", + "nodes": [ + "assets_textures_tex_wall_velvet_image", + "assets_textures_tex_wall_stripclub_image", + "assets_textures_tex_wall_hell_image" + ], + "relation": "form", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\tex_wall_velvet.png" + } + ], + "input_tokens": 0, + "output_tokens": 0 +} \ No newline at end of file diff --git a/graphify-out/.graphify_transcripts.json b/graphify-out/.graphify_transcripts.json new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/graphify-out/.graphify_transcripts.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/graphify-out/.graphify_uncached.txt b/graphify-out/.graphify_uncached.txt new file mode 100644 index 0000000..7faa2d8 --- /dev/null +++ b/graphify-out/.graphify_uncached.txt @@ -0,0 +1,35 @@ +E:\DEPAI IN 3D\KAZIK\AGENTS.md +E:\DEPAI IN 3D\KAZIK\CMakeLists.txt +E:\DEPAI IN 3D\KAZIK\README.md +E:\DEPAI IN 3D\KAZIK\assets\data\dealer_phrases.txt +E:\DEPAI IN 3D\KAZIK\docs\KNOWN_LIMITATIONS.txt +E:\DEPAI IN 3D\KAZIK\docs\ONLINE_RADMIN.txt +E:\DEPAI IN 3D\KAZIK\docs\README_RELEASE.txt +E:\DEPAI IN 3D\KAZIK\docs\RELEASE_CHECKLIST.txt +E:\DEPAI IN 3D\KAZIK\docs\ROADMAP.txt +E:\DEPAI IN 3D\KAZIK\docs\SECURITY_NOTES.txt +E:\DEPAI IN 3D\KAZIK\docs\casino_intro_preview.txt +E:\DEPAI IN 3D\KAZIK\docs\dbd_hook_static.txt +E:\DEPAI IN 3D\KAZIK\docs\revolver_small_preview.txt +E:\DEPAI IN 3D\KAZIK\docs\Новый текстовый документ.txt +E:\DEPAI IN 3D\KAZIK\docs\ЧИТКОДЫ.txt +E:\DEPAI IN 3D\KAZIK\graphify-out\converted\variables_documentation_3fc6d2dc.md +E:\DEPAI IN 3D\KAZIK\runtime\achievement.txt +E:\DEPAI IN 3D\KAZIK\ИДЕИ.txt +E:\DEPAI IN 3D\KAZIK\assets\icons\casino_preview.png +E:\DEPAI IN 3D\KAZIK\assets\sprites\cabaret-loop-v1.png +E:\DEPAI IN 3D\KAZIK\assets\sprites\casino-atlas-v1.png +E:\DEPAI IN 3D\KAZIK\assets\textures\sprite_bartender_shop.png +E:\DEPAI IN 3D\KAZIK\assets\textures\sprite_blackjack_table.png +E:\DEPAI IN 3D\KAZIK\assets\textures\sprite_dancer_frame_0.png +E:\DEPAI IN 3D\KAZIK\assets\textures\sprite_dancer_frame_1.png +E:\DEPAI IN 3D\KAZIK\assets\textures\sprite_dancer_frame_2.png +E:\DEPAI IN 3D\KAZIK\assets\textures\sprite_dancer_frame_3.png +E:\DEPAI IN 3D\KAZIK\assets\textures\sprite_roulette_table.png +E:\DEPAI IN 3D\KAZIK\assets\textures\sprite_slot_frame_0.png +E:\DEPAI IN 3D\KAZIK\assets\textures\sprite_slot_frame_1.png +E:\DEPAI IN 3D\KAZIK\assets\textures\sprite_slot_frame_2.png +E:\DEPAI IN 3D\KAZIK\assets\textures\tex_floor_carpet.png +E:\DEPAI IN 3D\KAZIK\assets\textures\tex_wall_hell.png +E:\DEPAI IN 3D\KAZIK\assets\textures\tex_wall_stripclub.png +E:\DEPAI IN 3D\KAZIK\assets\textures\tex_wall_velvet.png \ No newline at end of file diff --git a/graphify-out/.vocab.txt b/graphify-out/.vocab.txt new file mode 100644 index 0000000..cd61bd3 --- /dev/null +++ b/graphify-out/.vocab.txt @@ -0,0 +1,260 @@ +account +achievement +agents +all +and +animation +ansi +app +architecture +art +ascii +asm +assets +atlas +atm +attributes +authoritative +automated +backlog +backroom +bartender +bgra +binary +black +blackjack +blend +bottleneck +browser +buckshot +build +cabaret +calc +card +carpet +casino +catalog +ceiling +cells +charms +cheat +check +checklist +chromakey +clean +cleanup +clear +cloud +club +code +codes +color +command +complexity +configuration +console +constant +constants +cross +dancer +data +daylight +dbd +dead +dealer +definitions +dependency +development +dialogue +download +draw +durak +dwords +enable +encoding +engine +escape +expansion +expansions +fail +feature +file +float +floor +flow +font +frame +future +game +games +generate +get +glitch +graphic +graphics +guard +guide +hakari +handles +hash +heart +hell +hook +host +icon +idea +ideas +image +img +import +inc +init +installer +instructions +integrity +into +intro +kazik +key +known +lan +limitations +lobby +local +logic +login +loop +loss +machine +magic +main +make +map +masked +masm +math +mechanic +menu +migration +minigame +mode +model +multiplayer +nearest +neon +net +network +never +notes +online +outcome +over +pack +package +pass +password +patch +path +peer +phrases +pipeline +pixel +pixels +place +platform +play +poker +port +portable +posix +prefixes +preview +procedure +profiles +project +protocol +prototype +pyth +radmin +rate +raw +read +readme +reference +register +release +render +renderer +rendering +require +resize +revolver +risk +roadmap +room +roulette +runtime +russian +salted +save +screen +secret +security +set +sha +shake +sheet +shop +show +signature +signing +simulate +skill +slot +slots +smoke +snippet +source +spec +specification +sprite +standard +storage +stress +strip +support +sync +system +table +target +tcp +terminal +tex +text +texture +the +tournament +tower +tracker +transfer +traversal +umamusume +unified +uninstaller +upload +user +variables +velvet +verification +verify +visualization +vpn +wall +white +win +window +windows +wine +winsock +with +wood \ No newline at end of file diff --git a/graphify-out/GRAPH_REPORT.md b/graphify-out/GRAPH_REPORT.md new file mode 100644 index 0000000..0269271 --- /dev/null +++ b/graphify-out/GRAPH_REPORT.md @@ -0,0 +1,127 @@ +# Graph Report - . (2026-09-24) + +## Corpus Check +- 80 files · ~187,102 words +- Verdict: corpus is large enough that graph structure adds value. + +## Summary +- 147 nodes · 195 edges · 32 communities (28 shown, 4 thin omitted) +- Extraction: 78% EXTRACTED · 22% INFERRED · 0% AMBIGUOUS · INFERRED: 43 edges (avg confidence: 0.88) +- Token cost: 0 input · 0 output + +## Community Hubs (Navigation) +- Account & Cloud Sync System +- Portable Build & Networking +- Architecture Constraints & Roadmap +- Core Project & MASM Instructions +- 3D Asset Generation Pipeline +- Visual FX & Variables Spec +- Casino Sprite Atlas & Props +- Renderer Texture Slot Packer +- Cabaret Dancer Animation Sequence +- 3D Raycaster Environment Textures +- Release Verification Smoke Tests +- Dead by Daylight Helper Tool +- Hakari Dance Animation Previewer +- Skill Check Minigame & Reference +- Repository Overview & License + +## God Nodes (most connected - your core abstractions) +1. `net_lobby_menu()` - 10 edges +2. `main()` - 10 edges +3. `main()` - 9 edges +4. `account_register()` - 8 edges +5. `account_login()` - 8 edges +6. `calc_account_signature()` - 7 edges +7. `account_save()` - 7 edges +8. `account_import_transfer_key()` - 7 edges +9. `clear_screen()` - 6 edges +10. `account_cloud_sync_download()` - 6 edges + +## Surprising Connections (you probably didn't know these) +- `Console Cheat Codes System` --semantically_similar_to--> `Menu Cheat Code Definitions` [INFERRED] [semantically similar] + AGENTS.md → docs/ЧИТКОДЫ.txt +- `Win32 Winsock ws2_32 Dependency` --semantically_similar_to--> `Winsock TCP Port 27015 LAN Protocol` [INFERRED] [semantically similar] + CMakeLists.txt → docs/ONLINE_RADMIN.txt +- `Casino Games Catalog` --conceptually_related_to--> `Casino Games QA Verification` [INFERRED] + AGENTS.md → docs/RELEASE_CHECKLIST.txt +- `Windows Platform Dependency` --conceptually_related_to--> `MASM32 Build Pipeline` [INFERRED] + docs/KNOWN_LIMITATIONS.txt → AGENTS.md +- `CP1251 Console Encoding Standard` --rationale_for--> `Dealer Dialogue Phrases` [INFERRED] + AGENTS.md → assets/data/dealer_phrases.txt + +## Import Cycles +- None detected. + +## Hyperedges (group relationships) +- **P2P Multiplayer Architecture** — docs_online_radmin_host_authoritative, docs_online_radmin_p2p_socket, docs_roadmap_online_command_protocol [INFERRED 0.85] +- **Save File Integrity & Persistence Architecture** — docs_security_notes_save_tamper_signature, graphify_out_converted_variables_documentation_3fc6d2dc_save_magic, идеи_appdata_saves [INFERRED 0.85] +- **Release Packaging & Verification Flow** — docs_release_checklist_smoke_check, docs_release_checklist_installer_validation, docs_security_notes_sha256_payload_check [INFERRED 0.85] +- **Cabaret Dancer Animation Sequence** — assets_textures_sprite_dancer_frame_0_image, assets_textures_sprite_dancer_frame_1_image, assets_textures_sprite_dancer_frame_2_image, assets_textures_sprite_dancer_frame_3_image [INFERRED 0.95] +- **Slot Machine Reel Animation Sequence** — assets_textures_sprite_slot_frame_0_image, assets_textures_sprite_slot_frame_1_image, assets_textures_sprite_slot_frame_2_image [INFERRED 0.95] +- **Casino Wall Textures Set** — assets_textures_tex_wall_velvet_image, assets_textures_tex_wall_stripclub_image, assets_textures_tex_wall_hell_image [INFERRED 0.85] + +## Communities (32 total, 4 thin omitted) + +### Community 0 - "Account & Cloud Sync System" +Cohesion: 0.27 +Nodes (20): AccountData, account_cloud_sync_download(), account_cloud_sync_upload(), account_generate_transfer_key(), account_import_transfer_key(), account_login(), account_register(), account_save() (+12 more) + +### Community 1 - "Portable Build & Networking" +Cohesion: 0.11 +Nodes (18): CMake Portable Build Configuration, poker_portable Target, Win32 Winsock ws2_32 Dependency, Online Radmin VPN Guide, Host Authoritative Network Model, Winsock TCP Port 27015 LAN Protocol, Release Notes and User Guide, Release Package Architecture (+10 more) + +### Community 2 - "Architecture Constraints & Roadmap" +Cohesion: 0.15 +Nodes (14): Known Limitations Specification, ANSI Animation Console Bottleneck, Durak Card Logic Complexity Risk, Wine and CrossOver POSIX Support, Animation Rendering Profiles, Revolver ASCII Preview, Russian Roulette Revolver ASCII Graphics, Future Casino Expansions (+6 more) + +### Community 3 - "Core Project & MASM Instructions" +Cohesion: 0.17 +Nodes (12): AGENTS.md Project Instructions, Console Cheat Codes System, CP1251 Console Encoding Standard, Casino Games Catalog, MASM32 Build Pipeline, Dealer Dialogue Phrases, Win Loss Draw Outcome Prefixes, Windows Platform Dependency (+4 more) + +### Community 4 - "3D Asset Generation Pipeline" +Cohesion: 0.32 +Nodes (11): Image, clean_chromakey_black(), clean_chromakey_white(), img_to_raw_dwords(), main(), make_atm(), make_backroom_table(), make_carpet_floor() (+3 more) + +### Community 5 - "Visual FX & Variables Spec" +Cohesion: 0.18 +Nodes (11): ANSI Animation Assets Spec, Casino Intro ASCII Preview, Save File Salted Signature, Intro Glitch Prototype Snippet, Terminal Glitch and Screen Shake FX, ShowIntro Procedure Prototype, poker.asm Variables Reference, Console Color Attributes Constants (+3 more) + +### Community 6 - "Casino Sprite Atlas & Props" +Cohesion: 0.36 +Nodes (8): Casino Preview Icon, Casino Atlas Sprite Sheet, Bartender Shop Sprite, Blackjack Table Sprite, Roulette Table Sprite, Slot Machine Frame 0 Sprite, Slot Machine Frame 1 Sprite, Slot Machine Frame 2 Sprite + +### Community 7 - "Renderer Texture Slot Packer" +Cohesion: 0.53 +Nodes (5): cells(), main(), pack(), Pack project-local source art into the MASM renderer's 128px BGRA slots. Pyth, sprite() + +### Community 8 - "Cabaret Dancer Animation Sequence" +Cohesion: 0.80 +Nodes (5): Cabaret Loop Sprite Sheet, Dancer Animation Frame 0 Sprite, Dancer Animation Frame 1 Sprite, Dancer Animation Frame 2 Sprite, Dancer Animation Frame 3 Sprite + +### Community 9 - "3D Raycaster Environment Textures" +Cohesion: 0.83 +Nodes (4): Casino Carpet Floor Texture, Hell Wall Texture, Neon Strip Club Wall Texture, Velvet Wall Texture + +### Community 10 - "Release Verification Smoke Tests" +Cohesion: 0.83 +Nodes (3): Fail(), Pass(), Require-File() + +## Knowledge Gaps +- **14 isolated node(s):** `poker_portable Target`, `KAZIK Project Readme`, `Win Loss Draw Outcome Prefixes`, `Wine and CrossOver POSIX Support`, `Installer Path Traversal Guard` (+9 more) + These have ≤1 connection - possible missing edges or undocumented components. +- **4 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes. + +## Suggested Questions +_Questions this graph is uniquely positioned to answer:_ + +- **Why does `AGENTS.md Project Instructions` connect `Core Project & MASM Instructions` to `Visual FX & Variables Spec`?** + _High betweenness centrality (0.049) - this node is a cross-community bridge._ +- **Why does `Feature Backlog and Game Ideas` connect `Architecture Constraints & Roadmap` to `Visual FX & Variables Spec`?** + _High betweenness centrality (0.042) - this node is a cross-community bridge._ +- **Why does `Security Architecture Notes` connect `Portable Build & Networking` to `Visual FX & Variables Spec`?** + _High betweenness centrality (0.039) - this node is a cross-community bridge._ +- **What connects `poker_portable Target`, `KAZIK Project Readme`, `Win Loss Draw Outcome Prefixes` to the rest of the system?** + _14 weakly-connected nodes found - possible documentation gaps or missing edges._ +- **Should `Portable Build & Networking` be split into smaller, more focused modules?** + _Cohesion score 0.1111111111111111 - nodes in this community are weakly interconnected._ \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/0d8891501bfba3c351f82dabe23d79f38b69415391a8513cdb928bd7c13476d9.json b/graphify-out/cache/ast/v0.9.18/0d8891501bfba3c351f82dabe23d79f38b69415391a8513cdb928bd7c13476d9.json new file mode 100644 index 0000000..a5cfc75 --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/0d8891501bfba3c351f82dabe23d79f38b69415391a8513cdb928bd7c13476d9.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "label": "casino_portable.c", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L1"}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_platform_init", "label": "platform_init()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L14", "_callable": true}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_platform_cleanup", "label": "platform_cleanup()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L26", "_callable": true}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_clear_screen", "label": "clear_screen()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L32", "_callable": true}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_set_text_color", "label": "set_text_color()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L37", "_callable": true}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_read_masked_password", "label": "read_masked_password()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L42", "_callable": true}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_hash_password", "label": "hash_password()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L76", "_callable": true}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_calc_account_signature", "label": "calc_account_signature()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L89", "_callable": true}, {"id": "accountdata", "label": "AccountData", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "E:\\DEPAI IN 3D\\KAZIK\\src_portable\\casino_portable.c"}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_account_save", "label": "account_save()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L101", "_callable": true}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_account_register", "label": "account_register()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L114", "_callable": true}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "label": "account_login()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L141", "_callable": true}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_account_generate_transfer_key", "label": "account_generate_transfer_key()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L204", "_callable": true}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_account_import_transfer_key", "label": "account_import_transfer_key()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L211", "_callable": true}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_upload", "label": "account_cloud_sync_upload()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L237", "_callable": true}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_download", "label": "account_cloud_sync_download()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L248", "_callable": true}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_verify_peer_account_signature", "label": "verify_peer_account_signature()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L272", "_callable": true}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_render_lobby_browser", "label": "render_lobby_browser()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L278", "_callable": true}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_host_room_flow", "label": "host_room_flow()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L309", "_callable": true}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "label": "net_lobby_menu()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L341", "_callable": true}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "label": "play_umamusume()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L419", "_callable": true}, {"id": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "label": "main()", "file_type": "code", "source_file": "src_portable/casino_portable.c", "source_location": "L482", "_callable": true}], "edges": [{"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L7", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_platform_init", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L14", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_platform_cleanup", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L26", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_clear_screen", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L32", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_set_text_color", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L37", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_read_masked_password", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L42", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_hash_password", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L76", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_calc_account_signature", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L89", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_calc_account_signature", "target": "accountdata", "relation": "references", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L89", "weight": 1.0, "context": "parameter_type"}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_account_save", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L101", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_save", "target": "accountdata", "relation": "references", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L101", "weight": 1.0, "context": "parameter_type"}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_account_register", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L114", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_register", "target": "accountdata", "relation": "references", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L114", "weight": 1.0, "context": "parameter_type"}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L141", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "target": "accountdata", "relation": "references", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L141", "weight": 1.0, "context": "parameter_type"}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_account_generate_transfer_key", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L204", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_generate_transfer_key", "target": "accountdata", "relation": "references", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L204", "weight": 1.0, "context": "parameter_type"}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_account_import_transfer_key", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L211", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_import_transfer_key", "target": "accountdata", "relation": "references", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L211", "weight": 1.0, "context": "parameter_type"}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_upload", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L237", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_upload", "target": "accountdata", "relation": "references", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L237", "weight": 1.0, "context": "parameter_type"}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_download", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L248", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_download", "target": "accountdata", "relation": "references", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L248", "weight": 1.0, "context": "parameter_type"}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_verify_peer_account_signature", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L272", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_render_lobby_browser", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L278", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_host_room_flow", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L309", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_host_room_flow", "target": "accountdata", "relation": "references", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L309", "weight": 1.0, "context": "parameter_type"}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L341", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "target": "accountdata", "relation": "references", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L341", "weight": 1.0, "context": "parameter_type"}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L419", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "target": "accountdata", "relation": "references", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L419", "weight": 1.0, "context": "parameter_type"}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_c", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L482", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_save", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_calc_account_signature", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L108", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_register", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_clear_screen", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L115", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_register", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_read_masked_password", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L122", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_register", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_hash_password", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L126", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_register", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_calc_account_signature", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L130", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_register", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_account_save", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L132", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_clear_screen", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L142", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_read_masked_password", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L159", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_download", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L160", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_calc_account_signature", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L176", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_hash_password", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L188", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_import_transfer_key", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_hash_password", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L224", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_import_transfer_key", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_calc_account_signature", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L227", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_import_transfer_key", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_account_save", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L229", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_download", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_hash_password", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L258", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_download", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_calc_account_signature", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L262", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_download", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_account_save", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L264", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_render_lobby_browser", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_clear_screen", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L279", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_render_lobby_browser", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L344", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_host_room_flow", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L349", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_verify_peer_account_signature", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L370", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_upload", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L387", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_account_generate_transfer_key", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L393", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_read_masked_password", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L406", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_account_import_transfer_key", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L407", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_clear_screen", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L420", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_account_save", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L476", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_platform_init", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L483", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L499", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_account_register", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L501", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_read_masked_password", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L508", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_account_import_transfer_key", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L509", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_platform_cleanup", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L511", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_clear_screen", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L518", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L529", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "target": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.c", "source_location": "L531", "weight": 1.0}], "raw_calls": [{"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_platform_init", "callee": "WSAStartup", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L17", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_platform_init", "callee": "MAKEWORD", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L17", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_platform_init", "callee": "GetStdHandle", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L18", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_platform_init", "callee": "GetConsoleMode", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L20", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_platform_init", "callee": "SetConsoleMode", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L21", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_platform_init", "callee": "srand", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L23", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_platform_init", "callee": "time", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L23", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_platform_cleanup", "callee": "WSACleanup", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L28", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_clear_screen", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L33", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_clear_screen", "callee": "fflush", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L34", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_set_text_color", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L38", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_set_text_color", "callee": "fflush", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L39", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_read_masked_password", "callee": "_getch", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L47", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_read_masked_password", "callee": "tcgetattr", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L50", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_read_masked_password", "callee": "tcsetattr", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L53", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_read_masked_password", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L54", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_read_masked_password", "callee": "tcsetattr", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L55", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_read_masked_password", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L62", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_read_masked_password", "callee": "fflush", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L63", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_read_masked_password", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L67", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_read_masked_password", "callee": "fflush", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L68", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_read_masked_password", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L72", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_save", "callee": "snprintf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L103", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_save", "callee": "fopen", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L104", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_save", "callee": "fwrite", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L109", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_save", "callee": "fclose", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L110", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_register", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L116", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_register", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L117", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_register", "callee": "scanf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L118", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_register", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L121", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_register", "callee": "rand", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L125", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_register", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L133", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_register", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L134", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_register", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L135", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_register", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L135", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L143", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L145", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "scanf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L146", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "snprintf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L149", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "fopen", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L150", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L152", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L153", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "scanf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L155", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L158", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "fread", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L166", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "fclose", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L167", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L170", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L171", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L171", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L178", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L179", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L180", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L180", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L185", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L190", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L191", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L192", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L197", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L198", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_login", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L199", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_generate_transfer_key", "callee": "snprintf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L208", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_import_transfer_key", "callee": "sscanf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L213", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_import_transfer_key", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L214", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_import_transfer_key", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L218", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_import_transfer_key", "callee": "scanf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L219", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_import_transfer_key", "callee": "rand", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L223", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_import_transfer_key", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L230", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_upload", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L238", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_upload", "callee": "Sleep", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L240", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_upload", "callee": "usleep", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L242", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_upload", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L244", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_download", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L249", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_download", "callee": "Sleep", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L251", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_download", "callee": "usleep", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L253", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_download", "callee": "strncpy", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L256", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_download", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L265", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_download", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L266", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_account_cloud_sync_download", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L267", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_render_lobby_browser", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L280", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_render_lobby_browser", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L281", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_render_lobby_browser", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L282", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_render_lobby_browser", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L283", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_render_lobby_browser", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L284", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_render_lobby_browser", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L286", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_render_lobby_browser", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L289", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_render_lobby_browser", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L299", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_render_lobby_browser", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L300", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_render_lobby_browser", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L301", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_render_lobby_browser", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L302", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_render_lobby_browser", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L303", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_render_lobby_browser", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L304", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_render_lobby_browser", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L305", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_render_lobby_browser", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L306", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_host_room_flow", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L311", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_host_room_flow", "callee": "memset", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L315", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_host_room_flow", "callee": "strncpy", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L317", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_host_room_flow", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L319", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_host_room_flow", "callee": "scanf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L320", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_host_room_flow", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L321", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_host_room_flow", "callee": "scanf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L323", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_host_room_flow", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L326", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_host_room_flow", "callee": "scanf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L328", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_host_room_flow", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L331", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_host_room_flow", "callee": "scanf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L332", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_host_room_flow", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L336", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_host_room_flow", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L337", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_host_room_flow", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L338", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_host_room_flow", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L338", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "scanf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L345", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L352", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "scanf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L354", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L359", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "scanf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L360", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "strcmp", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L361", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L362", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L363", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L363", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "rand", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L368", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L369", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L371", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L372", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L372", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L377", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L378", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L379", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L379", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L381", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L382", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L382", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L388", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L389", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L389", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L394", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L395", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L396", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L397", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L397", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L403", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "scanf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L404", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L405", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L408", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_net_lobby_menu", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L409", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L421", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L422", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L423", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L424", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L425", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L426", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L427", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L428", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "scanf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L430", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L432", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "scanf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L434", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L436", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L444", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "rand", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L445", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "rand", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L446", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "rand", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L447", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "rand", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L448", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "rand", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L449", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L453", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L454", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L455", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "Sleep", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L459", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "usleep", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L461", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L465", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L470", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L474", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L477", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L478", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_play_umamusume", "callee": "getchar", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L478", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L485", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L486", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L487", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L491", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L492", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L493", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L494", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L495", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "scanf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L496", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L505", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "scanf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L506", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L507", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L519", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L520", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L521", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L522", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L523", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L524", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "printf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L525", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_src_portable_casino_portable_main", "callee": "scanf", "is_member_call": false, "source_file": "src_portable/casino_portable.c", "source_location": "L526", "receiver": null}]} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/0e20ce5f0da50b080a252db92e146b04fa951fe188d0fda9be8c78bd42a8bcbc.json b/graphify-out/cache/ast/v0.9.18/0e20ce5f0da50b080a252db92e146b04fa951fe188d0fda9be8c78bd42a8bcbc.json new file mode 100644 index 0000000..fe77afc --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/0e20ce5f0da50b080a252db92e146b04fa951fe188d0fda9be8c78bd42a8bcbc.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_tools_release_smoke_check_ps1", "label": "release_smoke_check.ps1", "file_type": "code", "source_file": "tools/release_smoke_check.ps1", "source_location": "L1"}, {"id": "e_depai_in_3d_kazik_tools_release_smoke_check_pass", "label": "Pass()", "file_type": "code", "source_file": "tools/release_smoke_check.ps1", "source_location": "L7"}, {"id": "e_depai_in_3d_kazik_tools_release_smoke_check_fail", "label": "Fail()", "file_type": "code", "source_file": "tools/release_smoke_check.ps1", "source_location": "L11"}, {"id": "e_depai_in_3d_kazik_tools_release_smoke_check_require_file", "label": "Require-File()", "file_type": "code", "source_file": "tools/release_smoke_check.ps1", "source_location": "L15"}], "edges": [{"source": "e_depai_in_3d_kazik_tools_release_smoke_check_ps1", "target": "e_depai_in_3d_kazik_tools_release_smoke_check_pass", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/release_smoke_check.ps1", "source_location": "L7", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_release_smoke_check_ps1", "target": "e_depai_in_3d_kazik_tools_release_smoke_check_fail", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/release_smoke_check.ps1", "source_location": "L11", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_release_smoke_check_ps1", "target": "e_depai_in_3d_kazik_tools_release_smoke_check_require_file", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/release_smoke_check.ps1", "source_location": "L15", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_release_smoke_check_require_file", "target": "e_depai_in_3d_kazik_tools_release_smoke_check_fail", "relation": "calls", "confidence": "EXTRACTED", "source_file": "tools/release_smoke_check.ps1", "source_location": "L18", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_release_smoke_check_require_file", "target": "e_depai_in_3d_kazik_tools_release_smoke_check_pass", "relation": "calls", "confidence": "EXTRACTED", "source_file": "tools/release_smoke_check.ps1", "source_location": "L20", "weight": 1.0}], "raw_calls": [{"caller_nid": "e_depai_in_3d_kazik_tools_release_smoke_check_pass", "callee": "Write-Host", "is_member_call": false, "source_file": "tools/release_smoke_check.ps1", "source_location": "L8"}, {"caller_nid": "e_depai_in_3d_kazik_tools_release_smoke_check_require_file", "callee": "Join-Path", "is_member_call": false, "source_file": "tools/release_smoke_check.ps1", "source_location": "L16"}, {"caller_nid": "e_depai_in_3d_kazik_tools_release_smoke_check_require_file", "callee": "Test-Path", "is_member_call": false, "source_file": "tools/release_smoke_check.ps1", "source_location": "L17"}]} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/138dda071059ae037e9972bdbc63d21f3a33a18ca102faa52fb8cac0b644be35.json b/graphify-out/cache/ast/v0.9.18/138dda071059ae037e9972bdbc63d21f3a33a18ca102faa52fb8cac0b644be35.json new file mode 100644 index 0000000..91c60a9 --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/138dda071059ae037e9972bdbc63d21f3a33a18ca102faa52fb8cac0b644be35.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "label": "platform_code.inc", "file_type": "code", "source_file": "src_graphics/platform_code.inc", "source_location": "L1"}], "edges": [{"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "dword", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "umsg", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "event_key_down", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "cmp", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "event_fullscreen", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "event_key_up", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "event_focus_lost", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "event_erase", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "event_paint", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "wm_close", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "wm_destroy", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "hwnd", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "wp", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "ecx", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "event_done", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "mov", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "edi", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "keys3d", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "eax", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "beginpaint", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "paint3d", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "endpaint", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "getmodulefilenamea", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "directory3d", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "esi", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "test", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "path_found", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "path_scan", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "setcurrentdirectorya", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "sztexturesrelpath", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "path_done", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L2", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "getmodulehandlea", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "user32name3d", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "dpiname3d", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "h3dinst", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "wc3d_hinstance", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "loadicona", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "wc3d_hicon", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "wc3d_hiconsm", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "loadcursora", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "wc3d_hcursor", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "wc3d_cbsize", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "c3d_wndclassex_mov_wc3d_style", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "wc3d_lpfnwndproc", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "casino3dwndproc_mov_wc3d_lpszclassname", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "sz3dclassname", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "bmi3d_bmiheader_bisize", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "c3d_bitmapinfoheader_mov_bmi3d_bmiheader_biwidth", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "screen_w_mov_bmi3d_bmiheader_biheight", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "bmi3d_bmiheader_biplanes", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "bmi3d_bmiheader_bibitcount", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "bmi3d_bmiheader_bisizeimage", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "getsystemmetrics", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "widthpx", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "heightpx", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "edx", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "adjustwindowrectex", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "clientrect3d", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "ws_overlappedwindow", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L109", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "createfilea", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L193", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "assets_failed", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L193", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "readfile", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L193", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "ebx", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L193", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "texturesbuffer", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L193", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "count", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L193", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "closehandle", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L193", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "messageboxa", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L193", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "h3dwnd", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L193", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "textmissing3d", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L193", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "sz3dwindowtitle", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L193", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "getclientrect", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L193", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "fullscreen3d", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L268", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "restore_window", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L268", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "savedrect3d", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L268", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "getmonitorinfoa", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L268", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "monitor3d", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L268", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "setwindowlonga", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L268", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "playerangle", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L296", "weight": 1.0, "context": "import"}, {"source": "e_depai_in_3d_kazik_src_graphics_platform_code_inc", "target": "tablecos", "relation": "imports", "confidence": "EXTRACTED", "source_file": "src_graphics/platform_code.inc", "source_location": "L296", "weight": 1.0, "context": "import"}], "input_tokens": 0, "output_tokens": 0, "raw_calls": []} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/17cce3e69a6245d4d8d4d48847de44d32b433568a6007f81701b2f9ee3ce0455.json b/graphify-out/cache/ast/v0.9.18/17cce3e69a6245d4d8d4d48847de44d32b433568a6007f81701b2f9ee3ce0455.json new file mode 100644 index 0000000..d116e6e --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/17cce3e69a6245d4d8d4d48847de44d32b433568a6007f81701b2f9ee3ce0455.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_casino3d_inc", "label": "casino3d.inc", "file_type": "code", "source_file": "casino3d.inc", "source_location": "L1"}], "edges": [], "input_tokens": 0, "output_tokens": 0, "raw_calls": []} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/1ad632faebe559e783b0064c2338a3678043ddd3ae85cdaa79f1c27f00d6fdcf.json b/graphify-out/cache/ast/v0.9.18/1ad632faebe559e783b0064c2338a3678043ddd3ae85cdaa79f1c27f00d6fdcf.json new file mode 100644 index 0000000..c4371b0 --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/1ad632faebe559e783b0064c2338a3678043ddd3ae85cdaa79f1c27f00d6fdcf.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_tools_build_all_3d_py", "label": "build_all_3d.py", "file_type": "code", "source_file": "tools/build_all_3d.py", "source_location": "L1"}, {"id": "e_depai_in_3d_kazik_tools_build_all_3d_a", "label": "a()", "file_type": "code", "source_file": "tools/build_all_3d.py", "source_location": "L7", "_callable": true}], "edges": [{"source": "e_depai_in_3d_kazik_tools_build_all_3d_py", "target": "sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/build_all_3d.py", "source_location": "L2", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_all_3d_py", "target": "e_depai_in_3d_kazik_tools_build_all_3d_a", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/build_all_3d.py", "source_location": "L7", "weight": 1.0}], "raw_calls": [{"caller_nid": "e_depai_in_3d_kazik_tools_build_all_3d_a", "callee": "append", "is_member_call": true, "source_file": "tools/build_all_3d.py", "source_location": "L8", "receiver": "code_chunks"}]} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/260c7d561bd484ebf4a0b7f05ce9e48f9b4a7f701ce3500521befbc805a35c9a.json b/graphify-out/cache/ast/v0.9.18/260c7d561bd484ebf4a0b7f05ce9e48f9b4a7f701ce3500521befbc805a35c9a.json new file mode 100644 index 0000000..abfa4bd --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/260c7d561bd484ebf4a0b7f05ce9e48f9b4a7f701ce3500521befbc805a35c9a.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_font8x8_inc", "label": "font8x8.inc", "file_type": "code", "source_file": "font8x8.inc", "source_location": "L1"}], "edges": [], "input_tokens": 0, "output_tokens": 0, "raw_calls": []} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/47fa3293a06711be74c2f14c52bd460dcd78bb98289e988d575ab8e9e01ad54c.json b/graphify-out/cache/ast/v0.9.18/47fa3293a06711be74c2f14c52bd460dcd78bb98289e988d575ab8e9e01ad54c.json new file mode 100644 index 0000000..ccd4c2b --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/47fa3293a06711be74c2f14c52bd460dcd78bb98289e988d575ab8e9e01ad54c.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_tools_generate_math_and_map_py", "label": "generate_math_and_map.py", "file_type": "code", "source_file": "tools/generate_math_and_map.py", "source_location": "L1"}, {"id": "e_depai_in_3d_kazik_tools_generate_math_and_map_float_to_fp", "label": "float_to_fp()", "file_type": "code", "source_file": "tools/generate_math_and_map.py", "source_location": "L7", "_callable": true}], "edges": [{"source": "e_depai_in_3d_kazik_tools_generate_math_and_map_py", "target": "math", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/generate_math_and_map.py", "source_location": "L1", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_generate_math_and_map_py", "target": "e_depai_in_3d_kazik_tools_generate_math_and_map_float_to_fp", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/generate_math_and_map.py", "source_location": "L7", "weight": 1.0}], "raw_calls": []} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/4bf4afc73df542d7e831d4468cda9e2112319bdaf8c89ea20b4c49ac55520a2a.json b/graphify-out/cache/ast/v0.9.18/4bf4afc73df542d7e831d4468cda9e2112319bdaf8c89ea20b4c49ac55520a2a.json new file mode 100644 index 0000000..4ad242b --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/4bf4afc73df542d7e831d4468cda9e2112319bdaf8c89ea20b4c49ac55520a2a.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_src_graphics_renderer_inc", "label": "renderer.inc", "file_type": "code", "source_file": "src_graphics/renderer.inc", "source_location": "L1"}], "edges": [], "input_tokens": 0, "output_tokens": 0, "raw_calls": []} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/4ededd1f62dfbf46792345c3be39b7d8b349dafb88ee476878ac7d8e4e95fcdb.json b/graphify-out/cache/ast/v0.9.18/4ededd1f62dfbf46792345c3be39b7d8b349dafb88ee476878ac7d8e4e95fcdb.json new file mode 100644 index 0000000..e4b1a9f --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/4ededd1f62dfbf46792345c3be39b7d8b349dafb88ee476878ac7d8e4e95fcdb.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_casino3d_data_inc", "label": "casino3d_data.inc", "file_type": "code", "source_file": "casino3d_data.inc", "source_location": "L1"}], "edges": [], "input_tokens": 0, "output_tokens": 0, "raw_calls": []} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/531a442e9e0c8f0c7c6ac0060e327d86319cf01167962564fddb4ef445029606.json b/graphify-out/cache/ast/v0.9.18/531a442e9e0c8f0c7c6ac0060e327d86319cf01167962564fddb4ef445029606.json new file mode 100644 index 0000000..5b19e10 --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/531a442e9e0c8f0c7c6ac0060e327d86319cf01167962564fddb4ef445029606.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_tools_build_casino_assets_py", "label": "build_casino_assets.py", "file_type": "code", "source_file": "tools/build_casino_assets.py", "source_location": "L1"}, {"id": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_black", "label": "clean_chromakey_black()", "file_type": "code", "source_file": "tools/build_casino_assets.py", "source_location": "L14", "_callable": true}, {"id": "image", "label": "Image", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "E:\\DEPAI IN 3D\\KAZIK\\tools\\build_casino_assets.py"}, {"id": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_white", "label": "clean_chromakey_white()", "file_type": "code", "source_file": "tools/build_casino_assets.py", "source_location": "L25", "_callable": true}, {"id": "e_depai_in_3d_kazik_tools_build_casino_assets_img_to_raw_dwords", "label": "img_to_raw_dwords()", "file_type": "code", "source_file": "tools/build_casino_assets.py", "source_location": "L35", "_callable": true}, {"id": "e_depai_in_3d_kazik_tools_build_casino_assets_make_wood_wall", "label": "make_wood_wall()", "file_type": "code", "source_file": "tools/build_casino_assets.py", "source_location": "L46", "_callable": true}, {"id": "e_depai_in_3d_kazik_tools_build_casino_assets_make_carpet_floor", "label": "make_carpet_floor()", "file_type": "code", "source_file": "tools/build_casino_assets.py", "source_location": "L60", "_callable": true}, {"id": "e_depai_in_3d_kazik_tools_build_casino_assets_make_ceiling_tex", "label": "make_ceiling_tex()", "file_type": "code", "source_file": "tools/build_casino_assets.py", "source_location": "L80", "_callable": true}, {"id": "e_depai_in_3d_kazik_tools_build_casino_assets_make_atm", "label": "make_atm()", "file_type": "code", "source_file": "tools/build_casino_assets.py", "source_location": "L101", "_callable": true}, {"id": "e_depai_in_3d_kazik_tools_build_casino_assets_make_backroom_table", "label": "make_backroom_table()", "file_type": "code", "source_file": "tools/build_casino_assets.py", "source_location": "L120", "_callable": true}, {"id": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "label": "main()", "file_type": "code", "source_file": "tools/build_casino_assets.py", "source_location": "L140", "_callable": true}, {"id": "e_depai_in_3d_kazik_tools_build_casino_assets_rationale_15", "label": "Resize with NEAREST so pixels never blend with chromakey!", "file_type": "rationale", "source_file": "tools/build_casino_assets.py", "source_location": "L15"}], "edges": [{"source": "e_depai_in_3d_kazik_tools_build_casino_assets_py", "target": "os", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L1", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_py", "target": "pathlib", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L2", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_py", "target": "pil", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L3", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_py", "target": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_black", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L14", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_black", "target": "image", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L14", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_black", "target": "image", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L14", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_py", "target": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_white", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L25", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_white", "target": "image", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L25", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_white", "target": "image", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L25", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_py", "target": "e_depai_in_3d_kazik_tools_build_casino_assets_img_to_raw_dwords", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L35", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_img_to_raw_dwords", "target": "image", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L35", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_py", "target": "e_depai_in_3d_kazik_tools_build_casino_assets_make_wood_wall", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L46", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_py", "target": "e_depai_in_3d_kazik_tools_build_casino_assets_make_carpet_floor", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L60", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_py", "target": "e_depai_in_3d_kazik_tools_build_casino_assets_make_ceiling_tex", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L80", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_py", "target": "e_depai_in_3d_kazik_tools_build_casino_assets_make_atm", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L101", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_py", "target": "e_depai_in_3d_kazik_tools_build_casino_assets_make_backroom_table", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L120", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_py", "target": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L140", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "target": "e_depai_in_3d_kazik_tools_build_casino_assets_img_to_raw_dwords", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L148", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "target": "e_depai_in_3d_kazik_tools_build_casino_assets_make_wood_wall", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L150", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "target": "e_depai_in_3d_kazik_tools_build_casino_assets_make_carpet_floor", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L166", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "target": "e_depai_in_3d_kazik_tools_build_casino_assets_make_ceiling_tex", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L177", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "target": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_black", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L190", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "target": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_white", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L208", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "target": "e_depai_in_3d_kazik_tools_build_casino_assets_make_atm", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L223", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "target": "e_depai_in_3d_kazik_tools_build_casino_assets_make_backroom_table", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L226", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_casino_assets_rationale_15", "target": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_black", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "tools/build_casino_assets.py", "source_location": "L15", "weight": 1.0}], "raw_calls": [{"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_black", "callee": "convert", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L16", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_black", "callee": "resize", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L16", "receiver": "img"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_black", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "tools/build_casino_assets.py", "source_location": "L16"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_black", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "tools/build_casino_assets.py", "source_location": "L16"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_black", "callee": "load", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L17", "receiver": "img"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_black", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/build_casino_assets.py", "source_location": "L18"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_black", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/build_casino_assets.py", "source_location": "L19"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_black", "callee": "CHROMAKEY", "is_member_call": false, "indirect": true, "context": "assignment", "source_file": "tools/build_casino_assets.py", "source_location": "L22"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_white", "callee": "convert", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L26", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_white", "callee": "resize", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L26", "receiver": "img"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_white", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "tools/build_casino_assets.py", "source_location": "L26"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_white", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "tools/build_casino_assets.py", "source_location": "L26"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_white", "callee": "load", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L27", "receiver": "img"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_white", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/build_casino_assets.py", "source_location": "L28"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_white", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/build_casino_assets.py", "source_location": "L29"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_clean_chromakey_white", "callee": "CHROMAKEY", "is_member_call": false, "indirect": true, "context": "assignment", "source_file": "tools/build_casino_assets.py", "source_location": "L32"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_img_to_raw_dwords", "callee": "convert", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L36", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_img_to_raw_dwords", "callee": "resize", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L36", "receiver": "img"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_img_to_raw_dwords", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "tools/build_casino_assets.py", "source_location": "L36"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_img_to_raw_dwords", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "tools/build_casino_assets.py", "source_location": "L36"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_img_to_raw_dwords", "callee": "bytearray", "is_member_call": false, "source_file": "tools/build_casino_assets.py", "source_location": "L37", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_img_to_raw_dwords", "callee": "load", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L38", "receiver": "img"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_img_to_raw_dwords", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/build_casino_assets.py", "source_location": "L39"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_img_to_raw_dwords", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/build_casino_assets.py", "source_location": "L40"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_img_to_raw_dwords", "callee": "extend", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L43", "receiver": "data"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_wood_wall", "callee": "bytearray", "is_member_call": false, "source_file": "tools/build_casino_assets.py", "source_location": "L47", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_wood_wall", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/build_casino_assets.py", "source_location": "L48"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_wood_wall", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/build_casino_assets.py", "source_location": "L49"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_wood_wall", "callee": "extend", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L57", "receiver": "data"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_carpet_floor", "callee": "bytearray", "is_member_call": false, "source_file": "tools/build_casino_assets.py", "source_location": "L61", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_carpet_floor", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/build_casino_assets.py", "source_location": "L62"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_carpet_floor", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/build_casino_assets.py", "source_location": "L63"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_carpet_floor", "callee": "extend", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L77", "receiver": "data"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_ceiling_tex", "callee": "bytearray", "is_member_call": false, "source_file": "tools/build_casino_assets.py", "source_location": "L81", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_ceiling_tex", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/build_casino_assets.py", "source_location": "L82"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_ceiling_tex", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/build_casino_assets.py", "source_location": "L83"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_ceiling_tex", "callee": "extend", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L98", "receiver": "data"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_atm", "callee": "bytearray", "is_member_call": false, "source_file": "tools/build_casino_assets.py", "source_location": "L102", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_atm", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/build_casino_assets.py", "source_location": "L103"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_atm", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/build_casino_assets.py", "source_location": "L104"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_atm", "callee": "CHROMAKEY", "is_member_call": false, "indirect": true, "context": "assignment", "source_file": "tools/build_casino_assets.py", "source_location": "L106"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_atm", "callee": "extend", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L117", "receiver": "data"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_backroom_table", "callee": "bytearray", "is_member_call": false, "source_file": "tools/build_casino_assets.py", "source_location": "L121", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_backroom_table", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/build_casino_assets.py", "source_location": "L122"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_backroom_table", "callee": "TEX_SIZE", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/build_casino_assets.py", "source_location": "L123"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_backroom_table", "callee": "CHROMAKEY", "is_member_call": false, "indirect": true, "context": "assignment", "source_file": "tools/build_casino_assets.py", "source_location": "L125"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_backroom_table", "callee": "CHROMAKEY", "is_member_call": false, "indirect": true, "context": "assignment", "source_file": "tools/build_casino_assets.py", "source_location": "L136"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_make_backroom_table", "callee": "extend", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L137", "receiver": "data"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "mkdir", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L141", "receiver": "OUT_DIR"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "exists", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L146", "receiver": "velvet_path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "exists", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L154", "receiver": "neon_path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "exists", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L162", "receiver": "carpet_path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "exists", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L170", "receiver": "hell_path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "exists", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L184", "receiver": "dancer_path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "convert", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L185", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "crop", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L189", "receiver": "sheet"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "exists", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L195", "receiver": "slot_path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "convert", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L196", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "crop", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L200", "receiver": "sheet"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "exists", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L206", "receiver": "bj_path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "exists", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L212", "receiver": "roul_path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "exists", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L218", "receiver": "shop_path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "OUT_BIN", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/build_casino_assets.py", "source_location": "L230"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "TOTAL_SLOTS", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/build_casino_assets.py", "source_location": "L231"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "get", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L232", "receiver": "atlas"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "get", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L232", "receiver": "atlas"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "ljust", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L234", "receiver": "data"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "write", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L235", "receiver": "f"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_casino_assets_main", "callee": "stat", "is_member_call": true, "source_file": "tools/build_casino_assets.py", "source_location": "L237", "receiver": "OUT_BIN"}]} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/5f3f8a091f85d4da2b6a9052a2747b45b06443907eb422c671c5f4ccbcf71968.json b/graphify-out/cache/ast/v0.9.18/5f3f8a091f85d4da2b6a9052a2747b45b06443907eb422c671c5f4ccbcf71968.json new file mode 100644 index 0000000..6835fe7 --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/5f3f8a091f85d4da2b6a9052a2747b45b06443907eb422c671c5f4ccbcf71968.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_tools_generate_unified_casino3d_py", "label": "generate_unified_casino3d.py", "file_type": "code", "source_file": "tools/generate_unified_casino3d.py", "source_location": "L1"}], "edges": [{"source": "e_depai_in_3d_kazik_tools_generate_unified_casino3d_py", "target": "sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/generate_unified_casino3d.py", "source_location": "L3", "weight": 1.0}], "raw_calls": []} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/60e4e6059cb5be35a945d8b9587c012aeb99180bbc671d58513b58b454e7452d.json b/graphify-out/cache/ast/v0.9.18/60e4e6059cb5be35a945d8b9587c012aeb99180bbc671d58513b58b454e7452d.json new file mode 100644 index 0000000..6d2864e --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/60e4e6059cb5be35a945d8b9587c012aeb99180bbc671d58513b58b454e7452d.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_tools_build_graphics_assets_py", "label": "build_graphics_assets.py", "file_type": "code", "source_file": "tools/build_graphics_assets.py", "source_location": "L1"}, {"id": "e_depai_in_3d_kazik_tools_build_graphics_assets_cells", "label": "cells()", "file_type": "code", "source_file": "tools/build_graphics_assets.py", "source_location": "L15", "_callable": true}, {"id": "e_depai_in_3d_kazik_tools_build_graphics_assets_sprite", "label": "sprite()", "file_type": "code", "source_file": "tools/build_graphics_assets.py", "source_location": "L22", "_callable": true}, {"id": "e_depai_in_3d_kazik_tools_build_graphics_assets_pack", "label": "pack()", "file_type": "code", "source_file": "tools/build_graphics_assets.py", "source_location": "L32", "_callable": true}, {"id": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "label": "main()", "file_type": "code", "source_file": "tools/build_graphics_assets.py", "source_location": "L41", "_callable": true}, {"id": "e_depai_in_3d_kazik_tools_build_graphics_assets_rationale_1", "label": "Pack project-local source art into the MASM renderer's 128px BGRA slots. Pyth", "file_type": "rationale", "source_file": "tools/build_graphics_assets.py", "source_location": "L1"}], "edges": [{"source": "e_depai_in_3d_kazik_tools_build_graphics_assets_py", "target": "pathlib", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/build_graphics_assets.py", "source_location": "L6", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_graphics_assets_py", "target": "pil", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/build_graphics_assets.py", "source_location": "L7", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_graphics_assets_py", "target": "e_depai_in_3d_kazik_tools_build_graphics_assets_cells", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/build_graphics_assets.py", "source_location": "L15", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_graphics_assets_py", "target": "e_depai_in_3d_kazik_tools_build_graphics_assets_sprite", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/build_graphics_assets.py", "source_location": "L22", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_graphics_assets_py", "target": "e_depai_in_3d_kazik_tools_build_graphics_assets_pack", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/build_graphics_assets.py", "source_location": "L32", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_graphics_assets_py", "target": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/build_graphics_assets.py", "source_location": "L41", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "target": "e_depai_in_3d_kazik_tools_build_graphics_assets_cells", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/build_graphics_assets.py", "source_location": "L50", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "target": "e_depai_in_3d_kazik_tools_build_graphics_assets_sprite", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/build_graphics_assets.py", "source_location": "L54", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "target": "e_depai_in_3d_kazik_tools_build_graphics_assets_pack", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/build_graphics_assets.py", "source_location": "L62", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_build_graphics_assets_rationale_1", "target": "e_depai_in_3d_kazik_tools_build_graphics_assets_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "tools/build_graphics_assets.py", "source_location": "L1", "weight": 1.0}], "raw_calls": [{"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_cells", "callee": "convert", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L16", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_cells", "callee": "crop", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L17", "receiver": "image"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_sprite", "callee": "resize", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L25", "receiver": "cell"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_sprite", "callee": "new", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L27", "receiver": "Image"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_sprite", "callee": "SIZE", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "tools/build_graphics_assets.py", "source_location": "L27"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_sprite", "callee": "SIZE", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "tools/build_graphics_assets.py", "source_location": "L27"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_sprite", "callee": "alpha_composite", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L28", "receiver": "out"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_pack", "callee": "bytearray", "is_member_call": false, "source_file": "tools/build_graphics_assets.py", "source_location": "L33", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_pack", "callee": "getdata", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L34", "receiver": "image"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_pack", "callee": "CHROMA", "is_member_call": false, "indirect": true, "context": "assignment", "source_file": "tools/build_graphics_assets.py", "source_location": "L36"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_pack", "callee": "extend", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L37", "receiver": "result"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "callee": "read_bytes", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L42", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "callee": "SLOTS", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/build_graphics_assets.py", "source_location": "L45"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "callee": "frombytes", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L46", "receiver": "Image"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "callee": "putalpha", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L48", "receiver": "tile"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "callee": "append", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L49", "receiver": "textures"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "callee": "resize", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L49", "receiver": "tile"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "callee": "SIZE", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "tools/build_graphics_assets.py", "source_location": "L49"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "callee": "SIZE", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "tools/build_graphics_assets.py", "source_location": "L49"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "callee": "items", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L55", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "callee": "putalpha", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L59", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "callee": "items", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L60", "receiver": "sprites"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "callee": "join", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L62", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "callee": "write_bytes", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L65", "receiver": "target"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "callee": "new", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L66", "receiver": "Image"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "callee": "alpha_composite", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L68", "receiver": "preview"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "callee": "save", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L69", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "callee": "convert", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L69", "receiver": "preview"}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "callee": "resize", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L70", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_build_graphics_assets_main", "callee": "save", "is_member_call": true, "source_file": "tools/build_graphics_assets.py", "source_location": "L72", "receiver": null}]} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/75c60a1a5818b18c7cfa072c4708a27bf2d7320e67804d80b42835798ca957c5.json b/graphify-out/cache/ast/v0.9.18/75c60a1a5818b18c7cfa072c4708a27bf2d7320e67804d80b42835798ca957c5.json new file mode 100644 index 0000000..4ab020f --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/75c60a1a5818b18c7cfa072c4708a27bf2d7320e67804d80b42835798ca957c5.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_tools_simulate_render_py", "label": "simulate_render.py", "file_type": "code", "source_file": "tools/simulate_render.py", "source_location": "L1"}, {"id": "e_depai_in_3d_kazik_tools_simulate_render_get_tex_pixel", "label": "get_tex_pixel()", "file_type": "code", "source_file": "tools/simulate_render.py", "source_location": "L40", "_callable": true}], "edges": [{"source": "e_depai_in_3d_kazik_tools_simulate_render_py", "target": "math", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/simulate_render.py", "source_location": "L2", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_simulate_render_py", "target": "struct", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/simulate_render.py", "source_location": "L3", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_simulate_render_py", "target": "pil", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/simulate_render.py", "source_location": "L4", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_simulate_render_py", "target": "re", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/simulate_render.py", "source_location": "L19", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_simulate_render_py", "target": "e_depai_in_3d_kazik_tools_simulate_render_get_tex_pixel", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/simulate_render.py", "source_location": "L40", "weight": 1.0}], "raw_calls": []} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/7627c17a45c6dc182aa6d5405eb8d8bf6242e0a79147b3c96085a23c99422493.json b/graphify-out/cache/ast/v0.9.18/7627c17a45c6dc182aa6d5405eb8d8bf6242e0a79147b3c96085a23c99422493.json new file mode 100644 index 0000000..588b74a --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/7627c17a45c6dc182aa6d5405eb8d8bf6242e0a79147b3c96085a23c99422493.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_tools_preview_dbd_hook_py", "label": "preview_dbd_hook.py", "file_type": "code", "source_file": "tools/preview_dbd_hook.py", "source_location": "L1"}, {"id": "e_depai_in_3d_kazik_tools_preview_dbd_hook_place_window", "label": "place_window()", "file_type": "code", "source_file": "tools/preview_dbd_hook.py", "source_location": "L12", "_callable": true}, {"id": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "label": "main()", "file_type": "code", "source_file": "tools/preview_dbd_hook.py", "source_location": "L27", "_callable": true}], "edges": [{"source": "e_depai_in_3d_kazik_tools_preview_dbd_hook_py", "target": "pathlib", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/preview_dbd_hook.py", "source_location": "L1", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_preview_dbd_hook_py", "target": "ctypes", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/preview_dbd_hook.py", "source_location": "L2", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_preview_dbd_hook_py", "target": "os", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/preview_dbd_hook.py", "source_location": "L3", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_preview_dbd_hook_py", "target": "sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/preview_dbd_hook.py", "source_location": "L4", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_preview_dbd_hook_py", "target": "time", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/preview_dbd_hook.py", "source_location": "L5", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_preview_dbd_hook_py", "target": "e_depai_in_3d_kazik_tools_preview_dbd_hook_place_window", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/preview_dbd_hook.py", "source_location": "L12", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_preview_dbd_hook_py", "target": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/preview_dbd_hook.py", "source_location": "L27", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "target": "e_depai_in_3d_kazik_tools_preview_dbd_hook_place_window", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/preview_dbd_hook.py", "source_location": "L39", "weight": 1.0}], "raw_calls": [{"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_place_window", "callee": "GetConsoleWindow", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L15", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_place_window", "callee": "GetSystemMetrics", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L17", "receiver": "user32"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_place_window", "callee": "SetWindowPos", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L22", "receiver": "user32"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "resolve", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L28", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "Path", "is_member_call": false, "source_file": "tools/preview_dbd_hook.py", "source_location": "L28", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "__file__", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/preview_dbd_hook.py", "source_location": "L28"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "exists", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L31", "receiver": "path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "exists", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L35", "receiver": "stop_path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "unlink", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L36", "receiver": "stop_path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "system", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L38", "receiver": "os"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "split", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L40", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "FRAME_SEPARATOR", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/preview_dbd_hook.py", "source_location": "L40"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "read_text", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L40", "receiver": "path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "exists", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L42", "receiver": "stop_path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "exists", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L44", "receiver": "stop_path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "system", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L46", "receiver": "os"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "write", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L47", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "flush", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L48", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "sleep", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L49", "receiver": "time"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "FRAME_DELAY", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/preview_dbd_hook.py", "source_location": "L49"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "write", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L51", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "flush", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L52", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "exists", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L53", "receiver": "stop_path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_dbd_hook_main", "callee": "unlink", "is_member_call": true, "source_file": "tools/preview_dbd_hook.py", "source_location": "L54", "receiver": "stop_path"}]} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/7b7850caf79296f29325be3bb73d1e5ab22f7b02fc200f7450304d888b68bbf1.json b/graphify-out/cache/ast/v0.9.18/7b7850caf79296f29325be3bb73d1e5ab22f7b02fc200f7450304d888b68bbf1.json new file mode 100644 index 0000000..0516580 --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/7b7850caf79296f29325be3bb73d1e5ab22f7b02fc200f7450304d888b68bbf1.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_tools_make_casino3d_py", "label": "make_casino3d.py", "file_type": "code", "source_file": "tools/make_casino3d.py", "source_location": "L1"}], "edges": [], "raw_calls": []} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/7f720d61b49719534794328d3012acd593e9c8627cbd6520c573c8c5d9435d93.json b/graphify-out/cache/ast/v0.9.18/7f720d61b49719534794328d3012acd593e9c8627cbd6520c573c8c5d9435d93.json new file mode 100644 index 0000000..5178571 --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/7f720d61b49719534794328d3012acd593e9c8627cbd6520c573c8c5d9435d93.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_src_graphics_platform_data_inc", "label": "platform_data.inc", "file_type": "code", "source_file": "src_graphics/platform_data.inc", "source_location": "L1"}], "edges": [], "input_tokens": 0, "output_tokens": 0, "raw_calls": []} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/96a2e9b3fe3a64c41bfd8ced2675141be58d38619b85c57183a0c5a9ea69d3a3.json b/graphify-out/cache/ast/v0.9.18/96a2e9b3fe3a64c41bfd8ced2675141be58d38619b85c57183a0c5a9ea69d3a3.json new file mode 100644 index 0000000..a1d6673 --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/96a2e9b3fe3a64c41bfd8ced2675141be58d38619b85c57183a0c5a9ea69d3a3.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_tools_build_engine_py", "label": "build_engine.py", "file_type": "code", "source_file": "tools/build_engine.py", "source_location": "L1"}], "edges": [{"source": "e_depai_in_3d_kazik_tools_build_engine_py", "target": "sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/build_engine.py", "source_location": "L2", "weight": 1.0}], "raw_calls": []} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/af3c3463623a9dc11fb58dc537a2a0249ea08f2b4ee51dba135bb416c69e8d9f.json b/graphify-out/cache/ast/v0.9.18/af3c3463623a9dc11fb58dc537a2a0249ea08f2b4ee51dba135bb416c69e8d9f.json new file mode 100644 index 0000000..3df1774 --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/af3c3463623a9dc11fb58dc537a2a0249ea08f2b4ee51dba135bb416c69e8d9f.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_tools_generate_casino3d_py", "label": "generate_casino3d.py", "file_type": "code", "source_file": "tools/generate_casino3d.py", "source_location": "L1"}], "edges": [], "raw_calls": []} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/b70c30af76f1f519b55093958a9931630d1435baf8235432b0402eb26a5089c4.json b/graphify-out/cache/ast/v0.9.18/b70c30af76f1f519b55093958a9931630d1435baf8235432b0402eb26a5089c4.json new file mode 100644 index 0000000..9ec1a71 --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/b70c30af76f1f519b55093958a9931630d1435baf8235432b0402eb26a5089c4.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_tools_preview_intro_py", "label": "preview_intro.py", "file_type": "code", "source_file": "tools/preview_intro.py", "source_location": "L1"}, {"id": "e_depai_in_3d_kazik_tools_preview_intro_main", "label": "main()", "file_type": "code", "source_file": "tools/preview_intro.py", "source_location": "L12", "_callable": true}], "edges": [{"source": "e_depai_in_3d_kazik_tools_preview_intro_py", "target": "pathlib", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/preview_intro.py", "source_location": "L1", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_preview_intro_py", "target": "os", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/preview_intro.py", "source_location": "L2", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_preview_intro_py", "target": "sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/preview_intro.py", "source_location": "L3", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_preview_intro_py", "target": "msvcrt", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/preview_intro.py", "source_location": "L4", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_preview_intro_py", "target": "time", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/preview_intro.py", "source_location": "L5", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_preview_intro_py", "target": "e_depai_in_3d_kazik_tools_preview_intro_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/preview_intro.py", "source_location": "L12", "weight": 1.0}], "raw_calls": [{"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "resolve", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L13", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "Path", "is_member_call": false, "source_file": "tools/preview_intro.py", "source_location": "L13", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "__file__", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/preview_intro.py", "source_location": "L13"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "exists", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L15", "receiver": "intro_path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "system", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L19", "receiver": "os"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "split", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L20", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "FRAME_SEPARATOR", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/preview_intro.py", "source_location": "L20"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "read_text", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L20", "receiver": "intro_path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "replace", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L24", "receiver": "frame"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "replace", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L29", "receiver": "frame"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "write", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L31", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "flush", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L32", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "time", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L33", "receiver": "time"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "time", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L34", "receiver": "time"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "kbhit", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L35", "receiver": "msvcrt"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "getwch", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L36", "receiver": "msvcrt"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "sleep", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L39", "receiver": "time"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "write", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L43", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "flush", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L44", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "time", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L45", "receiver": "time"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "time", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L46", "receiver": "time"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "kbhit", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L47", "receiver": "msvcrt"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "getwch", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L48", "receiver": "msvcrt"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "sleep", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L51", "receiver": "time"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "write", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L53", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_intro_main", "callee": "flush", "is_member_call": true, "source_file": "tools/preview_intro.py", "source_location": "L54", "receiver": null}]} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/c24892bb1085007fd9e480f1f4c9edd6ba5dec55e03222df428abb5a36330150.json b/graphify-out/cache/ast/v0.9.18/c24892bb1085007fd9e480f1f4c9edd6ba5dec55e03222df428abb5a36330150.json new file mode 100644 index 0000000..a2b0441 --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/c24892bb1085007fd9e480f1f4c9edd6ba5dec55e03222df428abb5a36330150.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_tools_generate_font_py", "label": "generate_font.py", "file_type": "code", "source_file": "tools/generate_font.py", "source_location": "L1"}], "edges": [{"source": "e_depai_in_3d_kazik_tools_generate_font_py", "target": "pil", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/generate_font.py", "source_location": "L1", "weight": 1.0}], "raw_calls": []} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/d31fe1e6e7ffc320f0f384a1d9140a304b7e571cea3e36fc5357728eafb44cf3.json b/graphify-out/cache/ast/v0.9.18/d31fe1e6e7ffc320f0f384a1d9140a304b7e571cea3e36fc5357728eafb44cf3.json new file mode 100644 index 0000000..f4bde6c --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/d31fe1e6e7ffc320f0f384a1d9140a304b7e571cea3e36fc5357728eafb44cf3.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_tools_preview_hakari_py", "label": "preview_hakari.py", "file_type": "code", "source_file": "tools/preview_hakari.py", "source_location": "L1"}, {"id": "e_depai_in_3d_kazik_tools_preview_hakari_enable_ansi", "label": "enable_ansi()", "file_type": "code", "source_file": "tools/preview_hakari.py", "source_location": "L12", "_callable": true}, {"id": "e_depai_in_3d_kazik_tools_preview_hakari_main", "label": "main()", "file_type": "code", "source_file": "tools/preview_hakari.py", "source_location": "L18", "_callable": true}], "edges": [{"source": "e_depai_in_3d_kazik_tools_preview_hakari_py", "target": "pathlib", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/preview_hakari.py", "source_location": "L1", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_preview_hakari_py", "target": "os", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/preview_hakari.py", "source_location": "L2", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_preview_hakari_py", "target": "sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/preview_hakari.py", "source_location": "L3", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_preview_hakari_py", "target": "time", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/preview_hakari.py", "source_location": "L4", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_preview_hakari_py", "target": "winsound", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/preview_hakari.py", "source_location": "L5", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_preview_hakari_py", "target": "e_depai_in_3d_kazik_tools_preview_hakari_enable_ansi", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/preview_hakari.py", "source_location": "L12", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_preview_hakari_py", "target": "e_depai_in_3d_kazik_tools_preview_hakari_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/preview_hakari.py", "source_location": "L18", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_tools_preview_hakari_main", "target": "e_depai_in_3d_kazik_tools_preview_hakari_enable_ansi", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/preview_hakari.py", "source_location": "L29", "weight": 1.0}], "raw_calls": [{"caller_nid": "e_depai_in_3d_kazik_tools_preview_hakari_enable_ansi", "callee": "system", "is_member_call": true, "source_file": "tools/preview_hakari.py", "source_location": "L15", "receiver": "os"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_hakari_main", "callee": "resolve", "is_member_call": true, "source_file": "tools/preview_hakari.py", "source_location": "L19", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_hakari_main", "callee": "Path", "is_member_call": false, "source_file": "tools/preview_hakari.py", "source_location": "L19", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_hakari_main", "callee": "__file__", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/preview_hakari.py", "source_location": "L19"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_hakari_main", "callee": "exists", "is_member_call": true, "source_file": "tools/preview_hakari.py", "source_location": "L23", "receiver": "dance_path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_hakari_main", "callee": "split", "is_member_call": true, "source_file": "tools/preview_hakari.py", "source_location": "L27", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_hakari_main", "callee": "FRAME_SEPARATOR", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/preview_hakari.py", "source_location": "L27"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_hakari_main", "callee": "read_text", "is_member_call": true, "source_file": "tools/preview_hakari.py", "source_location": "L27", "receiver": "dance_path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_hakari_main", "callee": "exists", "is_member_call": true, "source_file": "tools/preview_hakari.py", "source_location": "L30", "receiver": "sound_path"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_hakari_main", "callee": "PlaySound", "is_member_call": true, "source_file": "tools/preview_hakari.py", "source_location": "L31", "receiver": "winsound"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_hakari_main", "callee": "system", "is_member_call": true, "source_file": "tools/preview_hakari.py", "source_location": "L35", "receiver": "os"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_hakari_main", "callee": "write", "is_member_call": true, "source_file": "tools/preview_hakari.py", "source_location": "L36", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_hakari_main", "callee": "flush", "is_member_call": true, "source_file": "tools/preview_hakari.py", "source_location": "L37", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_hakari_main", "callee": "sleep", "is_member_call": true, "source_file": "tools/preview_hakari.py", "source_location": "L38", "receiver": "time"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_hakari_main", "callee": "FRAME_DELAY", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tools/preview_hakari.py", "source_location": "L38"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_hakari_main", "callee": "PlaySound", "is_member_call": true, "source_file": "tools/preview_hakari.py", "source_location": "L40", "receiver": "winsound"}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_hakari_main", "callee": "write", "is_member_call": true, "source_file": "tools/preview_hakari.py", "source_location": "L41", "receiver": null}, {"caller_nid": "e_depai_in_3d_kazik_tools_preview_hakari_main", "callee": "flush", "is_member_call": true, "source_file": "tools/preview_hakari.py", "source_location": "L42", "receiver": null}]} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/e0ca915f66cb272addb0bca6b7dd98f496a43319d6bb108033c4fab1175c67b6.json b/graphify-out/cache/ast/v0.9.18/e0ca915f66cb272addb0bca6b7dd98f496a43319d6bb108033c4fab1175c67b6.json new file mode 100644 index 0000000..7a2a4d7 --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/e0ca915f66cb272addb0bca6b7dd98f496a43319d6bb108033c4fab1175c67b6.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_tools_patch_poker_asm_py", "label": "patch_poker_asm.py", "file_type": "code", "source_file": "tools/patch_poker_asm.py", "source_location": "L1"}], "edges": [], "raw_calls": []} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/e92dd483b153ada4a22fb3ccbb73cc0f57af765057576eede971308c4eebf950.json b/graphify-out/cache/ast/v0.9.18/e92dd483b153ada4a22fb3ccbb73cc0f57af765057576eede971308c4eebf950.json new file mode 100644 index 0000000..a64ac59 --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/e92dd483b153ada4a22fb3ccbb73cc0f57af765057576eede971308c4eebf950.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_tools_build_graphics_ps1", "label": "build_graphics.ps1", "file_type": "code", "source_file": "tools/build_graphics.ps1", "source_location": "L1"}], "edges": [], "raw_calls": []} \ No newline at end of file diff --git a/graphify-out/cache/ast/v0.9.18/f27d1ca5e032eebb68a1df01fd317f63989558728f1d1ddb12bc251985032513.json b/graphify-out/cache/ast/v0.9.18/f27d1ca5e032eebb68a1df01fd317f63989558728f1d1ddb12bc251985032513.json new file mode 100644 index 0000000..3f35991 --- /dev/null +++ b/graphify-out/cache/ast/v0.9.18/f27d1ca5e032eebb68a1df01fd317f63989558728f1d1ddb12bc251985032513.json @@ -0,0 +1 @@ +{"nodes": [{"id": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "label": "casino_portable.h", "file_type": "code", "source_file": "src_portable/casino_portable.h", "source_location": "L1"}], "edges": [{"source": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "target": "stdio", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.h", "source_location": "L9", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "target": "stdlib", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.h", "source_location": "L10", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "target": "string", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.h", "source_location": "L11", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "target": "stdint", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.h", "source_location": "L12", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "target": "stdbool", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.h", "source_location": "L13", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "target": "time", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.h", "source_location": "L14", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "target": "winsock2", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.h", "source_location": "L17", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "target": "ws2tcpip", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.h", "source_location": "L18", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "target": "windows", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.h", "source_location": "L19", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "target": "conio", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.h", "source_location": "L20", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "target": "unistd", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.h", "source_location": "L26", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "target": "types", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.h", "source_location": "L27", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "target": "socket", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.h", "source_location": "L28", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "target": "in", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.h", "source_location": "L29", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "target": "inet", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.h", "source_location": "L30", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "target": "netdb", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.h", "source_location": "L31", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "target": "termios", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.h", "source_location": "L32", "weight": 1.0}, {"source": "e_depai_in_3d_kazik_src_portable_casino_portable_h", "target": "select", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src_portable/casino_portable.h", "source_location": "L33", "weight": 1.0}], "raw_calls": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/016158cc8adad8160340452b77cce6664af577eef41c272ca17c98528dbfa4ff.json b/graphify-out/cache/semantic/pd5fd89c46bb5/016158cc8adad8160340452b77cce6664af577eef41c272ca17c98528dbfa4ff.json new file mode 100644 index 0000000..a4a268e --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/016158cc8adad8160340452b77cce6664af577eef41c272ca17c98528dbfa4ff.json @@ -0,0 +1 @@ +{"nodes": [{"id": "assets_sprites_cabaret_loop_v1_image", "label": "Cabaret Loop Sprite Sheet", "file_type": "image", "source_file": "assets/sprites/cabaret-loop-v1.png", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "assets_sprites_cabaret_loop_v1_image", "target": "assets_textures_sprite_dancer_frame_0_image", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "assets/sprites/cabaret-loop-v1.png", "source_location": null, "weight": 1.0}, {"source": "assets_sprites_cabaret_loop_v1_image", "target": "assets_textures_sprite_dancer_frame_1_image", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "assets/sprites/cabaret-loop-v1.png", "source_location": null, "weight": 1.0}, {"source": "assets_sprites_cabaret_loop_v1_image", "target": "assets_textures_sprite_dancer_frame_2_image", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "assets/sprites/cabaret-loop-v1.png", "source_location": null, "weight": 1.0}, {"source": "assets_sprites_cabaret_loop_v1_image", "target": "assets_textures_sprite_dancer_frame_3_image", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "assets/sprites/cabaret-loop-v1.png", "source_location": null, "weight": 1.0}], "hyperedges": [{"id": "cabaret_dancer_animation_set", "label": "Cabaret Dancer Animation Sequence", "nodes": ["assets_textures_sprite_dancer_frame_0_image", "assets_textures_sprite_dancer_frame_1_image", "assets_textures_sprite_dancer_frame_2_image", "assets_textures_sprite_dancer_frame_3_image"], "relation": "form", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "assets/sprites/cabaret-loop-v1.png"}]} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/09dd028822ba46a04b140cfe2d87f9c63556fbf5d66abdb340c52a51daaf1dcd.json b/graphify-out/cache/semantic/pd5fd89c46bb5/09dd028822ba46a04b140cfe2d87f9c63556fbf5d66abdb340c52a51daaf1dcd.json new file mode 100644 index 0000000..40529ac --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/09dd028822ba46a04b140cfe2d87f9c63556fbf5d66abdb340c52a51daaf1dcd.json @@ -0,0 +1 @@ +{"nodes": [{"id": "docs_dbd_hook_static", "label": "Dead by Daylight Hook Reference Graphic", "file_type": "document", "source_file": "docs/dbd_hook_static.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "docs_dbd_hook_static_skill_check", "label": "Skill Check Hook Escape Minigame", "file_type": "concept", "source_file": "docs/dbd_hook_static.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Timed QTE skill check minigame inspired by Dead by Daylight requiring player to press SPACE or ENTER at the exact moment."}], "edges": [{"source": "docs_dbd_hook_static", "target": "docs_dbd_hook_static_skill_check", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/dbd_hook_static.txt", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/0d6f574242f0d2d03be537ebfd0079fedb9c7dde4980ae686ffde08217b223a3.json b/graphify-out/cache/semantic/pd5fd89c46bb5/0d6f574242f0d2d03be537ebfd0079fedb9c7dde4980ae686ffde08217b223a3.json new file mode 100644 index 0000000..e61f22c --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/0d6f574242f0d2d03be537ebfd0079fedb9c7dde4980ae686ffde08217b223a3.json @@ -0,0 +1 @@ +{"nodes": [{"id": "assets_textures_sprite_dancer_frame_1_image", "label": "Dancer Animation Frame 1 Sprite", "file_type": "image", "source_file": "assets/textures/sprite_dancer_frame_1.png", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "assets_textures_sprite_dancer_frame_1_image", "target": "assets_textures_sprite_dancer_frame_2_image", "relation": "semantically_similar_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "assets/textures/sprite_dancer_frame_1.png", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/139008ef7748309e83aeac704e3469f080f92cc10e4a047b77d4cd4516c24449.json b/graphify-out/cache/semantic/pd5fd89c46bb5/139008ef7748309e83aeac704e3469f080f92cc10e4a047b77d4cd4516c24449.json new file mode 100644 index 0000000..298ea74 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/139008ef7748309e83aeac704e3469f080f92cc10e4a047b77d4cd4516c24449.json @@ -0,0 +1 @@ +{"nodes": [{"id": "assets_data_dealer_phrases", "label": "Dealer Dialogue Phrases", "file_type": "document", "source_file": "assets/data/dealer_phrases.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "assets_data_dealer_phrases_outcome_prefixes", "label": "Win Loss Draw Outcome Prefixes", "file_type": "concept", "source_file": "assets/data/dealer_phrases.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Lines prefixed with W|, L|, and D| categorize dealer reactions to player outcomes for runtime dynamic selection."}], "edges": [{"source": "assets_data_dealer_phrases", "target": "assets_data_dealer_phrases_outcome_prefixes", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "assets/data/dealer_phrases.txt", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/26a929e4e6f254f9aba76895b9ef26f39ba9662936b01d78c78b37a5b3eadbdb.json b/graphify-out/cache/semantic/pd5fd89c46bb5/26a929e4e6f254f9aba76895b9ef26f39ba9662936b01d78c78b37a5b3eadbdb.json new file mode 100644 index 0000000..f18b6da --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/26a929e4e6f254f9aba76895b9ef26f39ba9662936b01d78c78b37a5b3eadbdb.json @@ -0,0 +1 @@ +{"nodes": [{"id": "docs_release_checklist", "label": "Release QA Checklist", "file_type": "document", "source_file": "docs/RELEASE_CHECKLIST.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "docs_release_checklist_smoke_check", "label": "Automated Release Smoke Check", "file_type": "concept", "source_file": "docs/RELEASE_CHECKLIST.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "tools/release_smoke_check.ps1 automates pre-release verification of builds, installer, and payload integrity."}, {"id": "docs_release_checklist_installer_validation", "label": "Installer & Uninstaller Verification", "file_type": "concept", "source_file": "docs/RELEASE_CHECKLIST.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Validates installation directory selection, desktop shortcuts, registry entry under Add/Remove Programs, and clean uninstallation."}, {"id": "docs_release_checklist_game_verification", "label": "Casino Games QA Verification", "file_type": "concept", "source_file": "docs/RELEASE_CHECKLIST.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Comprehensive verification steps covering all 12 casino games, account persistence, bankruptcy handling, and win goals."}], "edges": [{"source": "docs_release_checklist", "target": "docs_release_checklist_smoke_check", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/RELEASE_CHECKLIST.txt", "source_location": null, "weight": 1.0}, {"source": "docs_release_checklist", "target": "docs_release_checklist_installer_validation", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/RELEASE_CHECKLIST.txt", "source_location": null, "weight": 1.0}, {"source": "docs_release_checklist", "target": "docs_release_checklist_game_verification", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/RELEASE_CHECKLIST.txt", "source_location": null, "weight": 1.0}, {"source": "docs_release_checklist_smoke_check", "target": "docs_security_notes_sha256_payload_check", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "docs/RELEASE_CHECKLIST.txt", "source_location": null, "weight": 1.0}], "hyperedges": [{"id": "he_release_packaging_verification", "label": "Release Packaging & Verification Flow", "nodes": ["docs_release_checklist_smoke_check", "docs_release_checklist_installer_validation", "docs_security_notes_sha256_payload_check"], "relation": "implement", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "docs/RELEASE_CHECKLIST.txt"}]} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/32f81bd8f45e0773c6c1d53140f4950faec5ec673bc22f7584d657b45618cff7.json b/graphify-out/cache/semantic/pd5fd89c46bb5/32f81bd8f45e0773c6c1d53140f4950faec5ec673bc22f7584d657b45618cff7.json new file mode 100644 index 0000000..1405c1b --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/32f81bd8f45e0773c6c1d53140f4950faec5ec673bc22f7584d657b45618cff7.json @@ -0,0 +1 @@ +{"nodes": [{"id": "assets_textures_sprite_slot_frame_0_image", "label": "Slot Machine Frame 0 Sprite", "file_type": "image", "source_file": "assets/textures/sprite_slot_frame_0.png", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "assets_textures_sprite_slot_frame_0_image", "target": "assets_textures_sprite_slot_frame_1_image", "relation": "semantically_similar_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "assets/textures/sprite_slot_frame_0.png", "source_location": null, "weight": 1.0}], "hyperedges": [{"id": "slot_machine_animation_set", "label": "Slot Machine Reel Animation Sequence", "nodes": ["assets_textures_sprite_slot_frame_0_image", "assets_textures_sprite_slot_frame_1_image", "assets_textures_sprite_slot_frame_2_image"], "relation": "form", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "assets/textures/sprite_slot_frame_0.png"}]} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/3e3c7eff3b45033cc98ee546129b51b8910eed6f43487aa98564ddcb759a1b97.json b/graphify-out/cache/semantic/pd5fd89c46bb5/3e3c7eff3b45033cc98ee546129b51b8910eed6f43487aa98564ddcb759a1b97.json new file mode 100644 index 0000000..5ba68d8 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/3e3c7eff3b45033cc98ee546129b51b8910eed6f43487aa98564ddcb759a1b97.json @@ -0,0 +1 @@ +{"nodes": [{"id": "graphify_out_converted_variables_documentation_3fc6d2dc", "label": "poker.asm Variables Reference", "file_type": "document", "source_file": "graphify-out/converted/variables_documentation_3fc6d2dc.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "graphify_out_converted_variables_documentation_3fc6d2dc_save_magic", "label": "SAVE_MAGIC Constant 31435653h", "file_type": "concept", "source_file": "graphify-out/converted/variables_documentation_3fc6d2dc.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Magic header constant used to validate Assembler Casino save game integrity upon loading."}, {"id": "graphify_out_converted_variables_documentation_3fc6d2dc_color_constants", "label": "Console Color Attributes Constants", "file_type": "concept", "source_file": "graphify-out/converted/variables_documentation_3fc6d2dc.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Defines standard color attribute constants for cards, table, wood, money, warnings, and titles in WinAPI console."}, {"id": "graphify_out_converted_variables_documentation_3fc6d2dc_winapi_handles", "label": "Standard Console Handles", "file_type": "concept", "source_file": "graphify-out/converted/variables_documentation_3fc6d2dc.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Constants for STD_INPUT_HANDLE, STD_OUTPUT_HANDLE, and INVALID_HANDLE_VALUE for Windows console I/O."}], "edges": [{"source": "graphify_out_converted_variables_documentation_3fc6d2dc", "target": "graphify_out_converted_variables_documentation_3fc6d2dc_save_magic", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "graphify-out/converted/variables_documentation_3fc6d2dc.md", "source_location": null, "weight": 1.0}, {"source": "graphify_out_converted_variables_documentation_3fc6d2dc", "target": "graphify_out_converted_variables_documentation_3fc6d2dc_color_constants", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "graphify-out/converted/variables_documentation_3fc6d2dc.md", "source_location": null, "weight": 1.0}, {"source": "graphify_out_converted_variables_documentation_3fc6d2dc", "target": "graphify_out_converted_variables_documentation_3fc6d2dc_winapi_handles", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "graphify-out/converted/variables_documentation_3fc6d2dc.md", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/3f5cdf31d62662cddb0759ad99c3db0504b0c82ff76e03016f9f8988fe7e8301.json b/graphify-out/cache/semantic/pd5fd89c46bb5/3f5cdf31d62662cddb0759ad99c3db0504b0c82ff76e03016f9f8988fe7e8301.json new file mode 100644 index 0000000..9014966 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/3f5cdf31d62662cddb0759ad99c3db0504b0c82ff76e03016f9f8988fe7e8301.json @@ -0,0 +1 @@ +{"nodes": [{"id": "docs_\u0447\u0438\u0442\u043a\u043e\u0434\u044b", "label": "Secret Cheat Codes Reference", "file_type": "document", "source_file": "docs/\u0427\u0418\u0422\u041a\u041e\u0414\u042b.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "docs_\u0447\u0438\u0442\u043a\u043e\u0434\u044b_menu_codes", "label": "Menu Cheat Code Definitions", "file_type": "concept", "source_file": "docs/\u0427\u0418\u0422\u041a\u041e\u0414\u042b.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Keyboard cheat commands entered at the main menu including MONEYRAIN, SEVENS, WINNEXT, GODMODE, FAIRPLAY, GOAL, RESETBANK, AI difficulty, and ACHIEVER."}], "edges": [{"source": "docs_\u0447\u0438\u0442\u043a\u043e\u0434\u044b", "target": "docs_\u0447\u0438\u0442\u043a\u043e\u0434\u044b_menu_codes", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/\u0427\u0418\u0422\u041a\u041e\u0414\u042b.txt", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/4d8f0de181aedda11b2d4ce04f8905e62cc34419f654a6239e777b23263be11c.json b/graphify-out/cache/semantic/pd5fd89c46bb5/4d8f0de181aedda11b2d4ce04f8905e62cc34419f654a6239e777b23263be11c.json new file mode 100644 index 0000000..509b8b7 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/4d8f0de181aedda11b2d4ce04f8905e62cc34419f654a6239e777b23263be11c.json @@ -0,0 +1 @@ +{"nodes": [{"id": "docs_online_radmin", "label": "Online Radmin VPN Guide", "file_type": "document", "source_file": "docs/ONLINE_RADMIN.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "docs_online_radmin_host_authoritative", "label": "Host Authoritative Network Model", "file_type": "rationale", "source_file": "docs/ONLINE_RADMIN.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Host owns hidden chamber state in Russian roulette and dice seeds; client sends only inputs so both peers remain in sync without a dedicated server."}, {"id": "docs_online_radmin_p2p_socket", "label": "Winsock TCP Port 27015 LAN Protocol", "file_type": "concept", "source_file": "docs/ONLINE_RADMIN.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Built-in 1v1 match on TCP port 27015 directly inside poker.exe without installing separate servers or services."}], "edges": [{"source": "docs_online_radmin", "target": "docs_online_radmin_host_authoritative", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/ONLINE_RADMIN.txt", "source_location": null, "weight": 1.0}, {"source": "docs_online_radmin", "target": "docs_online_radmin_p2p_socket", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/ONLINE_RADMIN.txt", "source_location": null, "weight": 1.0}, {"source": "docs_online_radmin_host_authoritative", "target": "docs_roadmap_online_command_protocol", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "docs/ONLINE_RADMIN.txt", "source_location": null, "weight": 1.0}], "hyperedges": [{"id": "he_p2p_multiplayer_architecture", "label": "P2P Multiplayer Architecture", "nodes": ["docs_online_radmin_host_authoritative", "docs_online_radmin_p2p_socket", "docs_roadmap_online_command_protocol"], "relation": "implement", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "docs/ONLINE_RADMIN.txt"}]} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/5019c39ae53c46f65590fb3377ed643f24a92a601310c76eb33e44407af6eef3.json b/graphify-out/cache/semantic/pd5fd89c46bb5/5019c39ae53c46f65590fb3377ed643f24a92a601310c76eb33e44407af6eef3.json new file mode 100644 index 0000000..364fdb8 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/5019c39ae53c46f65590fb3377ed643f24a92a601310c76eb33e44407af6eef3.json @@ -0,0 +1 @@ +{"nodes": [{"id": "assets_textures_sprite_slot_frame_1_image", "label": "Slot Machine Frame 1 Sprite", "file_type": "image", "source_file": "assets/textures/sprite_slot_frame_1.png", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "assets_textures_sprite_slot_frame_1_image", "target": "assets_textures_sprite_slot_frame_2_image", "relation": "semantically_similar_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "assets/textures/sprite_slot_frame_1.png", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/50bb900fa5771366b25d5e61fd7dac85e95983acd32ae7ca8480a439b7865620.json b/graphify-out/cache/semantic/pd5fd89c46bb5/50bb900fa5771366b25d5e61fd7dac85e95983acd32ae7ca8480a439b7865620.json new file mode 100644 index 0000000..d3cefdc --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/50bb900fa5771366b25d5e61fd7dac85e95983acd32ae7ca8480a439b7865620.json @@ -0,0 +1 @@ +{"nodes": [{"id": "docs_\u043d\u043e\u0432\u044b\u0439_\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442", "label": "Intro Glitch Prototype Snippet", "file_type": "document", "source_file": "docs/\u041d\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "docs_\u043d\u043e\u0432\u044b\u0439_\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442_showintro", "label": "ShowIntro Procedure Prototype", "file_type": "code", "source_file": "docs/\u041d\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "docs_\u043d\u043e\u0432\u044b\u0439_\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442_glitch_fx", "label": "Terminal Glitch and Screen Shake FX", "file_type": "concept", "source_file": "docs/\u041d\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Uses rdtsc CPU cycle counter to dynamically trigger screen shakes, ANSI 256-color flicker flashes, and character corruption."}], "edges": [{"source": "docs_\u043d\u043e\u0432\u044b\u0439_\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442", "target": "docs_\u043d\u043e\u0432\u044b\u0439_\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442_showintro", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/\u041d\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.txt", "source_location": null, "weight": 1.0}, {"source": "docs_\u043d\u043e\u0432\u044b\u0439_\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442_showintro", "target": "docs_\u043d\u043e\u0432\u044b\u0439_\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442_glitch_fx", "relation": "implements", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/\u041d\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.txt", "source_location": null, "weight": 1.0}, {"source": "docs_\u043d\u043e\u0432\u044b\u0439_\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442_showintro", "target": "graphify_out_converted_variables_documentation_3fc6d2dc_winapi_handles", "relation": "calls", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "docs/\u041d\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.txt", "source_location": null, "weight": 1.0}, {"source": "docs_\u043d\u043e\u0432\u044b\u0439_\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442_glitch_fx", "target": "docs_casino_intro_preview", "relation": "semantically_similar_to", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "docs/\u041d\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.txt", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/5c39c43551141a3f7beb37ef54848a430bd4ee753dc803cef82fab9552bf2873.json b/graphify-out/cache/semantic/pd5fd89c46bb5/5c39c43551141a3f7beb37ef54848a430bd4ee753dc803cef82fab9552bf2873.json new file mode 100644 index 0000000..9a3e7bc --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/5c39c43551141a3f7beb37ef54848a430bd4ee753dc803cef82fab9552bf2873.json @@ -0,0 +1 @@ +{"nodes": [{"id": "readme", "label": "KAZIK Project Readme", "file_type": "document", "source_file": "README.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/5cd86e06c67bdf06ccb0adf9b42808736da317b48391a68184cbdfd372d693fe.json b/graphify-out/cache/semantic/pd5fd89c46bb5/5cd86e06c67bdf06ccb0adf9b42808736da317b48391a68184cbdfd372d693fe.json new file mode 100644 index 0000000..1caadf4 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/5cd86e06c67bdf06ccb0adf9b42808736da317b48391a68184cbdfd372d693fe.json @@ -0,0 +1 @@ +{"nodes": [{"id": "cmakelists", "label": "CMake Portable Build Configuration", "file_type": "document", "source_file": "CMakeLists.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "cmakelists_poker_portable", "label": "poker_portable Target", "file_type": "code", "source_file": "CMakeLists.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "cmakelists_winsock_dependency", "label": "Win32 Winsock ws2_32 Dependency", "file_type": "concept", "source_file": "CMakeLists.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "cmakelists", "target": "cmakelists_poker_portable", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "CMakeLists.txt", "source_location": null, "weight": 1.0}, {"source": "cmakelists", "target": "cmakelists_winsock_dependency", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "CMakeLists.txt", "source_location": null, "weight": 1.0}, {"source": "cmakelists_winsock_dependency", "target": "docs_online_radmin_p2p_socket", "relation": "semantically_similar_to", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "CMakeLists.txt", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/5d012f24010a6eb1de1cdd1742257cd6f46cf7fff6c1b66c6136769cd15a7ace.json b/graphify-out/cache/semantic/pd5fd89c46bb5/5d012f24010a6eb1de1cdd1742257cd6f46cf7fff6c1b66c6136769cd15a7ace.json new file mode 100644 index 0000000..c74e863 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/5d012f24010a6eb1de1cdd1742257cd6f46cf7fff6c1b66c6136769cd15a7ace.json @@ -0,0 +1 @@ +{"nodes": [{"id": "agents", "label": "AGENTS.md Project Instructions", "file_type": "document", "source_file": "AGENTS.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "agents_masm32_build", "label": "MASM32 Build Pipeline", "file_type": "concept", "source_file": "AGENTS.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Single-file x86 assembly Windows console casino game assembled with ml.exe /c /coff /Cp /nologo and linked with link.exe /SUBSYSTEM:CONSOLE against kernel32, winmm, user32, ws2_32, gdi32."}, {"id": "agents_cp1251_encoding", "label": "CP1251 Console Encoding Standard", "file_type": "rationale", "source_file": "AGENTS.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Source strings and dealer_phrases.txt must remain in Windows-1251 (CP1251) for Windows console rendering; do not re-save as UTF-8."}, {"id": "agents_cheat_codes", "label": "Console Cheat Codes System", "file_type": "concept", "source_file": "AGENTS.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "agents_games_catalog", "label": "Casino Games Catalog", "file_type": "concept", "source_file": "AGENTS.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "agents_animation_assets", "label": "ANSI Animation Assets Spec", "file_type": "concept", "source_file": "AGENTS.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "casino_intro.ans and hakari_dance.ans use ANSI escape codes and CP1251 with form-feed frame separators for high-performance terminal animations."}], "edges": [{"source": "agents", "target": "agents_masm32_build", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "AGENTS.md", "source_location": null, "weight": 1.0}, {"source": "agents", "target": "agents_cp1251_encoding", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "AGENTS.md", "source_location": null, "weight": 1.0}, {"source": "agents", "target": "agents_cheat_codes", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "AGENTS.md", "source_location": null, "weight": 1.0}, {"source": "agents", "target": "agents_games_catalog", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "AGENTS.md", "source_location": null, "weight": 1.0}, {"source": "agents", "target": "agents_animation_assets", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "AGENTS.md", "source_location": null, "weight": 1.0}, {"source": "agents_cheat_codes", "target": "docs_\u0447\u0438\u0442\u043a\u043e\u0434\u044b_menu_codes", "relation": "semantically_similar_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "AGENTS.md", "source_location": null, "weight": 1.0}, {"source": "agents_cp1251_encoding", "target": "assets_data_dealer_phrases", "relation": "rationale_for", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "AGENTS.md", "source_location": null, "weight": 1.0}, {"source": "agents_games_catalog", "target": "docs_release_checklist_game_verification", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "AGENTS.md", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/6502c037ea8cfb065a14ef126fb0d905ae3604a239c8daa6e3ae2d0f8845eb78.json b/graphify-out/cache/semantic/pd5fd89c46bb5/6502c037ea8cfb065a14ef126fb0d905ae3604a239c8daa6e3ae2d0f8845eb78.json new file mode 100644 index 0000000..eacc1e9 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/6502c037ea8cfb065a14ef126fb0d905ae3604a239c8daa6e3ae2d0f8845eb78.json @@ -0,0 +1 @@ +{"nodes": [{"id": "docs_known_limitations", "label": "Known Limitations Specification", "file_type": "document", "source_file": "docs/KNOWN_LIMITATIONS.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "docs_known_limitations_windows_platform_lock", "label": "Windows Platform Dependency", "file_type": "rationale", "source_file": "docs/KNOWN_LIMITATIONS.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Officially Windows-only due to tight coupling to MASM32, WinAPI, WinMM, MCI, and Windows console API."}, {"id": "docs_known_limitations_wine_support", "label": "Wine and CrossOver POSIX Support", "file_type": "concept", "source_file": "docs/KNOWN_LIMITATIONS.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Enables non-Windows execution on Linux and macOS via Wine translation layers without rewriting the assembly core."}, {"id": "docs_known_limitations_ansi_console_speed", "label": "ANSI Animation Console Bottleneck", "file_type": "concept", "source_file": "docs/KNOWN_LIMITATIONS.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Console throughput limits animation smoothness on older PCs, requiring frame-skip rendering profiles."}, {"id": "docs_known_limitations_durak_logic_risk", "label": "Durak Card Logic Complexity Risk", "file_type": "concept", "source_file": "docs/KNOWN_LIMITATIONS.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Durak is the most complex game logic in the suite due to card defense, tossing (podkidnoy), transferring (perevodnoy), and table clearing."}], "edges": [{"source": "docs_known_limitations", "target": "docs_known_limitations_windows_platform_lock", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/KNOWN_LIMITATIONS.txt", "source_location": null, "weight": 1.0}, {"source": "docs_known_limitations", "target": "docs_known_limitations_wine_support", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/KNOWN_LIMITATIONS.txt", "source_location": null, "weight": 1.0}, {"source": "docs_known_limitations", "target": "docs_known_limitations_ansi_console_speed", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/KNOWN_LIMITATIONS.txt", "source_location": null, "weight": 1.0}, {"source": "docs_known_limitations", "target": "docs_known_limitations_durak_logic_risk", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/KNOWN_LIMITATIONS.txt", "source_location": null, "weight": 1.0}, {"source": "docs_known_limitations_windows_platform_lock", "target": "agents_masm32_build", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "docs/KNOWN_LIMITATIONS.txt", "source_location": null, "weight": 1.0}, {"source": "docs_known_limitations_ansi_console_speed", "target": "docs_readme_release_rendering_profiles", "relation": "semantically_similar_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "docs/KNOWN_LIMITATIONS.txt", "source_location": null, "weight": 1.0}, {"source": "docs_known_limitations_durak_logic_risk", "target": "\u0438\u0434\u0435\u0438_durak_expansion", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "docs/KNOWN_LIMITATIONS.txt", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/66785c4ded4380a94ff1a92dcea15cdb60c4936ca9ffcbf1b4df48885a1e33d1.json b/graphify-out/cache/semantic/pd5fd89c46bb5/66785c4ded4380a94ff1a92dcea15cdb60c4936ca9ffcbf1b4df48885a1e33d1.json new file mode 100644 index 0000000..c13e08b --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/66785c4ded4380a94ff1a92dcea15cdb60c4936ca9ffcbf1b4df48885a1e33d1.json @@ -0,0 +1 @@ +{"nodes": [{"id": "assets_textures_sprite_blackjack_table_image", "label": "Blackjack Table Sprite", "file_type": "image", "source_file": "assets/textures/sprite_blackjack_table.png", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "assets_textures_sprite_blackjack_table_image", "target": "assets_textures_sprite_roulette_table_image", "relation": "semantically_similar_to", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "assets/textures/sprite_blackjack_table.png", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/686d95276641b50cad94586d23f5ea2050aee241bea354ce2990721134a845f3.json b/graphify-out/cache/semantic/pd5fd89c46bb5/686d95276641b50cad94586d23f5ea2050aee241bea354ce2990721134a845f3.json new file mode 100644 index 0000000..05a4432 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/686d95276641b50cad94586d23f5ea2050aee241bea354ce2990721134a845f3.json @@ -0,0 +1 @@ +{"nodes": [{"id": "assets_textures_sprite_slot_frame_2_image", "label": "Slot Machine Frame 2 Sprite", "file_type": "image", "source_file": "assets/textures/sprite_slot_frame_2.png", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "assets_textures_sprite_slot_frame_2_image", "target": "assets_textures_sprite_slot_frame_0_image", "relation": "semantically_similar_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "assets/textures/sprite_slot_frame_2.png", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/697d2c4eb527e73f383c161bac448f66279808d60a4271f637362898bfb5a0ee.json b/graphify-out/cache/semantic/pd5fd89c46bb5/697d2c4eb527e73f383c161bac448f66279808d60a4271f637362898bfb5a0ee.json new file mode 100644 index 0000000..6f97646 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/697d2c4eb527e73f383c161bac448f66279808d60a4271f637362898bfb5a0ee.json @@ -0,0 +1 @@ +{"nodes": [{"id": "docs_casino_intro_preview", "label": "Casino Intro ASCII Preview", "file_type": "document", "source_file": "docs/casino_intro_preview.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "ASCII art banner preview for the main casino entry screen."}], "edges": [{"source": "docs_casino_intro_preview", "target": "agents_animation_assets", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "docs/casino_intro_preview.txt", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/82e133215be02a2cd9dd8a3a25756f842168108d8dffa02f074752d8d53ad2fa.json b/graphify-out/cache/semantic/pd5fd89c46bb5/82e133215be02a2cd9dd8a3a25756f842168108d8dffa02f074752d8d53ad2fa.json new file mode 100644 index 0000000..a8761b3 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/82e133215be02a2cd9dd8a3a25756f842168108d8dffa02f074752d8d53ad2fa.json @@ -0,0 +1 @@ +{"nodes": [{"id": "assets_textures_sprite_bartender_shop_image", "label": "Bartender Shop Sprite", "file_type": "image", "source_file": "assets/textures/sprite_bartender_shop.png", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "assets_textures_sprite_bartender_shop_image", "target": "assets_textures_sprite_blackjack_table_image", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.75, "source_file": "assets/textures/sprite_bartender_shop.png", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/8937c5c15aa61e292c07e5b448fd438a63891019df6c1f9fd1465631fed7e4c7.json b/graphify-out/cache/semantic/pd5fd89c46bb5/8937c5c15aa61e292c07e5b448fd438a63891019df6c1f9fd1465631fed7e4c7.json new file mode 100644 index 0000000..2cc4dbe --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/8937c5c15aa61e292c07e5b448fd438a63891019df6c1f9fd1465631fed7e4c7.json @@ -0,0 +1 @@ +{"nodes": [{"id": "assets_textures_tex_wall_hell_image", "label": "Hell Wall Texture", "file_type": "image", "source_file": "assets/textures/tex_wall_hell.png", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/a113431c0e76e7daa8d56c7d69a948a6964cfa315825377918a162d62760a952.json b/graphify-out/cache/semantic/pd5fd89c46bb5/a113431c0e76e7daa8d56c7d69a948a6964cfa315825377918a162d62760a952.json new file mode 100644 index 0000000..94bd222 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/a113431c0e76e7daa8d56c7d69a948a6964cfa315825377918a162d62760a952.json @@ -0,0 +1 @@ +{"nodes": [{"id": "assets_textures_sprite_dancer_frame_2_image", "label": "Dancer Animation Frame 2 Sprite", "file_type": "image", "source_file": "assets/textures/sprite_dancer_frame_2.png", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "assets_textures_sprite_dancer_frame_2_image", "target": "assets_textures_sprite_dancer_frame_3_image", "relation": "semantically_similar_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "assets/textures/sprite_dancer_frame_2.png", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/a9a271207ed30f453f832cb69b4b0495433172e7266523a3d26ac2b42c5a49ae.json b/graphify-out/cache/semantic/pd5fd89c46bb5/a9a271207ed30f453f832cb69b4b0495433172e7266523a3d26ac2b42c5a49ae.json new file mode 100644 index 0000000..b4b1d0b --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/a9a271207ed30f453f832cb69b4b0495433172e7266523a3d26ac2b42c5a49ae.json @@ -0,0 +1 @@ +{"nodes": [{"id": "runtime_achievement", "label": "Runtime Achievement Storage File", "file_type": "document", "source_file": "runtime/achievement.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Local file storing unlocked player achievements."}, {"id": "runtime_achievement_tracking", "label": "Runtime Achievement Tracker", "file_type": "concept", "source_file": "runtime/achievement.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "runtime_achievement", "target": "runtime_achievement_tracking", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "runtime/achievement.txt", "source_location": null, "weight": 1.0}, {"source": "runtime_achievement_tracking", "target": "docs_\u0447\u0438\u0442\u043a\u043e\u0434\u044b_menu_codes", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.75, "source_file": "runtime/achievement.txt", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/af01a2f906052efca92f2cfc486ad6691c764ca162aeb960c04bdb9516d76b3e.json b/graphify-out/cache/semantic/pd5fd89c46bb5/af01a2f906052efca92f2cfc486ad6691c764ca162aeb960c04bdb9516d76b3e.json new file mode 100644 index 0000000..122f8b3 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/af01a2f906052efca92f2cfc486ad6691c764ca162aeb960c04bdb9516d76b3e.json @@ -0,0 +1 @@ +{"nodes": [{"id": "assets_textures_tex_floor_carpet_image", "label": "Casino Carpet Floor Texture", "file_type": "image", "source_file": "assets/textures/tex_floor_carpet.png", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "assets_textures_tex_floor_carpet_image", "target": "assets_textures_tex_wall_velvet_image", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "assets/textures/tex_floor_carpet.png", "source_location": null, "weight": 1.0}, {"source": "assets_textures_tex_floor_carpet_image", "target": "assets_textures_tex_wall_stripclub_image", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.75, "source_file": "assets/textures/tex_floor_carpet.png", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/b5eb0b056a9964e494760f4ce3f151607479313f68fa78c77fd13f3cc3ee0618.json b/graphify-out/cache/semantic/pd5fd89c46bb5/b5eb0b056a9964e494760f4ce3f151607479313f68fa78c77fd13f3cc3ee0618.json new file mode 100644 index 0000000..2e358c4 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/b5eb0b056a9964e494760f4ce3f151607479313f68fa78c77fd13f3cc3ee0618.json @@ -0,0 +1 @@ +{"nodes": [{"id": "assets_sprites_casino_atlas_v1_image", "label": "Casino Atlas Sprite Sheet", "file_type": "image", "source_file": "assets/sprites/casino-atlas-v1.png", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "assets_sprites_casino_atlas_v1_image", "target": "assets_textures_sprite_blackjack_table_image", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "assets/sprites/casino-atlas-v1.png", "source_location": null, "weight": 1.0}, {"source": "assets_sprites_casino_atlas_v1_image", "target": "assets_textures_sprite_roulette_table_image", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "assets/sprites/casino-atlas-v1.png", "source_location": null, "weight": 1.0}, {"source": "assets_sprites_casino_atlas_v1_image", "target": "assets_textures_sprite_bartender_shop_image", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "assets/sprites/casino-atlas-v1.png", "source_location": null, "weight": 1.0}, {"source": "assets_sprites_casino_atlas_v1_image", "target": "assets_textures_sprite_slot_frame_0_image", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "assets/sprites/casino-atlas-v1.png", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/b732ac4170f7a74ce6a57e220b33266c40fb1641b1829a4fe3a1fa95758f29aa.json b/graphify-out/cache/semantic/pd5fd89c46bb5/b732ac4170f7a74ce6a57e220b33266c40fb1641b1829a4fe3a1fa95758f29aa.json new file mode 100644 index 0000000..21851a2 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/b732ac4170f7a74ce6a57e220b33266c40fb1641b1829a4fe3a1fa95758f29aa.json @@ -0,0 +1 @@ +{"nodes": [{"id": "assets_textures_tex_wall_stripclub_image", "label": "Neon Strip Club Wall Texture", "file_type": "image", "source_file": "assets/textures/tex_wall_stripclub.png", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "assets_textures_tex_wall_stripclub_image", "target": "assets_textures_tex_wall_hell_image", "relation": "semantically_similar_to", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "assets/textures/tex_wall_stripclub.png", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/c1326bcfdd650879a2a436c99d0e98276db2181fd67ce5951d8f4682cbcd0769.json b/graphify-out/cache/semantic/pd5fd89c46bb5/c1326bcfdd650879a2a436c99d0e98276db2181fd67ce5951d8f4682cbcd0769.json new file mode 100644 index 0000000..87fb7fc --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/c1326bcfdd650879a2a436c99d0e98276db2181fd67ce5951d8f4682cbcd0769.json @@ -0,0 +1 @@ +{"nodes": [{"id": "assets_textures_tex_wall_velvet_image", "label": "Velvet Wall Texture", "file_type": "image", "source_file": "assets/textures/tex_wall_velvet.png", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "assets_textures_tex_wall_velvet_image", "target": "assets_textures_tex_wall_stripclub_image", "relation": "semantically_similar_to", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "assets/textures/tex_wall_velvet.png", "source_location": null, "weight": 1.0}, {"source": "assets_textures_tex_wall_velvet_image", "target": "assets_textures_tex_wall_hell_image", "relation": "semantically_similar_to", "confidence": "INFERRED", "confidence_score": 0.75, "source_file": "assets/textures/tex_wall_velvet.png", "source_location": null, "weight": 1.0}], "hyperedges": [{"id": "casino_wall_textures_set", "label": "Casino Wall Textures Set", "nodes": ["assets_textures_tex_wall_velvet_image", "assets_textures_tex_wall_stripclub_image", "assets_textures_tex_wall_hell_image"], "relation": "form", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "assets/textures/tex_wall_velvet.png"}]} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/c4178347ffe8fa44f006bd04ff7631d481899c6440bd5e1fa769ff4f161259b7.json b/graphify-out/cache/semantic/pd5fd89c46bb5/c4178347ffe8fa44f006bd04ff7631d481899c6440bd5e1fa769ff4f161259b7.json new file mode 100644 index 0000000..47eaf22 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/c4178347ffe8fa44f006bd04ff7631d481899c6440bd5e1fa769ff4f161259b7.json @@ -0,0 +1 @@ +{"nodes": [{"id": "assets_textures_sprite_roulette_table_image", "label": "Roulette Table Sprite", "file_type": "image", "source_file": "assets/textures/sprite_roulette_table.png", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "assets_textures_sprite_roulette_table_image", "target": "assets_textures_sprite_blackjack_table_image", "relation": "semantically_similar_to", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "assets/textures/sprite_roulette_table.png", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/c8bbcc1e907856de0c3dc438bb527a0a2ec44bc43e522f43e3abea7569328164.json b/graphify-out/cache/semantic/pd5fd89c46bb5/c8bbcc1e907856de0c3dc438bb527a0a2ec44bc43e522f43e3abea7569328164.json new file mode 100644 index 0000000..3abe1e6 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/c8bbcc1e907856de0c3dc438bb527a0a2ec44bc43e522f43e3abea7569328164.json @@ -0,0 +1 @@ +{"nodes": [{"id": "docs_security_notes", "label": "Security Architecture Notes", "file_type": "document", "source_file": "docs/SECURITY_NOTES.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "docs_security_notes_sha256_payload_check", "label": "SHA-256 Binary Integrity Verification", "file_type": "concept", "source_file": "docs/SECURITY_NOTES.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Installer verifies embedded archive hash and launcher validates bin/poker.exe hash to prevent payload tampering."}, {"id": "docs_security_notes_save_tamper_signature", "label": "Save File Salted Signature", "file_type": "concept", "source_file": "docs/SECURITY_NOTES.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Save files write a hash signature computed over the first 276 bytes with a hardcoded salt to catch manual progress hex editing."}, {"id": "docs_security_notes_path_traversal_guard", "label": "Installer Path Traversal Guard", "file_type": "concept", "source_file": "docs/SECURITY_NOTES.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Installer rejects archive entries containing ../ to guarantee unpacked files cannot escape the installation directory."}], "edges": [{"source": "docs_security_notes", "target": "docs_security_notes_sha256_payload_check", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/SECURITY_NOTES.txt", "source_location": null, "weight": 1.0}, {"source": "docs_security_notes", "target": "docs_security_notes_save_tamper_signature", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/SECURITY_NOTES.txt", "source_location": null, "weight": 1.0}, {"source": "docs_security_notes", "target": "docs_security_notes_path_traversal_guard", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/SECURITY_NOTES.txt", "source_location": null, "weight": 1.0}, {"source": "docs_security_notes_save_tamper_signature", "target": "graphify_out_converted_variables_documentation_3fc6d2dc_save_magic", "relation": "shares_data_with", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "docs/SECURITY_NOTES.txt", "source_location": null, "weight": 1.0}, {"source": "docs_security_notes_save_tamper_signature", "target": "\u0438\u0434\u0435\u0438_appdata_saves", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "docs/SECURITY_NOTES.txt", "source_location": null, "weight": 1.0}], "hyperedges": [{"id": "he_save_integrity_protection", "label": "Save File Integrity & Persistence Architecture", "nodes": ["docs_security_notes_save_tamper_signature", "graphify_out_converted_variables_documentation_3fc6d2dc_save_magic", "\u0438\u0434\u0435\u0438_appdata_saves"], "relation": "form", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "docs/SECURITY_NOTES.txt"}]} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/ca15a08a45d16237e0e2d624843cea6c667a4f1f1a35230d4cb692d88249fd43.json b/graphify-out/cache/semantic/pd5fd89c46bb5/ca15a08a45d16237e0e2d624843cea6c667a4f1f1a35230d4cb692d88249fd43.json new file mode 100644 index 0000000..6d9b343 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/ca15a08a45d16237e0e2d624843cea6c667a4f1f1a35230d4cb692d88249fd43.json @@ -0,0 +1 @@ +{"nodes": [{"id": "assets_textures_sprite_dancer_frame_0_image", "label": "Dancer Animation Frame 0 Sprite", "file_type": "image", "source_file": "assets/textures/sprite_dancer_frame_0.png", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "assets_textures_sprite_dancer_frame_0_image", "target": "assets_textures_sprite_dancer_frame_1_image", "relation": "semantically_similar_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "assets/textures/sprite_dancer_frame_0.png", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/d676872e69d4aeeb49265d3988c68055ceede785e6e40404caaa242a808f25bc.json b/graphify-out/cache/semantic/pd5fd89c46bb5/d676872e69d4aeeb49265d3988c68055ceede785e6e40404caaa242a808f25bc.json new file mode 100644 index 0000000..71dc0c8 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/d676872e69d4aeeb49265d3988c68055ceede785e6e40404caaa242a808f25bc.json @@ -0,0 +1 @@ +{"nodes": [{"id": "assets_icons_casino_preview_image", "label": "Casino Preview Icon", "file_type": "image", "source_file": "assets/icons/casino_preview.png", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "assets_icons_casino_preview_image", "target": "assets_sprites_casino_atlas_v1_image", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.75, "source_file": "assets/icons/casino_preview.png", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/d98a4f99254061be7b91bbbb70f598a37eeed28b7862705c59ff22692de7f38e.json b/graphify-out/cache/semantic/pd5fd89c46bb5/d98a4f99254061be7b91bbbb70f598a37eeed28b7862705c59ff22692de7f38e.json new file mode 100644 index 0000000..130272f --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/d98a4f99254061be7b91bbbb70f598a37eeed28b7862705c59ff22692de7f38e.json @@ -0,0 +1 @@ +{"nodes": [{"id": "docs_revolver_small_preview", "label": "Revolver ASCII Preview", "file_type": "document", "source_file": "docs/revolver_small_preview.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "docs_revolver_small_preview_russian_roulette_visuals", "label": "Russian Roulette Revolver ASCII Graphics", "file_type": "concept", "source_file": "docs/revolver_small_preview.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Detailed multi-angle ASCII art gun animations showing cylinder spin and hammer cocking for Russian Roulette."}], "edges": [{"source": "docs_revolver_small_preview", "target": "docs_revolver_small_preview_russian_roulette_visuals", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/revolver_small_preview.txt", "source_location": null, "weight": 1.0}, {"source": "docs_revolver_small_preview_russian_roulette_visuals", "target": "\u0438\u0434\u0435\u0438_buckshot_roulette", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.75, "source_file": "docs/revolver_small_preview.txt", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/d9fd6ae71610254ca4c206a20100574587a9a920b8b6d96b1695a526eb4fdc5d.json b/graphify-out/cache/semantic/pd5fd89c46bb5/d9fd6ae71610254ca4c206a20100574587a9a920b8b6d96b1695a526eb4fdc5d.json new file mode 100644 index 0000000..f907bd8 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/d9fd6ae71610254ca4c206a20100574587a9a920b8b6d96b1695a526eb4fdc5d.json @@ -0,0 +1 @@ +{"nodes": [{"id": "assets_textures_sprite_dancer_frame_3_image", "label": "Dancer Animation Frame 3 Sprite", "file_type": "image", "source_file": "assets/textures/sprite_dancer_frame_3.png", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "assets_textures_sprite_dancer_frame_3_image", "target": "assets_textures_sprite_dancer_frame_0_image", "relation": "semantically_similar_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "assets/textures/sprite_dancer_frame_3.png", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/ddb0f204117b91048fa027ed12269f2be981e14c8d4055f8d3fc8aef3573e2e2.json b/graphify-out/cache/semantic/pd5fd89c46bb5/ddb0f204117b91048fa027ed12269f2be981e14c8d4055f8d3fc8aef3573e2e2.json new file mode 100644 index 0000000..1f5ffea --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/ddb0f204117b91048fa027ed12269f2be981e14c8d4055f8d3fc8aef3573e2e2.json @@ -0,0 +1 @@ +{"nodes": [{"id": "docs_readme_release", "label": "Release Notes and User Guide", "file_type": "document", "source_file": "docs/README_RELEASE.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "docs_readme_release_rendering_profiles", "label": "Animation Rendering Profiles", "file_type": "concept", "source_file": "docs/README_RELEASE.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Cinematic, Adaptive, and Stable profiles control frame-skipping to eliminate flicker and stutter without omitting entire scenes."}, {"id": "docs_readme_release_package_architecture", "label": "Release Package Architecture", "file_type": "concept", "source_file": "docs/README_RELEASE.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Bundles launcher Assembler Casino.exe, core bin/poker.exe, and assets into an installer for clean user experience."}], "edges": [{"source": "docs_readme_release", "target": "docs_readme_release_rendering_profiles", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/README_RELEASE.txt", "source_location": null, "weight": 1.0}, {"source": "docs_readme_release", "target": "docs_readme_release_package_architecture", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/README_RELEASE.txt", "source_location": null, "weight": 1.0}, {"source": "docs_readme_release_package_architecture", "target": "docs_release_checklist_installer_validation", "relation": "references", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "docs/README_RELEASE.txt", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/f2fdf00fc3204cd407be451fbc264211ee06a6c55f801f948fcbac7b152f7050.json b/graphify-out/cache/semantic/pd5fd89c46bb5/f2fdf00fc3204cd407be451fbc264211ee06a6c55f801f948fcbac7b152f7050.json new file mode 100644 index 0000000..ab540d5 --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/f2fdf00fc3204cd407be451fbc264211ee06a6c55f801f948fcbac7b152f7050.json @@ -0,0 +1 @@ +{"nodes": [{"id": "\u0438\u0434\u0435\u0438", "label": "Feature Backlog and Game Ideas", "file_type": "document", "source_file": "\u0418\u0414\u0415\u0418.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "\u0438\u0434\u0435\u0438_appdata_saves", "label": "AppData Save Migration Idea", "file_type": "concept", "source_file": "\u0418\u0414\u0415\u0418.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Moving player save data to %AppData% prevents accidental deletion when reinstalling or updating the casino."}, {"id": "\u0438\u0434\u0435\u0438_shop_and_charms", "label": "Casino Shop and Charms Mechanic", "file_type": "concept", "source_file": "\u0418\u0414\u0415\u0418.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Allows spending winnings on charms, custom card decks, shirts, and lucky talismans with gameplay effects."}, {"id": "\u0438\u0434\u0435\u0438_pulse_stress", "label": "Heart Rate Stress Visualization", "file_type": "concept", "source_file": "\u0418\u0414\u0415\u0418.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Visualizes player character pulse and anxiety level during high-stakes gambling decisions."}, {"id": "\u0438\u0434\u0435\u0438_durak_expansion", "label": "Durak Card Game Expansion", "file_type": "concept", "source_file": "\u0418\u0414\u0415\u0418.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Addition of Russian card game Durak with podkidnoy and perevodnoy variants to broaden casino offerings."}, {"id": "\u0438\u0434\u0435\u0438_buckshot_roulette", "label": "Buckshot Roulette Game Mode Idea", "file_type": "concept", "source_file": "\u0418\u0414\u0415\u0418.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Adaptation of shotgun-based Russian Roulette gameplay with items and bluffing mechanics."}, {"id": "\u0438\u0434\u0435\u0438_casino_tower", "label": "Casino Tower Tournament Idea", "file_type": "concept", "source_file": "\u0418\u0414\u0415\u0418.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Multi-floor casino tower progression where players face escalating AI opponents with special modifiers."}], "edges": [{"source": "\u0438\u0434\u0435\u0438", "target": "\u0438\u0434\u0435\u0438_appdata_saves", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "\u0418\u0414\u0415\u0418.txt", "source_location": null, "weight": 1.0}, {"source": "\u0438\u0434\u0435\u0438", "target": "\u0438\u0434\u0435\u0438_shop_and_charms", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "\u0418\u0414\u0415\u0418.txt", "source_location": null, "weight": 1.0}, {"source": "\u0438\u0434\u0435\u0438", "target": "\u0438\u0434\u0435\u0438_pulse_stress", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "\u0418\u0414\u0415\u0418.txt", "source_location": null, "weight": 1.0}, {"source": "\u0438\u0434\u0435\u0438", "target": "\u0438\u0434\u0435\u0438_durak_expansion", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "\u0418\u0414\u0415\u0418.txt", "source_location": null, "weight": 1.0}, {"source": "\u0438\u0434\u0435\u0438", "target": "\u0438\u0434\u0435\u0438_buckshot_roulette", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "\u0418\u0414\u0415\u0418.txt", "source_location": null, "weight": 1.0}, {"source": "\u0438\u0434\u0435\u0438", "target": "\u0438\u0434\u0435\u0438_casino_tower", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "\u0418\u0414\u0415\u0418.txt", "source_location": null, "weight": 1.0}, {"source": "\u0438\u0434\u0435\u0438_shop_and_charms", "target": "docs_roadmap_future_expansions", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "\u0418\u0414\u0415\u0418.txt", "source_location": null, "weight": 1.0}, {"source": "\u0438\u0434\u0435\u0438_casino_tower", "target": "docs_roadmap_future_expansions", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "\u0418\u0414\u0415\u0418.txt", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/semantic/pd5fd89c46bb5/f70c4f274cf8e4c4cf5b2788263088c822b61bd8fd638c06e211b9dfd97d4645.json b/graphify-out/cache/semantic/pd5fd89c46bb5/f70c4f274cf8e4c4cf5b2788263088c822b61bd8fd638c06e211b9dfd97d4645.json new file mode 100644 index 0000000..fc7d39b --- /dev/null +++ b/graphify-out/cache/semantic/pd5fd89c46bb5/f70c4f274cf8e4c4cf5b2788263088c822b61bd8fd638c06e211b9dfd97d4645.json @@ -0,0 +1 @@ +{"nodes": [{"id": "docs_roadmap", "label": "Development Roadmap", "file_type": "document", "source_file": "docs/ROADMAP.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "docs_roadmap_online_command_protocol", "label": "Multiplayer Command Protocol", "file_type": "concept", "source_file": "docs/ROADMAP.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Client-server text command set (BET, HIT, STAND, FOLD, RAISE, PLAY_CARD, READY, CHAT) sent over TCP sockets."}, {"id": "docs_roadmap_security_milestones", "label": "Security & Signing Roadmap", "file_type": "concept", "source_file": "docs/ROADMAP.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Planned addition of Authenticode code-signing, release manifests, and stronger save checksum validation."}, {"id": "docs_roadmap_future_expansions", "label": "Future Casino Expansions", "file_type": "concept", "source_file": "docs/ROADMAP.txt", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Planned expansions including casino tax, VIP tier benefits, charm bestiary, secret ending, and casino tower tournament."}], "edges": [{"source": "docs_roadmap", "target": "docs_roadmap_online_command_protocol", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/ROADMAP.txt", "source_location": null, "weight": 1.0}, {"source": "docs_roadmap", "target": "docs_roadmap_security_milestones", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/ROADMAP.txt", "source_location": null, "weight": 1.0}, {"source": "docs_roadmap", "target": "docs_roadmap_future_expansions", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "docs/ROADMAP.txt", "source_location": null, "weight": 1.0}, {"source": "docs_roadmap_security_milestones", "target": "docs_security_notes", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "docs/ROADMAP.txt", "source_location": null, "weight": 1.0}], "hyperedges": []} \ No newline at end of file diff --git a/graphify-out/cache/stat-index.json b/graphify-out/cache/stat-index.json new file mode 100644 index 0000000..ad8001d --- /dev/null +++ b/graphify-out/cache/stat-index.json @@ -0,0 +1 @@ +{"E:\\DEPAI IN 3D\\KAZIK\\AGENTS.md":{"size":2055,"mtime_ns":1790270822393003200,"word_count":239,"hash":"5d012f24010a6eb1de1cdd1742257cd6f46cf7fff6c1b66c6136769cd15a7ace"},"E:\\DEPAI IN 3D\\KAZIK\\CMakeLists.txt":{"size":273,"mtime_ns":1790270822393003200,"word_count":14,"hash":"5cd86e06c67bdf06ccb0adf9b42808736da317b48391a68184cbdfd372d693fe"},"E:\\DEPAI IN 3D\\KAZIK\\README.md":{"size":70,"mtime_ns":1790270822393003200,"word_count":12,"hash":"5c39c43551141a3f7beb37ef54848a430bd4ee753dc803cef82fab9552bf2873"},"E:\\DEPAI IN 3D\\KAZIK\\assets\\data\\dealer_phrases.txt":{"size":575,"mtime_ns":1790270822489428100,"word_count":40,"hash":"139008ef7748309e83aeac704e3469f080f92cc10e4a047b77d4cd4516c24449"},"E:\\DEPAI IN 3D\\KAZIK\\assets\\icons\\casino_preview.png":{"size":21380,"mtime_ns":1790270822489428100,"word_count":812,"hash":"d676872e69d4aeeb49265d3988c68055ceede785e6e40404caaa242a808f25bc"},"E:\\DEPAI IN 3D\\KAZIK\\assets\\sprites\\cabaret-loop-v1.png":{"size":1428593,"mtime_ns":1790270823119320500,"word_count":48413,"hash":"016158cc8adad8160340452b77cce6664af577eef41c272ca17c98528dbfa4ff"},"E:\\DEPAI IN 3D\\KAZIK\\assets\\sprites\\casino-atlas-v1.png":{"size":1884304,"mtime_ns":1790270823124529400,"word_count":63811,"hash":"b5eb0b056a9964e494760f4ce3f151607479313f68fa78c77fd13f3cc3ee0618"},"E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_bartender_shop.png":{"size":6103,"mtime_ns":1790270823142275300,"word_count":205,"hash":"82e133215be02a2cd9dd8a3a25756f842168108d8dffa02f074752d8d53ad2fa"},"E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_blackjack_table.png":{"size":5817,"mtime_ns":1790270823142275300,"word_count":233,"hash":"66785c4ded4380a94ff1a92dcea15cdb60c4936ca9ffcbf1b4df48885a1e33d1"},"E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_dancer_frame_0.png":{"size":1975,"mtime_ns":1790270823142275300,"word_count":78,"hash":"ca15a08a45d16237e0e2d624843cea6c667a4f1f1a35230d4cb692d88249fd43"},"E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_dancer_frame_1.png":{"size":2161,"mtime_ns":1790270823142275300,"word_count":77,"hash":"0d6f574242f0d2d03be537ebfd0079fedb9c7dde4980ae686ffde08217b223a3"},"E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_dancer_frame_2.png":{"size":1862,"mtime_ns":1790270823142275300,"word_count":67,"hash":"a113431c0e76e7daa8d56c7d69a948a6964cfa315825377918a162d62760a952"},"E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_dancer_frame_3.png":{"size":1983,"mtime_ns":1790270823142275300,"word_count":78,"hash":"d9fd6ae71610254ca4c206a20100574587a9a920b8b6d96b1695a526eb4fdc5d"},"E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_roulette_table.png":{"size":6040,"mtime_ns":1790270823142275300,"word_count":209,"hash":"c4178347ffe8fa44f006bd04ff7631d481899c6440bd5e1fa769ff4f161259b7"},"E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_slot_frame_0.png":{"size":4322,"mtime_ns":1790270823142275300,"word_count":131,"hash":"32f81bd8f45e0773c6c1d53140f4950faec5ec673bc22f7584d657b45618cff7"},"E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_slot_frame_1.png":{"size":4434,"mtime_ns":1790270823142275300,"word_count":142,"hash":"5019c39ae53c46f65590fb3377ed643f24a92a601310c76eb33e44407af6eef3"},"E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\sprite_slot_frame_2.png":{"size":4421,"mtime_ns":1790270823142275300,"word_count":149,"hash":"686d95276641b50cad94586d23f5ea2050aee241bea354ce2990721134a845f3"},"E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\tex_floor_carpet.png":{"size":10055,"mtime_ns":1790270823142275300,"word_count":404,"hash":"af01a2f906052efca92f2cfc486ad6691c764ca162aeb960c04bdb9516d76b3e"},"E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\tex_wall_hell.png":{"size":8095,"mtime_ns":1790270823142275300,"word_count":274,"hash":"8937c5c15aa61e292c07e5b448fd438a63891019df6c1f9fd1465631fed7e4c7"},"E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\tex_wall_stripclub.png":{"size":9402,"mtime_ns":1790270823142275300,"word_count":336,"hash":"b732ac4170f7a74ce6a57e220b33266c40fb1641b1829a4fe3a1fa95758f29aa"},"E:\\DEPAI IN 3D\\KAZIK\\assets\\textures\\tex_wall_velvet.png":{"size":8652,"mtime_ns":1790270823142275300,"word_count":319,"hash":"c1326bcfdd650879a2a436c99d0e98276db2181fd67ce5951d8f4682cbcd0769"},"E:\\DEPAI IN 3D\\KAZIK\\casino3d.inc":{"size":72176,"mtime_ns":1790270823149606600,"word_count":8467,"hash":"17cce3e69a6245d4d8d4d48847de44d32b433568a6007f81701b2f9ee3ce0455"},"E:\\DEPAI IN 3D\\KAZIK\\casino3d_data.inc":{"size":15600,"mtime_ns":1790270823149606600,"word_count":350,"hash":"4ededd1f62dfbf46792345c3be39b7d8b349dafb88ee476878ac7d8e4e95fcdb"},"E:\\DEPAI IN 3D\\KAZIK\\docs\\KNOWN_LIMITATIONS.txt":{"size":1274,"mtime_ns":1790270823149606600,"word_count":105,"hash":"6502c037ea8cfb065a14ef126fb0d905ae3604a239c8daa6e3ae2d0f8845eb78"},"E:\\DEPAI IN 3D\\KAZIK\\docs\\ONLINE_RADMIN.txt":{"size":1060,"mtime_ns":1790270823149606600,"word_count":170,"hash":"4d8f0de181aedda11b2d4ce04f8905e62cc34419f654a6239e777b23263be11c"},"E:\\DEPAI IN 3D\\KAZIK\\docs\\README_RELEASE.txt":{"size":2751,"mtime_ns":1790270823149606600,"word_count":232,"hash":"ddb0f204117b91048fa027ed12269f2be981e14c8d4055f8d3fc8aef3573e2e2"},"E:\\DEPAI IN 3D\\KAZIK\\docs\\RELEASE_CHECKLIST.txt":{"size":3876,"mtime_ns":1790270823149606600,"word_count":364,"hash":"26a929e4e6f254f9aba76895b9ef26f39ba9662936b01d78c78b37a5b3eadbdb"},"E:\\DEPAI IN 3D\\KAZIK\\docs\\ROADMAP.txt":{"size":3358,"mtime_ns":1790270823149606600,"word_count":304,"hash":"f70c4f274cf8e4c4cf5b2788263088c822b61bd8fd638c06e211b9dfd97d4645"},"E:\\DEPAI IN 3D\\KAZIK\\docs\\SECURITY_NOTES.txt":{"size":3499,"mtime_ns":1790270823149606600,"word_count":261,"hash":"c8bbcc1e907856de0c3dc438bb527a0a2ec44bc43e522f43e3abea7569328164"},"E:\\DEPAI IN 3D\\KAZIK\\docs\\casino_intro_preview.txt":{"size":2539,"mtime_ns":1790270823149606600,"word_count":103,"hash":"697d2c4eb527e73f383c161bac448f66279808d60a4271f637362898bfb5a0ee"},"E:\\DEPAI IN 3D\\KAZIK\\docs\\dbd_hook_static.txt":{"size":1393,"mtime_ns":1790270823149606600,"word_count":116,"hash":"09dd028822ba46a04b140cfe2d87f9c63556fbf5d66abdb340c52a51daaf1dcd"},"E:\\DEPAI IN 3D\\KAZIK\\docs\\revolver_small_preview.txt":{"size":12238,"mtime_ns":1790270823149606600,"word_count":1154,"hash":"d98a4f99254061be7b91bbbb70f598a37eeed28b7862705c59ff22692de7f38e"},"E:\\DEPAI IN 3D\\KAZIK\\graphify-out\\converted\\variables_documentation_3fc6d2dc.md":{"size":235799,"mtime_ns":1790274665270484400,"word_count":23232,"hash":"3e3c7eff3b45033cc98ee546129b51b8910eed6f43487aa98564ddcb759a1b97"},"E:\\DEPAI IN 3D\\KAZIK\\docs\\\u041d\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.txt":{"size":15541,"mtime_ns":1790270823149606600,"word_count":1445,"hash":"50bb900fa5771366b25d5e61fd7dac85e95983acd32ae7ca8480a439b7865620"},"E:\\DEPAI IN 3D\\KAZIK\\docs\\\u0427\u0418\u0422\u041a\u041e\u0414\u042b.txt":{"size":750,"mtime_ns":1790270823149606600,"word_count":60,"hash":"3f5cdf31d62662cddb0759ad99c3db0504b0c82ff76e03016f9f8988fe7e8301"},"E:\\DEPAI IN 3D\\KAZIK\\font8x8.inc":{"size":16214,"mtime_ns":1790270823149606600,"word_count":3087,"hash":"260c7d561bd484ebf4a0b7f05ce9e48f9b4a7f701ce3500521befbc805a35c9a"},"E:\\DEPAI IN 3D\\KAZIK\\runtime\\achievement.txt":{"size":0,"mtime_ns":1790270823159343700,"word_count":0,"hash":"a9a271207ed30f453f832cb69b4b0495433172e7266523a3d26ac2b42c5a49ae"},"E:\\DEPAI IN 3D\\KAZIK\\src_graphics\\platform_code.inc":{"size":9961,"mtime_ns":1790270823159343700,"word_count":1209,"hash":"138dda071059ae037e9972bdbc63d21f3a33a18ca102faa52fb8cac0b644be35"},"E:\\DEPAI IN 3D\\KAZIK\\src_graphics\\platform_data.inc":{"size":3455,"mtime_ns":1790270823159343700,"word_count":412,"hash":"7f720d61b49719534794328d3012acd593e9c8627cbd6520c573c8c5d9435d93"},"E:\\DEPAI IN 3D\\KAZIK\\src_graphics\\renderer.inc":{"size":57722,"mtime_ns":1790270823159343700,"word_count":6764,"hash":"4bf4afc73df542d7e831d4468cda9e2112319bdaf8c89ea20b4c49ac55520a2a"},"E:\\DEPAI IN 3D\\KAZIK\\src_portable\\casino_portable.c":{"size":18932,"mtime_ns":1790270823159343700,"word_count":1802,"hash":"0d8891501bfba3c351f82dabe23d79f38b69415391a8513cdb928bd7c13476d9"},"E:\\DEPAI IN 3D\\KAZIK\\src_portable\\casino_portable.h":{"size":3513,"mtime_ns":1790270823159343700,"word_count":327,"hash":"f27d1ca5e032eebb68a1df01fd317f63989558728f1d1ddb12bc251985032513"},"E:\\DEPAI IN 3D\\KAZIK\\tools\\build_all_3d.py":{"size":78230,"mtime_ns":1790270823159343700,"word_count":9195,"hash":"1ad632faebe559e783b0064c2338a3678043ddd3ae85cdaa79f1c27f00d6fdcf"},"E:\\DEPAI IN 3D\\KAZIK\\tools\\build_casino_assets.py":{"size":8394,"mtime_ns":1790270823159343700,"word_count":1025,"hash":"531a442e9e0c8f0c7c6ac0060e327d86319cf01167962564fddb4ef445029606"},"E:\\DEPAI IN 3D\\KAZIK\\tools\\build_engine.py":{"size":83,"mtime_ns":1790270823159343700,"word_count":11,"hash":"96a2e9b3fe3a64c41bfd8ced2675141be58d38619b85c57183a0c5a9ea69d3a3"},"E:\\DEPAI IN 3D\\KAZIK\\tools\\build_graphics.ps1":{"size":717,"mtime_ns":1790270823159343700,"word_count":70,"hash":"e92dd483b153ada4a22fb3ccbb73cc0f57af765057576eede971308c4eebf950"},"E:\\DEPAI IN 3D\\KAZIK\\tools\\build_graphics_assets.py":{"size":3324,"mtime_ns":1790270823159343700,"word_count":394,"hash":"60e4e6059cb5be35a945d8b9587c012aeb99180bbc671d58513b58b454e7452d"},"E:\\DEPAI IN 3D\\KAZIK\\tools\\generate_casino3d.py":{"size":85,"mtime_ns":1790270823159343700,"word_count":9,"hash":"af3c3463623a9dc11fb58dc537a2a0249ea08f2b4ee51dba135bb416c69e8d9f"},"E:\\DEPAI IN 3D\\KAZIK\\tools\\generate_font.py":{"size":1182,"mtime_ns":1790270823159343700,"word_count":123,"hash":"c24892bb1085007fd9e480f1f4c9edd6ba5dec55e03222df428abb5a36330150"},"E:\\DEPAI IN 3D\\KAZIK\\tools\\generate_math_and_map.py":{"size":2819,"mtime_ns":1790270823159343700,"word_count":443,"hash":"47fa3293a06711be74c2f14c52bd460dcd78bb98289e988d575ab8e9e01ad54c"},"E:\\DEPAI IN 3D\\KAZIK\\tools\\generate_unified_casino3d.py":{"size":61170,"mtime_ns":1790270823159343700,"word_count":6784,"hash":"5f3f8a091f85d4da2b6a9052a2747b45b06443907eb422c671c5f4ccbcf71968"},"E:\\DEPAI IN 3D\\KAZIK\\tools\\make_casino3d.py":{"size":80,"mtime_ns":1790270823159343700,"word_count":14,"hash":"7b7850caf79296f29325be3bb73d1e5ab22f7b02fc200f7450304d888b68bbf1"},"E:\\DEPAI IN 3D\\KAZIK\\tools\\patch_poker_asm.py":{"size":2607,"mtime_ns":1790270823159343700,"word_count":276,"hash":"e0ca915f66cb272addb0bca6b7dd98f496a43319d6bb108033c4fab1175c67b6"},"E:\\DEPAI IN 3D\\KAZIK\\tools\\preview_dbd_hook.py":{"size":1673,"mtime_ns":1790270823159343700,"word_count":152,"hash":"7627c17a45c6dc182aa6d5405eb8d8bf6242e0a79147b3c96085a23c99422493"},"E:\\DEPAI IN 3D\\KAZIK\\tools\\preview_hakari.py":{"size":1210,"mtime_ns":1790270823159343700,"word_count":101,"hash":"d31fe1e6e7ffc320f0f384a1d9140a304b7e571cea3e36fc5357728eafb44cf3"},"E:\\DEPAI IN 3D\\KAZIK\\tools\\preview_intro.py":{"size":1814,"mtime_ns":1790270823159343700,"word_count":148,"hash":"b70c30af76f1f519b55093958a9931630d1435baf8235432b0402eb26a5089c4"},"E:\\DEPAI IN 3D\\KAZIK\\tools\\release_smoke_check.ps1":{"size":8092,"mtime_ns":1790270823159343700,"word_count":684,"hash":"0e20ce5f0da50b080a252db92e146b04fa951fe188d0fda9be8c78bd42a8bcbc"},"E:\\DEPAI IN 3D\\KAZIK\\tools\\simulate_render.py":{"size":9470,"mtime_ns":1790270823159343700,"word_count":1578,"hash":"75c60a1a5818b18c7cfa072c4708a27bf2d7320e67804d80b42835798ca957c5"},"E:\\DEPAI IN 3D\\KAZIK\\\u0418\u0414\u0415\u0418.txt":{"size":1118,"mtime_ns":1790270823159343700,"word_count":88,"hash":"f2fdf00fc3204cd407be451fbc264211ee06a6c55f801f948fcbac7b152f7050"}} \ No newline at end of file diff --git a/graphify-out/converted/variables_documentation_3fc6d2dc.md b/graphify-out/converted/variables_documentation_3fc6d2dc.md new file mode 100644 index 0000000..a93b795 --- /dev/null +++ b/graphify-out/converted/variables_documentation_3fc6d2dc.md @@ -0,0 +1,965 @@ + + +Assembler Casino: справочник переменных +Файл: F:\покер\poker.asm +Сгенерировано: 27.05.2026 01:34 +Констант: 24. Переменных/строк в .data: 929. +Константы EQU +Переменные и строки .data +| Имя | Тип | Значение | Блок | Назначение | +| --- | --- | --- | --- | --- | +| STD_INPUT_HANDLE | equ | -10 | WinAPI-константы | Значение/код для работы с дескрипторами Windows. | +| STD_OUTPUT_HANDLE | equ | -11 | WinAPI-константы | Значение/код для работы с дескрипторами Windows. | +| VK_RETURN | equ | 0Dh | Константы | Числовая константа, используемая в коде. | +| VK_SPACE | equ | 20h | Константы | Числовая константа, используемая в коде. | +| FLIP_DELAY | equ | 650 | Анимация карт | Задержка кадров переворота карт. | +| FLIP_FINAL_DELAY | equ | 850 | Анимация карт | Задержка кадров переворота карт. | +| GENERIC_READ | equ | 80000000h | Константы | Числовая константа, используемая в коде. | +| GENERIC_WRITE | equ | 40000000h | Константы | Числовая константа, используемая в коде. | +| OPEN_EXISTING | equ | 3 | Константы | Числовая константа, используемая в коде. | +| CREATE_ALWAYS | equ | 2 | Константы | Числовая константа, используемая в коде. | +| FILE_ATTRIBUTE_NORMAL | equ | 80h | Константы | Числовая константа, используемая в коде. | +| INVALID_HANDLE_VALUE | equ | -1 | WinAPI-константы | Значение/код для работы с дескрипторами Windows. | +| SAVE_MAGIC | equ | 31435653h | Сохранения | Магическое число для проверки файла сохранения. | +| ENABLE_VIRTUAL_TERMINAL_PROCESSING | equ | 0004h | Константы | Числовая константа, используемая в коде. | +| COLOR_DEFAULT | equ | 07h | Константы цветов | Цветовой атрибут консоли Windows. | +| COLOR_TITLE | equ | 0Bh | Константы цветов | Цветовой атрибут консоли Windows. | +| COLOR_MONEY | equ | 0Ah | Константы цветов | Цветовой атрибут консоли Windows. | +| COLOR_WARN | equ | 0Eh | Константы цветов | Цветовой атрибут консоли Windows. | +| COLOR_BAD | equ | 0Ch | Константы цветов | Цветовой атрибут консоли Windows. | +| COLOR_CARD | equ | 0Fh | Константы цветов | Цветовой атрибут консоли Windows. | +| COLOR_RED_CARD | equ | 0Ch | Константы цветов | Цветовой атрибут консоли Windows. | +| COLOR_BACK_CARD | equ | 08h | Константы цветов | Цветовой атрибут консоли Windows. | +| COLOR_TABLE | equ | 02h | Константы цветов | Цветовой атрибут консоли Windows. | +| COLOR_WOOD | equ | 06h | Константы цветов | Цветовой атрибут консоли Windows. | +| Имя | Тип | Начальное значение | Блок | Назначение | +| --- | --- | --- | --- | --- | +| hOut | dd | 0 | Консоль | Дескриптор стандартного ввода/вывода консоли. | +| hIn | dd | 0 | Консоль | Дескриптор стандартного ввода/вывода консоли. | +| charsWritten | dd | 0 | Служебные WinAPI | Служебное значение для WinAPI, консоли или генератора случайных чисел. | +| charsRead | dd | 0 | Служебные WinAPI | Служебное значение для WinAPI, консоли или генератора случайных чисел. | +| consoleMode | dd | 0 | Служебные WinAPI | Служебное значение для WinAPI, консоли или генератора случайных чисел. | +| printLen | dd | 0 | Служебные WinAPI | Служебное значение для WinAPI, консоли или генератора случайных чисел. | +| wideLen | dd | 0 | Служебные WinAPI | Служебное значение для WinAPI, консоли или генератора случайных чисел. | +| seed | dd | 0 | Служебные WinAPI | Служебное значение для WinAPI, консоли или генератора случайных чисел. | +| inputBuffer | db | 32 dup(0) | Буферы | Временный буфер для ввода, вывода, конвертации текста или кадров анимации. Объявлено как массив/буфер. | +| cheatBuffer | db | 32 dup(0) | Буферы | Временный буфер для ввода, вывода, конвертации текста или кадров анимации. Объявлено как массив/буфер. | +| wideBuffer | dw | 4096 dup(0) | Буферы | Временный буфер для ввода, вывода, конвертации текста или кадров анимации. Объявлено как массив/буфер. | +| utf8Buffer | db | 8192 dup(0) | Буферы | Временный буфер для ввода, вывода, конвертации текста или кадров анимации. Объявлено как массив/буфер. | +| frameBuffer | db | 32768 dup(0) | Буферы | Временный буфер для ввода, вывода, конвертации текста или кадров анимации. Объявлено как массив/буфер. | +| deckUsed | db | 52 dup(0) | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Объявлено как массив/буфер. | +| playerTotal | dd | 0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| dealerTotal | dd | 0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. | +| playerAces | dd | 0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| dealerAces | dd | 0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. | +| playerCards | dd | 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| slotA | dd | 0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. | +| slotB | dd | 0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. | +| slotC | dd | 0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. | +| slotD | dd | 0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. | +| slotE | dd | 0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. | +| slotMatch | dd | 0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. | +| slotWinMask | dd | 0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. | +| slotCurrentCell | dd | 0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. | +| slotBestMultiplier | dd | 0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. | +| slotComboNamePtr | dd | 0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. | +| slotBlockMask | dd | 0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. | +| slotComboCount | dd | 0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. | +| slotJackpotHit | dd | 0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. | +| slotComboNames | dd | 32 dup(0) | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Объявлено как массив/буфер. | +| slotComboMults | dd | 32 dup(0) | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Объявлено как массив/буфер. | +| slotGrid | dd | 15 dup(0) | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Объявлено как массив/буфер. | +| slotVisible | dd | 0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. | +| playerHand21 | dd | 10 dup(0) | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Объявлено как массив/буфер. | +| aiHand21 | dd | 10 dup(0) | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Объявлено как массив/буфер. | +| communityHand | dd | 5 dup(0) | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Объявлено как массив/буфер. | +| pokerPlayerEvalHand | dd | 7 dup(0) | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Объявлено как массив/буфер. | +| pokerAIEvalHand | dd | 7 dup(0) | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Объявлено как массив/буфер. | +| playerCnt21 | dd | 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| aiCnt21 | dd | 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| communityCnt | dd | 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| revealAI21 | dd | 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| dangerLvl21 | dd | 0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| cardsLeft21 | dd | 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| rowIndex | dd | 0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| pokerPlayerScore | dd | 0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. | +| pokerAIScore | dd | 0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. | +| pokerEvalCount | dd | 0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. | +| bankroll | dd | 10000 | Экономика | Банк игрока, цель, ставка или текст денежных операций. | +| targetBank | dd | 50000 | Экономика | Банк игрока, цель, ставка или текст денежных операций. | +| currentBet | dd | 0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. | +| cheatLuckyWin | dd | 0 | Чит-коды | Буфер, флаг или текст чит-кода. | +| cheatGodMode | dd | 0 | Чит-коды | Буфер, флаг или текст чит-кода. | +| cheatSlotJackpot | dd | 0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. | +| dealerFileHandle | dd | 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| dealerLineLen | dd | 0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. | +| dealerPhraseCount | dd | 0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. | +| dealerPhrasePick | dd | 0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. | +| dealerScanMode | dd | 0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. | +| dealerWantedTag | db | 0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. | +| shopBackOwned | dd | 1 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. | +| shopBackStyle | dd | 0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. | +| shopCharmLevel | dd | 0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. | +| shopCharmUses | dd | 0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. | +| achievements | dd | 0 | Достижения | Файл, команда, маска или название достижения. | +| pokerRaiseAmount | dd | 0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. | +| pokerAIRaiseAmount | dd | 0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. | +| saveHandle | dd | 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| achievementHandle | dd | 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| findHandle | dd | 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| danceHandle | dd | 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| danceBytes | dd | 0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| frameBytes | dd | 0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| introLoopSeen | dd | 0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. | +| introSkipLoop | dd | 0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. | +| accountCount | dd | 0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| selectedAccount | dd | 0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| accountNameLen | dd | 0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| saveBuffer | dd | 64 dup(0) | Буферы | Временный буфер для ввода, вывода, конвертации текста или кадров анимации. Объявлено как массив/буфер. | +| gamesPlayed | dd | 0 | Статистика | Общая или поигровая статистика аккаунта. | +| gamesWon | dd | 0 | Статистика | Общая или поигровая статистика аккаунта. | +| gamesLost | dd | 0 | Статистика | Общая или поигровая статистика аккаунта. | +| gamesDrawn | dd | 0 | Статистика | Общая или поигровая статистика аккаунта. | +| bestWin | dd | 0 | Статистика | Общая или поигровая статистика аккаунта. | +| bestLoss | dd | 0 | Статистика | Общая или поигровая статистика аккаунта. | +| currentGameId | dd | 0 | Статистика | Общая или поигровая статистика аккаунта. | +| gameStatsPlayed | dd | 11 dup(0) | Статистика | Общая или поигровая статистика аккаунта. Объявлено как массив/буфер. | +| gameStatsWon | dd | 11 dup(0) | Статистика | Общая или поигровая статистика аккаунта. Объявлено как массив/буфер. | +| gameStatsLost | dd | 11 dup(0) | Статистика | Общая или поигровая статистика аккаунта. Объявлено как массив/буфер. | +| gameStatsDraw | dd | 11 dup(0) | Статистика | Общая или поигровая статистика аккаунта. Объявлено как массив/буфер. | +| leaderBestBank | dd | 0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. | +| leaderBestWins | dd | 0 | Лидеры | Данные таблицы лидеров по аккаунтам и играм. | +| leaderBestLosses | dd | 0 | Лидеры | Данные таблицы лидеров по аккаунтам и играм. | +| leaderValidCount | dd | 0 | Лидеры | Данные таблицы лидеров по аккаунтам и играм. | +| leaderScanIndex | dd | 0 | Лидеры | Данные таблицы лидеров по аккаунтам и играм. | +| leaderAccountPtr | dd | 0 | Лидеры | Данные таблицы лидеров по аккаунтам и играм. | +| leaderBestGameWins | dd | 11 dup(0) | Лидеры | Данные таблицы лидеров по аккаунтам и играм. Объявлено как массив/буфер. | +| leaderBestGameLosses | dd | 11 dup(0) | Лидеры | Данные таблицы лидеров по аккаунтам и играм. Объявлено как массив/буфер. | +| leaderBestBankName | db | 64 dup(0) | Экономика | Банк игрока, цель, ставка или текст денежных операций. Объявлено как массив/буфер. | +| leaderBestWinsName | db | 64 dup(0) | Лидеры | Данные таблицы лидеров по аккаунтам и играм. Объявлено как массив/буфер. | +| leaderBestLossName | db | 64 dup(0) | Лидеры | Данные таблицы лидеров по аккаунтам и играм. Объявлено как массив/буфер. | +| leaderBestGameWinNames | db | 11 dup(64 dup(0)) | Лидеры | Данные таблицы лидеров по аккаунтам и играм. Объявлено как массив/буфер. | +| leaderBestGameLossNames | db | 11 dup(64 dup(0)) | Лидеры | Данные таблицы лидеров по аккаунтам и играм. Объявлено как массив/буфер. | +| aiDifficulty | dd | 2 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| bankRecovered | dd | 0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. | +| pokerReplaceIndex | dd | 0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. | +| pokerReplaced | dd | 0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. | +| pokerStraight | dd | 0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. | +| pokerFlush | dd | 0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. | +| pokerHigh | dd | 0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. | +| pokerFour | dd | 0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. | +| pokerTrip | dd | 0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. | +| pokerPairHigh | dd | 0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. | +| pokerPairLow | dd | 0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. | +| skullBallPos | dd | 0 | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. | +| skullGuess | dd | 0 | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. | +| skullStep | dd | 0 | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. | +| skullMax | dd | 0 | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. | +| rrBulletMask | dd | 0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| rrBullets | dd | 0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| rrChamber | dd | 0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| rrTurn | dd | 0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| rrPayout | dd | 0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| bsShells | dd | 8 dup(0) | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Объявлено как массив/буфер. | +| bsShellIndex | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsShellCount | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsLiveCount | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsBlankCount | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsPlayerHP | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsAIHP | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsTurn | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsDamage | dd | 1 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsKnownShell | dd | 0FFFFFFFFh | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsSkipPlayer | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsSkipAI | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsPlayerGlass | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsPlayerSaw | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsPlayerBeer | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsPlayerCuffs | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsAIGlass | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsAISaw | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsAIBeer | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsAICuffs | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsTarget | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsShell | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsAction | dd | 0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| coinPick | dd | 0 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. | +| coinResult | dd | 0 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. | +| diceA | dd | 0 | Кости | Броски костей, сумма или выбранная четность. | +| diceB | dd | 0 | Кости | Броски костей, сумма или выбранная четность. | +| diceSum | dd | 0 | Кости | Броски костей, сумма или выбранная четность. | +| diceChoice | dd | 0 | Кости | Броски костей, сумма или выбранная четность. | +| casinoRouletteBetType | dd | 0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| casinoRouletteBetNumber | dd | 0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| casinoRouletteResult | dd | 0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| casinoRouletteResultIndex | dd | 0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| casinoRouletteSpinIndex | dd | 0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| casinoRouletteSpinSteps | dd | 0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| casinoRouletteSpinCounter | dd | 0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| casinoRouletteVisibleCount | dd | 0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| durakPlayerHand | dd | 20 dup(0) | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Объявлено как массив/буфер. | +| durakAIHand | dd | 20 dup(0) | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Объявлено как массив/буфер. | +| durakPlayerCnt | dd | 0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. | +| durakAICnt | dd | 0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. | +| durakDeckLeft | dd | 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| durakTrumpCard | dd | 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| durakTrumpSuit | dd | 0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. | +| durakAttackCard | dd | 0FFFFFFFFh | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| durakDefenseCard | dd | 0FFFFFFFFh | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| durakPlayerTurn | dd | 1 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. | +| durakChoice | dd | 0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. | +| durakTableCnt | dd | 0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. | +| durakAttackCards | dd | 6 dup(0) | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Объявлено как массив/буфер. | +| durakDefenseCards | dd | 6 dup(0FFFFFFFFh) | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Объявлено как массив/буфер. | +| durakTempHand | dd | 6 dup(0) | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Объявлено как массив/буфер. | +| skillNeedle | dd | 0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. | +| skillDir | dd | 1 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. | +| skillSuccessStart | dd | 0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. | +| skillSuccessEnd | dd | 0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. | +| skillPerfectPos | dd | 0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. | +| skillGaugeIndex | dd | 0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. | +| skillFrameCount | dd | 0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. | +| skillHits | dd | 0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. | +| skillMisses | dd | 0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. | +| skillResult | dd | 0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. | +| skillPerfects | dd | 0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. | +| skillDelay | dd | 45 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. | +| casinoSuspicion | dd | 0 | Подозрение казино | Уровень подозрения казино и связанные сообщения/штрафы. | +| stressLevel | dd | 0 | Стресс ставки | Уровень стресса и кадры ЭКГ-пульса при рискованной ставке. | +| lastGameResult | dd | 0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| tournamentStage | dd | 0 | Турнир-башня | Этап башни, режим турнира или финальная анимация победы. | +| tournamentMode | dd | 0 | Турнир-башня | Этап башни, режим турнира или финальная анимация победы. | +| pulseCycles | dd | 0 | Стресс ставки | Уровень стресса и кадры ЭКГ-пульса при рискованной ставке. | +| rankCounts | db | 13 dup(0) | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Объявлено как массив/буфер. | +| suitCounts | db | 4 dup(0) | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Объявлено как массив/буфер. | +| nl | db | 13,10,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| dotSpaceText | db | ". ",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| clearLines | db | 13,10,13,10,13,10,13,10,13,10,13,10,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| titleText | db | "==============================",13,10 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| menuText | db | "1. Магазин",13,10 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| choiceText | db | "Выбор: ",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| badChoiceText | db | "Нет такого пункта.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| accountMenuText | db | "1. Войти в аккаунт",13,10 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| accountPromptText | db | "Введите имя аккаунта латиницей: ",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| accountBadText | db | "Имя должно содержать хотя бы одну букву или цифру.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| accountLoginText | db | "Аккаунт загружен: ",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| accountCreateText | db | "Аккаунт создан: ",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| accountListTitle | db | "Выберите аккаунт:",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| accountNoFilesText | db | "Сохраненных аккаунтов пока нет.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| accountSelectText | db | "Номер аккаунта: ",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| pauseText | db | 13,10,"Нажмите любую клавишу...",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| bankText | db | "Ваш банк: $",0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. Это строка или фрагмент ASCII-графики. | +| betText | db | "Введите ставку: $",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| betChosenText | db | "Вы поставили $",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| badBetText | db | "Ставка должна быть числом больше 0.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| tooBigBetText | db | "У вас нет столько денег.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| suspicionText | db | "Подозрение казино: ",0 | Подозрение казино | Уровень подозрения казино и связанные сообщения/штрафы. Это строка или фрагмент ASCII-графики. | +| suspicionCalmText | db | "тихо",13,10,0 | Подозрение казино | Уровень подозрения казино и связанные сообщения/штрафы. Это строка или фрагмент ASCII-графики. | +| suspicionWatchText | db | "за тобой смотрят",13,10,0 | Подозрение казино | Уровень подозрения казино и связанные сообщения/штрафы. Это строка или фрагмент ASCII-графики. | +| suspicionHuntText | db | "охрана рядом",13,10,0 | Подозрение казино | Уровень подозрения казино и связанные сообщения/штрафы. Это строка или фрагмент ASCII-графики. | +| suspicionUpText | db | "Подозрение выросло.",13,10,0 | Подозрение казино | Уровень подозрения казино и связанные сообщения/штрафы. Это строка или фрагмент ASCII-графики. | +| suspicionFineText | db | "Охрана заметила мутную игру. Штраф: $",0 | Подозрение казино | Уровень подозрения казино и связанные сообщения/штрафы. Это строка или фрагмент ASCII-графики. | +| stressText | db | "Стресс ставки: ",0 | Стресс ставки | Уровень стресса и кадры ЭКГ-пульса при рискованной ставке. Это строка или фрагмент ASCII-графики. | +| stressLowText | db | "спокойно",13,10,0 | Стресс ставки | Уровень стресса и кадры ЭКГ-пульса при рискованной ставке. Это строка или фрагмент ASCII-графики. | +| stressMidText | db | "пульс растет",13,10,0 | Стресс ставки | Уровень стресса и кадры ЭКГ-пульса при рискованной ставке. Это строка или фрагмент ASCII-графики. | +| stressHighText | db | "руки дрожат",13,10,0 | Стресс ставки | Уровень стресса и кадры ЭКГ-пульса при рискованной ставке. Это строка или фрагмент ASCII-графики. | +| stressMaxText | db | "паника",13,10,0 | Стресс ставки | Уровень стресса и кадры ЭКГ-пульса при рискованной ставке. Это строка или фрагмент ASCII-графики. | +| cheatMoveText | db | "Шулерство: 3 - подсмотреть, 4 - подменить карту.",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatPeekText | db | "Ты незаметно подсмотрел карту:",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatSwapText | db | "Ты подменил карту под рукавом.",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatNoTargetText | db | "Сейчас нечего подменять.",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| tournamentTitle | db | 13,10,"--- Турнир-башня ---",13,10,0 | Турнир-башня | Этап башни, режим турнира или финальная анимация победы. Это строка или фрагмент ASCII-графики. | +| tournamentIntro | db | "Башня казино: 10 этапов подряд. Проиграл этап - начинаешь заново.",13 | Турнир-башня | Этап башни, режим турнира или финальная анимация победы. Это строка или фрагмент ASCII-графики. | +| tournamentStageText | db | 13,10,"Этап башни: ",0 | Турнир-башня | Этап башни, режим турнира или финальная анимация победы. Это строка или фрагмент ASCII-графики. | +| tournamentFailText | db | 13,10,"Башня обрушилась. Турнир начинается заново.",13,10,0 | Турнир-башня | Этап башни, режим турнира или финальная анимация победы. Это строка или фрагмент ASCII-графики. | +| tournamentWinText | db | 13,10,"ТЫ ВЗЯЛ БАШНЮ КАЗИНО! Финальный бонус: $50000",13,10,0 | Турнир-башня | Этап башни, режим турнира или финальная анимация победы. Это строка или фрагмент ASCII-графики. | +| tournamentFire1 | db | 13,10," . * .",13,10," ASSEMBLER CASI | Турнир-башня | Этап башни, режим турнира или финальная анимация победы. Это строка или фрагмент ASCII-графики. | +| tournamentFire2 | db | 13,10," * \ | / \ | / *",13,10," -- TOWER CLEARED - | Турнир-башня | Этап башни, режим турнира или финальная анимация победы. Это строка или фрагмент ASCII-графики. | +| tournamentFire3 | db | 13,10," * . * . * . * . * . * . *",13,10," $$$ FIREWORKS $$$", | Турнир-башня | Этап башни, режим турнира или финальная анимация победы. Это строка или фрагмент ASCII-графики. | +| tournamentFire4 | db | 13,10," ============ JACKPOT SKY ============",13,10," * * | Турнир-башня | Этап башни, режим турнира или финальная анимация победы. Это строка или фрагмент ASCII-графики. | +| cheatAppliedText | db | "CHEAT ACTIVATED: ",0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatBadText | db | "Unknown cheat code.",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatMoneyText | db | "+$50000",13,10,0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. Это строка или фрагмент ASCII-графики. | +| cheatSevenText | db | "+$7777",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatWinText | db | "next loss becomes win",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatGodText | db | "losses become wins",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatFairText | db | "fair play restored",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatGoalText | db | "bank moved to current goal",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatResetText | db | "bank reset to $10000",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatEasyText | db | "AI difficulty EASY",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatNormalText | db | "AI difficulty NORMAL",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatHardText | db | "AI difficulty HARD",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatJackpotText | db | "next slot spin is forced jackpot",13,10,0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| cheatRichText | db | "+$250000",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatDoubleText | db | "bank doubled",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatPoorText | db | "bank set to $1",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatShopText | db | "+$30000 for shop",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatBacksText | db | "all card backs unlocked",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatCharmText | db | "luck talisman maxed",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatNoCharmText | db | "luck talisman removed",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatAchText | db | "all achievements unlocked",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatSavedText | db | "CHEAT: loss changed into win.",13,10,0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatCodeMoney | db | "MONEYRAIN",0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. Это строка или фрагмент ASCII-графики. | +| cheatCodeSeven | db | "SEVENS",0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatCodeWin | db | "WINNEXT",0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatCodeGod | db | "GODMODE",0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatCodeFair | db | "FAIRPLAY",0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatCodeGoal | db | "GOAL",0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatCodeReset | db | "RESETBANK",0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatCodeEasy | db | "EASYAI",0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatCodeNormal | db | "NORMALAI",0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatCodeHard | db | "HARDAI",0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatCodeJackpot | db | "JACKPOT",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| cheatCodeRich | db | "HIGHROLLER",0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatCodeDouble | db | "DOUBLECASH",0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatCodePoor | db | "ONEBUCK",0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatCodeShop | db | "SHOPPING",0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatCodeBacks | db | "ALLBACKS",0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatCodeCharm | db | "MAXCHARM",0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatCodeNoCharm | db | "NOCHARM",0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| cheatCodeAch | db | "ACHIEVER",0 | Чит-коды | Буфер, флаг или текст чит-кода. Это строка или фрагмент ASCII-графики. | +| moneyWinText | db | "Выигрыш: +$",0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. Это строка или фрагмент ASCII-графики. | +| moneyLoseText | db | "Проигрыш: -$",0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. Это строка или фрагмент ASCII-графики. | +| moneyDrawText | db | "Ставка возвращается.",13,10,0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. Это строка или фрагмент ASCII-графики. | +| casinoKickText | db | 13,10,"У вас не осталось денег. Вас выводят из казино.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| casinoExitText | db | "Нажмите любую клавишу, чтобы выйти...",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| welcomeText | db | 13,10,"Добро пожаловать в ASSEMBLER CASINO!",13,10,"Удача любит смелых | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| difficultyText | db | 13,10,"Сложность AI: 1 - Easy, 2 - Normal, 3 - Hard: ",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| difficultyNowText | db | "Сложность AI: ",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| easyName | db | "Easy",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| normalName | db | "Normal",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| hardName | db | "Hard",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| statsGamesText | db | "Игр сыграно: ",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| statsWinsText | db | "Побед: ",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| statsLossText | db | "Поражений: ",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| statsDrawText | db | "Ничьих: ",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| statsBestWinText | db | "Макс. выигрыш: $",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| statsBestLossText | db | "Макс. проигрыш: $",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| statsByGameTitle | db | 13,10,"--- Статистика и лидеры казино ---",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| statsLinePlayed | db | " игр: ",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| statsLineWins | db | " побед: ",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| statsLineLoss | db | " поражений: ",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| statsLineDraw | db | " ничьих: ",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| leaderCurrentTitle | db | "Текущий аккаунт:",13,10,0 | Лидеры | Данные таблицы лидеров по аккаунтам и играм. Это строка или фрагмент ASCII-графики. | +| leaderTitle | db | 13,10,"Лидеры среди всех аккаунтов:",13,10,0 | Лидеры | Данные таблицы лидеров по аккаунтам и играм. Это строка или фрагмент ASCII-графики. | +| leaderNoDataText | db | "Нет сохранений аккаунтов.",13,10,0 | Лидеры | Данные таблицы лидеров по аккаунтам и играм. Это строка или фрагмент ASCII-графики. | +| leaderBankText | db | "Самый большой банк: ",0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. Это строка или фрагмент ASCII-графики. | +| leaderWinsText | db | "Больше всего побед: ",0 | Лидеры | Данные таблицы лидеров по аккаунтам и играм. Это строка или фрагмент ASCII-графики. | +| leaderLossText | db | "Больше всего поражений: ",0 | Лидеры | Данные таблицы лидеров по аккаунтам и играм. Это строка или фрагмент ASCII-графики. | +| leaderGameTitle | db | 13,10,"Лидеры по играм:",13,10,0 | Лидеры | Данные таблицы лидеров по аккаунтам и играм. Это строка или фрагмент ASCII-графики. | +| leaderGameWinText | db | " победы: ",0 | Лидеры | Данные таблицы лидеров по аккаунтам и играм. Это строка или фрагмент ASCII-графики. | +| leaderGameLossText | db | " поражения: ",0 | Лидеры | Данные таблицы лидеров по аккаунтам и играм. Это строка или фрагмент ASCII-графики. | +| leaderDashText | db | "-",0 | Лидеры | Данные таблицы лидеров по аккаунтам и играм. Это строка или фрагмент ASCII-графики. | +| leaderOpenText | db | " (",0 | Лидеры | Данные таблицы лидеров по аккаунтам и играм. Это строка или фрагмент ASCII-графики. | +| leaderCloseText | db | ")",0 | Лидеры | Данные таблицы лидеров по аккаунтам и играм. Это строка или фрагмент ASCII-графики. | +| leaderMoneyPrefix | db | "$",0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. Это строка или фрагмент ASCII-графики. | +| statsGame21 | db | "21 / Очко",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| statsGamePoker | db | "Poker",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| statsGameClover | db | "CloverPit",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| statsGameRR | db | "Русская рулетка",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| statsGameSkulls | db | "Черепа",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| statsGameCoin | db | "Орел/решка",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| statsGameDice | db | "Кости",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| statsGameCasinoRoulette | db | "Казино-рулетка",0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| statsGameClassicSlot | db | "Slot machine",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| statsGameDurak | db | "Дурак",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| statsGameSkillCheck | db | "Крюк: Skill Check",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| statsGameNames | dd | OFFSET statsGame21, OFFSET statsGamePoker, OFFSET statsGameClover, OFF | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| bankRecoveredText | db | "После прошлого визита казино выдало новый стартовый банк: $10000",13, | Экономика | Банк игрока, цель, ставка или текст денежных операций. Это строка или фрагмент ASCII-графики. | +| goalText | db | "Цель игры: довести банк до $",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| victoryText | db | 13,10,"+====================================+",13,10 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| victoryReachedText | db | "Ты поднял банк до $",0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| victoryTailText | db | "Охрана уже нервничает.",13,10 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| victoryExitText | db | "Нажмите любую клавишу, чтобы продолжить игру...",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| nextGoalText | db | "Следующая цель: $",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| croupierPrefix | db | 13,10,"Крупье: ",0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. Это строка или фрагмент ASCII-графики. | +| croupierWin1 | db | "Красиво. Фишки идут к вам.",13,10,0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. Это строка или фрагмент ASCII-графики. | +| croupierWin2 | db | "Стол сегодня явно на вашей стороне.",13,10,0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. Это строка или фрагмент ASCII-графики. | +| croupierWin3 | db | "Хороший удар по банку казино.",13,10,0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. Это строка или фрагмент ASCII-графики. | +| croupierLose1 | db | "Казино забирает ставку.",13,10,0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. Это строка или фрагмент ASCII-графики. | +| croupierLose2 | db | "Не лучший расклад, но вечер еще живой.",13,10,0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. Это строка или фрагмент ASCII-графики. | +| croupierLose3 | db | "Фишки уходят со стола.",13,10,0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. Это строка или фрагмент ASCII-графики. | +| croupierDraw1 | db | "Ставка остается при вас.",13,10,0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. Это строка или фрагмент ASCII-графики. | +| croupierDraw2 | db | "Никто не сдвинул банк. Играем дальше.",13,10,0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. Это строка или фрагмент ASCII-графики. | +| croupierDraw3 | db | "Ровно. Без победителя.",13,10,0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. Это строка или фрагмент ASCII-графики. | +| croupierWinList | dd | OFFSET croupierWin1, OFFSET croupierWin2, OFFSET croupierWin3 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. | +| croupierLoseList | dd | OFFSET croupierLose1, OFFSET croupierLose2, OFFSET croupierLose3 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. | +| croupierDrawList | dd | OFFSET croupierDraw1, OFFSET croupierDraw2, OFFSET croupierDraw3 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. | +| dealerFileName | db | "dealer_phrases.txt",0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. Это строка или фрагмент ASCII-графики. | +| pulseTitleText | db | 13,10,"Пульс ставки:",13,10,0 | Стресс ставки | Уровень стресса и кадры ЭКГ-пульса при рискованной ставке. Это строка или фрагмент ASCII-графики. | +| pulseFrame1 | db | " _/\_ спокойно",13,10,0 | Стресс ставки | Уровень стресса и кадры ЭКГ-пульса при рискованной ставке. Это строка или фрагмент ASCII-графики. | +| pulseFrame2 | db | " _/\/\_ напряжение",13,10,0 | Стресс ставки | Уровень стресса и кадры ЭКГ-пульса при рискованной ставке. Это строка или фрагмент ASCII-графики. | +| pulseFrame3 | db | " _/\/\/\_ риск",13,10,0 | Стресс ставки | Уровень стресса и кадры ЭКГ-пульса при рискованной ставке. Это строка или фрагмент ASCII-графики. | +| pulseFrame4 | db | " _/\/\/\/\_ сердце колотится",13,10,0 | Стресс ставки | Уровень стресса и кадры ЭКГ-пульса при рискованной ставке. Это строка или фрагмент ASCII-графики. | +| pulseFrame5 | db | " _/\/\_/\_ вдох...",13,10,0 | Стресс ставки | Уровень стресса и кадры ЭКГ-пульса при рискованной ставке. Это строка или фрагмент ASCII-графики. | +| observerTitle | db | 13,10,"--- Наблюдатель AI vs AI ---",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| observerIntro | db | "AI-1 и AI-2 играют 5 быстрых раундов в 21 без ставок.",13,10,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| observerRoundText | db | 13,10,"Раунд ",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| observerAI1Text | db | "AI-1 очки: ",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| observerAI2Text | db | "AI-2 очки: ",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| observerWin1Text | db | "AI-1 забирает раунд.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| observerWin2Text | db | "AI-2 забирает раунд.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| observerDrawText | db | "Ничья между железками.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| observerDoneText | db | 13,10,"Наблюдение окончено.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| observerMenuText | db | "1. Русская рулетка",13,10 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| observer21Title | db | 13,10,"--- AI vs AI: 21 / Очко ---",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| observerPokerTitle | db | 13,10,"--- AI vs AI: Poker ---",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| observerDurakTitle | db | 13,10,"--- AI vs AI: Дурак ---",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| observerRRTitle | db | 13,10,"--- AI vs AI: Русская рулетка ---",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| observerAI1CardsText | db | 13,10,"Карты AI-1:",13,10,0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| observerAI2CardsText | db | 13,10,"Карты AI-2:",13,10,0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| observerAI1RaiseText | db | "AI-1 повышает ставку.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| observerAI2RaiseText | db | "AI-2 повышает ставку.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| observerCallText | db | "Соперник отвечает.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| observerFold1Text | db | "AI-1 делает фолд.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| observerFold2Text | db | "AI-2 делает фолд.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| observerShotAI1Text | db | "Выстрел достался AI-1. Победил AI-2.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| observerShotAI2Text | db | "Выстрел достался AI-2. Победил AI-1.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| shopMainMenuText | db | "1. Рубашки карт",13,10 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopBackTitle | db | 13,10,"--- Магазин: рубашки карт ---",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopCharmTitle | db | 13,10,"--- Магазин: талисманы ---",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopBackMenuText | db | "1. Синяя рубашка карт - $3000",13,10 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopCharmMenuText | db | "1. Талисман Клевер: 7%, 3 заряда - $12000",13,10 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopTitle | db | 13,10,"--- Магазин казино ---",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopMenuText | db | "1. Синяя рубашка карт - $3000",13,10 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopBackText | db | "Текущая рубашка: ",0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopBackGray | db | "Серая",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopBackBlue | db | "Синяя волна",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopBackRed | db | "Красный крест",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopBackGold | db | "Золотой блеск",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopBackSkull | db | "Череп",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopBackClover | db | "CloverPit",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopBackArcane | db | "Arcane",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopBackNoir | db | "Noir",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopBackDiamond | db | "Diamond",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopBackRider | db | "Rider",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopBackBee | db | "Bee",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopBackFan | db | "Fan",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopBackWeb | db | "Web",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopCharmText | db | "Талисман: ",0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopCharmNone | db | "нет",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopCharmClover | db | "Клевер",0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopCharmBell | db | "Колокол",0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopCharmDiamond | db | "Алмаз",0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopCharmUsesText | db | ", зарядов: ",0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopBoughtText | db | "Покупка выполнена.",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopSelectedText | db | "Рубашка выбрана.",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopCharmBurnText | db | "Талисман сгорел.",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| shopCharmSaveText | db | 13,10,"Талисман вспыхнул и спас ставку!",13,10,0 | Магазин | Рубашки карт, талисманы, цены, названия и состояние покупок. Это строка или фрагмент ASCII-графики. | +| achMenuTitle | db | 13,10,"--- Достижения ---",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achPopupTop | db | 13,10,"+--------------------------------------+",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achPopupTitle | db | "| ДОСТИЖЕНИЕ ОТКРЫТО |",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achPopupLeft | db | "| ",0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achPopupBottom | db | "+--------------------------------------+",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achDoneText | db | "[x] ",0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achTodoText | db | "[ ] ",0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achFirstWinName | db | "Первый выигрыш",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achFirstLossName | db | "Первый проигрыш",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achJackpotName | db | "Джекпот пойман",13,10,0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| achHighRollerName | db | "Большая ставка",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achShopperName | db | "Покупатель казино",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achCharmName | db | "Талисман сработал",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achGoalName | db | "Цель достигнута",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achCloverPitName | db | "CloverPit разогрелся",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achClassicSlotName | db | "Старый автомат платит",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achPokerRaiseName | db | "Ставка повышена",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achPokerBluffName | db | "Блеф сработал",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achRouletteWinName | db | "Колесо судьбы",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| achRussianWinName | db | "Сухой щелчок",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achDurakWinName | db | "Не дурак",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achBackCollectorName | db | "Коллекционер рубашек",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achCharmBuyerName | db | "Талисман в кармане",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achObserverName | db | "Ложа наблюдателя",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achSkillCheckName | db | "С крюка сорвался",13,10,0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achievementFileName | db | "achievement.txt",0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| achievementCmd | db | "cmd /c start ""Achievement"" achievement_popup.bat",0 | Достижения | Файл, команда, маска или название достижения. Это строка или фрагмент ASCII-графики. | +| skillTitle | db | 13,10,"--- Крюк: Skill Check ---",13,10,0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| skillIntro | db | "Попадай по зеленой зоне. PERFECT дает двойной прогресс.",13,10 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| skillHookArt | db | 13,10 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. | +| skillStateText | db | "Состояние: ",0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| skillStateGood | db | "держишься",13,10,0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| skillStateWarn | db | "цепь скрипит",13,10,0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| skillStateBad | db | "тьма рядом",13,10,0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| skillProgressText | db | "Прогресс побега: ",0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| skillMissText | db | "Промахи: ",0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| skillGaugeHint | db | 13,10,"Шкала:",13,10,0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| skillGaugeLeft | db | "[",0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| skillGaugeRight | db | "]",13,10,0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| skillGaugeEmpty | db | "-",0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| skillGaugeSuccess | db | "#",0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| skillGaugePerfect | db | "@",0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| skillGaugeNeedle | db | "|",0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| skillSuccessText | db | 13,10,"Успех. Ты удержался на крюке.",13,10,0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| skillPerfectText | db | 13,10,"PERFECT! Рывок почти сорвал крюк.",13,10,0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| skillFailText | db | 13,10,"Промах. Крюк дернул сильнее.",13,10,0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| skillEscapeText | db | 13,10,"Ты сорвался с крюка и вырвался из тумана!",13,10,0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| skillDarkText | db | 13,10,"Тьма забрала тебя. Ставка сгорела.",13,10,0 | Skill Check | Положение указателя, зеленая зона, промахи, попадания и скорость шкалы. Это строка или фрагмент ASCII-графики. | +| coinTitle | db | 13,10,"--- Орел и решка ---",13,10,0 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. Это строка или фрагмент ASCII-графики. | +| coinIntroText | db | "Угадай сторону монеты. Победа дает выигрыш размером со ставку.",13,10 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. Это строка или фрагмент ASCII-графики. | +| coinChoiceText | db | "1 - Орел, 2 - Решка: ",0 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. Это строка или фрагмент ASCII-графики. | +| coinSpinText | db | "Монета летит...",13,10,0 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. Это строка или фрагмент ASCII-графики. | +| coinFrame1 | db | 13,10 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. | +| coinFrame2 | db | 13,10 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. | +| coinFrame3 | db | 13,10 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. | +| coinFrame4 | db | 13,10 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. | +| coinFrame5 | db | 13,10 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. | +| coinFrame6 | db | 13,10 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. | +| coinFrame7 | db | 13,10 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. | +| coinFrame8 | db | 13,10 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. | +| coinFrame9 | db | 13,10 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. | +| coinFrame10 | db | 13,10 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. | +| coinFrame11 | db | 13,10 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. | +| coinFrame12 | db | 13,10 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. | +| coinFrame13 | db | 13,10 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. | +| coinFrame14 | db | 13,10 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. | +| coinPickText | db | "Ты выбрал: ",0 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. Это строка или фрагмент ASCII-графики. | +| coinResultText | db | "Выпало: ",0 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. Это строка или фрагмент ASCII-графики. | +| coinHeadsText | db | "Орел",13,10,0 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. Это строка или фрагмент ASCII-графики. | +| coinTailsText | db | "Решка",13,10,0 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. Это строка или фрагмент ASCII-графики. | +| diceTitle | db | 13,10,"--- Кости ---",13,10,0 | Кости | Броски костей, сумма или выбранная четность. Это строка или фрагмент ASCII-графики. | +| diceIntroText | db | "Угадай четность суммы двух костей. Победа дает выигрыш размером со ст | Кости | Броски костей, сумма или выбранная четность. Это строка или фрагмент ASCII-графики. | +| diceChoiceText | db | "1 - чет, 2 - нечет: ",0 | Кости | Броски костей, сумма или выбранная четность. Это строка или фрагмент ASCII-графики. | +| diceRollText | db | "Кости летят по столу...",13,10,0 | Кости | Броски костей, сумма или выбранная четность. Это строка или фрагмент ASCII-графики. | +| diceFirstText | db | "Первая кость: ",0 | Кости | Броски костей, сумма или выбранная четность. Это строка или фрагмент ASCII-графики. | +| diceSecondText | db | "Вторая кость: ",0 | Кости | Броски костей, сумма или выбранная четность. Это строка или фрагмент ASCII-графики. | +| diceSumText | db | "Сумма: ",0 | Кости | Броски костей, сумма или выбранная четность. Это строка или фрагмент ASCII-графики. | +| diceEvenText | db | "Чет",13,10,0 | Кости | Броски костей, сумма или выбранная четность. Это строка или фрагмент ASCII-графики. | +| diceOddText | db | "Нечет",13,10,0 | Кости | Броски костей, сумма или выбранная четность. Это строка или фрагмент ASCII-графики. | +| casinoRouletteTitle | db | 13,10,"--- Казино-рулетка ---",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| casinoRouletteIntro | db | "Европейское колесо: 0 зеленый, половина чисел красные, половина черны | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| casinoRouletteBetMenu | db | "1 - число 0-36",13,10 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| casinoRouletteNumberAsk | db | "Введите число 0-36: ",0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| casinoRouletteBadNumber | db | "В рулетке есть только числа от 0 до 36.",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| casinoRouletteSpinText | db | "Шарик скачет по карманам колеса... Итоговый карман прямо под стрелкой | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| casinoRouletteResultText | db | 13,10,"Шарик остановился на: ",0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| casinoRouletteWinText | db | "Ставка сыграла.",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| casinoRouletteLoseText | db | "Ставка не сыграла.",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| casinoRouletteWheelTop | db | " =============================================================", | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| casinoRouletteWheelBottom | db | " =============================================================", | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| casinoRoulettePad | db | " ",0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rouletteBigSidePad | db | " ",0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rouletteBigSideGap1 | db | " .-------------------------------------------------. ",0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rouletteBigSideGap2 | db | " / .-------------------------------------. \ ",0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rouletteBigSideGap3 | db | " | / . . . . . . . . . . . . . . \ | ",0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rouletteBigSideGap4 | db | " | | \\ | // ( O ) \\ | | ",0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rouletteBigSideGap5 | db | " | | // | \\ --+-- // | | ",0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rouletteBigSideGap6 | db | " | \ . . . . . . . . . . . . \ | | ",0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| roulettePocketLeft | db | "[",0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| roulettePocketRight | db | "] ",0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rouletteNumSpace | db | " ",0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rouletteRedName | db | "красное",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rouletteBlackName | db | "черное",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rouletteGreenName | db | "зеленый ноль",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rouletteWheel | dd | 0,32,15,19,4,21,2,25,17,34,6,27,13,36,11,30,8,23,10 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| rouletteColors | db | 0,1,2,1,2,1,2,1,2,1,2,2,1,2,1,2,1,2,1 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| bankLevelText | db | "Уровень банка: ",0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. Это строка или фрагмент ASCII-графики. | +| bankLevelNewbie | db | "Новичок",13,10,0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. Это строка или фрагмент ASCII-графики. | +| bankLevelPlayer | db | "Игрок",13,10,0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. Это строка или фрагмент ASCII-графики. | +| bankLevelHigh | db | "Хайроллер",13,10,0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. Это строка или фрагмент ASCII-графики. | +| bankLevelLegend | db | "Легенда казино",13,10,0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. Это строка или фрагмент ASCII-графики. | +| hitText | db | "Взять карту? (y/n): ",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| againText | db | "Сыграть еще? (y/n): ",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| yourCardText | db | 13,10,"Твоя карта:",13,10,0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| dealerCardText | db | 13,10,"Карта дилера:",13,10,0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| aiThinkText | db | 13,10,"AI думает...",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| aiMoveText | db | 13,10,"AI берет карту!",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| aiCardsText | db | 13,10,"Карты AI:",13,10,0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| playerCardsText | db | 13,10,"Твои карты:",13,10,0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| yourScoreText | db | "Твои очки: ",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| dealerScoreText | db | "Очки дилера: ",0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. Это строка или фрагмент ASCII-графики. | +| aiScoreText | db | "Очки AI: ",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| bustText | db | "Перебор. Ты проиграл.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| dealerBustText | db | "У дилера перебор. Ты выиграл!",13,10,0 | Крупье | Фразы крупье, чтение dealer_phrases.txt или выбор реплики. Это строка или фрагмент ASCII-графики. | +| winText | db | "Ты выиграл!",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| loseText | db | "Ты проиграл.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| drawText | db | "Ничья.",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| blackjackText | db | "Blackjack!",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| twentyOneTitle | db | 13,10,"--- 21 / Очко ---",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| blackjackTitle | db | 13,10,"--- Blackjack ---",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| pokerTitle | db | 13,10,"--- Poker ---",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| slotTitle | db | 13,10,"--- CloverPit ---",13,10,0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| classicSlotTitle | db | 13,10,"--- Slot machine ---",13,10,0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| durakTitle | db | 13,10,"--- Дурак ---",13,10,0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. Это строка или фрагмент ASCII-графики. | +| durakInfoText | db | "Козырь: ",0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. Это строка или фрагмент ASCII-графики. | +| durakDeckText | db | "Карт в колоде: ",0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| durakAICardsText | db | "Карт у AI: ",0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| durakYourHandText | db | 13,10,"Твои карты:",13,10,0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| durakTableText | db | 13,10,"На столе: ",0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. Это строка или фрагмент ASCII-графики. | +| durakAttackAsk | db | "Выбери карту для атаки: ",0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. Это строка или фрагмент ASCII-графики. | +| durakDefendAsk | db | "Чем бить? 0 - взять: ",0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. Это строка или фрагмент ASCII-графики. | +| durakBadMoveText | db | "Так нельзя. Выбери другую карту.",13,10,0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. Это строка или фрагмент ASCII-графики. | +| durakAITakeText | db | "AI не смог отбиться и взял карту.",13,10,0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. Это строка или фрагмент ASCII-графики. | +| durakAIDefendText | db | "AI отбился картой: ",0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. Это строка или фрагмент ASCII-графики. | +| durakAIAttackText | db | "AI атакует: ",0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. Это строка или фрагмент ASCII-графики. | +| durakPlayerTakeText | db | "Ты взял карту.",13,10,0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. Это строка или фрагмент ASCII-графики. | +| durakPlayerDefendText | db | "Ты отбился.",13,10,0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. Это строка или фрагмент ASCII-графики. | +| durakWinText | db | "Ты вышел из игры без карт. Победа!",13,10,0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. Это строка или фрагмент ASCII-графики. | +| durakLoseText | db | "AI избавился от карт раньше тебя. Ты проиграл.",13,10,0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. Это строка или фрагмент ASCII-графики. | +| trainingTitle | db | 13,10,"--- Обучение ---",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| trainingText | db | "Главное: сначала выбери ставку. Если банк упадет до 0, казино выведет | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| durakDeckVisualText | db | "Колода: [рубашка], из-под нее торчит козырь ",0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| durakAIFaceText | db | 13,10,"Карты AI:",13,10,0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. Это строка или фрагмент ASCII-графики. | +| durakThrowAsk | db | "Подкинуть карту? 0 - бито: ",0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. Это строка или фрагмент ASCII-графики. | +| durakTransferText | db | "Перевод! Ход переходит обратно.",13,10,0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. Это строка или фрагмент ASCII-графики. | +| durakTablePairsText | db | 13,10,"Карты на столе:",13,10,0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. Это строка или фрагмент ASCII-графики. | +| durakSlashText | db | " / ",0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. Это строка или фрагмент ASCII-графики. | +| durakUnbeatenText | db | " _ ",0 | Дурак | Карты, козырь, стол атаки/защиты, ход и временные руки в игре Дурак. Это строка или фрагмент ASCII-графики. | +| skullsTitle | db | 13,10,"--- Черепа и шарик ---",13,10,0 | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. Это строка или фрагмент ASCII-графики. | +| skullsIntroText | db | "Следи за шариком. Выплата за победу: x2.",13,10,0 | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. Это строка или фрагмент ASCII-графики. | +| skullsShowText | db | "Смотри внимательно: шарик сейчас здесь.",13,10,0 | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. Это строка или фрагмент ASCII-графики. | +| skullsHideText | db | "Черепа закрывают шарик...",13,10,0 | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. Это строка или фрагмент ASCII-графики. | +| skullsShuffleText | db | "Черепа скользят по столу...",13,10,0 | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. Это строка или фрагмент ASCII-графики. | +| skullsGuessText | db | "Где шарик? 1 / 2 / 3: ",0 | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. Это строка или фрагмент ASCII-графики. | +| skullsWinText | db | "Верно! Шарик найден.",13,10,0 | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. Это строка или фрагмент ASCII-графики. | +| skullsLoseText | db | "Мимо. Шарик был под другим черепом.",13,10,0 | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. Это строка или фрагмент ASCII-графики. | +| skullsBallText | db | "Шарик был под черепом ",0 | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. Это строка или фрагмент ASCII-графики. | +| skullsSwap12Text | db | " \\______/",13,10," / \",13,10,0 | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. Это строка или фрагмент ASCII-графики. | +| skullsSwap23Text | db | " \\______/",13,10," / | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. Это строка или фрагмент ASCII-графики. | +| skullsSwap13Text | db | " \\____________________/",13,10," / | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. Это строка или фрагмент ASCII-графики. | +| rouletteTitle | db | 13,10,"--- Русская рулетка ---",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrIntroText | db | "Барабан на 6 камер. Easy: 1 опасная, Normal: 2, Hard: 3.",13,10,"AI и | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrDangerText | db | "Опасных камер в барабане: ",0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrSpinText | db | "Барабан вращается... ",0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrSpin1 | db | "|",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrSpin2 | db | "/",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrSpin3 | db | "-",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrSpin4 | db | "\\",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrStartsPlayerText | db | "Револьвер остановился на тебе. Ты стреляешь первым.",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrStartsAIText | db | "Револьвер остановился на AI. Он стреляет первым.",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrPlayerTurnText | db | "Твой ход. Нажми любую клавишу, чтобы нажать на спуск...",0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrAITurnText | db | "Ход AI. Он поднимает револьвер...",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrClickText | db | "Щелчок. Пусто.",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrBangText | db | "БАХ!",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrPlayerLoseText | db | "Тебе не повезло. Ставка уходит казино.",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrAIShotText | db | "AI выбыл. Ты пережил эту партию.",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrPayoutText | db | "Выплата рулетки зависит от сложности.",13,10,0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| buckshotTitle | db | 13,10,"--- Buckshot Roulette ---",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| buckshotIntro | db | "Дробовик заряжен живыми и холостыми патронами в неизвестном порядке." | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| bsShotgunArt | db | 13,10 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsShotgunLoad1 | db | 13,10 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsShotgunLoad2 | db | 13,10 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsShotgunLoad3 | db | 13,10 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsShotgunFire | db | 13,10 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsShotgunDry | db | 13,10 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. | +| bsHPText | db | "HP: ты ",0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsAIHPText | db | " / AI ",0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsShellInfoText | db | "Патроны в раунде: ",0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsLiveText | db | " живых, ",0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsBlankText | db | " холостых",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsLeftText | db | "Осталось в дробовике: ",0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsKnownUnknownText | db | "Текущий патрон: неизвестно",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsKnownLiveText | db | "Текущий патрон: ЖИВОЙ",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsKnownBlankText | db | "Текущий патрон: холостой",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsItemsText | db | "Предметы: лупа ",0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsSawText | db | ", пила ",0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsBeerText | db | ", пиво ",0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsCuffsText | db | ", наручники ",0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsMenuText | db | 13,10,"1. Стрелять в себя",13,10 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsLoadText | db | 13,10,"Крупье заряжает дробовик...",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsLiveLoadedText | db | "Живой патрон",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsBlankLoadedText | db | "Холостой патрон",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsPlayerTurnText | db | 13,10,"Твой ход.",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsAITurnText | db | 13,10,"Ход AI...",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsShootPlayerText | db | "Выстрел в тебя.",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsShootAIText | db | "Выстрел в AI.",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsDryText | db | "Щелчок. Холостой.",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsHitText | db | "БАХ! Урон: ",0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsGlassUseText | db | "Лупа показывает патрон.",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsSawUseText | db | "Пила надрезает ствол. Следующий живой выстрел сильнее.",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsBeerUseText | db | "Пиво. Патрон вылетает из дробовика: ",0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsCuffsUseText | db | "Наручники защелкнулись. AI пропустит ход.",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsNoItemText | db | "Этого предмета нет.",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsAISawText | db | "AI использует пилу.",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsAIGlassText | db | "AI смотрит патрон через лупу.",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsAIBeerText | db | "AI выбрасывает патрон пивом.",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsAICuffsText | db | "AI надевает на тебя наручники.",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsSkipPlayerText | db | "Ты в наручниках и пропускаешь ход.",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsSkipAIText | db | "AI в наручниках и пропускает ход.",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsWinText | db | "AI падает. Ты забираешь банк стола.",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| bsLoseText | db | "Ты падаешь. Крупье забирает ставку.",13,10,0 | Buckshot Roulette | Состояние дробовика: патроны, здоровье, предметы, цель и текущий ход. Это строка или фрагмент ASCII-графики. | +| rrGunUp | db | 117,117,36,96,36,36,36,117,117,36,36,36,13,10 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| rrGunUpLeft | db | 32,32,32,32,32,32,32,36,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,3 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| rrGunLeft | db | 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,3 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| rrGunDownLeft | db | 32,32,32,32,32,32,62,36,13,10 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| rrGunDown | db | 62,36,36,36,36,36,36,42,36,36,36,43,34,96,96,13,10 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| rrGunDownRight | db | 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,3 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| rrGunRight | db | 32,32,32,32,32,32,32,32,32,32,32,32,42,39,36,32,32,32,32,32,32,32,32,3 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| rrGunUpRight | db | 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,80,117, | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. | +| pokerReplaceText | db | "Поменять карту ",0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerReplaceTail | db | "? (y/n): ",0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerAIExchangeText | db | 13,10,"AI думает над обменом...",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerRevealText | db | 13,10,"AI вскрывает покерную руку...",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerYourComboText | db | "Твоя комбинация: ",0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerAIComboText | db | "Комбинация AI: ",0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerTableText | db | 13,10,"Карты на столе:",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerHintText | db | "Подсказка: сейчас у тебя ",0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerDecisionText | db | "1 - играть, 2 - повысить ставку, 0 - фолд: ",0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerPotText | db | "Банк раунда: $",0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerBetText | db | "Твоя текущая ставка: $",0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerChipTitle | db | "Фишки:",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerChipHigh | db | " [###]",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerChipMid | db | " [===]",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerChipLow | db | " [___]",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerRaiseAskText | db | "На сколько повысить ставку: $",0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerRaisedText | db | "Ты повысил ставку. Новая ставка: $",0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerBadRaiseText | db | "Повышение должно быть больше 0 и не больше твоего банка.",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerAICallRaiseText | db | 13,10,"AI отвечает на ставку.",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerAIFoldRaiseText | db | 13,10,"AI не принимает повышение и делает фолд. Ты выиграл!",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerHardIntroText | db | "Hard Poker: один раз можно заменить одну карманную карту.",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerHardExchangeText | db | "Заменить карту? 1 - первую, 2 - вторую, 0 - не менять: ",0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerHardAIExchangeText | db | 13,10,"AI пересматривает карманные карты...",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerAIRaiseText | db | 13,10,"AI повышает ставку на $",0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerCallRaiseText | db | "Ответить? 1 - колл, 0 - фолд: ",0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerPlayerCallText | db | "Ты ответил на повышение. Новая ставка: $",0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerFoldToRaiseText | db | 13,10,"Ты сбросил карты после повышения AI.",13,10,"Ты проиграл.",13,1 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerFoldText | db | 13,10,"Ты сделал фолд.",13,10,"Ты проиграл.",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerAIFoldText | db | 13,10,"AI сделал фолд. Ты выиграл!",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerNextCardText | db | 13,10,"Открывается следующая карта...",13,10,0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| pokerHighName | db | "Старшая карта",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerPairName | db | "Пара",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerTwoPairName | db | "Две пары",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerTripsName | db | "Тройка",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerStraightName | db | "Стрит",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerFlushName | db | "Флеш",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerFullHouseName | db | "Фулл хаус",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerFourName | db | "Каре",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| pokerStraightFlushName | db | "Стрит-флеш",13,10,0 | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. Это строка или фрагмент ASCII-графики. | +| slotPullText | db | "Крутим барабаны...",13,10,0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotLeft | db | "[ ",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotMid | db | " ] [ ",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotRight | db | " ]",13,10,0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotJackpot | db | "Джекпот!",13,10,0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotPair | db | "Комбинация сыграла!",13,10,0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotPayoutText | db | "Выплата x",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotPayTableText | db | "Символы: LEM/CHR x2, CLV/BEL x3, DIA/BOX x5, 777 x7.",13,10 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotEmpty | db | "Не повезло.",13,10,0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotComboText | db | "Комбинация: ",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotMultiplierText | db | "Множитель: x",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotTotalMultiplierText | db | "Итоговый множитель: x",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotComboHorM | db | "Гор. M",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotComboVertM | db | "Верт. M",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotComboDiagM | db | "Диаг. M",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotComboHorL | db | "Гор. L",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotComboHorXL | db | "Гор. XL",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotComboUp | db | "Вверх",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotComboDown | db | "Вниз",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotComboSky | db | "Небо",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotComboEarth | db | "Земля",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotComboEye | db | "Глаз",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotComboJackpot | db | "Джекпот",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| cardTop | db | 0E2h, 094h, 08Ch, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| cardBottom | db | 0E2h, 094h, 094h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| cardEmpty | db | 0E2h, 094h, 082h, " ", 0E2h, 094h, 082h, 13,10,0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardSuitLeft | db | 0E2h, 094h, 082h, " ", 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardSuitRight | db | " ", 0E2h, 094h, 082h, 13,10,0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardRankOneL | db | 0E2h, 094h, 082h, " ", 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardRankOneR | db | " ", 0E2h, 094h, 082h, 13,10,0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardRankTenL | db | 0E2h, 094h, 082h, " ", 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardRankTenR | db | " ", 0E2h, 094h, 082h, 13,10,0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardCenterL | db | 0E2h, 094h, 082h, " ", 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardCenterR | db | " ", 0E2h, 094h, 082h, 13,10,0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardTopSeg | db | 0E2h, 094h, 08Ch, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| cardBottomSeg | db | 0E2h, 094h, 094h, 0E2h, 094h, 080h, 0E2h, 094h, 080h, 0E2h, 094h, 080h | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| cardEmptySeg | db | 0E2h, 094h, 082h, " ", 0E2h, 094h, 082h, 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardBackSeg | db | 0E2h, 094h, 082h, 0E2h, 096h, 091h, 0E2h, 096h, 091h, 0E2h, 096h, 091h | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. | +| cardBackBlueSeg | db | 0E2h, 094h, 082h, "~~*~~*~~*", 0E2h, 094h, 082h, 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardBackRedSeg | db | 0E2h, 094h, 082h, "XX+XX+XX+", 0E2h, 094h, 082h, 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardBackGoldSeg | db | 0E2h, 094h, 082h, "$*$*$*$*$", 0E2h, 094h, 082h, 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardBackSkullSeg | db | 0E2h, 094h, 082h, "|o",0E2h,098h,0A0h," v ",0E2h,098h,0A0h,"o|", 0E2h, | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardBackCloverSeg | db | 0E2h, 094h, 082h, "$+ ",0E2h,099h,0A3h,"$",0E2h,099h,0A3h," +$", 0E2h, | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| backGray1 | db | 0E2h,094h,082h,"+-+-+-+-+",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backGray2 | db | 0E2h,094h,082h,"|#|#|#|#|",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backGray3 | db | 0E2h,094h,082h,"+-+-+-+-+",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backGray4 | db | 0E2h,094h,082h,"|#|#|#|#|",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backGray5 | db | 0E2h,094h,082h,"+-+-+-+-+",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backBlue1 | db | 0E2h,094h,082h,"\\==*==//",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backBlue2 | db | 0E2h,094h,082h,"/ ___ /",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backBlue3 | db | 0E2h,094h,082h,"| (@@@) |",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backBlue4 | db | 0E2h,094h,082h,"/ ~~~ /",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backBlue5 | db | 0E2h,094h,082h,"//==*==//",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backRed1 | db | 0E2h,094h,082h,"ooooooooo",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backRed2 | db | 0E2h,094h,082h,"oXXXxXXXo",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backRed3 | db | 0E2h,094h,082h,"oXX---XXo",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backRed4 | db | 0E2h,094h,082h,"oXXXxXXXo",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backRed5 | db | 0E2h,094h,082h,"ooooooooo",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backGold1 | db | 0E2h,094h,082h,"{$*$$$*$}",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backGold2 | db | 0E2h,094h,082h,"*/^ $ ^/*",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backGold3 | db | 0E2h,094h,082h,"$ <@@@> $",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backGold4 | db | 0E2h,094h,082h,"*v/ $ /v*",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backGold5 | db | 0E2h,094h,082h,"{$*$$$*$}",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backSkull1 | db | 0E2h,094h,082h,"._.---._.",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backSkull2 | db | 0E2h,094h,082h,"/,(o o),\",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backSkull3 | db | 0E2h,094h,082h,"| ^ |",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backSkull4 | db | 0E2h,094h,082h,"\ '-=-' /",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backSkull5 | db | 0E2h,094h,082h,"~|==|==|~",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backClover1 | db | 0E2h,094h,082h,"+o+$$$+o+",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backClover2 | db | 0E2h,094h,082h,"o ",0E2h,098h,098h," + ",0E2h,098h,098h," o",0E2h,094h | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backClover3 | db | 0E2h,094h,082h,"$+ ",0E2h,099h,0A3h,"$",0E2h,099h,0A3h," +$",0E2h,094h | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backClover4 | db | 0E2h,094h,082h,"o ",0E2h,098h,098h," | ",0E2h,098h,098h," o",0E2h,094h | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backClover5 | db | 0E2h,094h,082h,"+o+$$$+o+",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backArcane1 | db | 0E2h,094h,082h,".~*~*~*~.",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backArcane2 | db | 0E2h,094h,082h,"/__~_~__\",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backArcane3 | db | 0E2h,094h,082h,"|_/\/\_ |",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backArcane4 | db | 0E2h,094h,082h,"| \_/\_/|",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backArcane5 | db | 0E2h,094h,082h,"'--===--'",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backNoir1 | db | 0E2h,094h,082h,"((\\_//))",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backNoir2 | db | 0E2h,094h,082h,"// | \\",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backNoir3 | db | 0E2h,094h,082h,"--(#*#)--",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backNoir4 | db | 0E2h,094h,082h,"\\__|__//",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backNoir5 | db | 0E2h,094h,082h,"((//~\\))",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backDiamond1 | db | 0E2h,094h,082h,"<><###><>",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backDiamond2 | db | 0E2h,094h,082h,"/\ /\",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backDiamond3 | db | 0E2h,094h,082h,"*$*",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backDiamond4 | db | 0E2h,094h,082h,"\/ \/",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backDiamond5 | db | 0E2h,094h,082h,"<><###><>",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backRider1 | db | 0E2h,094h,082h,".oO===Oo.",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backRider2 | db | 0E2h,094h,082h,"(/ .-. /)",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backRider3 | db | 0E2h,094h,082h,"o-( @ )-o",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backRider4 | db | 0E2h,094h,082h,"(/ '-' /)",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backRider5 | db | 0E2h,094h,082h,"'oO===Oo'",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backBee1 | db | 0E2h,094h,082h,"<>.<>.<>.",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backBee2 | db | 0E2h,094h,082h,".<>.<><>.",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backBee3 | db | 0E2h,094h,082h,"<> BEE <>",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backBee4 | db | 0E2h,094h,082h,".<>.<><>.",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backBee5 | db | 0E2h,094h,082h,"<>.<>.<>.",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backFan1 | db | 0E2h,094h,082h,"\\|/\\|//",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backFan2 | db | 0E2h,094h,082h," -\\|//- ",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backFan3 | db | 0E2h,094h,082h,"<(( o ))>",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backFan4 | db | 0E2h,094h,082h," -//|\\- ",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backFan5 | db | 0E2h,094h,082h,"//|/|/|\\",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backWeb1 | db | 0E2h,094h,082h,"\\..|..//",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backWeb2 | db | 0E2h,094h,082h,".\\.|.//.",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backWeb3 | db | 0E2h,094h,082h,"--(o-o)--",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backWeb4 | db | 0E2h,094h,082h,".//|.|\\.",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| backWeb5 | db | 0E2h,094h,082h,"//''-''\\",0E2h,094h,082h,0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| cardFlipLeft | db | 0E2h, 094h, 082h, " \ ", 0E2h, 094h, 082h, 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardFlipMid | db | 0E2h, 094h, 082h, " | ", 0E2h, 094h, 082h, 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardFlipRight | db | 0E2h, 094h, 082h, " / ", 0E2h, 094h, 082h, 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardSuitRightSeg | db | " ", 0E2h, 094h, 082h, 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardRankOneRSeg | db | " ", 0E2h, 094h, 082h, 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardRankTenRSeg | db | " ", 0E2h, 094h, 082h, 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardCenterRSeg | db | " ", 0E2h, 094h, 082h, 0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardGap | db | " ",0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| revealText | db | 13,10,"AI вскрывает карты...",13,10,0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| rank2 | db | "2",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| rank3 | db | "3",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| rank4 | db | "4",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| rank5 | db | "5",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| rank6 | db | "6",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| rank7 | db | "7",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| rank8 | db | "8",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| rank9 | db | "9",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| rank10 | db | "10",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| rankJ | db | "J",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| rankQ | db | "Q",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| rankK | db | "K",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| rankA | db | "A",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| suitSpades | db | 0E2h, 099h, 0A0h, 0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| suitHearts | db | 0E2h, 099h, 0A5h, 0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| suitClubs | db | 0E2h, 099h, 0A3h, 0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| suitDiamonds | db | 0E2h, 099h, 0A6h, 0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| ranks | dd | OFFSET rank2, OFFSET rank3, OFFSET rank4, OFFSET rank5 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| suits | dd | OFFSET suitSpades, OFFSET suitHearts, OFFSET suitClubs, OFFSET suitDia | Прочее | Служебная переменная или строка, используемая внутри игровой логики. | +| pokerNames | dd | OFFSET pokerHighName, OFFSET pokerPairName, OFFSET pokerTwoPairName | Покер | Временное состояние покера: оценка комбинаций, ставки, обмен карт или счетчики рангов/мастей. | +| slot0 | db | "CLV",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slot1 | db | "LEM",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slot2 | db | "CHR",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slot3 | db | "BEL",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slot4 | db | "DIA",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slot5 | db | "BOX",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slot6 | db | "777",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotSymbols | dd | OFFSET slot0, OFFSET slot1, OFFSET slot2 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. | +| slotSymbolValues | dd | 3, 2, 2, 3, 5, 5, 7 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. | +| classicSlot0 | db | "7",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| classicSlot1 | db | "BAR",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| classicSlot2 | db | "$",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| classicSlot3 | db | "*",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| classicSlot4 | db | "#",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| classicSlot5 | db | "A",0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| classicSlotSymbols | dd | OFFSET classicSlot0, OFFSET classicSlot1, OFFSET classicSlot2 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. | +| classicSlotPayTableText | db | "Классический слот 3x3. Выигрышная линия - средняя.",13,10 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| classicSlotJackpot | db | "Джекпот! Три одинаковых.",13,10,0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| classicSlotPair | db | "Пара на линии!",13,10,0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| classicSlotEmpty | db | "Не повезло.",13,10,0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| classicSlotBorder | db | '+-----+-----+-----+',13,10,0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| classicSlotPayline | db | '----- WIN LINE -----',13,10,0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| cardSoundClose | db | 'close cardsound',0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardSoundOpen | db | 'open "playing_cards_deck_flick_through_001_20485.wav" type waveaudio | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardSoundPlay | db | 'play cardsound from 0',0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| cardSoundStop | db | 'stop cardsound',0 | Карты | Состояние колоды, карт на руках, карт на столе или отображения карт. Это строка или фрагмент ASCII-графики. | +| slotSoundClose | db | 'close slotsound',0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotSoundOpen | db | 'open "hKhoJArfEGAxxMewx0UQiddakTdBjFc.wav" type waveaudio alias slots | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotSoundPlay | db | 'play slotsound from 0',0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotSoundStop | db | 'stop slotsound',0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotIntroClose | db | 'close slotintro',0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotIntroOpen | db | 'open "Летс гоу гэмблинг.wav" type waveaudio alias slotintro',0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotIntroPlay | db | 'play slotintro from 0',0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotIntroStop | db | 'stop slotintro',0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| jackpotClose | db | 'close jackpotsound',0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| jackpotOpen | db | 'open "Джэк пот.wav" type waveaudio alias jackpotsound',0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| jackpotPlay | db | 'play jackpotsound from 0',0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| jackpotStop | db | 'stop jackpotsound',0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| hakariSoundClose | db | 'close hakarisound',0 | Звуки | MCI-команда или имя звукового ресурса. Это строка или фрагмент ASCII-графики. | +| hakariSoundOpen | db | 'open "hakari_dance.wav" type waveaudio alias hakarisound',0 | Звуки | MCI-команда или имя звукового ресурса. Это строка или фрагмент ASCII-графики. | +| hakariSoundPlay | db | 'play hakarisound from 0',0 | Звуки | MCI-команда или имя звукового ресурса. Это строка или фрагмент ASCII-графики. | +| hakariSoundStop | db | 'stop hakarisound',0 | Звуки | MCI-команда или имя звукового ресурса. Это строка или фрагмент ASCII-графики. | +| coinSoundClose | db | 'close coinsound',0 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. Это строка или фрагмент ASCII-графики. | +| coinSoundOpen | db | 'open "Звук монеты брошенной в воздух и упавшей на поверхность.wav" ty | Орел и решка | Выбор игрока, результат или кадр анимации монеты. Это строка или фрагмент ASCII-графики. | +| coinSoundPlay | db | 'play coinsound from 0',0 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. Это строка или фрагмент ASCII-графики. | +| coinSoundStop | db | 'stop coinsound',0 | Орел и решка | Выбор игрока, результат или кадр анимации монеты. Это строка или фрагмент ASCII-графики. | +| bankruptClose | db | 'close bankruptsound',0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. Это строка или фрагмент ASCII-графики. | +| bankruptOpen | db | 'open "Проигрыш.wav" type waveaudio alias bankruptsound',0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. Это строка или фрагмент ASCII-графики. | +| bankruptPlay | db | 'play bankruptsound from 0',0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. Это строка или фрагмент ASCII-графики. | +| bankruptStop | db | 'stop bankruptsound',0 | Экономика | Банк игрока, цель, ставка или текст денежных операций. Это строка или фрагмент ASCII-графики. | +| victoryClose | db | 'close victorysound',0 | Звуки | MCI-команда или имя звукового ресурса. Это строка или фрагмент ASCII-графики. | +| victoryOpen | db | 'open "victory-tf2.wav" type waveaudio alias victorysound',0 | Звуки | MCI-команда или имя звукового ресурса. Это строка или фрагмент ASCII-графики. | +| victoryPlay | db | 'play victorysound from 0',0 | Звуки | MCI-команда или имя звукового ресурса. Это строка или фрагмент ASCII-графики. | +| victoryStop | db | 'stop victorysound',0 | Звуки | MCI-команда или имя звукового ресурса. Это строка или фрагмент ASCII-графики. | +| rrSpinClose | db | 'close rrspinsound',0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrSpinOpen | db | 'open "toy-gun-revolver-close-chamber-spin_f1ruc5nd.wav" type waveaudi | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrSpinPlay | db | 'play rrspinsound from 0',0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrSpinStop | db | 'stop rrspinsound',0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrDryClose | db | 'close rrdrysound',0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrDryOpen | db | 'open "revolverdryfirec.wav" type waveaudio alias rrdrysound',0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrDryPlay | db | 'play rrdrysound from 0',0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrDryStop | db | 'stop rrdrysound',0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrShotClose | db | 'close rrshotsound',0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrShotOpen | db | 'open "b05e1ac8be34248.wav" type waveaudio alias rrshotsound',0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrShotPlay | db | 'play rrshotsound from 0',0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| rrShotStop | db | 'stop rrshotsound',0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| casinoRouletteSoundClose | db | 'close casinoroulettesound',0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| casinoRouletteSoundOpen | db | 'open "roulette-wheel-throw-2.wav" type waveaudio alias casinoroulette | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| casinoRouletteSoundPlay | db | 'play casinoroulettesound from 0',0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| casinoRouletteSoundStop | db | 'stop casinoroulettesound',0 | Рулетка | Состояние русской или казино-рулетки: барабан, пули, колесо, ставка, результат. Это строка или фрагмент ASCII-графики. | +| stoneSoundClose | db | 'close stonesound',0 | Звуки | MCI-команда или имя звукового ресурса. Это строка или фрагмент ASCII-графики. | +| stoneSoundOpen | db | 'open "moving-stone.wav" type waveaudio alias stonesound',0 | Звуки | MCI-команда или имя звукового ресурса. Это строка или фрагмент ASCII-графики. | +| stoneSoundPlay | db | 'play stonesound from 0',0 | Звуки | MCI-команда или имя звукового ресурса. Это строка или фрагмент ASCII-графики. | +| stoneSoundStop | db | 'stop stonesound',0 | Звуки | MCI-команда или имя звукового ресурса. Это строка или фрагмент ASCII-графики. | +| slotBorder | db | '+-----+-----+-----+-----+-----+',13,10,0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotWall | db | '|',0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotWinLeft | db | '>',0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotWinRight | db | '<',0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotCellBlank | db | ' ',0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotPadTwo | db | ' ',0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| slotPadOne | db | ' ',0 | Слоты | Состояние слот-машины: символы, видимые барабаны, выигрышные линии, множители и джекпот. Это строка или фрагмент ASCII-графики. | +| skullSeg1 | db | 020h, 020h, 020h, 020h, 0E2h, 096h, 084h, 0E2h, 096h, 088h, 0E2h, 096h | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. | +| skullSeg2 | db | 020h, 020h, 0E2h, 096h, 084h, 0E2h, 096h, 088h, 0E2h, 096h, 080h, 020h | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. | +| skullSeg3 | db | 020h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 020h, 020h | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. | +| skullSeg4 | db | 020h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 020h, 020h, 0E2h, 096h, 080h | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. | +| skullSeg5 | db | 020h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 020h, 020h, 0E2h, 096h, 084h | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. | +| skullSeg6 | db | 020h, 020h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 020h, 0E2h, 096h, 080h | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. | +| skullSeg7 | db | 020h, 020h, 020h, 0E2h, 096h, 080h, 0E2h, 096h, 088h, 0E2h, 096h, 088h | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. | +| skullSeg8 | db | 020h, 020h, 020h, 020h, 0E2h, 096h, 088h, 0E2h, 096h, 088h, 020h, 020h | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. | +| skullNums | db | " [1] [2] [3]",13,10,0 | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. Это строка или фрагмент ASCII-графики. | +| skullBlankBall | db | 13,10,13,10,13,10,0 | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. | +| skullBall1 | db | " .***.",13,10," (* O *)",13,10," `***'",13,10,0 | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. Это строка или фрагмент ASCII-графики. | +| skullBall2 | db | " .***.",13,10," (* O *)",13,10," | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. Это строка или фрагмент ASCII-графики. | +| skullBall3 | db | " .***.",13,10," | Черепа и шарик | Позиция шарика, выбор игрока или параметры перемешивания черепов. Это строка или фрагмент ASCII-графики. | +| saveFileName | db | 64 dup(0) | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Объявлено как массив/буфер. | +| saveExt | db | '.dat',0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| accountPattern | db | "*.dat",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| danceFileName | db | "hakari_dance.ans",0 | Тексты интерфейса | Строка, которая выводится пользователю в меню, игре или результате. Это строка или фрагмент ASCII-графики. | +| casinoIntroFile | db | "casino_intro.ans",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| ansiExitIntro | db | 1Bh,"[0m",1Bh,"[?25h",1Bh,"[2J",1Bh,"[H",0 | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Это строка или фрагмент ASCII-графики. | +| accountList | db | 20 dup(64 dup(0)) | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Объявлено как массив/буфер. | +| findData | db | 320 dup(0) | Прочее | Служебная переменная или строка, используемая внутри игровой логики. Объявлено как массив/буфер. | \ No newline at end of file diff --git a/graphify-out/cost.json b/graphify-out/cost.json new file mode 100644 index 0000000..e5b4093 --- /dev/null +++ b/graphify-out/cost.json @@ -0,0 +1,12 @@ +{ + "runs": [ + { + "date": "2026-09-24T18:38:37.106144+00:00", + "input_tokens": 0, + "output_tokens": 0, + "files": 80 + } + ], + "total_input_tokens": 0, + "total_output_tokens": 0 +} \ No newline at end of file diff --git a/graphify-out/graph.html b/graphify-out/graph.html new file mode 100644 index 0000000..b546e5d --- /dev/null +++ b/graphify-out/graph.html @@ -0,0 +1,320 @@ + + + + +graphify - graphify-out/graph.html + + + + +
+ + + + + \ No newline at end of file diff --git a/graphify-out/graph.json b/graphify-out/graph.json new file mode 100644 index 0000000..8c99b64 --- /dev/null +++ b/graphify-out/graph.json @@ -0,0 +1,4030 @@ +{ + "directed": false, + "multigraph": false, + "graph": { + "hyperedges": [ + { + "id": "he_p2p_multiplayer_architecture", + "label": "P2P Multiplayer Architecture", + "nodes": [ + "docs_online_radmin_host_authoritative", + "docs_online_radmin_p2p_socket", + "docs_roadmap_online_command_protocol" + ], + "relation": "implement", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "docs/ONLINE_RADMIN.txt" + }, + { + "id": "he_save_integrity_protection", + "label": "Save File Integrity & Persistence Architecture", + "nodes": [ + "docs_security_notes_save_tamper_signature", + "graphify_out_converted_variables_documentation_3fc6d2dc_save_magic", + "\u0438\u0434\u0435\u0438_appdata_saves" + ], + "relation": "form", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "docs/SECURITY_NOTES.txt" + }, + { + "id": "he_release_packaging_verification", + "label": "Release Packaging & Verification Flow", + "nodes": [ + "docs_release_checklist_smoke_check", + "docs_release_checklist_installer_validation", + "docs_security_notes_sha256_payload_check" + ], + "relation": "implement", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "docs/RELEASE_CHECKLIST.txt" + }, + { + "id": "cabaret_dancer_animation_set", + "label": "Cabaret Dancer Animation Sequence", + "nodes": [ + "assets_textures_sprite_dancer_frame_0_image", + "assets_textures_sprite_dancer_frame_1_image", + "assets_textures_sprite_dancer_frame_2_image", + "assets_textures_sprite_dancer_frame_3_image" + ], + "relation": "form", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "assets/sprites/cabaret-loop-v1.png" + }, + { + "id": "slot_machine_animation_set", + "label": "Slot Machine Reel Animation Sequence", + "nodes": [ + "assets_textures_sprite_slot_frame_0_image", + "assets_textures_sprite_slot_frame_1_image", + "assets_textures_sprite_slot_frame_2_image" + ], + "relation": "form", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "assets/textures/sprite_slot_frame_0.png" + }, + { + "id": "casino_wall_textures_set", + "label": "Casino Wall Textures Set", + "nodes": [ + "assets_textures_tex_wall_velvet_image", + "assets_textures_tex_wall_stripclub_image", + "assets_textures_tex_wall_hell_image" + ], + "relation": "form", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "assets/textures/tex_wall_velvet.png" + } + ] + }, + "nodes": [ + { + "label": "casino3d.inc", + "file_type": "code", + "source_file": "casino3d.inc", + "source_location": "L1", + "_origin": "ast", + "id": "casino3d", + "community": 18, + "norm_label": "casino3d.inc" + }, + { + "label": "casino3d_data.inc", + "file_type": "code", + "source_file": "casino3d_data.inc", + "source_location": "L1", + "_origin": "ast", + "id": "casino3d_data", + "community": 19, + "norm_label": "casino3d_data.inc" + }, + { + "label": "font8x8.inc", + "file_type": "code", + "source_file": "font8x8.inc", + "source_location": "L1", + "_origin": "ast", + "id": "font8x8", + "community": 20, + "norm_label": "font8x8.inc" + }, + { + "label": "platform_code.inc", + "file_type": "code", + "source_file": "src_graphics/platform_code.inc", + "source_location": "L1", + "_origin": "ast", + "id": "src_graphics_platform_code", + "community": 22, + "norm_label": "platform_code.inc" + }, + { + "label": "platform_data.inc", + "file_type": "code", + "source_file": "src_graphics/platform_data.inc", + "source_location": "L1", + "_origin": "ast", + "id": "src_graphics_platform_data", + "community": 23, + "norm_label": "platform_data.inc" + }, + { + "label": "renderer.inc", + "file_type": "code", + "source_file": "src_graphics/renderer.inc", + "source_location": "L1", + "_origin": "ast", + "id": "src_graphics_renderer", + "community": 24, + "norm_label": "renderer.inc" + }, + { + "label": "casino_portable.c", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L1", + "_origin": "ast", + "id": "src_portable_casino_portable_c_src_portable_casino_portable", + "community": 0, + "norm_label": "casino_portable.c" + }, + { + "label": "platform_init()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L14", + "_origin": "ast", + "id": "src_portable_casino_portable_platform_init", + "community": 0, + "norm_label": "platform_init()" + }, + { + "label": "platform_cleanup()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L26", + "_origin": "ast", + "id": "src_portable_casino_portable_platform_cleanup", + "community": 0, + "norm_label": "platform_cleanup()" + }, + { + "label": "clear_screen()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L32", + "_origin": "ast", + "id": "src_portable_casino_portable_clear_screen", + "community": 0, + "norm_label": "clear_screen()" + }, + { + "label": "set_text_color()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L37", + "_origin": "ast", + "id": "src_portable_casino_portable_set_text_color", + "community": 0, + "norm_label": "set_text_color()" + }, + { + "label": "read_masked_password()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L42", + "_origin": "ast", + "id": "src_portable_casino_portable_read_masked_password", + "community": 0, + "norm_label": "read_masked_password()" + }, + { + "label": "hash_password()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L76", + "_origin": "ast", + "id": "src_portable_casino_portable_hash_password", + "community": 0, + "norm_label": "hash_password()" + }, + { + "label": "calc_account_signature()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L89", + "_origin": "ast", + "id": "src_portable_casino_portable_calc_account_signature", + "community": 0, + "norm_label": "calc_account_signature()" + }, + { + "label": "AccountData", + "file_type": "code", + "source_file": "", + "source_location": "", + "_origin": "ast", + "id": "accountdata", + "community": 0, + "norm_label": "accountdata" + }, + { + "label": "account_save()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L101", + "_origin": "ast", + "id": "src_portable_casino_portable_account_save", + "community": 0, + "norm_label": "account_save()" + }, + { + "label": "account_register()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L114", + "_origin": "ast", + "id": "src_portable_casino_portable_account_register", + "community": 0, + "norm_label": "account_register()" + }, + { + "label": "account_login()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L141", + "_origin": "ast", + "id": "src_portable_casino_portable_account_login", + "community": 0, + "norm_label": "account_login()" + }, + { + "label": "account_generate_transfer_key()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L204", + "_origin": "ast", + "id": "src_portable_casino_portable_account_generate_transfer_key", + "community": 0, + "norm_label": "account_generate_transfer_key()" + }, + { + "label": "account_import_transfer_key()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L211", + "_origin": "ast", + "id": "src_portable_casino_portable_account_import_transfer_key", + "community": 0, + "norm_label": "account_import_transfer_key()" + }, + { + "label": "account_cloud_sync_upload()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L237", + "_origin": "ast", + "id": "src_portable_casino_portable_account_cloud_sync_upload", + "community": 0, + "norm_label": "account_cloud_sync_upload()" + }, + { + "label": "account_cloud_sync_download()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L248", + "_origin": "ast", + "id": "src_portable_casino_portable_account_cloud_sync_download", + "community": 0, + "norm_label": "account_cloud_sync_download()" + }, + { + "label": "verify_peer_account_signature()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L272", + "_origin": "ast", + "id": "src_portable_casino_portable_verify_peer_account_signature", + "community": 0, + "norm_label": "verify_peer_account_signature()" + }, + { + "label": "render_lobby_browser()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L278", + "_origin": "ast", + "id": "src_portable_casino_portable_render_lobby_browser", + "community": 0, + "norm_label": "render_lobby_browser()" + }, + { + "label": "host_room_flow()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L309", + "_origin": "ast", + "id": "src_portable_casino_portable_host_room_flow", + "community": 0, + "norm_label": "host_room_flow()" + }, + { + "label": "net_lobby_menu()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L341", + "_origin": "ast", + "id": "src_portable_casino_portable_net_lobby_menu", + "community": 0, + "norm_label": "net_lobby_menu()" + }, + { + "label": "play_umamusume()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L419", + "_origin": "ast", + "id": "src_portable_casino_portable_play_umamusume", + "community": 0, + "norm_label": "play_umamusume()" + }, + { + "label": "main()", + "file_type": "code", + "source_file": "src_portable/casino_portable.c", + "source_location": "L482", + "_origin": "ast", + "id": "src_portable_casino_portable_main", + "community": 0, + "norm_label": "main()" + }, + { + "label": "casino_portable.h", + "file_type": "code", + "source_file": "src_portable/casino_portable.h", + "source_location": "L1", + "_origin": "ast", + "id": "src_portable_casino_portable_h_src_portable_casino_portable", + "community": 0, + "norm_label": "casino_portable.h" + }, + { + "label": "build_all_3d.py", + "file_type": "code", + "source_file": "tools/build_all_3d.py", + "source_location": "L1", + "_origin": "ast", + "id": "tools_build_all_3d", + "community": 14, + "norm_label": "build_all_3d.py" + }, + { + "label": "a()", + "file_type": "code", + "source_file": "tools/build_all_3d.py", + "source_location": "L7", + "_origin": "ast", + "id": "tools_build_all_3d_a", + "community": 14, + "norm_label": "a()" + }, + { + "label": "build_casino_assets.py", + "file_type": "code", + "source_file": "tools/build_casino_assets.py", + "source_location": "L1", + "_origin": "ast", + "id": "tools_build_casino_assets", + "community": 4, + "norm_label": "build_casino_assets.py" + }, + { + "label": "clean_chromakey_black()", + "file_type": "code", + "source_file": "tools/build_casino_assets.py", + "source_location": "L14", + "_origin": "ast", + "id": "tools_build_casino_assets_clean_chromakey_black", + "community": 4, + "norm_label": "clean_chromakey_black()" + }, + { + "label": "Image", + "file_type": "code", + "source_file": "", + "source_location": "", + "_origin": "ast", + "id": "image", + "community": 4, + "norm_label": "image" + }, + { + "label": "clean_chromakey_white()", + "file_type": "code", + "source_file": "tools/build_casino_assets.py", + "source_location": "L25", + "_origin": "ast", + "id": "tools_build_casino_assets_clean_chromakey_white", + "community": 4, + "norm_label": "clean_chromakey_white()" + }, + { + "label": "img_to_raw_dwords()", + "file_type": "code", + "source_file": "tools/build_casino_assets.py", + "source_location": "L35", + "_origin": "ast", + "id": "tools_build_casino_assets_img_to_raw_dwords", + "community": 4, + "norm_label": "img_to_raw_dwords()" + }, + { + "label": "make_wood_wall()", + "file_type": "code", + "source_file": "tools/build_casino_assets.py", + "source_location": "L46", + "_origin": "ast", + "id": "tools_build_casino_assets_make_wood_wall", + "community": 4, + "norm_label": "make_wood_wall()" + }, + { + "label": "make_carpet_floor()", + "file_type": "code", + "source_file": "tools/build_casino_assets.py", + "source_location": "L60", + "_origin": "ast", + "id": "tools_build_casino_assets_make_carpet_floor", + "community": 4, + "norm_label": "make_carpet_floor()" + }, + { + "label": "make_ceiling_tex()", + "file_type": "code", + "source_file": "tools/build_casino_assets.py", + "source_location": "L80", + "_origin": "ast", + "id": "tools_build_casino_assets_make_ceiling_tex", + "community": 4, + "norm_label": "make_ceiling_tex()" + }, + { + "label": "make_atm()", + "file_type": "code", + "source_file": "tools/build_casino_assets.py", + "source_location": "L101", + "_origin": "ast", + "id": "tools_build_casino_assets_make_atm", + "community": 4, + "norm_label": "make_atm()" + }, + { + "label": "make_backroom_table()", + "file_type": "code", + "source_file": "tools/build_casino_assets.py", + "source_location": "L120", + "_origin": "ast", + "id": "tools_build_casino_assets_make_backroom_table", + "community": 4, + "norm_label": "make_backroom_table()" + }, + { + "label": "main()", + "file_type": "code", + "source_file": "tools/build_casino_assets.py", + "source_location": "L140", + "_origin": "ast", + "id": "tools_build_casino_assets_main", + "community": 4, + "norm_label": "main()" + }, + { + "label": "Resize with NEAREST so pixels never blend with chromakey!", + "file_type": "rationale", + "source_file": "tools/build_casino_assets.py", + "source_location": "L15", + "_origin": "ast", + "id": "tools_build_casino_assets_rationale_15", + "community": 4, + "norm_label": "resize with nearest so pixels never blend with chromakey!" + }, + { + "label": "build_engine.py", + "file_type": "code", + "source_file": "tools/build_engine.py", + "source_location": "L1", + "_origin": "ast", + "id": "tools_build_engine", + "community": 25, + "norm_label": "build_engine.py" + }, + { + "label": "build_graphics.ps1", + "file_type": "code", + "source_file": "tools/build_graphics.ps1", + "source_location": "L1", + "_origin": "ast", + "id": "tools_build_graphics", + "community": 26, + "norm_label": "build_graphics.ps1" + }, + { + "label": "build_graphics_assets.py", + "file_type": "code", + "source_file": "tools/build_graphics_assets.py", + "source_location": "L1", + "_origin": "ast", + "id": "tools_build_graphics_assets", + "community": 7, + "norm_label": "build_graphics_assets.py" + }, + { + "label": "cells()", + "file_type": "code", + "source_file": "tools/build_graphics_assets.py", + "source_location": "L15", + "_origin": "ast", + "id": "tools_build_graphics_assets_cells", + "community": 7, + "norm_label": "cells()" + }, + { + "label": "sprite()", + "file_type": "code", + "source_file": "tools/build_graphics_assets.py", + "source_location": "L22", + "_origin": "ast", + "id": "tools_build_graphics_assets_sprite", + "community": 7, + "norm_label": "sprite()" + }, + { + "label": "pack()", + "file_type": "code", + "source_file": "tools/build_graphics_assets.py", + "source_location": "L32", + "_origin": "ast", + "id": "tools_build_graphics_assets_pack", + "community": 7, + "norm_label": "pack()" + }, + { + "label": "main()", + "file_type": "code", + "source_file": "tools/build_graphics_assets.py", + "source_location": "L41", + "_origin": "ast", + "id": "tools_build_graphics_assets_main", + "community": 7, + "norm_label": "main()" + }, + { + "label": "Pack project-local source art into the MASM renderer's 128px BGRA slots. Pyth", + "file_type": "rationale", + "source_file": "tools/build_graphics_assets.py", + "source_location": "L1", + "_origin": "ast", + "id": "tools_build_graphics_assets_rationale_1", + "community": 7, + "norm_label": "pack project-local source art into the masm renderer's 128px bgra slots. pyth" + }, + { + "label": "generate_casino3d.py", + "file_type": "code", + "source_file": "tools/generate_casino3d.py", + "source_location": "L1", + "_origin": "ast", + "id": "tools_generate_casino3d", + "community": 27, + "norm_label": "generate_casino3d.py" + }, + { + "label": "generate_font.py", + "file_type": "code", + "source_file": "tools/generate_font.py", + "source_location": "L1", + "_origin": "ast", + "id": "tools_generate_font", + "community": 28, + "norm_label": "generate_font.py" + }, + { + "label": "generate_math_and_map.py", + "file_type": "code", + "source_file": "tools/generate_math_and_map.py", + "source_location": "L1", + "_origin": "ast", + "id": "tools_generate_math_and_map", + "community": 15, + "norm_label": "generate_math_and_map.py" + }, + { + "label": "float_to_fp()", + "file_type": "code", + "source_file": "tools/generate_math_and_map.py", + "source_location": "L7", + "_origin": "ast", + "id": "tools_generate_math_and_map_float_to_fp", + "community": 15, + "norm_label": "float_to_fp()" + }, + { + "label": "generate_unified_casino3d.py", + "file_type": "code", + "source_file": "tools/generate_unified_casino3d.py", + "source_location": "L1", + "_origin": "ast", + "id": "tools_generate_unified_casino3d", + "community": 29, + "norm_label": "generate_unified_casino3d.py" + }, + { + "label": "make_casino3d.py", + "file_type": "code", + "source_file": "tools/make_casino3d.py", + "source_location": "L1", + "_origin": "ast", + "id": "tools_make_casino3d", + "community": 30, + "norm_label": "make_casino3d.py" + }, + { + "label": "patch_poker_asm.py", + "file_type": "code", + "source_file": "tools/patch_poker_asm.py", + "source_location": "L1", + "_origin": "ast", + "id": "tools_patch_poker_asm", + "community": 31, + "norm_label": "patch_poker_asm.py" + }, + { + "label": "preview_dbd_hook.py", + "file_type": "code", + "source_file": "tools/preview_dbd_hook.py", + "source_location": "L1", + "_origin": "ast", + "id": "tools_preview_dbd_hook", + "community": 11, + "norm_label": "preview_dbd_hook.py" + }, + { + "label": "place_window()", + "file_type": "code", + "source_file": "tools/preview_dbd_hook.py", + "source_location": "L12", + "_origin": "ast", + "id": "tools_preview_dbd_hook_place_window", + "community": 11, + "norm_label": "place_window()" + }, + { + "label": "main()", + "file_type": "code", + "source_file": "tools/preview_dbd_hook.py", + "source_location": "L27", + "_origin": "ast", + "id": "tools_preview_dbd_hook_main", + "community": 11, + "norm_label": "main()" + }, + { + "label": "preview_hakari.py", + "file_type": "code", + "source_file": "tools/preview_hakari.py", + "source_location": "L1", + "_origin": "ast", + "id": "tools_preview_hakari", + "community": 12, + "norm_label": "preview_hakari.py" + }, + { + "label": "enable_ansi()", + "file_type": "code", + "source_file": "tools/preview_hakari.py", + "source_location": "L12", + "_origin": "ast", + "id": "tools_preview_hakari_enable_ansi", + "community": 12, + "norm_label": "enable_ansi()" + }, + { + "label": "main()", + "file_type": "code", + "source_file": "tools/preview_hakari.py", + "source_location": "L18", + "_origin": "ast", + "id": "tools_preview_hakari_main", + "community": 12, + "norm_label": "main()" + }, + { + "label": "preview_intro.py", + "file_type": "code", + "source_file": "tools/preview_intro.py", + "source_location": "L1", + "_origin": "ast", + "id": "tools_preview_intro", + "community": 16, + "norm_label": "preview_intro.py" + }, + { + "label": "main()", + "file_type": "code", + "source_file": "tools/preview_intro.py", + "source_location": "L12", + "_origin": "ast", + "id": "tools_preview_intro_main", + "community": 16, + "norm_label": "main()" + }, + { + "label": "release_smoke_check.ps1", + "file_type": "code", + "source_file": "tools/release_smoke_check.ps1", + "source_location": "L1", + "_origin": "ast", + "id": "tools_release_smoke_check", + "community": 10, + "norm_label": "release_smoke_check.ps1" + }, + { + "label": "Pass()", + "file_type": "code", + "source_file": "tools/release_smoke_check.ps1", + "source_location": "L7", + "_origin": "ast", + "id": "tools_release_smoke_check_pass", + "community": 10, + "norm_label": "pass()" + }, + { + "label": "Fail()", + "file_type": "code", + "source_file": "tools/release_smoke_check.ps1", + "source_location": "L11", + "_origin": "ast", + "id": "tools_release_smoke_check_fail", + "community": 10, + "norm_label": "fail()" + }, + { + "label": "Require-File()", + "file_type": "code", + "source_file": "tools/release_smoke_check.ps1", + "source_location": "L15", + "_origin": "ast", + "id": "tools_release_smoke_check_require_file", + "community": 10, + "norm_label": "require-file()" + }, + { + "label": "simulate_render.py", + "file_type": "code", + "source_file": "tools/simulate_render.py", + "source_location": "L1", + "_origin": "ast", + "id": "tools_simulate_render", + "community": 17, + "norm_label": "simulate_render.py" + }, + { + "label": "get_tex_pixel()", + "file_type": "code", + "source_file": "tools/simulate_render.py", + "source_location": "L40", + "_origin": "ast", + "id": "tools_simulate_render_get_tex_pixel", + "community": 17, + "norm_label": "get_tex_pixel()" + }, + { + "label": "AGENTS.md Project Instructions", + "file_type": "document", + "source_file": "AGENTS.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "agents", + "community": 3, + "norm_label": "agents.md project instructions" + }, + { + "label": "MASM32 Build Pipeline", + "file_type": "concept", + "source_file": "AGENTS.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Single-file x86 assembly Windows console casino game assembled with ml.exe /c /coff /Cp /nologo and linked with link.exe /SUBSYSTEM:CONSOLE against kernel32, winmm, user32, ws2_32, gdi32.", + "id": "agents_masm32_build", + "community": 3, + "norm_label": "masm32 build pipeline" + }, + { + "label": "CP1251 Console Encoding Standard", + "file_type": "rationale", + "source_file": "AGENTS.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Source strings and dealer_phrases.txt must remain in Windows-1251 (CP1251) for Windows console rendering; do not re-save as UTF-8.", + "id": "agents_cp1251_encoding", + "community": 3, + "norm_label": "cp1251 console encoding standard" + }, + { + "label": "Console Cheat Codes System", + "file_type": "concept", + "source_file": "AGENTS.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "agents_cheat_codes", + "community": 3, + "norm_label": "console cheat codes system" + }, + { + "label": "Casino Games Catalog", + "file_type": "concept", + "source_file": "AGENTS.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "agents_games_catalog", + "community": 3, + "norm_label": "casino games catalog" + }, + { + "label": "ANSI Animation Assets Spec", + "file_type": "concept", + "source_file": "AGENTS.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "casino_intro.ans and hakari_dance.ans use ANSI escape codes and CP1251 with form-feed frame separators for high-performance terminal animations.", + "id": "agents_animation_assets", + "community": 5, + "norm_label": "ansi animation assets spec" + }, + { + "label": "CMake Portable Build Configuration", + "file_type": "document", + "source_file": "CMakeLists.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "cmakelists", + "community": 1, + "norm_label": "cmake portable build configuration" + }, + { + "label": "poker_portable Target", + "file_type": "code", + "source_file": "CMakeLists.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "cmakelists_poker_portable", + "community": 1, + "norm_label": "poker_portable target" + }, + { + "label": "Win32 Winsock ws2_32 Dependency", + "file_type": "concept", + "source_file": "CMakeLists.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "cmakelists_winsock_dependency", + "community": 1, + "norm_label": "win32 winsock ws2_32 dependency" + }, + { + "label": "KAZIK Project Readme", + "file_type": "document", + "source_file": "README.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "readme", + "community": 21, + "norm_label": "kazik project readme" + }, + { + "label": "Dealer Dialogue Phrases", + "file_type": "document", + "source_file": "assets/data/dealer_phrases.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "assets_data_dealer_phrases", + "community": 3, + "norm_label": "dealer dialogue phrases" + }, + { + "label": "Win Loss Draw Outcome Prefixes", + "file_type": "concept", + "source_file": "assets/data/dealer_phrases.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Lines prefixed with W|, L|, and D| categorize dealer reactions to player outcomes for runtime dynamic selection.", + "id": "assets_data_dealer_phrases_outcome_prefixes", + "community": 3, + "norm_label": "win loss draw outcome prefixes" + }, + { + "label": "Known Limitations Specification", + "file_type": "document", + "source_file": "docs/KNOWN_LIMITATIONS.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "docs_known_limitations", + "community": 2, + "norm_label": "known limitations specification" + }, + { + "label": "Windows Platform Dependency", + "file_type": "rationale", + "source_file": "docs/KNOWN_LIMITATIONS.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Officially Windows-only due to tight coupling to MASM32, WinAPI, WinMM, MCI, and Windows console API.", + "id": "docs_known_limitations_windows_platform_lock", + "community": 3, + "norm_label": "windows platform dependency" + }, + { + "label": "Wine and CrossOver POSIX Support", + "file_type": "concept", + "source_file": "docs/KNOWN_LIMITATIONS.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Enables non-Windows execution on Linux and macOS via Wine translation layers without rewriting the assembly core.", + "id": "docs_known_limitations_wine_support", + "community": 2, + "norm_label": "wine and crossover posix support" + }, + { + "label": "ANSI Animation Console Bottleneck", + "file_type": "concept", + "source_file": "docs/KNOWN_LIMITATIONS.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Console throughput limits animation smoothness on older PCs, requiring frame-skip rendering profiles.", + "id": "docs_known_limitations_ansi_console_speed", + "community": 2, + "norm_label": "ansi animation console bottleneck" + }, + { + "label": "Durak Card Logic Complexity Risk", + "file_type": "concept", + "source_file": "docs/KNOWN_LIMITATIONS.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Durak is the most complex game logic in the suite due to card defense, tossing (podkidnoy), transferring (perevodnoy), and table clearing.", + "id": "docs_known_limitations_durak_logic_risk", + "community": 2, + "norm_label": "durak card logic complexity risk" + }, + { + "label": "Online Radmin VPN Guide", + "file_type": "document", + "source_file": "docs/ONLINE_RADMIN.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "docs_online_radmin", + "community": 1, + "norm_label": "online radmin vpn guide" + }, + { + "label": "Host Authoritative Network Model", + "file_type": "rationale", + "source_file": "docs/ONLINE_RADMIN.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Host owns hidden chamber state in Russian roulette and dice seeds; client sends only inputs so both peers remain in sync without a dedicated server.", + "id": "docs_online_radmin_host_authoritative", + "community": 1, + "norm_label": "host authoritative network model" + }, + { + "label": "Winsock TCP Port 27015 LAN Protocol", + "file_type": "concept", + "source_file": "docs/ONLINE_RADMIN.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Built-in 1v1 match on TCP port 27015 directly inside poker.exe without installing separate servers or services.", + "id": "docs_online_radmin_p2p_socket", + "community": 1, + "norm_label": "winsock tcp port 27015 lan protocol" + }, + { + "label": "Release Notes and User Guide", + "file_type": "document", + "source_file": "docs/README_RELEASE.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "docs_readme_release", + "community": 1, + "norm_label": "release notes and user guide" + }, + { + "label": "Animation Rendering Profiles", + "file_type": "concept", + "source_file": "docs/README_RELEASE.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Cinematic, Adaptive, and Stable profiles control frame-skipping to eliminate flicker and stutter without omitting entire scenes.", + "id": "docs_readme_release_rendering_profiles", + "community": 2, + "norm_label": "animation rendering profiles" + }, + { + "label": "Release Package Architecture", + "file_type": "concept", + "source_file": "docs/README_RELEASE.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Bundles launcher Assembler Casino.exe, core bin/poker.exe, and assets into an installer for clean user experience.", + "id": "docs_readme_release_package_architecture", + "community": 1, + "norm_label": "release package architecture" + }, + { + "label": "Release QA Checklist", + "file_type": "document", + "source_file": "docs/RELEASE_CHECKLIST.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "docs_release_checklist", + "community": 1, + "norm_label": "release qa checklist" + }, + { + "label": "Automated Release Smoke Check", + "file_type": "concept", + "source_file": "docs/RELEASE_CHECKLIST.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "tools/release_smoke_check.ps1 automates pre-release verification of builds, installer, and payload integrity.", + "id": "docs_release_checklist_smoke_check", + "community": 1, + "norm_label": "automated release smoke check" + }, + { + "label": "Installer & Uninstaller Verification", + "file_type": "concept", + "source_file": "docs/RELEASE_CHECKLIST.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Validates installation directory selection, desktop shortcuts, registry entry under Add/Remove Programs, and clean uninstallation.", + "id": "docs_release_checklist_installer_validation", + "community": 1, + "norm_label": "installer & uninstaller verification" + }, + { + "label": "Casino Games QA Verification", + "file_type": "concept", + "source_file": "docs/RELEASE_CHECKLIST.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Comprehensive verification steps covering all 12 casino games, account persistence, bankruptcy handling, and win goals.", + "id": "docs_release_checklist_game_verification", + "community": 1, + "norm_label": "casino games qa verification" + }, + { + "label": "Development Roadmap", + "file_type": "document", + "source_file": "docs/ROADMAP.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "docs_roadmap", + "community": 1, + "norm_label": "development roadmap" + }, + { + "label": "Multiplayer Command Protocol", + "file_type": "concept", + "source_file": "docs/ROADMAP.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Client-server text command set (BET, HIT, STAND, FOLD, RAISE, PLAY_CARD, READY, CHAT) sent over TCP sockets.", + "id": "docs_roadmap_online_command_protocol", + "community": 1, + "norm_label": "multiplayer command protocol" + }, + { + "label": "Security & Signing Roadmap", + "file_type": "concept", + "source_file": "docs/ROADMAP.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Planned addition of Authenticode code-signing, release manifests, and stronger save checksum validation.", + "id": "docs_roadmap_security_milestones", + "community": 1, + "norm_label": "security & signing roadmap" + }, + { + "label": "Future Casino Expansions", + "file_type": "concept", + "source_file": "docs/ROADMAP.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Planned expansions including casino tax, VIP tier benefits, charm bestiary, secret ending, and casino tower tournament.", + "id": "docs_roadmap_future_expansions", + "community": 2, + "norm_label": "future casino expansions" + }, + { + "label": "Security Architecture Notes", + "file_type": "document", + "source_file": "docs/SECURITY_NOTES.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "docs_security_notes", + "community": 1, + "norm_label": "security architecture notes" + }, + { + "label": "SHA-256 Binary Integrity Verification", + "file_type": "concept", + "source_file": "docs/SECURITY_NOTES.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Installer verifies embedded archive hash and launcher validates bin/poker.exe hash to prevent payload tampering.", + "id": "docs_security_notes_sha256_payload_check", + "community": 1, + "norm_label": "sha-256 binary integrity verification" + }, + { + "label": "Save File Salted Signature", + "file_type": "concept", + "source_file": "docs/SECURITY_NOTES.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Save files write a hash signature computed over the first 276 bytes with a hardcoded salt to catch manual progress hex editing.", + "id": "docs_security_notes_save_tamper_signature", + "community": 5, + "norm_label": "save file salted signature" + }, + { + "label": "Installer Path Traversal Guard", + "file_type": "concept", + "source_file": "docs/SECURITY_NOTES.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Installer rejects archive entries containing ../ to guarantee unpacked files cannot escape the installation directory.", + "id": "docs_security_notes_path_traversal_guard", + "community": 1, + "norm_label": "installer path traversal guard" + }, + { + "label": "Casino Intro ASCII Preview", + "file_type": "document", + "source_file": "docs/casino_intro_preview.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "ASCII art banner preview for the main casino entry screen.", + "id": "docs_casino_intro_preview", + "community": 5, + "norm_label": "casino intro ascii preview" + }, + { + "label": "Dead by Daylight Hook Reference Graphic", + "file_type": "document", + "source_file": "docs/dbd_hook_static.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "docs_dbd_hook_static", + "community": 13, + "norm_label": "dead by daylight hook reference graphic" + }, + { + "label": "Skill Check Hook Escape Minigame", + "file_type": "concept", + "source_file": "docs/dbd_hook_static.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Timed QTE skill check minigame inspired by Dead by Daylight requiring player to press SPACE or ENTER at the exact moment.", + "id": "docs_dbd_hook_static_skill_check", + "community": 13, + "norm_label": "skill check hook escape minigame" + }, + { + "label": "Revolver ASCII Preview", + "file_type": "document", + "source_file": "docs/revolver_small_preview.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "docs_revolver_small_preview", + "community": 2, + "norm_label": "revolver ascii preview" + }, + { + "label": "Russian Roulette Revolver ASCII Graphics", + "file_type": "concept", + "source_file": "docs/revolver_small_preview.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Detailed multi-angle ASCII art gun animations showing cylinder spin and hammer cocking for Russian Roulette.", + "id": "docs_revolver_small_preview_russian_roulette_visuals", + "community": 2, + "norm_label": "russian roulette revolver ascii graphics" + }, + { + "label": "Secret Cheat Codes Reference", + "file_type": "document", + "source_file": "docs/\u0427\u0418\u0422\u041a\u041e\u0414\u042b.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "docs_\u0447\u0438\u0442\u043a\u043e\u0434\u044b", + "community": 3, + "norm_label": "secret cheat codes reference" + }, + { + "label": "Menu Cheat Code Definitions", + "file_type": "concept", + "source_file": "docs/\u0427\u0418\u0422\u041a\u041e\u0414\u042b.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Keyboard cheat commands entered at the main menu including MONEYRAIN, SEVENS, WINNEXT, GODMODE, FAIRPLAY, GOAL, RESETBANK, AI difficulty, and ACHIEVER.", + "id": "docs_\u0447\u0438\u0442\u043a\u043e\u0434\u044b_menu_codes", + "community": 3, + "norm_label": "menu cheat code definitions" + }, + { + "label": "Intro Glitch Prototype Snippet", + "file_type": "document", + "source_file": "docs/\u041d\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "docs_\u043d\u043e\u0432\u044b\u0439_\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442", + "community": 5, + "norm_label": "intro glitch prototype snippet" + }, + { + "label": "ShowIntro Procedure Prototype", + "file_type": "code", + "source_file": "docs/\u041d\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "docs_\u043d\u043e\u0432\u044b\u0439_\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442_showintro", + "community": 5, + "norm_label": "showintro procedure prototype" + }, + { + "label": "Terminal Glitch and Screen Shake FX", + "file_type": "concept", + "source_file": "docs/\u041d\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Uses rdtsc CPU cycle counter to dynamically trigger screen shakes, ANSI 256-color flicker flashes, and character corruption.", + "id": "docs_\u043d\u043e\u0432\u044b\u0439_\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442_glitch_fx", + "community": 5, + "norm_label": "terminal glitch and screen shake fx" + }, + { + "label": "poker.asm Variables Reference", + "file_type": "document", + "source_file": "graphify-out/converted/variables_documentation_3fc6d2dc.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "graphify_out_converted_variables_documentation_3fc6d2dc", + "community": 5, + "norm_label": "poker.asm variables reference" + }, + { + "label": "SAVE_MAGIC Constant 31435653h", + "file_type": "concept", + "source_file": "graphify-out/converted/variables_documentation_3fc6d2dc.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Magic header constant used to validate Assembler Casino save game integrity upon loading.", + "id": "graphify_out_converted_variables_documentation_3fc6d2dc_save_magic", + "community": 5, + "norm_label": "save_magic constant 31435653h" + }, + { + "label": "Console Color Attributes Constants", + "file_type": "concept", + "source_file": "graphify-out/converted/variables_documentation_3fc6d2dc.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Defines standard color attribute constants for cards, table, wood, money, warnings, and titles in WinAPI console.", + "id": "graphify_out_converted_variables_documentation_3fc6d2dc_color_constants", + "community": 5, + "norm_label": "console color attributes constants" + }, + { + "label": "Standard Console Handles", + "file_type": "concept", + "source_file": "graphify-out/converted/variables_documentation_3fc6d2dc.md", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Constants for STD_INPUT_HANDLE, STD_OUTPUT_HANDLE, and INVALID_HANDLE_VALUE for Windows console I/O.", + "id": "graphify_out_converted_variables_documentation_3fc6d2dc_winapi_handles", + "community": 5, + "norm_label": "standard console handles" + }, + { + "label": "Runtime Achievement Storage File", + "file_type": "document", + "source_file": "runtime/achievement.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Local file storing unlocked player achievements.", + "id": "runtime_achievement", + "community": 3, + "norm_label": "runtime achievement storage file" + }, + { + "label": "Runtime Achievement Tracker", + "file_type": "concept", + "source_file": "runtime/achievement.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "runtime_achievement_tracking", + "community": 3, + "norm_label": "runtime achievement tracker" + }, + { + "label": "Feature Backlog and Game Ideas", + "file_type": "document", + "source_file": "\u0418\u0414\u0415\u0418.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "\u0438\u0434\u0435\u0438", + "community": 2, + "norm_label": "feature backlog and game ideas" + }, + { + "label": "AppData Save Migration Idea", + "file_type": "concept", + "source_file": "\u0418\u0414\u0415\u0418.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Moving player save data to %AppData% prevents accidental deletion when reinstalling or updating the casino.", + "id": "\u0438\u0434\u0435\u0438_appdata_saves", + "community": 5, + "norm_label": "appdata save migration idea" + }, + { + "label": "Casino Shop and Charms Mechanic", + "file_type": "concept", + "source_file": "\u0418\u0414\u0415\u0418.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Allows spending winnings on charms, custom card decks, shirts, and lucky talismans with gameplay effects.", + "id": "\u0438\u0434\u0435\u0438_shop_and_charms", + "community": 2, + "norm_label": "casino shop and charms mechanic" + }, + { + "label": "Heart Rate Stress Visualization", + "file_type": "concept", + "source_file": "\u0418\u0414\u0415\u0418.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Visualizes player character pulse and anxiety level during high-stakes gambling decisions.", + "id": "\u0438\u0434\u0435\u0438_pulse_stress", + "community": 2, + "norm_label": "heart rate stress visualization" + }, + { + "label": "Durak Card Game Expansion", + "file_type": "concept", + "source_file": "\u0418\u0414\u0415\u0418.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Addition of Russian card game Durak with podkidnoy and perevodnoy variants to broaden casino offerings.", + "id": "\u0438\u0434\u0435\u0438_durak_expansion", + "community": 2, + "norm_label": "durak card game expansion" + }, + { + "label": "Buckshot Roulette Game Mode Idea", + "file_type": "concept", + "source_file": "\u0418\u0414\u0415\u0418.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Adaptation of shotgun-based Russian Roulette gameplay with items and bluffing mechanics.", + "id": "\u0438\u0434\u0435\u0438_buckshot_roulette", + "community": 2, + "norm_label": "buckshot roulette game mode idea" + }, + { + "label": "Casino Tower Tournament Idea", + "file_type": "concept", + "source_file": "\u0418\u0414\u0415\u0418.txt", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "rationale": "Multi-floor casino tower progression where players face escalating AI opponents with special modifiers.", + "id": "\u0438\u0434\u0435\u0438_casino_tower", + "community": 2, + "norm_label": "casino tower tournament idea" + }, + { + "label": "Casino Preview Icon", + "file_type": "image", + "source_file": "assets/icons/casino_preview.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "assets_icons_casino_preview_image", + "community": 6, + "norm_label": "casino preview icon" + }, + { + "label": "Cabaret Loop Sprite Sheet", + "file_type": "image", + "source_file": "assets/sprites/cabaret-loop-v1.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "assets_sprites_cabaret_loop_v1_image", + "community": 8, + "norm_label": "cabaret loop sprite sheet" + }, + { + "label": "Casino Atlas Sprite Sheet", + "file_type": "image", + "source_file": "assets/sprites/casino-atlas-v1.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "assets_sprites_casino_atlas_v1_image", + "community": 6, + "norm_label": "casino atlas sprite sheet" + }, + { + "label": "Bartender Shop Sprite", + "file_type": "image", + "source_file": "assets/textures/sprite_bartender_shop.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "assets_textures_sprite_bartender_shop_image", + "community": 6, + "norm_label": "bartender shop sprite" + }, + { + "label": "Blackjack Table Sprite", + "file_type": "image", + "source_file": "assets/textures/sprite_blackjack_table.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "assets_textures_sprite_blackjack_table_image", + "community": 6, + "norm_label": "blackjack table sprite" + }, + { + "label": "Dancer Animation Frame 0 Sprite", + "file_type": "image", + "source_file": "assets/textures/sprite_dancer_frame_0.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "assets_textures_sprite_dancer_frame_0_image", + "community": 8, + "norm_label": "dancer animation frame 0 sprite" + }, + { + "label": "Dancer Animation Frame 1 Sprite", + "file_type": "image", + "source_file": "assets/textures/sprite_dancer_frame_1.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "assets_textures_sprite_dancer_frame_1_image", + "community": 8, + "norm_label": "dancer animation frame 1 sprite" + }, + { + "label": "Dancer Animation Frame 2 Sprite", + "file_type": "image", + "source_file": "assets/textures/sprite_dancer_frame_2.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "assets_textures_sprite_dancer_frame_2_image", + "community": 8, + "norm_label": "dancer animation frame 2 sprite" + }, + { + "label": "Dancer Animation Frame 3 Sprite", + "file_type": "image", + "source_file": "assets/textures/sprite_dancer_frame_3.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "assets_textures_sprite_dancer_frame_3_image", + "community": 8, + "norm_label": "dancer animation frame 3 sprite" + }, + { + "label": "Roulette Table Sprite", + "file_type": "image", + "source_file": "assets/textures/sprite_roulette_table.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "assets_textures_sprite_roulette_table_image", + "community": 6, + "norm_label": "roulette table sprite" + }, + { + "label": "Slot Machine Frame 0 Sprite", + "file_type": "image", + "source_file": "assets/textures/sprite_slot_frame_0.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "assets_textures_sprite_slot_frame_0_image", + "community": 6, + "norm_label": "slot machine frame 0 sprite" + }, + { + "label": "Slot Machine Frame 1 Sprite", + "file_type": "image", + "source_file": "assets/textures/sprite_slot_frame_1.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "assets_textures_sprite_slot_frame_1_image", + "community": 6, + "norm_label": "slot machine frame 1 sprite" + }, + { + "label": "Slot Machine Frame 2 Sprite", + "file_type": "image", + "source_file": "assets/textures/sprite_slot_frame_2.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "assets_textures_sprite_slot_frame_2_image", + "community": 6, + "norm_label": "slot machine frame 2 sprite" + }, + { + "label": "Casino Carpet Floor Texture", + "file_type": "image", + "source_file": "assets/textures/tex_floor_carpet.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "assets_textures_tex_floor_carpet_image", + "community": 9, + "norm_label": "casino carpet floor texture" + }, + { + "label": "Hell Wall Texture", + "file_type": "image", + "source_file": "assets/textures/tex_wall_hell.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "assets_textures_tex_wall_hell_image", + "community": 9, + "norm_label": "hell wall texture" + }, + { + "label": "Neon Strip Club Wall Texture", + "file_type": "image", + "source_file": "assets/textures/tex_wall_stripclub.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "assets_textures_tex_wall_stripclub_image", + "community": 9, + "norm_label": "neon strip club wall texture" + }, + { + "label": "Velvet Wall Texture", + "file_type": "image", + "source_file": "assets/textures/tex_wall_velvet.png", + "source_location": null, + "source_url": null, + "captured_at": null, + "author": null, + "contributor": null, + "id": "assets_textures_tex_wall_velvet_image", + "community": 9, + "norm_label": "velvet wall texture" + } + ], + "links": [ + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L248", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_account_cloud_sync_download", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L237", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_account_cloud_sync_upload", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L204", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_account_generate_transfer_key", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L211", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_account_import_transfer_key", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L141", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_account_login", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L114", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_account_register", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L101", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_account_save", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L89", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_calc_account_signature", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L32", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_clear_screen", + "confidence_score": 1.0 + }, + { + "relation": "imports", + "context": "import", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L7", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_h_src_portable_casino_portable", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L76", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_hash_password", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L309", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_host_room_flow", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L482", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_main", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L341", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_net_lobby_menu", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L26", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_platform_cleanup", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L14", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_platform_init", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L419", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_play_umamusume", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L42", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_read_masked_password", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L278", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_render_lobby_browser", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L37", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_set_text_color", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L272", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_c_src_portable_casino_portable", + "target": "src_portable_casino_portable_verify_peer_account_signature", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L483", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_main", + "target": "src_portable_casino_portable_platform_init", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L511", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_main", + "target": "src_portable_casino_portable_platform_cleanup", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L142", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_account_login", + "target": "src_portable_casino_portable_clear_screen", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L115", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_account_register", + "target": "src_portable_casino_portable_clear_screen", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L518", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_main", + "target": "src_portable_casino_portable_clear_screen", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L420", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_play_umamusume", + "target": "src_portable_casino_portable_clear_screen", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L279", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_render_lobby_browser", + "target": "src_portable_casino_portable_clear_screen", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L159", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_account_login", + "target": "src_portable_casino_portable_read_masked_password", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L122", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_account_register", + "target": "src_portable_casino_portable_read_masked_password", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L508", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_main", + "target": "src_portable_casino_portable_read_masked_password", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L406", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_net_lobby_menu", + "target": "src_portable_casino_portable_read_masked_password", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L258", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_account_cloud_sync_download", + "target": "src_portable_casino_portable_hash_password", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L224", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_account_import_transfer_key", + "target": "src_portable_casino_portable_hash_password", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L188", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_account_login", + "target": "src_portable_casino_portable_hash_password", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L126", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_account_register", + "target": "src_portable_casino_portable_hash_password", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L262", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_account_cloud_sync_download", + "target": "src_portable_casino_portable_calc_account_signature", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L227", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_account_import_transfer_key", + "target": "src_portable_casino_portable_calc_account_signature", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L176", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_account_login", + "target": "src_portable_casino_portable_calc_account_signature", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L130", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_account_register", + "target": "src_portable_casino_portable_calc_account_signature", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L108", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_account_save", + "target": "src_portable_casino_portable_calc_account_signature", + "confidence_score": 1.0 + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L89", + "weight": 1.0, + "context": "parameter_type", + "_origin": "ast", + "source": "src_portable_casino_portable_calc_account_signature", + "target": "accountdata", + "confidence_score": 1.0 + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L248", + "weight": 1.0, + "context": "parameter_type", + "_origin": "ast", + "source": "src_portable_casino_portable_account_cloud_sync_download", + "target": "accountdata", + "confidence_score": 1.0 + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L237", + "weight": 1.0, + "context": "parameter_type", + "_origin": "ast", + "source": "src_portable_casino_portable_account_cloud_sync_upload", + "target": "accountdata", + "confidence_score": 1.0 + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L204", + "weight": 1.0, + "context": "parameter_type", + "_origin": "ast", + "source": "src_portable_casino_portable_account_generate_transfer_key", + "target": "accountdata", + "confidence_score": 1.0 + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L211", + "weight": 1.0, + "context": "parameter_type", + "_origin": "ast", + "source": "src_portable_casino_portable_account_import_transfer_key", + "target": "accountdata", + "confidence_score": 1.0 + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L141", + "weight": 1.0, + "context": "parameter_type", + "_origin": "ast", + "source": "src_portable_casino_portable_account_login", + "target": "accountdata", + "confidence_score": 1.0 + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L114", + "weight": 1.0, + "context": "parameter_type", + "_origin": "ast", + "source": "src_portable_casino_portable_account_register", + "target": "accountdata", + "confidence_score": 1.0 + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L101", + "weight": 1.0, + "context": "parameter_type", + "_origin": "ast", + "source": "src_portable_casino_portable_account_save", + "target": "accountdata", + "confidence_score": 1.0 + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L309", + "weight": 1.0, + "context": "parameter_type", + "_origin": "ast", + "source": "src_portable_casino_portable_host_room_flow", + "target": "accountdata", + "confidence_score": 1.0 + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L341", + "weight": 1.0, + "context": "parameter_type", + "_origin": "ast", + "source": "src_portable_casino_portable_net_lobby_menu", + "target": "accountdata", + "confidence_score": 1.0 + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L419", + "weight": 1.0, + "context": "parameter_type", + "_origin": "ast", + "source": "src_portable_casino_portable_play_umamusume", + "target": "accountdata", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L264", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_account_cloud_sync_download", + "target": "src_portable_casino_portable_account_save", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L229", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_account_import_transfer_key", + "target": "src_portable_casino_portable_account_save", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L132", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_account_register", + "target": "src_portable_casino_portable_account_save", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L476", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_play_umamusume", + "target": "src_portable_casino_portable_account_save", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L501", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_main", + "target": "src_portable_casino_portable_account_register", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L160", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_account_login", + "target": "src_portable_casino_portable_account_cloud_sync_download", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L499", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_main", + "target": "src_portable_casino_portable_account_login", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L393", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_net_lobby_menu", + "target": "src_portable_casino_portable_account_generate_transfer_key", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L509", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_main", + "target": "src_portable_casino_portable_account_import_transfer_key", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L407", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_net_lobby_menu", + "target": "src_portable_casino_portable_account_import_transfer_key", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L387", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_net_lobby_menu", + "target": "src_portable_casino_portable_account_cloud_sync_upload", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L370", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_net_lobby_menu", + "target": "src_portable_casino_portable_verify_peer_account_signature", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L344", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_net_lobby_menu", + "target": "src_portable_casino_portable_render_lobby_browser", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L349", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_net_lobby_menu", + "target": "src_portable_casino_portable_host_room_flow", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L531", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_main", + "target": "src_portable_casino_portable_net_lobby_menu", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "src_portable/casino_portable.c", + "source_location": "L529", + "weight": 1.0, + "_origin": "ast", + "source": "src_portable_casino_portable_main", + "target": "src_portable_casino_portable_play_umamusume", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/build_all_3d.py", + "source_location": "L7", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_all_3d", + "target": "tools_build_all_3d_a", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L14", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets", + "target": "tools_build_casino_assets_clean_chromakey_black", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L25", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets", + "target": "tools_build_casino_assets_clean_chromakey_white", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L35", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets", + "target": "tools_build_casino_assets_img_to_raw_dwords", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L140", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets", + "target": "tools_build_casino_assets_main", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L101", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets", + "target": "tools_build_casino_assets_make_atm", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L120", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets", + "target": "tools_build_casino_assets_make_backroom_table", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L60", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets", + "target": "tools_build_casino_assets_make_carpet_floor", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L80", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets", + "target": "tools_build_casino_assets_make_ceiling_tex", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L46", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets", + "target": "tools_build_casino_assets_make_wood_wall", + "confidence_score": 1.0 + }, + { + "relation": "references", + "context": "return_type", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L14", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets_clean_chromakey_black", + "target": "image", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L190", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets_main", + "target": "tools_build_casino_assets_clean_chromakey_black", + "confidence_score": 1.0 + }, + { + "relation": "rationale_for", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L15", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets_rationale_15", + "target": "tools_build_casino_assets_clean_chromakey_black", + "confidence_score": 1.0 + }, + { + "relation": "references", + "context": "return_type", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L25", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets_clean_chromakey_white", + "target": "image", + "confidence_score": 1.0 + }, + { + "relation": "references", + "context": "parameter_type", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L35", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets_img_to_raw_dwords", + "target": "image", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L208", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets_main", + "target": "tools_build_casino_assets_clean_chromakey_white", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L148", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets_main", + "target": "tools_build_casino_assets_img_to_raw_dwords", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L150", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets_main", + "target": "tools_build_casino_assets_make_wood_wall", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L166", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets_main", + "target": "tools_build_casino_assets_make_carpet_floor", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L177", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets_main", + "target": "tools_build_casino_assets_make_ceiling_tex", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L223", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets_main", + "target": "tools_build_casino_assets_make_atm", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "tools/build_casino_assets.py", + "source_location": "L226", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_casino_assets_main", + "target": "tools_build_casino_assets_make_backroom_table", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/build_graphics_assets.py", + "source_location": "L15", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_graphics_assets", + "target": "tools_build_graphics_assets_cells", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/build_graphics_assets.py", + "source_location": "L41", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_graphics_assets", + "target": "tools_build_graphics_assets_main", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/build_graphics_assets.py", + "source_location": "L32", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_graphics_assets", + "target": "tools_build_graphics_assets_pack", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/build_graphics_assets.py", + "source_location": "L22", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_graphics_assets", + "target": "tools_build_graphics_assets_sprite", + "confidence_score": 1.0 + }, + { + "relation": "rationale_for", + "confidence": "EXTRACTED", + "source_file": "tools/build_graphics_assets.py", + "source_location": "L1", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_graphics_assets_rationale_1", + "target": "tools_build_graphics_assets", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "tools/build_graphics_assets.py", + "source_location": "L50", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_graphics_assets_main", + "target": "tools_build_graphics_assets_cells", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "tools/build_graphics_assets.py", + "source_location": "L54", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_graphics_assets_main", + "target": "tools_build_graphics_assets_sprite", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "tools/build_graphics_assets.py", + "source_location": "L62", + "weight": 1.0, + "_origin": "ast", + "source": "tools_build_graphics_assets_main", + "target": "tools_build_graphics_assets_pack", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/generate_math_and_map.py", + "source_location": "L7", + "weight": 1.0, + "_origin": "ast", + "source": "tools_generate_math_and_map", + "target": "tools_generate_math_and_map_float_to_fp", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/preview_dbd_hook.py", + "source_location": "L27", + "weight": 1.0, + "_origin": "ast", + "source": "tools_preview_dbd_hook", + "target": "tools_preview_dbd_hook_main", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/preview_dbd_hook.py", + "source_location": "L12", + "weight": 1.0, + "_origin": "ast", + "source": "tools_preview_dbd_hook", + "target": "tools_preview_dbd_hook_place_window", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "tools/preview_dbd_hook.py", + "source_location": "L39", + "weight": 1.0, + "_origin": "ast", + "source": "tools_preview_dbd_hook_main", + "target": "tools_preview_dbd_hook_place_window", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/preview_hakari.py", + "source_location": "L12", + "weight": 1.0, + "_origin": "ast", + "source": "tools_preview_hakari", + "target": "tools_preview_hakari_enable_ansi", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/preview_hakari.py", + "source_location": "L18", + "weight": 1.0, + "_origin": "ast", + "source": "tools_preview_hakari", + "target": "tools_preview_hakari_main", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "context": "call", + "confidence": "EXTRACTED", + "source_file": "tools/preview_hakari.py", + "source_location": "L29", + "weight": 1.0, + "_origin": "ast", + "source": "tools_preview_hakari_main", + "target": "tools_preview_hakari_enable_ansi", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/preview_intro.py", + "source_location": "L12", + "weight": 1.0, + "_origin": "ast", + "source": "tools_preview_intro", + "target": "tools_preview_intro_main", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/release_smoke_check.ps1", + "source_location": "L11", + "weight": 1.0, + "_origin": "ast", + "source": "tools_release_smoke_check", + "target": "tools_release_smoke_check_fail", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/release_smoke_check.ps1", + "source_location": "L7", + "weight": 1.0, + "_origin": "ast", + "source": "tools_release_smoke_check", + "target": "tools_release_smoke_check_pass", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/release_smoke_check.ps1", + "source_location": "L15", + "weight": 1.0, + "_origin": "ast", + "source": "tools_release_smoke_check", + "target": "tools_release_smoke_check_require_file", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "confidence": "EXTRACTED", + "source_file": "tools/release_smoke_check.ps1", + "source_location": "L20", + "weight": 1.0, + "_origin": "ast", + "source": "tools_release_smoke_check_require_file", + "target": "tools_release_smoke_check_pass", + "confidence_score": 1.0 + }, + { + "relation": "calls", + "confidence": "EXTRACTED", + "source_file": "tools/release_smoke_check.ps1", + "source_location": "L18", + "weight": 1.0, + "_origin": "ast", + "source": "tools_release_smoke_check_require_file", + "target": "tools_release_smoke_check_fail", + "confidence_score": 1.0 + }, + { + "relation": "contains", + "confidence": "EXTRACTED", + "source_file": "tools/simulate_render.py", + "source_location": "L40", + "weight": 1.0, + "_origin": "ast", + "source": "tools_simulate_render", + "target": "tools_simulate_render_get_tex_pixel", + "confidence_score": 1.0 + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "AGENTS.md", + "source_location": null, + "weight": 1.0, + "source": "agents", + "target": "agents_animation_assets" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "AGENTS.md", + "source_location": null, + "weight": 1.0, + "source": "agents", + "target": "agents_cheat_codes" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "AGENTS.md", + "source_location": null, + "weight": 1.0, + "source": "agents", + "target": "agents_cp1251_encoding" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "AGENTS.md", + "source_location": null, + "weight": 1.0, + "source": "agents", + "target": "agents_games_catalog" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "AGENTS.md", + "source_location": null, + "weight": 1.0, + "source": "agents", + "target": "agents_masm32_build" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "docs/KNOWN_LIMITATIONS.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_known_limitations_windows_platform_lock", + "target": "agents_masm32_build" + }, + { + "relation": "rationale_for", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "AGENTS.md", + "source_location": null, + "weight": 1.0, + "source": "agents_cp1251_encoding", + "target": "assets_data_dealer_phrases" + }, + { + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "AGENTS.md", + "source_location": null, + "weight": 1.0, + "source": "agents_cheat_codes", + "target": "docs_\u0447\u0438\u0442\u043a\u043e\u0434\u044b_menu_codes" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "AGENTS.md", + "source_location": null, + "weight": 1.0, + "source": "agents_games_catalog", + "target": "docs_release_checklist_game_verification" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "docs/casino_intro_preview.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_casino_intro_preview", + "target": "agents_animation_assets" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "CMakeLists.txt", + "source_location": null, + "weight": 1.0, + "source": "cmakelists", + "target": "cmakelists_poker_portable" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "CMakeLists.txt", + "source_location": null, + "weight": 1.0, + "source": "cmakelists", + "target": "cmakelists_winsock_dependency" + }, + { + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "CMakeLists.txt", + "source_location": null, + "weight": 1.0, + "source": "cmakelists_winsock_dependency", + "target": "docs_online_radmin_p2p_socket" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "assets/data/dealer_phrases.txt", + "source_location": null, + "weight": 1.0, + "source": "assets_data_dealer_phrases", + "target": "assets_data_dealer_phrases_outcome_prefixes" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/KNOWN_LIMITATIONS.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_known_limitations", + "target": "docs_known_limitations_ansi_console_speed" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/KNOWN_LIMITATIONS.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_known_limitations", + "target": "docs_known_limitations_durak_logic_risk" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/KNOWN_LIMITATIONS.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_known_limitations", + "target": "docs_known_limitations_windows_platform_lock" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/KNOWN_LIMITATIONS.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_known_limitations", + "target": "docs_known_limitations_wine_support" + }, + { + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "docs/KNOWN_LIMITATIONS.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_known_limitations_ansi_console_speed", + "target": "docs_readme_release_rendering_profiles" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "docs/KNOWN_LIMITATIONS.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_known_limitations_durak_logic_risk", + "target": "\u0438\u0434\u0435\u0438_durak_expansion" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/ONLINE_RADMIN.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_online_radmin", + "target": "docs_online_radmin_host_authoritative" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/ONLINE_RADMIN.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_online_radmin", + "target": "docs_online_radmin_p2p_socket" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "docs/ONLINE_RADMIN.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_online_radmin_host_authoritative", + "target": "docs_roadmap_online_command_protocol" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/README_RELEASE.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_readme_release", + "target": "docs_readme_release_package_architecture" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/README_RELEASE.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_readme_release", + "target": "docs_readme_release_rendering_profiles" + }, + { + "relation": "references", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "docs/README_RELEASE.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_readme_release_package_architecture", + "target": "docs_release_checklist_installer_validation" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/RELEASE_CHECKLIST.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_release_checklist", + "target": "docs_release_checklist_game_verification" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/RELEASE_CHECKLIST.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_release_checklist", + "target": "docs_release_checklist_installer_validation" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/RELEASE_CHECKLIST.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_release_checklist", + "target": "docs_release_checklist_smoke_check" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "docs/RELEASE_CHECKLIST.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_release_checklist_smoke_check", + "target": "docs_security_notes_sha256_payload_check" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/ROADMAP.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_roadmap", + "target": "docs_roadmap_future_expansions" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/ROADMAP.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_roadmap", + "target": "docs_roadmap_online_command_protocol" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/ROADMAP.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_roadmap", + "target": "docs_roadmap_security_milestones" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "docs/ROADMAP.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_roadmap_security_milestones", + "target": "docs_security_notes" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "\u0418\u0414\u0415\u0418.txt", + "source_location": null, + "weight": 1.0, + "source": "\u0438\u0434\u0435\u0438_casino_tower", + "target": "docs_roadmap_future_expansions" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "\u0418\u0414\u0415\u0418.txt", + "source_location": null, + "weight": 1.0, + "source": "\u0438\u0434\u0435\u0438_shop_and_charms", + "target": "docs_roadmap_future_expansions" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/SECURITY_NOTES.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_security_notes", + "target": "docs_security_notes_path_traversal_guard" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/SECURITY_NOTES.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_security_notes", + "target": "docs_security_notes_save_tamper_signature" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/SECURITY_NOTES.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_security_notes", + "target": "docs_security_notes_sha256_payload_check" + }, + { + "relation": "shares_data_with", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "docs/SECURITY_NOTES.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_security_notes_save_tamper_signature", + "target": "graphify_out_converted_variables_documentation_3fc6d2dc_save_magic" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "docs/SECURITY_NOTES.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_security_notes_save_tamper_signature", + "target": "\u0438\u0434\u0435\u0438_appdata_saves" + }, + { + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "docs/\u041d\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_\u043d\u043e\u0432\u044b\u0439_\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442_glitch_fx", + "target": "docs_casino_intro_preview" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/dbd_hook_static.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_dbd_hook_static", + "target": "docs_dbd_hook_static_skill_check" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/revolver_small_preview.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_revolver_small_preview", + "target": "docs_revolver_small_preview_russian_roulette_visuals" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.75, + "source_file": "docs/revolver_small_preview.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_revolver_small_preview_russian_roulette_visuals", + "target": "\u0438\u0434\u0435\u0438_buckshot_roulette" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/\u0427\u0418\u0422\u041a\u041e\u0414\u042b.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_\u0447\u0438\u0442\u043a\u043e\u0434\u044b", + "target": "docs_\u0447\u0438\u0442\u043a\u043e\u0434\u044b_menu_codes" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.75, + "source_file": "runtime/achievement.txt", + "source_location": null, + "weight": 1.0, + "source": "runtime_achievement_tracking", + "target": "docs_\u0447\u0438\u0442\u043a\u043e\u0434\u044b_menu_codes" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/\u041d\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_\u043d\u043e\u0432\u044b\u0439_\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442", + "target": "docs_\u043d\u043e\u0432\u044b\u0439_\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442_showintro" + }, + { + "relation": "implements", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "docs/\u041d\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_\u043d\u043e\u0432\u044b\u0439_\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442_showintro", + "target": "docs_\u043d\u043e\u0432\u044b\u0439_\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442_glitch_fx" + }, + { + "relation": "calls", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "docs/\u041d\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.txt", + "source_location": null, + "weight": 1.0, + "source": "docs_\u043d\u043e\u0432\u044b\u0439_\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442_showintro", + "target": "graphify_out_converted_variables_documentation_3fc6d2dc_winapi_handles" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "graphify-out/converted/variables_documentation_3fc6d2dc.md", + "source_location": null, + "weight": 1.0, + "source": "graphify_out_converted_variables_documentation_3fc6d2dc", + "target": "graphify_out_converted_variables_documentation_3fc6d2dc_color_constants" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "graphify-out/converted/variables_documentation_3fc6d2dc.md", + "source_location": null, + "weight": 1.0, + "source": "graphify_out_converted_variables_documentation_3fc6d2dc", + "target": "graphify_out_converted_variables_documentation_3fc6d2dc_save_magic" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "graphify-out/converted/variables_documentation_3fc6d2dc.md", + "source_location": null, + "weight": 1.0, + "source": "graphify_out_converted_variables_documentation_3fc6d2dc", + "target": "graphify_out_converted_variables_documentation_3fc6d2dc_winapi_handles" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "runtime/achievement.txt", + "source_location": null, + "weight": 1.0, + "source": "runtime_achievement", + "target": "runtime_achievement_tracking" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "\u0418\u0414\u0415\u0418.txt", + "source_location": null, + "weight": 1.0, + "source": "\u0438\u0434\u0435\u0438", + "target": "\u0438\u0434\u0435\u0438_appdata_saves" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "\u0418\u0414\u0415\u0418.txt", + "source_location": null, + "weight": 1.0, + "source": "\u0438\u0434\u0435\u0438", + "target": "\u0438\u0434\u0435\u0438_buckshot_roulette" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "\u0418\u0414\u0415\u0418.txt", + "source_location": null, + "weight": 1.0, + "source": "\u0438\u0434\u0435\u0438", + "target": "\u0438\u0434\u0435\u0438_casino_tower" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "\u0418\u0414\u0415\u0418.txt", + "source_location": null, + "weight": 1.0, + "source": "\u0438\u0434\u0435\u0438", + "target": "\u0438\u0434\u0435\u0438_durak_expansion" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "\u0418\u0414\u0415\u0418.txt", + "source_location": null, + "weight": 1.0, + "source": "\u0438\u0434\u0435\u0438", + "target": "\u0438\u0434\u0435\u0438_pulse_stress" + }, + { + "relation": "references", + "confidence": "EXTRACTED", + "confidence_score": 1.0, + "source_file": "\u0418\u0414\u0415\u0418.txt", + "source_location": null, + "weight": 1.0, + "source": "\u0438\u0434\u0435\u0438", + "target": "\u0438\u0434\u0435\u0438_shop_and_charms" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.75, + "source_file": "assets/icons/casino_preview.png", + "source_location": null, + "weight": 1.0, + "source": "assets_icons_casino_preview_image", + "target": "assets_sprites_casino_atlas_v1_image" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "assets/sprites/cabaret-loop-v1.png", + "source_location": null, + "weight": 1.0, + "source": "assets_sprites_cabaret_loop_v1_image", + "target": "assets_textures_sprite_dancer_frame_0_image" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "assets/sprites/cabaret-loop-v1.png", + "source_location": null, + "weight": 1.0, + "source": "assets_sprites_cabaret_loop_v1_image", + "target": "assets_textures_sprite_dancer_frame_1_image" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "assets/sprites/cabaret-loop-v1.png", + "source_location": null, + "weight": 1.0, + "source": "assets_sprites_cabaret_loop_v1_image", + "target": "assets_textures_sprite_dancer_frame_2_image" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "assets/sprites/cabaret-loop-v1.png", + "source_location": null, + "weight": 1.0, + "source": "assets_sprites_cabaret_loop_v1_image", + "target": "assets_textures_sprite_dancer_frame_3_image" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "assets/sprites/casino-atlas-v1.png", + "source_location": null, + "weight": 1.0, + "source": "assets_sprites_casino_atlas_v1_image", + "target": "assets_textures_sprite_bartender_shop_image" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "assets/sprites/casino-atlas-v1.png", + "source_location": null, + "weight": 1.0, + "source": "assets_sprites_casino_atlas_v1_image", + "target": "assets_textures_sprite_blackjack_table_image" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "assets/sprites/casino-atlas-v1.png", + "source_location": null, + "weight": 1.0, + "source": "assets_sprites_casino_atlas_v1_image", + "target": "assets_textures_sprite_roulette_table_image" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "assets/sprites/casino-atlas-v1.png", + "source_location": null, + "weight": 1.0, + "source": "assets_sprites_casino_atlas_v1_image", + "target": "assets_textures_sprite_slot_frame_0_image" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.75, + "source_file": "assets/textures/sprite_bartender_shop.png", + "source_location": null, + "weight": 1.0, + "source": "assets_textures_sprite_bartender_shop_image", + "target": "assets_textures_sprite_blackjack_table_image" + }, + { + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "assets/textures/sprite_blackjack_table.png", + "source_location": null, + "weight": 1.0, + "source": "assets_textures_sprite_blackjack_table_image", + "target": "assets_textures_sprite_roulette_table_image" + }, + { + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "assets/textures/sprite_dancer_frame_0.png", + "source_location": null, + "weight": 1.0, + "source": "assets_textures_sprite_dancer_frame_0_image", + "target": "assets_textures_sprite_dancer_frame_1_image" + }, + { + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "assets/textures/sprite_dancer_frame_3.png", + "source_location": null, + "weight": 1.0, + "source": "assets_textures_sprite_dancer_frame_3_image", + "target": "assets_textures_sprite_dancer_frame_0_image" + }, + { + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "assets/textures/sprite_dancer_frame_1.png", + "source_location": null, + "weight": 1.0, + "source": "assets_textures_sprite_dancer_frame_1_image", + "target": "assets_textures_sprite_dancer_frame_2_image" + }, + { + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "assets/textures/sprite_dancer_frame_2.png", + "source_location": null, + "weight": 1.0, + "source": "assets_textures_sprite_dancer_frame_2_image", + "target": "assets_textures_sprite_dancer_frame_3_image" + }, + { + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "assets/textures/sprite_slot_frame_0.png", + "source_location": null, + "weight": 1.0, + "source": "assets_textures_sprite_slot_frame_0_image", + "target": "assets_textures_sprite_slot_frame_1_image" + }, + { + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "assets/textures/sprite_slot_frame_2.png", + "source_location": null, + "weight": 1.0, + "source": "assets_textures_sprite_slot_frame_2_image", + "target": "assets_textures_sprite_slot_frame_0_image" + }, + { + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "assets/textures/sprite_slot_frame_1.png", + "source_location": null, + "weight": 1.0, + "source": "assets_textures_sprite_slot_frame_1_image", + "target": "assets_textures_sprite_slot_frame_2_image" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.75, + "source_file": "assets/textures/tex_floor_carpet.png", + "source_location": null, + "weight": 1.0, + "source": "assets_textures_tex_floor_carpet_image", + "target": "assets_textures_tex_wall_stripclub_image" + }, + { + "relation": "conceptually_related_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "assets/textures/tex_floor_carpet.png", + "source_location": null, + "weight": 1.0, + "source": "assets_textures_tex_floor_carpet_image", + "target": "assets_textures_tex_wall_velvet_image" + }, + { + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "assets/textures/tex_wall_stripclub.png", + "source_location": null, + "weight": 1.0, + "source": "assets_textures_tex_wall_stripclub_image", + "target": "assets_textures_tex_wall_hell_image" + }, + { + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.75, + "source_file": "assets/textures/tex_wall_velvet.png", + "source_location": null, + "weight": 1.0, + "source": "assets_textures_tex_wall_velvet_image", + "target": "assets_textures_tex_wall_hell_image" + }, + { + "relation": "semantically_similar_to", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "assets/textures/tex_wall_velvet.png", + "source_location": null, + "weight": 1.0, + "source": "assets_textures_tex_wall_velvet_image", + "target": "assets_textures_tex_wall_stripclub_image" + } + ], + "hyperedges": [ + { + "id": "he_p2p_multiplayer_architecture", + "label": "P2P Multiplayer Architecture", + "nodes": [ + "docs_online_radmin_host_authoritative", + "docs_online_radmin_p2p_socket", + "docs_roadmap_online_command_protocol" + ], + "relation": "implement", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "docs/ONLINE_RADMIN.txt" + }, + { + "id": "he_save_integrity_protection", + "label": "Save File Integrity & Persistence Architecture", + "nodes": [ + "docs_security_notes_save_tamper_signature", + "graphify_out_converted_variables_documentation_3fc6d2dc_save_magic", + "\u0438\u0434\u0435\u0438_appdata_saves" + ], + "relation": "form", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "docs/SECURITY_NOTES.txt" + }, + { + "id": "he_release_packaging_verification", + "label": "Release Packaging & Verification Flow", + "nodes": [ + "docs_release_checklist_smoke_check", + "docs_release_checklist_installer_validation", + "docs_security_notes_sha256_payload_check" + ], + "relation": "implement", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "docs/RELEASE_CHECKLIST.txt" + }, + { + "id": "cabaret_dancer_animation_set", + "label": "Cabaret Dancer Animation Sequence", + "nodes": [ + "assets_textures_sprite_dancer_frame_0_image", + "assets_textures_sprite_dancer_frame_1_image", + "assets_textures_sprite_dancer_frame_2_image", + "assets_textures_sprite_dancer_frame_3_image" + ], + "relation": "form", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "assets/sprites/cabaret-loop-v1.png" + }, + { + "id": "slot_machine_animation_set", + "label": "Slot Machine Reel Animation Sequence", + "nodes": [ + "assets_textures_sprite_slot_frame_0_image", + "assets_textures_sprite_slot_frame_1_image", + "assets_textures_sprite_slot_frame_2_image" + ], + "relation": "form", + "confidence": "INFERRED", + "confidence_score": 0.95, + "source_file": "assets/textures/sprite_slot_frame_0.png" + }, + { + "id": "casino_wall_textures_set", + "label": "Casino Wall Textures Set", + "nodes": [ + "assets_textures_tex_wall_velvet_image", + "assets_textures_tex_wall_stripclub_image", + "assets_textures_tex_wall_hell_image" + ], + "relation": "form", + "confidence": "INFERRED", + "confidence_score": 0.85, + "source_file": "assets/textures/tex_wall_velvet.png" + } + ], + "built_at_commit": "fe4e38140d00c9f5b515491f4ecea5da8a091e20" +} \ No newline at end of file diff --git a/graphify-out/manifest.json b/graphify-out/manifest.json new file mode 100644 index 0000000..769d6fa --- /dev/null +++ b/graphify-out/manifest.json @@ -0,0 +1,402 @@ +{ + "casino3d.inc": { + "mtime": 1790270823.1496067, + "ast_hash": "f9805043552d04b9a22d41301d6b3cf7", + "semantic_hash": "f9805043552d04b9a22d41301d6b3cf7" + }, + "casino3d_data.inc": { + "mtime": 1790270823.1496067, + "ast_hash": "c963346468c7960b6e879fb4d6528d36", + "semantic_hash": "c963346468c7960b6e879fb4d6528d36" + }, + "font8x8.inc": { + "mtime": 1790270823.1496067, + "ast_hash": "a70f89b1a80b10b5fb066945ef2eb417", + "semantic_hash": "a70f89b1a80b10b5fb066945ef2eb417" + }, + "src_graphics/platform_code.inc": { + "mtime": 1790270823.1593437, + "ast_hash": "6deacf4986280e0a0666cb311909a5eb", + "semantic_hash": "6deacf4986280e0a0666cb311909a5eb" + }, + "src_graphics/platform_data.inc": { + "mtime": 1790270823.1593437, + "ast_hash": "cd0f48032c02304efeb00df62647506d", + "semantic_hash": "cd0f48032c02304efeb00df62647506d" + }, + "src_graphics/renderer.inc": { + "mtime": 1790270823.1593437, + "ast_hash": "6166ca49fc7663f8657f16abad957e7d", + "semantic_hash": "6166ca49fc7663f8657f16abad957e7d" + }, + "src_portable/casino_portable.c": { + "mtime": 1790270823.1593437, + "ast_hash": "8792e5b57cbea01b6de4d414f8fb82f4", + "semantic_hash": "8792e5b57cbea01b6de4d414f8fb82f4" + }, + "src_portable/casino_portable.h": { + "mtime": 1790270823.1593437, + "ast_hash": "0fc31c1800373092e986f6f8a90e73d0", + "semantic_hash": "0fc31c1800373092e986f6f8a90e73d0" + }, + "tools/build_all_3d.py": { + "mtime": 1790270823.1593437, + "ast_hash": "b9310099dc9462538747bd814aebb511", + "semantic_hash": "b9310099dc9462538747bd814aebb511" + }, + "tools/build_casino_assets.py": { + "mtime": 1790270823.1593437, + "ast_hash": "950d40f9da724225e975c5cf7978f417", + "semantic_hash": "950d40f9da724225e975c5cf7978f417" + }, + "tools/build_engine.py": { + "mtime": 1790270823.1593437, + "ast_hash": "213dac8f3e761814847d3ed0da8b35af", + "semantic_hash": "213dac8f3e761814847d3ed0da8b35af" + }, + "tools/build_graphics.ps1": { + "mtime": 1790270823.1593437, + "ast_hash": "c7500c5a66fb43ff87a1dad6e36226a3", + "semantic_hash": "c7500c5a66fb43ff87a1dad6e36226a3" + }, + "tools/build_graphics_assets.py": { + "mtime": 1790270823.1593437, + "ast_hash": "3f620d3d643a897dd6508564838f30da", + "semantic_hash": "3f620d3d643a897dd6508564838f30da" + }, + "tools/generate_casino3d.py": { + "mtime": 1790270823.1593437, + "ast_hash": "7cfee82adb3c170b6d084bcc18d6f0d8", + "semantic_hash": "7cfee82adb3c170b6d084bcc18d6f0d8" + }, + "tools/generate_font.py": { + "mtime": 1790270823.1593437, + "ast_hash": "9f79c4567a80d4174eeee514c0b956dc", + "semantic_hash": "9f79c4567a80d4174eeee514c0b956dc" + }, + "tools/generate_math_and_map.py": { + "mtime": 1790270823.1593437, + "ast_hash": "a7d6f6abe8e93427c7476b1520be204f", + "semantic_hash": "a7d6f6abe8e93427c7476b1520be204f" + }, + "tools/generate_unified_casino3d.py": { + "mtime": 1790270823.1593437, + "ast_hash": "91f98b357fea1672295b848c162cb933", + "semantic_hash": "91f98b357fea1672295b848c162cb933" + }, + "tools/make_casino3d.py": { + "mtime": 1790270823.1593437, + "ast_hash": "037efa7839edb47f5a80ce8f95a03066", + "semantic_hash": "037efa7839edb47f5a80ce8f95a03066" + }, + "tools/patch_poker_asm.py": { + "mtime": 1790270823.1593437, + "ast_hash": "f9da4aa8ffcf6b1d9c42a28298f546ed", + "semantic_hash": "f9da4aa8ffcf6b1d9c42a28298f546ed" + }, + "tools/preview_dbd_hook.py": { + "mtime": 1790270823.1593437, + "ast_hash": "f110a82383960bb7d22bfef5e82b2f37", + "semantic_hash": "f110a82383960bb7d22bfef5e82b2f37" + }, + "tools/preview_hakari.py": { + "mtime": 1790270823.1593437, + "ast_hash": "b168b5435bace7cf4ea2ab51d3691138", + "semantic_hash": "b168b5435bace7cf4ea2ab51d3691138" + }, + "tools/preview_intro.py": { + "mtime": 1790270823.1593437, + "ast_hash": "54093a40f57a5c68a5ff1044a60e4ebb", + "semantic_hash": "54093a40f57a5c68a5ff1044a60e4ebb" + }, + "tools/release_smoke_check.ps1": { + "mtime": 1790270823.1593437, + "ast_hash": "0f7a033512d7c0b050dd2a2f7fbccc69", + "semantic_hash": "0f7a033512d7c0b050dd2a2f7fbccc69" + }, + "tools/simulate_render.py": { + "mtime": 1790270823.1593437, + "ast_hash": "84098cde25e5391156a33c8457d214de", + "semantic_hash": "84098cde25e5391156a33c8457d214de" + }, + "AGENTS.md": { + "mtime": 1790270822.3930032, + "ast_hash": "97ba65f5cc00efbfe83c482a89793cbb", + "semantic_hash": "97ba65f5cc00efbfe83c482a89793cbb" + }, + "CMakeLists.txt": { + "mtime": 1790270822.3930032, + "ast_hash": "64868d02077ea41fa9952bbde3d7fbd5", + "semantic_hash": "64868d02077ea41fa9952bbde3d7fbd5" + }, + "README.md": { + "mtime": 1790270822.3930032, + "ast_hash": "5f0539fc91819e1483b3cde1696bb9c8", + "semantic_hash": "5f0539fc91819e1483b3cde1696bb9c8" + }, + "assets/data/dealer_phrases.txt": { + "mtime": 1790270822.489428, + "ast_hash": "6bd4e117e2e1c58abffb3ca11173c717", + "semantic_hash": "6bd4e117e2e1c58abffb3ca11173c717" + }, + "docs/KNOWN_LIMITATIONS.txt": { + "mtime": 1790270823.1496067, + "ast_hash": "5e7a9ed6b3705a3fdbbaadb26f1cee17", + "semantic_hash": "5e7a9ed6b3705a3fdbbaadb26f1cee17" + }, + "docs/ONLINE_RADMIN.txt": { + "mtime": 1790270823.1496067, + "ast_hash": "abf23bd8a4072d6069604658b6edf3d4", + "semantic_hash": "abf23bd8a4072d6069604658b6edf3d4" + }, + "docs/README_RELEASE.txt": { + "mtime": 1790270823.1496067, + "ast_hash": "2e6d833ba134cfba0f3c0eec97d2e4a2", + "semantic_hash": "2e6d833ba134cfba0f3c0eec97d2e4a2" + }, + "docs/RELEASE_CHECKLIST.txt": { + "mtime": 1790270823.1496067, + "ast_hash": "3f678030b73c6871ee8d66109b3c9d5c", + "semantic_hash": "3f678030b73c6871ee8d66109b3c9d5c" + }, + "docs/ROADMAP.txt": { + "mtime": 1790270823.1496067, + "ast_hash": "65fe0c7e313e5fd5c6f8423ce5bf8544", + "semantic_hash": "65fe0c7e313e5fd5c6f8423ce5bf8544" + }, + "docs/SECURITY_NOTES.txt": { + "mtime": 1790270823.1496067, + "ast_hash": "51eca3baccd270cb1c8ea8e79bae88d0", + "semantic_hash": "51eca3baccd270cb1c8ea8e79bae88d0" + }, + "docs/casino_intro_preview.txt": { + "mtime": 1790270823.1496067, + "ast_hash": "881b205041909b342c2cb795b3cd3415", + "semantic_hash": "881b205041909b342c2cb795b3cd3415" + }, + "docs/dbd_hook_static.txt": { + "mtime": 1790270823.1496067, + "ast_hash": "076285d4f360ee261903bed5829dd153", + "semantic_hash": "076285d4f360ee261903bed5829dd153" + }, + "docs/revolver_small_preview.txt": { + "mtime": 1790270823.1496067, + "ast_hash": "f95cc9165dfd7e9bf9a9b5b6c49be2b6", + "semantic_hash": "f95cc9165dfd7e9bf9a9b5b6c49be2b6" + }, + "docs/\u041d\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.txt": { + "mtime": 1790270823.1496067, + "ast_hash": "5bd25dc621e2acf6a783c59c7db1da1b", + "semantic_hash": "5bd25dc621e2acf6a783c59c7db1da1b" + }, + "docs/\u0427\u0418\u0422\u041a\u041e\u0414\u042b.txt": { + "mtime": 1790270823.1496067, + "ast_hash": "02af0d595853a44aa8101ccfe0866d6a", + "semantic_hash": "02af0d595853a44aa8101ccfe0866d6a" + }, + "graphify-out/converted/variables_documentation_3fc6d2dc.md": { + "mtime": 1790274665.2704844, + "ast_hash": "a3d861ece24cb2d853f8c370625ee1ed", + "semantic_hash": "a3d861ece24cb2d853f8c370625ee1ed" + }, + "runtime/achievement.txt": { + "mtime": 1790270823.1593437, + "ast_hash": "d41d8cd98f00b204e9800998ecf8427e", + "semantic_hash": "d41d8cd98f00b204e9800998ecf8427e" + }, + "\u0418\u0414\u0415\u0418.txt": { + "mtime": 1790270823.1593437, + "ast_hash": "435c7897beeb02828af0d67980459582", + "semantic_hash": "435c7897beeb02828af0d67980459582" + }, + "assets/icons/casino_preview.png": { + "mtime": 1790270822.489428, + "ast_hash": "136c227375ee02994cc1d3293948c4b8", + "semantic_hash": "136c227375ee02994cc1d3293948c4b8" + }, + "assets/sprites/cabaret-loop-v1.png": { + "mtime": 1790270823.1193204, + "ast_hash": "8b565300f5f6ecc28d69d1bebc174a9f", + "semantic_hash": "8b565300f5f6ecc28d69d1bebc174a9f" + }, + "assets/sprites/casino-atlas-v1.png": { + "mtime": 1790270823.1245294, + "ast_hash": "a499f3325fa8dfe21c8c559fde628a5c", + "semantic_hash": "a499f3325fa8dfe21c8c559fde628a5c" + }, + "assets/textures/sprite_bartender_shop.png": { + "mtime": 1790270823.1422753, + "ast_hash": "5873e10361abc4a38eb1464d87337d92", + "semantic_hash": "5873e10361abc4a38eb1464d87337d92" + }, + "assets/textures/sprite_blackjack_table.png": { + "mtime": 1790270823.1422753, + "ast_hash": "1c18b20ee2aeede4b0bac4e73a92b20a", + "semantic_hash": "1c18b20ee2aeede4b0bac4e73a92b20a" + }, + "assets/textures/sprite_dancer_frame_0.png": { + "mtime": 1790270823.1422753, + "ast_hash": "2e6f3e753f73e90a5f4e4895e2007e7f", + "semantic_hash": "2e6f3e753f73e90a5f4e4895e2007e7f" + }, + "assets/textures/sprite_dancer_frame_1.png": { + "mtime": 1790270823.1422753, + "ast_hash": "2e94c2c5ddb1b6ac9e794bb5f7094ea5", + "semantic_hash": "2e94c2c5ddb1b6ac9e794bb5f7094ea5" + }, + "assets/textures/sprite_dancer_frame_2.png": { + "mtime": 1790270823.1422753, + "ast_hash": "54fd34f18738278ebe030e3a9b7568cd", + "semantic_hash": "54fd34f18738278ebe030e3a9b7568cd" + }, + "assets/textures/sprite_dancer_frame_3.png": { + "mtime": 1790270823.1422753, + "ast_hash": "d0529cd063152c1ab05e38dcf6eb6f82", + "semantic_hash": "d0529cd063152c1ab05e38dcf6eb6f82" + }, + "assets/textures/sprite_roulette_table.png": { + "mtime": 1790270823.1422753, + "ast_hash": "496e68eeb97fe1ac462cd9eb98f68046", + "semantic_hash": "496e68eeb97fe1ac462cd9eb98f68046" + }, + "assets/textures/sprite_slot_frame_0.png": { + "mtime": 1790270823.1422753, + "ast_hash": "837d6eed96011c0c0d948766b49db377", + "semantic_hash": "837d6eed96011c0c0d948766b49db377" + }, + "assets/textures/sprite_slot_frame_1.png": { + "mtime": 1790270823.1422753, + "ast_hash": "39a327461204bf64717a36a1953a0c77", + "semantic_hash": "39a327461204bf64717a36a1953a0c77" + }, + "assets/textures/sprite_slot_frame_2.png": { + "mtime": 1790270823.1422753, + "ast_hash": "668a9eb8b19e4fb661bbd9c7698c8365", + "semantic_hash": "668a9eb8b19e4fb661bbd9c7698c8365" + }, + "assets/textures/tex_floor_carpet.png": { + "mtime": 1790270823.1422753, + "ast_hash": "87cbe6cd48079db418b029b0959390d4", + "semantic_hash": "87cbe6cd48079db418b029b0959390d4" + }, + "assets/textures/tex_wall_hell.png": { + "mtime": 1790270823.1422753, + "ast_hash": "2a0d78005ef9ea1c6aa1641100142b5a", + "semantic_hash": "2a0d78005ef9ea1c6aa1641100142b5a" + }, + "assets/textures/tex_wall_stripclub.png": { + "mtime": 1790270823.1422753, + "ast_hash": "bbdfda9487a2f1a606779506e45b8651", + "semantic_hash": "bbdfda9487a2f1a606779506e45b8651" + }, + "assets/textures/tex_wall_velvet.png": { + "mtime": 1790270823.1422753, + "ast_hash": "3f46d6b191209be7c50889447c071876", + "semantic_hash": "3f46d6b191209be7c50889447c071876" + }, + "assets/audio/b05e1ac8be34248.wav": { + "mtime": 1790270822.414604, + "ast_hash": "2ffb76db56a87df737232df08fab4bab", + "semantic_hash": "2ffb76db56a87df737232df08fab4bab" + }, + "assets/audio/hKhoJArfEGAxxMewx0UQiddakTdBjFc.wav": { + "mtime": 1790270822.414604, + "ast_hash": "1e0f4def573ba11d6813bd33a3d02d7d", + "semantic_hash": "1e0f4def573ba11d6813bd33a3d02d7d" + }, + "assets/audio/hakari_dance.wav": { + "mtime": 1790270822.4302027, + "ast_hash": "d509663313eb3dc91d655b7af00491dc", + "semantic_hash": "d509663313eb3dc91d655b7af00491dc" + }, + "assets/audio/moving-stone.wav": { + "mtime": 1790270822.439434, + "ast_hash": "5d70b6f793ec13833a80604bb573c3b3", + "semantic_hash": "5d70b6f793ec13833a80604bb573c3b3" + }, + "assets/audio/playing_cards_deck_flick_through_001_20485.wav": { + "mtime": 1790270822.439434, + "ast_hash": "2f81256093ebf7b7d54f39eff0cee761", + "semantic_hash": "2f81256093ebf7b7d54f39eff0cee761" + }, + "assets/audio/revolverdryfirec.wav": { + "mtime": 1790270822.439434, + "ast_hash": "6ba327b092caf04b859c470a695d3a0f", + "semantic_hash": "6ba327b092caf04b859c470a695d3a0f" + }, + "assets/audio/roulette-wheel-throw-2.wav": { + "mtime": 1790270822.4598324, + "ast_hash": "6c057032512ab790c99589ab7b974c15", + "semantic_hash": "6c057032512ab790c99589ab7b974c15" + }, + "assets/audio/toy-gun-revolver-close-chamber-spin_f1ruc5nd.wav": { + "mtime": 1790270822.4598324, + "ast_hash": "ba5316144397cef3b42045fec10fa7fc", + "semantic_hash": "ba5316144397cef3b42045fec10fa7fc" + }, + "assets/audio/victory-tf2.wav": { + "mtime": 1790270822.469207, + "ast_hash": "e5634376184480460a4146725d89cf8a", + "semantic_hash": "e5634376184480460a4146725d89cf8a" + }, + "assets/audio/\u0414\u0436\u044d\u043a \u043f\u043e\u0442.wav": { + "mtime": 1790270822.4821348, + "ast_hash": "b7e9958169fd1b859c6c90d4328ff413", + "semantic_hash": "b7e9958169fd1b859c6c90d4328ff413" + }, + "assets/audio/\u0417\u0432\u0443\u043a \u043c\u043e\u043d\u0435\u0442\u044b \u0431\u0440\u043e\u0448\u0435\u043d\u043d\u043e\u0439 \u0432 \u0432\u043e\u0437\u0434\u0443\u0445 \u0438 \u0443\u043f\u0430\u0432\u0448\u0435\u0439 \u043d\u0430 \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u044c.wav": { + "mtime": 1790270822.4821348, + "ast_hash": "55f6f3e750d19b3a17c3ddaea26ef9d7", + "semantic_hash": "55f6f3e750d19b3a17c3ddaea26ef9d7" + }, + "assets/audio/\u0417\u0432\u0443\u043a \u043c\u043e\u043d\u0435\u0442\u044b \u0432 \u0438\u0433\u0440\u0435 Ultrakill.wav": { + "mtime": 1790270822.4821348, + "ast_hash": "884aa1749acdc0cbb0f7feb17e6628e7", + "semantic_hash": "884aa1749acdc0cbb0f7feb17e6628e7" + }, + "assets/audio/\u041b\u0435\u0442\u0441 \u0433\u043e\u0443 \u0433\u044d\u043c\u0431\u043b\u0438\u043d\u0433.wav": { + "mtime": 1790270822.489428, + "ast_hash": "9babfd7362b8f65dc961be5d49d1f2b9", + "semantic_hash": "9babfd7362b8f65dc961be5d49d1f2b9" + }, + "assets/audio/\u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0448.wav": { + "mtime": 1790270822.489428, + "ast_hash": "4375c277c7c905c4967a9a6d38d9fd9f", + "semantic_hash": "4375c277c7c905c4967a9a6d38d9fd9f" + }, + "assets/music/tower/KEYGEN_CHURCH_-_Hareklavit_75543927.mp3": { + "mtime": 1790270822.5744476, + "ast_hash": "3868ac1ad89190c469cf170c7b12e6a6", + "semantic_hash": "3868ac1ad89190c469cf170c7b12e6a6" + }, + "assets/music/tower/KEYGEN_CHURCH_-_Ladikerfos_75543991.mp3": { + "mtime": 1790270822.6715348, + "ast_hash": "e0e2cc83261d29f85ec0507ec0e8073c", + "semantic_hash": "e0e2cc83261d29f85ec0507ec0e8073c" + }, + "assets/music/tower/KEYGEN_CHURCH_-_Tilaskarot_75546826.mp3": { + "mtime": 1790270822.738438, + "ast_hash": "9b193980b0c62bce505f7c5af3e910ef", + "semantic_hash": "9b193980b0c62bce505f7c5af3e910ef" + }, + "assets/music/tower/Keygen_Church_-_Tenebre_Rosso_Sangue_ULTRAKILL_Original_Game_Soundtrack_79610890.mp3": { + "mtime": 1790270822.7995152, + "ast_hash": "1d04fb66ce356d3e1da34ad2a30795d2", + "semantic_hash": "1d04fb66ce356d3e1da34ad2a30795d2" + }, + "assets/music/tower/Mick_Gordon_-_BFG_Division_48126042.mp3": { + "mtime": 1790270822.9346032, + "ast_hash": "443414f37f655f905fc07d31d3031cd2", + "semantic_hash": "443414f37f655f905fc07d31d3031cd2" + }, + "assets/music/tower/Mick_Gordon_-_Rip_Tear_48126019.mp3": { + "mtime": 1790270823.0045426, + "ast_hash": "54377250e2e0f4193b6be504fa6f1bc7", + "semantic_hash": "54377250e2e0f4193b6be504fa6f1bc7" + }, + "assets/music/tower/Mick_Gordon_-_The_Only_Thing_They_Fear_Is_You_OST_DOOM_Eternal_72020713.mp3": { + "mtime": 1790270823.113895, + "ast_hash": "7198bbb632c4208dbe718afbf0c5f8f6", + "semantic_hash": "7198bbb632c4208dbe718afbf0c5f8f6" + } +} \ No newline at end of file diff --git a/poker.obj b/poker.obj new file mode 100644 index 0000000..b5408bd Binary files /dev/null and b/poker.obj differ diff --git a/runtime/casino3d-progress.dat b/runtime/casino3d-progress.dat new file mode 100644 index 0000000..4e24972 Binary files /dev/null and b/runtime/casino3d-progress.dat differ diff --git a/tools/generators/__pycache__/build_all_3d.cpython-314.pyc b/tools/generators/__pycache__/build_all_3d.cpython-314.pyc new file mode 100644 index 0000000..6f0eedb Binary files /dev/null and b/tools/generators/__pycache__/build_all_3d.cpython-314.pyc differ diff --git a/tools/generators/__pycache__/build_casino_assets.cpython-314.pyc b/tools/generators/__pycache__/build_casino_assets.cpython-314.pyc new file mode 100644 index 0000000..eeafbdb Binary files /dev/null and b/tools/generators/__pycache__/build_casino_assets.cpython-314.pyc differ diff --git a/tools/generators/__pycache__/build_engine.cpython-314.pyc b/tools/generators/__pycache__/build_engine.cpython-314.pyc new file mode 100644 index 0000000..3cb8946 Binary files /dev/null and b/tools/generators/__pycache__/build_engine.cpython-314.pyc differ diff --git a/tools/generators/__pycache__/build_graphics_assets.cpython-314.pyc b/tools/generators/__pycache__/build_graphics_assets.cpython-314.pyc new file mode 100644 index 0000000..9eb0812 Binary files /dev/null and b/tools/generators/__pycache__/build_graphics_assets.cpython-314.pyc differ diff --git a/tools/generators/__pycache__/generate_casino3d.cpython-314.pyc b/tools/generators/__pycache__/generate_casino3d.cpython-314.pyc new file mode 100644 index 0000000..1c13e07 Binary files /dev/null and b/tools/generators/__pycache__/generate_casino3d.cpython-314.pyc differ diff --git a/tools/generators/__pycache__/generate_font.cpython-314.pyc b/tools/generators/__pycache__/generate_font.cpython-314.pyc new file mode 100644 index 0000000..d3e015b Binary files /dev/null and b/tools/generators/__pycache__/generate_font.cpython-314.pyc differ diff --git a/tools/generators/__pycache__/generate_math_and_map.cpython-314.pyc b/tools/generators/__pycache__/generate_math_and_map.cpython-314.pyc new file mode 100644 index 0000000..9d56d74 Binary files /dev/null and b/tools/generators/__pycache__/generate_math_and_map.cpython-314.pyc differ diff --git a/tools/generators/__pycache__/generate_unified_casino3d.cpython-314.pyc b/tools/generators/__pycache__/generate_unified_casino3d.cpython-314.pyc new file mode 100644 index 0000000..2152a8a Binary files /dev/null and b/tools/generators/__pycache__/generate_unified_casino3d.cpython-314.pyc differ diff --git a/tools/generators/__pycache__/make_casino3d.cpython-314.pyc b/tools/generators/__pycache__/make_casino3d.cpython-314.pyc new file mode 100644 index 0000000..9ae868b Binary files /dev/null and b/tools/generators/__pycache__/make_casino3d.cpython-314.pyc differ diff --git a/tools/generators/__pycache__/patch_poker_asm.cpython-314.pyc b/tools/generators/__pycache__/patch_poker_asm.cpython-314.pyc new file mode 100644 index 0000000..597ead0 Binary files /dev/null and b/tools/generators/__pycache__/patch_poker_asm.cpython-314.pyc differ diff --git a/tools/previews/__pycache__/preview_dbd_hook.cpython-314.pyc b/tools/previews/__pycache__/preview_dbd_hook.cpython-314.pyc new file mode 100644 index 0000000..af89112 Binary files /dev/null and b/tools/previews/__pycache__/preview_dbd_hook.cpython-314.pyc differ diff --git a/tools/previews/__pycache__/preview_hakari.cpython-314.pyc b/tools/previews/__pycache__/preview_hakari.cpython-314.pyc new file mode 100644 index 0000000..e07eeca Binary files /dev/null and b/tools/previews/__pycache__/preview_hakari.cpython-314.pyc differ diff --git a/tools/previews/__pycache__/preview_intro.cpython-314.pyc b/tools/previews/__pycache__/preview_intro.cpython-314.pyc new file mode 100644 index 0000000..8d1edca Binary files /dev/null and b/tools/previews/__pycache__/preview_intro.cpython-314.pyc differ diff --git a/tools/tests/__pycache__/simulate_render.cpython-314.pyc b/tools/tests/__pycache__/simulate_render.cpython-314.pyc new file mode 100644 index 0000000..8d2df8c Binary files /dev/null and b/tools/tests/__pycache__/simulate_render.cpython-314.pyc differ diff --git a/tools/tests/__pycache__/test_minigames_render.cpython-314.pyc b/tools/tests/__pycache__/test_minigames_render.cpython-314.pyc new file mode 100644 index 0000000..6341b21 Binary files /dev/null and b/tools/tests/__pycache__/test_minigames_render.cpython-314.pyc differ