Game Design with MVC
-
Hello I'm writting a game like Bomberman using the QGraphics Framework and in my first attemp the view and the model was in the same class and i have the following problems
- My idea is change the view in some moment, so I need to separate the model from the view, so I think in MVC, but I really don't know how to apply this pattern in game programming, and I can't find real examples of this, in http://www.kde.org/applications/games/ are some games using a MVC or similar pattern i think, but this code depend on the KDE librarys and i really don't know this librarys
2)If I use MVC the item collision detection is part of the controller (or maybe the model), but isn't part of the view, so I need to implement my own collision algorithms (no so difficult for this case I think)
3)I think is necessary a timer in the game controller for update the views (actually every movable or animated element has his own timer), but with a general timer maybe i have troubles with the movement speed of the character
I don't know much about game programming so maybe you can tell me about a book (All the book that i have found are for win32 in visual studio)
Thanks for reading and sorry for my English
-
you can tell me about a book..
You have find it from the resources page in the "Qt resources ":http://developer.qt.nokia.com/resources
You will get one chapter in any book of Qt, Like game programing with Qt.
Search also in the WIKI articles of Qt. "WIKI":http://developer.qt.nokia.com/wiki
-
[quote author="qtrahul" date="1293597866"]>> you can tell me about a book..
You have find it from the resources page in the "Qt resources ":http://developer.qt.nokia.com/resources
You will get one chapter in any book of Qt, Like game programing with Qt.
Search also in the WIKI articles of Qt. "WIKI":http://developer.qt.nokia.com/wiki[/quote]
Can you specify which book has reference to Game programming in Qt.
-
You may download it "here":http://quitcoding.com/download/Qt_Quick_Game_Programming_1_0.pdf in PDF
-
[quote author="Vass" date="1293625211"]You may download it "here":http://quitcoding.com/download/Qt_Quick_Game_Programming_1_0.pdf in PDF[/quote]
I have gone through that the first day it was published. Its good for QML. I wanted some reference to some books on pure Qt game programming.
-
May be "this":http://www.amazon.com/Open-Source-Game-Development-Windows/dp/1584504064 ? But I don't know how this is good.
-
I try to find that book, but is really dificult in my country, so in this momento i'm reading "Introduction to game development" by Steve Rabin, is not a technical book and is not focus in Qt, but one or two chapters are oriented to game architecture
In some days maybe a write a littles examples for testing porpouse and I want to upload that code for opinions
Thanks
-
[quote author="Vass" date="1293627414"]May be "this":http://www.amazon.com/Open-Source-Game-Development-Windows/dp/1584504064 ? But I don't know how this is good.[/quote]
Even I am finding it difficult to get a copy of this book at my place.