- 将 printBacktraceOnError 默认值从 false 修改为 true - 扩展子类作为父类返回时的类型检查,支持抽象类或接口 - 更新 SimpleType::fromNode 和 fromString 方法以支持 ArrayType 返回类型 - 修改测试用例中 ZipArchive 的路径处理逻辑 - 更新测试输出预期结果以匹配新的行为pull/1/head
parent
cc785eb7f7
commit
c79573a9fe
4 changed files with 42 additions and 18 deletions
@ -0,0 +1,22 @@ |
||||
<?php |
||||
|
||||
/** |
||||
* Tetris Game - Pure PHP Logic + Win32 C++ Drawing Primitives |
||||
* |
||||
* This project demonstrates the AOT compiler's capability: |
||||
* - C++ only wraps Win32 APIs (window, message, GDI drawing) |
||||
* - ALL game logic is implemented in PHP |
||||
*/ |
||||
|
||||
// ============================================================ |
||||
// Constants |
||||
// ============================================================ |
||||
|
||||
const BLOCK_SIZE = 30; |
||||
const BOARD_HEIGHT = 20; |
||||
const WINDOW_HEIGHT = BLOCK_SIZE * BOARD_HEIGHT + 40; |
||||
|
||||
function main(): void |
||||
{ |
||||
var_dump(BLOCK_SIZE, BOARD_HEIGHT, WINDOW_HEIGHT); |
||||
} |
||||
Loading…
Reference in new issue