- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 1
Im awesome, but a programming noob.
15 Posted Topics
Re: You should use c++. as for engines theres a whole [wiki page](http://en.wikipedia.org/wiki/List_of_game_engines) And other than that, go for it. but i would recommend using a 2d library to make your game such as SDL or SFML.(Im too lazy to add links. google them) SFML is alot better and simplier. if … | |
Re: Post code for proof you have tried, we will only help fix problems, not write code for you. | |
so i decided to try sfml, and i used the sample from the website to see if its working. heres the code //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// #include <SFML/Window.hpp> //////////////////////////////////////////////////////////// /// Entry point of application /// /// \return Application exit code /// //////////////////////////////////////////////////////////// int main() { // Create the main window … | |
Re: #include <iostream> using namespace std; int magic = 7; int guess; int trys =0; int main(){ do{ cin>>guess; if(guess!=magic){ ++trys; } if(guess<magic){ cout<<"TOO low!"<<endl; } if(guess>magic){ cout<<"Too high!"<<endl; } if(guess==magic){ cout<<"Woohoo"<<endl; break; } }while(trys!=5); if(trys==5){ cout<<"Boo! you lost!"<<endl; } } This is the code. | |
this is a very simple RPS game and i ran into a prob. heres the code #include <iostream> // for cout/cin #include <cstdlib> // for rand/srand #include <ctime> // for time #include <cctype> // for case conversion using namespace std; char rps; char ai; char redo = 'Y'; // all … | |
Re: on line #7 it should say math(); not int math; and, yes that is a proper way to make a function. you just werent calling it right :P | |
Re: You are supposed to do math() not int math; when you call the function | |
so i was bored and decided to make a dice simulator, and i ran into a error. heres the code #include <iostream> #include <ctime> #include <cstdlib> using namespace std; int total[12]; int dice1; int dice2; int aitotal[12]; int aidice1; int aidice2; void Roll(){ srand(time(0)); dice1 = 1+ (rand() %6); dice2 … | |
So, i wanna try graphics, and i was wondering if sfml or sdl is better? I cant find any good tutorials on sfml and its kinda confusing. i havent used sdl so im asking your opinion. and also, **What did you start off with, and why?** | |
ive been searching the web for a 2d free game engine compatible with c++, and i cant find any! So i would like to know, if there is any that you guys know about? most people direct me to lib librarys, but thats not what i want. btw, sorry if … | |
This is a very simple Rock Paper scissors game i made. i showed it to my cousin and he played it for like 20 mins lol. Its against an AI and you pick by number, not words. | |
Re: This works for me srand(time(0)); x = 1+ (rand % 3); the number after the % is the max number... Hope it helps :) | |
Re: #include <iostream> using namespace std; string guess; // Strings are a variable type to store letters string answer = "Boom"; int main() { cout<<"Case sensitive :)\n\n"; cout<<"Try to guess my awesome password!\n"; cin>>guess; if(guess==answer){ cout<<"\nWOOHOOO! You guessed it!\n"; //Checks if the guess is right } if(guess!=answer){ cout<<"\nOh no! it appears … | |
Hey guys, im new to C++. been learning for only about a week. The most complex program i can make is a calculator! But, i was wondering, how hard would it be to make a text-based zork-like game? Like i said before im new, so any tips and/or tricks to … |
The End.