Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Laser towers
QtWS25 Last Chance

Laser towers

Scheduled Pinned Locked Moved Game Development
8 Posts 3 Posters 5.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    laurent bauer
    wrote on last edited by
    #1

    Hello,

    After the "Fire bullets example":http://developer.qt.nokia.com/forums/viewthread/556 , I continued playing with QGraphicsScene

    Here another simple example:

    "Laser shooter example on youtube":http://www.youtube.com/watch?v=cofUk8BK7nE

    I can't post the code here because it contains more than the maximum allowed 6000 characters. However I could forward it or post some snippets if somebody asks.

    Edit:
    Here is it (Wiki):

    "Towers_lasers_and_spacecrafts_example":http://developer.qt.nokia.com/wiki/Towers_lasers_and_spacecrafts_example

    Laurent

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      could you try and add it in the wiki ?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        anselmolsm
        wrote on last edited by
        #3

        [quote author="laurent bauer" date="1283012105"]

        "Laser shooter example on youtube":http://www.youtube.com/watch?v=cofUk8BK7nE
        [/quote]

        Nice!

        [quote author="laurent bauer" date="1283012105"]
        I can't post the code here because it contains more than the maximum allowed 6000 characters. However I could forward it or post some snippets if somebody asks.

        Laurent[/quote]

        If you want to share this code, an alternative would be publishing it on "gitorious.org":http://gitorious.org/ , "github":http://github.com/ or any other online repository service, then you post the URL here later =)

        Anselmo L. S. Melo (anselmolsm)

        1 Reply Last reply
        0
        • L Offline
          L Offline
          laurent bauer
          wrote on last edited by
          #4

          bq. could you try and add it in the wiki ?

          I pushed it in the wiki with a few more explanations

          "Towers_lasers_and_spacecrafts_example":http://developer.qt.nokia.com/wiki/Towers_lasers_and_spacecrafts_example

          [quote author="anselmolsm" date="1283017956"]

          If you want to share this code, an alternative would be publishing it on "gitorious.org":http://gitorious.org/ , "github":http://github.com/ or any other online repository service, then you post the URL here later =)[/quote]

          Yes I must do it...

          1 Reply Last reply
          0
          • A Offline
            A Offline
            anselmolsm
            wrote on last edited by
            #5

            Great! =)

            Anselmo L. S. Melo (anselmolsm)

            1 Reply Last reply
            0
            • ? This user is from outside of this forum
              ? This user is from outside of this forum
              Guest
              wrote on last edited by
              #6

              cool!

              1 Reply Last reply
              0
              • M Offline
                M Offline
                markus.liebe
                wrote on last edited by
                #7

                Hi . This is a very nice example! Thanks!

                However I think the wiki parsed away several modulo operators after qrand():

                • mobileunit.cpp : 20 there should be a qrand() modulo 90 or sth.
                • mobileunit.cpp : 21 qrand() modulo 10 or sth.
                • scene.cpp : 66 m_TicTacTime modulo 20 == 0

                replace the word modulo in the lines above with the cpp modulo operator =)

                @the trolls: is there an error in the syntax highlighter of the wiki?

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  laurent bauer
                  wrote on last edited by
                  #8

                  [quote author="Markus Liebe" date="1283256324"]

                  However I think the wiki parsed away several modulo operators after qrand():

                  [/quote]

                  Sounds like a missed copy-passed... Thank you Markus

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved