Sub-Attaq
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.
Files:
- animation/sub-attaq/animationmanager.cpp
- animation/sub-attaq/animationmanager.h
- animation/sub-attaq/boat.cpp
- animation/sub-attaq/boat.h
- animation/sub-attaq/boat_p.h
- animation/sub-attaq/bomb.cpp
- animation/sub-attaq/bomb.h
- animation/sub-attaq/data.xml
- animation/sub-attaq/graphicsscene.cpp
- animation/sub-attaq/graphicsscene.h
- animation/sub-attaq/main.cpp
- animation/sub-attaq/mainwindow.cpp
- animation/sub-attaq/mainwindow.h
- animation/sub-attaq/pics/scalable/background-n810.svg
- animation/sub-attaq/pics/scalable/background.svg
- animation/sub-attaq/pics/scalable/boat.svg
- animation/sub-attaq/pics/scalable/bomb.svg
- animation/sub-attaq/pics/scalable/sand.svg
- animation/sub-attaq/pics/scalable/see.svg
- animation/sub-attaq/pics/scalable/sky.svg
- animation/sub-attaq/pics/scalable/sub-attaq.svg
- animation/sub-attaq/pics/scalable/submarine.svg
- animation/sub-attaq/pics/scalable/surface.svg
- animation/sub-attaq/pics/scalable/torpedo.svg
- animation/sub-attaq/pixmapitem.cpp
- animation/sub-attaq/pixmapitem.h
- animation/sub-attaq/progressitem.cpp
- animation/sub-attaq/progressitem.h
- animation/sub-attaq/qanimationstate.cpp
- animation/sub-attaq/qanimationstate.h
- animation/sub-attaq/states.cpp
- animation/sub-attaq/states.h
- animation/sub-attaq/sub-attaq.pro
- animation/sub-attaq/subattaq.qrc
- animation/sub-attaq/submarine.cpp
- animation/sub-attaq/submarine.h
- animation/sub-attaq/submarine_p.h
- animation/sub-attaq/textinformationitem.cpp
- animation/sub-attaq/textinformationitem.h
- animation/sub-attaq/torpedo.cpp
- animation/sub-attaq/torpedo.h
Images:
- animation/sub-attaq/pics/big/background.png
- animation/sub-attaq/pics/big/boat.png
- animation/sub-attaq/pics/big/bomb.png
- animation/sub-attaq/pics/big/explosion/boat/step1.png
- animation/sub-attaq/pics/big/explosion/boat/step2.png
- animation/sub-attaq/pics/big/explosion/boat/step3.png
- animation/sub-attaq/pics/big/explosion/boat/step4.png
- animation/sub-attaq/pics/big/explosion/submarine/step1.png
- animation/sub-attaq/pics/big/explosion/submarine/step2.png
- animation/sub-attaq/pics/big/explosion/submarine/step3.png
- animation/sub-attaq/pics/big/explosion/submarine/step4.png
- animation/sub-attaq/pics/big/submarine.png
- animation/sub-attaq/pics/big/surface.png
- animation/sub-attaq/pics/big/torpedo.png
- animation/sub-attaq/pics/small/background.png
- animation/sub-attaq/pics/small/boat.png
- animation/sub-attaq/pics/small/bomb.png
- animation/sub-attaq/pics/small/submarine.png
- animation/sub-attaq/pics/small/surface.png
- animation/sub-attaq/pics/small/torpedo.png
- animation/sub-attaq/pics/welcome/logo-a.png
- animation/sub-attaq/pics/welcome/logo-a2.png
- animation/sub-attaq/pics/welcome/logo-b.png
- animation/sub-attaq/pics/welcome/logo-dash.png
- animation/sub-attaq/pics/welcome/logo-excl.png
- animation/sub-attaq/pics/welcome/logo-q.png
- animation/sub-attaq/pics/welcome/logo-s.png
- animation/sub-attaq/pics/welcome/logo-t.png
- animation/sub-attaq/pics/welcome/logo-t2.png
- animation/sub-attaq/pics/welcome/logo-u.png