Answer the question
In order to leave comments, you need to log in
What game to write on Qt (for a courseworker, advice is needed)?
Welcome all!
I really need advice. It is required to write a term paper on programming - Qt, C ++. They gave me 2 weeks. Must be: - classes, - inheritance, - operator overloading, - templates, - polymorphism. So. I do not have much time, so I was going to write a game like "Cities", more precisely a text game, but not exactly cities. There was an idea to make such a game: Every 0.25 s. pictures change, and at the end a question on any of them (reaction game). But I don't know how to fit all the requirements into it. You need ~ 800 lines of code. The classes in the requirement mean writing your own, except for Qt ones, I don’t even know what can be distinguished in such games.
Any advice needed. Either the theme of the game (not necessarily something unique, on the contrary), or how to implement all the requirements in the simplest game. Thanks in advance!
Answer the question
In order to leave comments, you need to log in
A text-based, turn-based RPG is probably the most popular game among novice programmers. For example, there is a Warrior class with its own properties, the Player class is inherited from it . Well, according to the mainstream, add a tavern where all sorts of dryuchki things (potion, sword, etc.) are sold, a barracks with a choice of the type of soldier. It remains to find a place for Qt and polymorphism . Ok, what if you do this in a small window - where, when an opponent attacks, the enemy’s picture comes to the fore, then yours, etc. Well, here you can use a couple of Qt classes. Now about polymorphism - you write a virtual function attack( ), which will be the same for all types of troops, both opponents and allies. You can think of something else. IMHO, 2 weeks. will be enough to implement it. Good luck! Unsubscribe what you come up with at the end))
You need a decision-making game: the game "life" , " snake fight " ...
Who knows analogues - add comments.
I did (not for the course, just in the course of my studies) a kind of platform game like Mario in the console, everything was drawn with pseudo-graphics. It was written in C, but in C ++ with classes it will be even easier
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question