Sub-Attaq

This example shows Qt’s ability to combine the animation framework and the state machine framework to create a game

This example shows Qt’s ability to combine the animation framework and the state machine framework to create a game.

The purpose of the game is to destroy all submarines to win the current level. The boat can be controlled using left and right keys. To fire a bomb you can press up and down keys.

animationmanager.cpp Example File

animationmanager.h Example File

boat.cpp Example File

boat.h Example File

boat_p.h Example File

bomb.cpp Example File

bomb.h Example File

data.xml Example File

graphicsscene.cpp Example File

graphicsscene.h Example File

mainwindow.cpp Example File

mainwindow.h Example File

pixmapitem.cpp Example File

pixmapitem.h Example File

progressitem.cpp Example File

progressitem.h Example File

qanimationstate.cpp Example File

qanimationstate.h Example File

states.cpp Example File

states.h Example File

submarine.cpp Example File

submarine.h Example File

submarine_p.h Example File

textinformationitem.cpp Example File

textinformationitem.h Example File

torpedo.cpp Example File

torpedo.h Example File

background-n810.svg Example File

background.svg Example File

boat.svg Example File

bomb.svg Example File

sand.svg Example File

see.svg Example File

sky.svg Example File

sub-attaq.svg Example File

submarine.svg Example File

surface.svg Example File

torpedo.svg Example File

main.cpp Example File

sub-attaq.pro Example File

subattaq.qrc Example File

background.png Image File

boat.png Image File

bomb.png Image File

submarine.png Image File

surface.png Image File

torpedo.png Image File

step1.png Image File

step2.png Image File

step3.png Image File

step4.png Image File

step1.png Image File

step2.png Image File

step3.png Image File

step4.png Image File

background.png Image File

boat.png Image File

bomb.png Image File

submarine.png Image File

surface.png Image File

torpedo.png Image File

logo-a.png Image File

logo-a2.png Image File

logo-b.png Image File

logo-dash.png Image File

logo-excl.png Image File

logo-q.png Image File

logo-s.png Image File

logo-t.png Image File

logo-t2.png Image File

logo-u.png Image File