Skip to content

Game Development

What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
862 Topics 4.0k Posts
  • Integrating opengl with qt

    3
    0 Votes
    3 Posts
    2k Views
    B

    You have to link against the module by adding QT += opengl to your .pro file. You should also #include <QtOpenGL>.

  • 3d game in Qt

    3
    0 Votes
    3 Posts
    4k Views
    M

    I would suggest honing your Qt skills with basic (yes, perhaps boring) projects to get the basics down. Same with any of the other technologies you'll need which you may be new at. Once you have a good grasp of them in simple scenarios, then it will make it that much easier to put it together into a more complex application. If you dive into something very complex without having a good grasp of the basics, then it will be much harder to peel back the complex layers of the problem to get to any simple errors.

  • How to make a database with various levels?

    6
    0 Votes
    6 Posts
    3k Views
    T

    I see that way in the qt-flying bus example, but I make the lvls with qml, and one loader that read a signal next game and change the level, but the way to make that the level-loader read the scores of each level is this that I dont know how to do.
    I do this to make one database to the first lvl:
    @function guardardatos() {
    var db = openDatabaseSync("lvl1", "1.0", "primerlvl", 1000000);
    var rs;

    db.transaction( function(tx) { // Create the database if it doesn't already exist tx.executeSql('CREATE TABLE IF NOT EXISTS Niveluno(uno INT, dos INT)'); // Add (another) greeting row tx.executeSql('INSERT INTO Niveluno VALUES(?, ?)', [ recto.score, recto.burbujas1]); // Show all added greetings rs = tx.executeSql('SELECT * FROM Niveluno ORDER BY uno desc LIMIT 1'); } ) if (rs.rows.length > 0) { var record = rs.rows.item(0); recto.lvl1 = record.uno; }

    }@

    When the lvl ends I write 2 values: the score and and the quantity of bubbles eated,
    lather I created a other datbase called guardarDatos1() for the lvl 2 etc..., when I start the game one Timer reads all the databases and update the scores in the levelmenu and show which is active, pased with his score and which is bocked to the user. I dont know other form to make this, and in C++ buff is other world.

    if other knows other form to do this please explain me!!

  • Multithreading in qt

    9
    0 Votes
    9 Posts
    4k Views
    T

    Thank you so much for your help! Now I get it... I'll just post here if I have more question.. Thank you again for your help!

  • 0 Votes
    2 Posts
    3k Views
    Q

    You can have a look at some QGraphicsView videos on this website

    Also you may want to look at Cocos2D for Qt in here http://developer.qt.nokia.com/forums/viewthread/14208

    Bests

  • 0 Votes
    6 Posts
    5k Views
    K

    Its not really any sort of formula. If this was in 3D you would need formulas, but this are just basic comparisons. I'd suggest you draw two boxes in a coordinate system on a paper and do the comparisons for left and right (as already exist in the code above) by hand to get a better understanding of what's happening.

  • Use Qt Quick or traditional Qt

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    T

    Closing this thread: Please see http://developer.qt.nokia.com/forums/viewthread/14234/ instead.

  • Use Qt Quick or traditional Qt

    2
    0 Votes
    2 Posts
    2k Views
    G

    Hi,

    a better heading would ease this up. Just writing need help, does not help the people to get your question easily. I would try it with "Use Qt Quick or traditional Qt"

  • [ANNOUNCE] Cocos2D GameEngine for Qt

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    4 Posts
    3k Views
    Q

    You can have a look at "mini cocos2d-clone":https://projects.developer.nokia.com/cocos2d/files/, I'm adding android support and iOS soon, so your cross-platform game support!

    Check the example to see how easy it is!

  • Get "motion blur" in animations

    2
    0 Votes
    2 Posts
    2k Views
    M

    For motion blur you need to blur the item in the vector which item moves. I hope you understood me.

    If item moves in x coordinates then you need to do blur only on x axis.

  • Collision Detection with SFML 2.0

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Multi Touch problem on Symbian^3

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Qt/3D OpenGl Simple Gooch Shader Example

    2
    0 Votes
    2 Posts
    6k Views
    G

    I've assumed your Qt/3D is in /opt/Qt-4.8.0/include/Qt3D in the .pro this must be changed to wherever your insall is.

  • Controlling sprite move

    3
    0 Votes
    3 Posts
    2k Views
    M

    Doing a sprite animation is simple, Create an array with the list of your pictures.
    You can have an timer which will advance this array.

    Go through the "Qt Flying Bus example":http://developer.qt.nokia.com/wiki/Flying_Bus_Game

    You can find the FrameSprite, which will give you the idea about how to achieve it.

  • Creating a platform game

    8
    0 Votes
    8 Posts
    5k Views
    T

    Thank you so much! Very much Appreciated..

  • Creating a 2D world in QT with bitmap

    6
    0 Votes
    6 Posts
    4k Views
    J

    That's because, you can't just create a "hole" in the image.

    But, you can write your own function, which will change any necessary pixel at that image to transparent.

  • Any way to create a GL debug context?

    3
    0 Votes
    3 Posts
    1k Views
    T

    No, I'm talking about GL_ARB_debug_output.

  • 0 Votes
    8 Posts
    4k Views
    M

    The good news is that once you familiarize yourself with the programmable pipeline you'll never look back!

  • Opengl texture coordinate problem

    4
    0 Votes
    4 Posts
    4k Views
    M

    You still get to use glDrawArrays ;) What you lose is the matrix stack and the fixed rendering functionality (meaning you have to implement shaders yourself). What you win is a ton more control to what you're doing, which I personally like immensely.

    See here for example about the changes: http://www.jeffwofford.com/?p=698