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. Fire bullets example
QtWS25 Last Chance

Fire bullets example

Scheduled Pinned Locked Moved Game Development
17 Posts 11 Posters 15.6k 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.
  • K Offline
    K Offline
    kleimola
    wrote on last edited by
    #2

    Nice! Thank you for posting this.

    >> Johannes <<

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      yarco
      wrote on last edited by
      #3

      yeah! good for me.

      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
        #4

        too good !

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kamalakshantv
          wrote on last edited by
          #5

          Thank you for this post.

          1 Reply Last reply
          0
          • X Offline
            X Offline
            xsacha
            wrote on last edited by
            #6

            I can see this being used in one of those 2D tower games.

            I'm just wondering: shouldn't the timer be (less than?) 1/refresh rate rather than just 0.01s. To save unnecessary calculations and possibly remove tearing.

            • Sacha
            1 Reply Last reply
            0
            • K Offline
              K Offline
              kamalakshantv
              wrote on last edited by
              #7

              [quote author="xsacha" date="1291475228"]I can see this being used in one of those 2D tower games.

              I'm just wondering: shouldn't the timer be (less than?) 1/refresh rate rather than just 0.01s. To save unnecessary calculations and possibly remove tearing.[/quote]

              Which is the game you are referring to? Is the code available.

              1 Reply Last reply
              0
              • X Offline
                X Offline
                xsacha
                wrote on last edited by
                #8

                Oh it's a classic game, repeated everywhere. I'm talking about Tower Defence.

                Here's an opensource Qt version: http://gitorious.org/open-tower-defence

                • Sacha
                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kamalakshantv
                  wrote on last edited by
                  #9

                  [quote author="xsacha" date="1291476247"]Oh it's a classic game, repeated everywhere. I'm talking about Tower Defence.

                  Here's an opensource Qt version: http://gitorious.org/open-tower-defence[/quote]

                  Thank you for the link. I was not aware of this.

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

                    [quote author="xsacha" date="1291475228"]I'm just wondering: shouldn't the timer be (less than?) 1/refresh rate rather than just 0.01s. To save unnecessary calculations and possibly remove tearing.[/quote]

                    Yes, you are right.
                    How do you retrieve the refresh rate with Qt ?

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      kkrzewniak
                      wrote on last edited by
                      #11

                      Avoiding tearing in Qt by sticking with the screens refresh rate is discussed by Gunnar "here":http://labs.qt.nokia.com/2010/12/02/velvet-and-the-qml-scene-graph/

                      Me, Grimlock, not "nice dino". ME BASH BRAINS!

                      1 Reply Last reply
                      0
                      • X Offline
                        X Offline
                        xsacha
                        wrote on last edited by
                        #12

                        I read that post when it came out but it doesn't really explain the code behind it. I guess it's in the repository, but that's a fair bit of reading.
                        That blog was more about 'what not to do' really.

                        I would be interested in finding out how to discover refresh rate in Qt. Is there something in Qt for system information?

                        Obviously using 16.66ms wasn't working in that QML Scene Graph example ;).

                        • Sacha
                        1 Reply Last reply
                        0
                        • N Offline
                          N Offline
                          nereo
                          wrote on last edited by
                          #13

                          I tested your code... and that's really good!

                          N£R£Ø™

                          1 Reply Last reply
                          0
                          • N Offline
                            N Offline
                            ngocketit
                            wrote on last edited by
                            #14

                            Tried too, very cool!

                            1 Reply Last reply
                            0
                            • T Offline
                              T Offline
                              TobbY
                              wrote on last edited by
                              #15

                              i tried to, thanks for sharing

                              1 Reply Last reply
                              0
                              • C Offline
                                C Offline
                                Cayan
                                wrote on last edited by
                                #16

                                Great Initiative! Thanks

                                1 Reply Last reply
                                0
                                • R Offline
                                  R Offline
                                  Rahul Das
                                  wrote on last edited by
                                  #17

                                  Cool one.. Liked it :)


                                  Declaration of (Platform) independence.

                                  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