Results 1 to 2 of 2

Thread: direction

  1. #1
    Join Date
    Jun 2008
    Posts
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Question direction

    HI

    I’m writing my first Qt game, and i have a small problem.
    The game is like the old Asteroids game.

    I’m using a QGraphicsScene as my universe and a QGraphicsItem as my ship.

    When I’m firing I can get the right position, for the bullet, but not the same direction as my ship.
    I have tried to map from item to scene, but without any look.
    The bullet is also a QGraphicsItem.

    thanx
    Søren P.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: direction

    Have a look at the asteroid example in Qt Demo --> Graphic Views
    It might help u

Similar Threads

  1. The direction of the showing of windows.
    By Mad Max in forum Qt Programming
    Replies: 6
    Last Post: 12th January 2007, 12:15

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.