Results 1 to 9 of 9

Thread: Extended cannon example - My first little Qt project

  1. #1
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Extended cannon example - My first little Qt project

    this is the qt's cannon game example with the following features added:

    - Extended and easy keyboard keys
    - Wind factor
    - Variable lenght barrel
    - More decorated cannon
    - Timer
    - Barrel recoil
    - Multiple shots in the air
    - Multiple targets
    - Splatter effect
    - Round shots with precise collision detection
    - Hit to barrier and drop effect
    - Pause game
    - Sound effects
    - Changeable background color

    Some of these features were suggested in the Qt's exercises.
    This is rather for demonstration, not a real game! (But playable and fun)
    Sorry for dirty and poorly documented code;
    I wrote this just to show a little of the Qt's power and flexibily to one of my friends.

    source code: http://www.4shared.com/file/12187321...annon-src.html

    binary package (For MS Windows): http://www.4shared.com/file/12187258...annon-bin.html

    edit: now source package is attached too.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by FS Lover; 31st July 2009 at 08:09.

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Extended cannon example - My first little Qt project

    nice job brother... this is the first time i have seen anybody doing the qt exercise .. anyways.. i cannot download from this site... the site do not open.. why dont you attach it in the forum?

  3. #3
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Extended cannon example - My first little Qt project

    This is cool man..
    I enjoyed it, even I never tried old one. but this one is really cool app.
    Air effect and barrier effect and continues firing is most I like..

    Good luck

  4. The following user says thank you to yogeshgokul for this useful post:

    FS Lover (31st July 2009)

  5. #4
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Extended cannon example - My first little Qt project

    Quote Originally Posted by MrDeath View Post
    i cannot download from this site... the site do not open.. why dont you attach it in the forum?
    my packages are usually too big for forum attachments.
    forum attachments have a very limited maximum size (which is very rational and typical).
    but I forgot that the source code package is small enough; it is now attached to the first post.
    Last edited by FS Lover; 31st July 2009 at 08:18.

  6. #5
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Extended cannon example - My first little Qt project

    unfortunately it seems that the cannon example is removed from the recent versions of Qt.
    I don't know why.
    I think it was a great example of its own category for the tutorial section.

  7. #6
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Extended cannon example - My first little Qt project

    great game brother... .. i like it. .. add a option to remove the wall... i like easy games

  8. #7
    Join Date
    Nov 2009
    Posts
    1
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Extended cannon example - My first little Qt project

    Hi,
    i had also added more features in this cannon game like changing styles, more targets, color changings etc. i did this in 2007 when i first learned Qt. This time i am in MFC. Can anyone tell that is that game tutorial still is in the latest Qt version ?
    anyway, nice to hear that someone else has added some functionality to this cannon game.
    abhishek mittal
    abhishekkumarmittal@yahoo.com
    Mob. 09352192677

  9. #8
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Extended cannon example - My first little Qt project

    this tutorial was in (and up to) qt 4.4.3 installation, i think.

  10. #9
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Extended cannon example - My first little Qt project

    I accept with information
    what do you mean?

Similar Threads

  1. Porting Qt project from 3.3 to 4.5
    By URPradhan in forum Qt Tools
    Replies: 1
    Last Post: 9th July 2009, 14:11
  2. How to Compile VTKDesigner2 with Qt?
    By alfredoaal in forum Newbie
    Replies: 0
    Last Post: 5th September 2008, 05:34
  3. making qmake create VisualStudio console app project file?
    By akos.maroy in forum Qt Programming
    Replies: 2
    Last Post: 18th August 2008, 14:45
  4. help needed with complicated project
    By Muzz in forum Newbie
    Replies: 12
    Last Post: 15th February 2008, 09:54
  5. Importing qt project to an eclipse workspace
    By isahin in forum Installation and Deployment
    Replies: 2
    Last Post: 28th January 2008, 18:00

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.