ahh..game design!! One of my favorites. As some of you guys may know, I am currently working on a game project for my game design class. If you want to see the GDP for my project, just scroll down some blogs, or just click here. My game design consists of a spatial setting, and I have coded some small parts of it, including importing images, making the title screen of the game and of course, the transition into the actual game. I have started working on it, and I have the beginner code for it so far. I used BlueJ as my IDE (integrated development environment). So, let me show you how I organized my code through different classes. So far, I have a simple home page (aka a title screen) for my game. Some objects are moving to provide a 'space object'. This is how the whole feel looks like. So first I have the text laid out clearly, and then I transition into the next screen by asking the user to press the up arrow. To be honest though, I think I should change it to space key, so that its more convenient. Have you ever seen a game which asks you to press the 'up' arrow? Not so sure about that lol. I am still trying to make the mini shaped rocket you see in the bottom actually move around in the whole screen, to provide that effect. I will be adding asteroids and comets as well. And of course, I still have to change the boring font I have at the top! This is a glimpse of my code for the movement and pressing the key:
I really want this game to be a success, and adding more features and enhancements into my program will be a great experience ahead! I'll keep on updating you guys with the status, but until then, I'll see ya somewhere in my math blogs! Good luck!
0 Comments
|
Archives
March 2021
Topics
All
|