Results 1 to 4 of 4

Thread: 'Continue' in games help!

  1. #1
    Join Date
    May 2007
    Posts
    131
    Thanks
    17
    Thanked 4 Times in 2 Posts

    Default 'Continue' in games help!

    I'm currently developing a game wherein you can press 'New Game' to execute a new game and 'Continue' to continue the game if ever the user decides to finish it later.

    Is there any easy way to do the 'Continue' feature?

    I'm currently using the offline qml database storage to load information to the application. I would want to utilize this as well for my 'Continue' feature but as far as I know, resource files are read-only, therefore uneditable.

    EDIT: My application will be deployed in phones with Symbian OS.
    Last edited by bmn; 16th August 2011 at 15:04.

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: 'Continue' in games help!

    Is there any easy way to do the 'Continue' feature?
    It depends on the game internal structure and data types used, so its hard to help you more at this point. Dump the current game state to the file and read it back when user clicks "continue". You can use, for example, QDataStream for that.

  3. #3
    Join Date
    May 2007
    Posts
    131
    Thanks
    17
    Thanked 4 Times in 2 Posts

    Default Re: 'Continue' in games help!

    Quote Originally Posted by stampede View Post
    It depends on the game internal structure and data types used, so its hard to help you more at this point. Dump the current game state to the file and read it back when user clicks "continue". You can use, for example, QDataStream for that.
    I see, I see. Another question, is there anyway to do the 'Continue' feature without using any of the Qt classes or by just using pure QML and Javascript? Thanks!

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: 'Continue' in games help!

    You have to physically touch the filesystem of your device and QML is not fit for that. You could teach it to do that but you'd need to write a plugin for QML in C++.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. why debug console continue appear?
    By banlinhtienphong in forum Qt Programming
    Replies: 4
    Last Post: 27th April 2011, 14:03
  2. Qt nmake error - can I continue with build?
    By QPlace in forum Installation and Deployment
    Replies: 0
    Last Post: 7th April 2009, 19:18
  3. How to wait 2 seconds before continue
    By raphaelf in forum Newbie
    Replies: 3
    Last Post: 25th June 2008, 15:36
  4. QT + SDL for games?
    By Brazilian Joe in forum Newbie
    Replies: 16
    Last Post: 23rd January 2006, 20:34

Tags for this Thread

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.