为Game Boy学习C ++开发的好教程

时间:2022-03-20 06:52:42

I'm learning C++ with this book of Deitel: C++ How to Program, 5/e and some tutorials and resources of the internet, but I want to learn how I can develop Nintendo GameBoy Advance games using C++, but only in resources over the internet, because I don't want to spent money now with a thing that I only want to try.

我正在用Deitel这本书学习C ++:C ++如何编程,5 / e以及互联网的一些教程和资源,但我想学习如何使用C ++开发Nintendo GameBoy Advance游戏,但仅限于使用C ++的资源。互联网,因为我现在不想花钱买一件我想尝试的东西。

2 个解决方案

#1


Get DevkitPro and a good library like TONC. Also, you can get more help at GBADev.

获取DevkitPro和TONC这样的好库。此外,您可以在GBADev获得更多帮助。

Although you can use C++ in GBA development, plain C is recommended. The choice is yours to make, though.

虽然您可以在GBA开发中使用C ++,但建议使用纯C语言。不过,你可以选择。

#2


You can also try wxwidgets its very helpful. Here is a big picture of a simple game:

您也可以尝试wxwidgets非常有帮助。这是一个简单游戏的大图:

  • gameEngine class (responsible for creating sprite(s), setting up the environment, checking for key i/o, monitor various statistics of the game eg score, how many tries etc)
  • gameEngine类(负责创建精灵,设置环境,检查关键i / o,监控游戏的各种统计数据,例如得分,尝试次数等)

  • Sprite Class (it will monitor things like life, health, direction etc)
  • Sprite Class(它会监控生活,健康,方向等)

  • Hero -> Inherits from sprite class with some of its own functionality.
  • Hero - >从sprite类继承自己的一些功能。

  • Enemy -> Also inherits from sprite class.
  • 敌人 - >也继承自精灵类。

  • Fire -> Inherits from sprite as well.
  • Fire - >也可以从精灵继承。

#1


Get DevkitPro and a good library like TONC. Also, you can get more help at GBADev.

获取DevkitPro和TONC这样的好库。此外,您可以在GBADev获得更多帮助。

Although you can use C++ in GBA development, plain C is recommended. The choice is yours to make, though.

虽然您可以在GBA开发中使用C ++,但建议使用纯C语言。不过,你可以选择。

#2


You can also try wxwidgets its very helpful. Here is a big picture of a simple game:

您也可以尝试wxwidgets非常有帮助。这是一个简单游戏的大图:

  • gameEngine class (responsible for creating sprite(s), setting up the environment, checking for key i/o, monitor various statistics of the game eg score, how many tries etc)
  • gameEngine类(负责创建精灵,设置环境,检查关键i / o,监控游戏的各种统计数据,例如得分,尝试次数等)

  • Sprite Class (it will monitor things like life, health, direction etc)
  • Sprite Class(它会监控生活,健康,方向等)

  • Hero -> Inherits from sprite class with some of its own functionality.
  • Hero - >从sprite类继承自己的一些功能。

  • Enemy -> Also inherits from sprite class.
  • 敌人 - >也继承自精灵类。

  • Fire -> Inherits from sprite as well.
  • Fire - >也可以从精灵继承。