https://github.com/marek-cel/QFlightinstruments 在最后有一个视频教程。我紧跟着他的脚步走。但是当我运行它时,我得到了以下错误。\Instruments\qfi\qfi_AI.cpp:23:
../Instruments/qfi/qfi_AI.h:28:10:fatal error: QGraphicsSvgItem: No such file or directory" qfi_EADI.h、我已经包含了头文件,
我正在制作一款游戏,游戏中昆虫从屏幕顶部落下。这个游戏的目的是杀死这些昆虫。我已经为这些昆虫做了一个关于它们如何移动的代码,但问题似乎是它们似乎以不平滑的模式旋转。他们抽筋了!else // Enemy is still alive and moving across the screen //rotate the enemy between 10-5 degrees
tempEnemy.rotation += (Math.round(Math.random()*10