2. Qt Mini Game --- Simple Aircraft War

1. Description

This code is just a simple game. It only realizes the movement of the plane and the firing of bullets, and the disappearance of the collision of the enemy plane. The whole code mainly uses QGraphicsItem and QGraphicsPixmapItem . The actual effect shows:

QT Aircraft War

2. Related code

The code mainly includes four class files, the main structure is as follows:
insert image description here
The main code is as follows (related explanations have been explained in the code comments):
widget.h:

#ifndef WIDGET_H
#define

Guess you like

Origin blog.csdn.net/FY_13781298928/article/details/131108718