IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Sub-Attaq

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

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Sub-Attaq

 
Sélectionnez
QT += widgets
qtHaveModule(opengl): QT += opengl
HEADERS += boat.h \
    bomb.h \
    mainwindow.h \
    submarine.h \
    torpedo.h \
    pixmapitem.h \
    graphicsscene.h \
    animationmanager.h \
    states.h \
    boat_p.h \
    submarine_p.h \
    qanimationstate.h \
    progressitem.h \
    textinformationitem.h
SOURCES += boat.cpp \
    bomb.cpp \
    main.cpp \
    mainwindow.cpp \
    submarine.cpp \
    torpedo.cpp \
    pixmapitem.cpp \
    graphicsscene.cpp \
    animationmanager.cpp \
    states.cpp \
    qanimationstate.cpp \
    progressitem.cpp \
    textinformationitem.cpp
RESOURCES += subattaq.qrc

# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/animation/sub-attaq
INSTALLS += target

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+