gpt4 book ai didi

php - (游戏引擎)架构设计

转载 作者:行者123 更新时间:2023-11-29 03:49:36 27 4
gpt4 key购买 nike

我目前正在开发 2D 网页游戏。

在放弃 ZendFramework 之后,我和我的团队决定编写我们自己的框架。

现在我们很无奈,因为除了CMS框架等,我们都没有开发过类似的东西。

语言是PHP,使用的数据库驱动是MySQL(i, PDO, etc)

您能给我们一些关于构建框架的提示吗?

谢谢;)

Example of the genre the should fit in

  • Ogame
  • Travian
  • Zarrenwar

(My) Requirements (to the framework)

  • Basic API
  • No overwhelming amount of functionality, which I can not handle, and I do not need

My idea of (my) the framework

  • Some sort of "backe-end"
  • Managing the database
  • Handling registrations, HTTP requests
  • Generating chances that something ingame will or will not happen
  • no graphical mechanisms, just computing income, daytime, damage of tank xy, etc.

顺便说一句,我测试的框架不是 php 游戏引擎,因为我从来没有发现任何免费可用的 php 游戏引擎。

最佳答案

认为您真正需要的是 javascript 游戏引擎,因为仅靠 PHP 无法为游戏中的 2D 交互(移动 Sprite 、更改分数等)提供太多帮助).也许看看几个 javascript 游戏引擎之一,例如:

还有其他几个很容易找到的...

关于php - (游戏引擎)架构设计,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1657281/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com