denmax
You can change this now in User CP.
- Reaction score
- 155
Currently, we've been told to create a project where we're supposed to create a game. I'm having trouble with knowing how to work my way with introducing the scoreboard, timer, and graphics, mainly because our professors haven't taught us how to do so. (we've only reached functions - with arrays as our next subject - and we're about a week or two away from the deadline).
Coding for the game in question is not hard, but we are required to implement the those three features in the game.
First off, the scoreboard needs to be available at multiple sessions, so I'm assuming this has something to do with reading and writing on another file outside the program. First off, I do not know how manipulate files outside the program. Second, I do not know how to sort it, or if there is such a command that would easily do so for me.
The timer is simple, it counts down from x minutes (e.g. 3) to zero. I'm assuming there's a library for that, but again, it is not taught to us.
Last but definitely not the least is implementing graphics. This is probably the most difficult and the hardest to explain. The game is a simple archer game. A man hurls an arrow to a target. The game asks for an input. If the input is spot on, then the arrow travels dead center. If it's too high, it goes upward, too low, and it goes downward (et cetera). It doesn't have to be fancy, just simple enough that it shows the player something.
I've done my research, but all of them are too vague (telling me to go to a tutorial site, etc.), or I can't really analyze them well mainly because of lack of knowledge to C++ programming in itself.
What I've found, and I'm not even sure, is that I have to create a structure for the variable used on the scoreboard, and to use the library "ctimer" for the timer. I'm still doing more research, but I'm hoping to be more interactive when it comes to learning so that I can be sure that all my questions may be answered.
Thank you in advance.
Coding for the game in question is not hard, but we are required to implement the those three features in the game.
First off, the scoreboard needs to be available at multiple sessions, so I'm assuming this has something to do with reading and writing on another file outside the program. First off, I do not know how manipulate files outside the program. Second, I do not know how to sort it, or if there is such a command that would easily do so for me.
The timer is simple, it counts down from x minutes (e.g. 3) to zero. I'm assuming there's a library for that, but again, it is not taught to us.
Last but definitely not the least is implementing graphics. This is probably the most difficult and the hardest to explain. The game is a simple archer game. A man hurls an arrow to a target. The game asks for an input. If the input is spot on, then the arrow travels dead center. If it's too high, it goes upward, too low, and it goes downward (et cetera). It doesn't have to be fancy, just simple enough that it shows the player something.
I've done my research, but all of them are too vague (telling me to go to a tutorial site, etc.), or I can't really analyze them well mainly because of lack of knowledge to C++ programming in itself.
What I've found, and I'm not even sure, is that I have to create a structure for the variable used on the scoreboard, and to use the library "ctimer" for the timer. I'm still doing more research, but I'm hoping to be more interactive when it comes to learning so that I can be sure that all my questions may be answered.
Thank you in advance.