Jump to content
  • Advertisement

JeromeIba

Member
  • Content Count

    7
  • Joined

  • Last visited

Community Reputation

94 Neutral

About JeromeIba

  • Rank
    Newbie
  1. Thanks for the links guys! By the way, I know how to use C, but like what I've said, I'm a total beginner So how do you guys suppose i make the border of the game? @Iggyt: Yep, I've thought of doing it like that, similar to those old text based RPGs.
  2. Hi guys! I want to make a "game" using the language C. It's sort of a task that I was assigned to, but I have no prior knowledge in Game Programming so it's kinda bumming me out. There are lots of intricate details in the specification manual that I got which adds more stress ) I've tried looking for tutorials in the internet, but I haven't seen one that would really help me so I came to this site (via friend recommendation). So I'm asked to make this "game" wherein there is a walled environment (min size is 20 rows x 70 columns). So there is no real objective in this game. There are supposed to be 3 big blocks and then there is a character that is supposed to move in all directions (up, down, left, right, and diagonally). The user can generate food, and the user can also make that character eat the food. The user can make the character run (move 2x it's normal speed) and the user can also generate blocks, separate from those 3 blocks and the user can make the character move those blocks. Another complicated thing is that the user should have the ability to change the character's color and the blocks beside it (Think of it as sort of like de Blob). Soooooo, how do you guys suppose I start? Any help will be HIGHLY appreciated. Thank you and God Bless! P.S. You guys can also reach me through: chromium_salvation@yahoo.com jerome_ibanez@dlsu.ph jerome_ibanez@dlsu.edu.ph
  3. JeromeIba

    Need help with Menu

    I'm still kinda confused (When I say I'm a total noob, I mean that in the most literal way possible ) ) Can you help me out here because I'm having a serious migraine by just thinking about this one ) void MainMenu() { printf("\t\tPress the number corresponding to your choice\n"); printf("\n\t\t\t1. Start a New Game\n"); printf("\n\t\t\t2. How to Play\n"); printf("\n\t\t\t3. Credits\n"); printf("\n\t\t\t4. Quit Game\n\n"); } void Tutorial() { char cOption; printf("\n\t\t1. Guide your character using the arrow keys\n"); printf("\n\t\t2. Press E to eat when beside a food item\n"); printf("\n\t\t3. Press M to move a block when beside a movable block\n"); printf("\n\t\t4. Have fun!"); printf("\n\n\n\t\tPress B to go back to the previous screen: "); scanf("%c", &cOption); if(cOption == 'B' || cOption == 'b') {system("cls"); main();} } void Credits() { char cOption; printf("\n\t\t Animac was created by Jerome Ibanez\n"); printf("\n\t\t I would like to thank Dr. Nelson Marcos\n"); printf("\n\t\t for all the advice he has given me\n"); } main() { int status; char cOption; system("color 2F"); WelcomeScreen(); MainMenu(); printf("\n\t\t\tPlease enter your choice: "); scanf("%c", &cOption); if(cOption == '2') {system("cls"); Tutorial();} else if(cOption == '3') {system("cls"); Credits();} else ClosingScreen(); getch(); } That's my code so far, my functions for ClosingScreen and WelcomeScreen are too big so I kinda neglected him here. What should I do? thanks a lot man!
  4. JeromeIba

    Need help with Menu

    So you're suggesting that I should use loops? How do they work? (I'm a real noob ) ) How about a sample code?
  5. JeromeIba

    Need help with Menu

    What's up GameDev.net! Now, I'm working on my first "game" but I'm really having some trouble with my menu (I'm just a noob C programmer btw). So basically, I have a menu, right? And then there are 4 choices (Namely 1. Start Game, 2. Tutorial, 3. Credits, 4. Quit Game). The user then types the number of his choice. So let's say the user types 2, so the program goes to the tutorial screen and here's where I've been having trouble. I want the user to have the ability to go back to the previous screen. here's my current code in that section: main() { int status; char cOption; system("color 2F"); WelcomeScreen(); MainMenu(); printf("\n\t\t\tPlease enter your choice: "); scanf("%c", &cOption); if(cOption == '2') {system("cls"); Tutorial();} if (cOption == '3') {system("cls"); Credits();} if (cOption == '4') {system("cls"); ClosingScreen();} getch(); } Now to fully understand the problem here, here's my code for function "Tutorial" void Tutorial() { char cOption; printf("\n\t\t1. Guide your character using the arrow keys\n"); printf("\n\t\t2. Press E to eat when beside a food item\n"); printf("\n\t\t3. Press M to move a block when beside a movable block\n"); printf("\n\t\t4. Have fun!"); printf("\n\n\n\t\tPress B to go back to the previous screen: "); scanf("%c", &cOption); if(cOption == 'B' || cOption == 'b') {system("cls"); main();} } I think my logic is correct, but everytime the tutorial menu pops up, and I press B( which will be used to go back to the previous screen), the program just closes.
  6. JeromeIba

    Need Urgent Help!

    My bad, my bad. The things that we need to do to finish this project has not been taught to us yet I'm only a first year student, btw. So basically, we we're asked to make a "game" or an "animator software" as my teacher likes to call it. It's sort of a snake game, with the player guiding a character through a path to get some food, but it's not entirely like snake. You don't die and your only objective is to get food/move blocks. "The walled environment (min size = 20 rows x 70 columns) should contain 3 blocks (which can be horizontal, vertical, or diagonal) whose coordinates are specified by the user. The computer generates the position of the character. There should not be any overlapping or intersecting blocks and/or character. The user can give any of the following instructions until he chooses to stop: walk – the character walks n steps from the current location (user specifies n, as well as the direction which can be left, right, up, down, diagonal up-left, diagonal up-right, diagonal down-left, diagonal down-right) run – similar to walk except that the character moves faster go around – the character goes around the block beside it; if no block is beside it, then state invalid command generate food – generate a food item at a random unoccupied coordinate (there should only be one food item at a time) eat food – the character approaches the food in the shortest possible way and eats the food generate object – generate an object at a random unoccupied coordinate (there should only be one object at a time) move object – the character moves the object to a user-specified location by pushing it paint object - paint the object beside it using a user-specified color; if no object is beside it, then state invalid command paint block – paint the block beside it using a user-specified color; if no block is beside it, then state invalid command change color – change the color of the character using a user-specified color For any character movement, ensure that the character stops at a point when there’s already an object (wall, block, object, or food). You are to design based on your creativity at least 3 screens, namely Opening Screen, Main Screen, & Closing Screen. You are required to use colors in your displays. Note that screen displays may vary depending on terminal settings. Some ASCII characters may not be viewable in certain terminals. Quitting the software should be confirmed first before executed. All inputs, instructions, randomization should be validated. Relevant user prompts & messages should be provided. ??? Implementation ??? 1. Use strictly ANSI C commands only. Make sure you test your program completely (compiling & running) in G302 & G306. Do not use brute force. Use appropriate conditional statements properly. Use, wherever appropriate, appropriate loops & functions properly. Non-use of self-defined functions will merit a grade of 0 for the machine problem. You may use topics outside the scope of Compro1 but this will be self-study. Goto, exit, break (except in switch), global variables, are not allowed. 4. Follow our coding standards with included internal documentation (comments) in your program." I only have two questions. "Where and how do I start?" Thanks!
  7. JeromeIba

    Need Urgent Help!

    Hey there! I'm a noob programmer and I only know Basic C. My teacher in computer programming gave us our machine project and i seriously don't know what to do. https://rapidshare.com/files/1892896023/Compro1_MP_Specification_1112_AniMAC.doc those are the guidelines. i need help on what do first, how will i do it, what functions will I use, etc. etc. Any help will be appreciated! oh btw, we are asked to use C.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!