Aviation Trivia
- 16 Devlogs
- 16 Total hours
A quiz game with c++ and sfml that has questions about aviation
A quiz game with c++ and sfml that has questions about aviation
Devlog 15: I finished the first version of the game. I added some chill music and a reset button. I will prepare the game for release now :]
Devlog 15: I added a feature that lets you pick how many questions you want: between 1 and 25. I also added the settings page which right now let’s you only toggle a button that makes the game skip the intro. I also dont’t think i will be able to finish the game and polish it before stardance ends. I don’t think i will do the advancements page or the SFX for the buttons. I will add them with some more questions but later. Right now i will add music, finish the Settings page, add a button to reset the stats.
Devlog 14: I added all the commands that you can input in the terminal of the game. i wanted to use cin, but the game would freeze. I did some research and found out i needed to use multiple CPU threads. after i found out how to do that i just needed to add all commands to the game. Also, now when a file is missing the game also tells you the name of the file.Next i will probably add settings or some more questions :]
devlog 13: I finally finished the how to play menu. I wrote it thinking about the final game some some things that i wrote about are not yet implemented. it has 6 sections: buttons, playing, customizing, settings, achievments and commands. I dindn’t manage to add 50 questions but now we have 11 instead of 3. there was a minor bug where if you pressed an arrow to navigate the how to play section it would jump some of them. The fix was putting else if insted of just if. Next i will add a feature letting you pick how many questions you have in the quiz: between 1-25. And i will work on the terminal commands i want to add :]
Devlog 12: i worked a bit more on the more menu. i added a credits button that takes you to a menu where you can see where are all credits. there is also an how to play button that takes you to a menu where you can see an in dept guide about everything in the game. But due to the font spritesheet not having some things it sound kinda rudimentary. I wrote only the first section of the guide. next i will finish the guide and add 50 questions. I also made it so that every x button closes the game and there are now arrows to navigate the menus. :]
Devlog 11: i added a couple of things . First of all, now the x button on the right closes the game in whichever part of the game you are. i added an arrow in the left that returns to the last menu. Next i made it so that the variables for the stats page update correctly and are saved. I also started working on the more button that takes you to a menu in which you currently have 2 buttons - feedback and more games - which do exactly waht they sound like. next i will try to finish the more menu and work on reformating the score display + a reset stats button. :]
Devlog 10: I started working on the menus. first of all i removed the airplane from the quiz part of the game. The i added a stats menu that displays numebr of right and wrong answers, games played and the rate at which you make right choices. right now it is just a menu and it can read from a file with the stats. next i will need to make it so that the game updates the variables every time you play.
Devlog 9: firstly there was a bug where if you pressed on the upper side of the play button the game would kinda glitch because you would also click on the bottom selection box of the quiz. i tried adding a timer but didn’t since i already knew i needed to move the question more to the middle so i just did that. Next i made it so that the background is the same as for the menu but i will probably change it evantually. Since the font is black and the background is dark, some things wouldn’s be so visible, so this is what i did: for the question i added a strip that runs across the screen and i like how it turned out and for the score i just moved it to the left where it is more visible. Next i will change the quiz’s background and i should really start working on the menu. i also need to think about other background for the other menus. Any idea is appreciated :]
Devlog 8: For this one i just rearanged the menu buttons from the middle to the down-left. I also spent quite some time painting the background image. Side note : something i don’t like about stardance is that for software projects it only counts the time spent coding. For this image i spent like an hour making it but only the 2 minutes spent adding it counted which drives me crazy. Whatever, next i will start working on the other menus :]
Devlog 7: I finished the quiz part of the game! Now the game shuffles the question order. After you give your answer the game waits 3 seconds and the procedes to the next question. First i didn’t shuffle the question order, but when i wanted to add that i forgot to clear a vector and to update a variable which led to some time spent debugging. I also made it so that the exit button becomes highlighted when you hover over it. next i will work on the art and the menus. :]
Devlog 6: I started working on the quiz game itself. I added 4 boxes where the answers will be. If you hover the mouse over them they become highlighted. When pressing on one of the, if the answer is correct, the box becomes green. If you press the wrong one it becomes red and the right one becomes green. There was a bug where after you already selected something you could select more boxes. Next, i will add more questions and a score counter.
Devlog 5: I made a spritesheet for the custom font and it works. i also made the play button functional and it currently displays only the first question when you click on it. There is a problem tho: the answers never get reshuffled after each round. Also there was a problem with the font because each letter is 5x5 but M was 6x5. It took me a bit to realise. Next i will work in the quiz part !
Before i start with the devlog, i have a problem : yestarday morning i saw that where it would normally say the time logged it said couldn’t load time. I checked hackatime and it had a problem with the server - whatever. The part that bugs me happend later when the servers came back up and i could make a devlog. I wrote it, posted it, but when i went to check it it didn’t exist. When i went back to the home page it said AGAIN that it couldn’t load time spent coding. I went to check hackatime and i saw that it logged time correctly. For the rest of the day i couldn’t make any devlog which made me lose my streak. i don’t know if this happened to anybody else, but it was annoying. Whatever, let’s start with what happened.
Devlog 4: i have drawn some of the buttons neccesary and added a close one that closes the game. In my other games the exit button was rectangular, but for this one i chose to make it round since it takes less space and looks a bit better in my opinion. Next i will make a custom font spritesheet and make the quiz part of the game. :]
Devlog 3: I started working on the intro, which is some text fading to black.I had an issue where the screen would go from white to black instantlly, but a minor tweak to the code fixed it. I also added the more button and drawn some other ones. Next, i will focus on macking the gam itself and then the menus. ;]
Devlog 2: First i transformed the file that handles question loading into a header file to keep things organized. Then i started adding graphics to the game but there was an issue: the screen was white when it needed to look like in the video - it turned out it was because of a function that was interfering with the screen. Now there is a temporary background and i added a button to see how it would look. Next i will add an intro and work on some art :]
Also, the video shows the button changing when you hover the mouse over it
Devlog 1:
I started working on a trivia game that has questions about aviation. It will have graphics, but right now i just finished the question adding system:
Basically there is a txt file that is structured like this:
total number of questions
Question1|Correct answe|Wrong answer|wrong answer|wrong answer|number of points
…
The code reads the number of questions and then adds each thing to it’s own vector for storage. I made it so that the answers to the question would be shuffled each time. There was also a bug where the code wouldn’t read the whole question but only the first word- it turns out you have to use getline.
Next i will start Working on some art for the game!