• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Sid_TheBeginner

Members
  • Content count

    35
  • Joined

  • Last visited

Community Reputation

157 Neutral

About Sid_TheBeginner

  • Rank
    Member
  1. This Guy gives the perfect guide to becoming a professional game programmer or a hobbyist. Watch all the 3 parts: [url="http://www.youtube.com/watch?v=zAgpsks29W4"]http://www.youtube.com/watch?v=zAgpsks29W4[/url] --Sid
  2. Google Game Institute. You gotta pay them just 99$ for the whole stuff. Some discount going on I guess. They're not frauds. Piratebaybay told me so, it also told me their content is just awesome ;) But you pay them 99$ and you'll get full support for your course. Its perfect for beginners. As its right from the ground up and will take you flying. --Sid
  3. [quote name='szecs' timestamp='1340957881' post='4953883'] O wow, I didn't see there's no[i] i++[/i] in the [i]for [/i]loop. So indeed, you have an infinite loop. It would have been much easier if you explained what happened in the very first place. I didn't know we have to debug [b]the whole thing[/b]. Please, learn to ask questions and learn to describe the problems in detail. [/quote] Sorry... Actually I didn't know there was a problem there. [img]http://public.gamedev.net//public/style_emoticons/default/tongue.png[/img]
  4. I replaced for with while that helped. Thank You. @ szecs you're not the only one who didn't notice it [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img] . In another forum also, someone has just now figured it. THank you'll --Sid
  5. I wan't to print "Not found" if a value which isn't found in the array is entered by the user.
  6. [quote name='Sid_TheBeginner' timestamp='1340951361' post='4953848'] @szecs Hey, thanks for your replyl! Do you mean this: [CODE] #include<iostream> using namespace std; int BinSearch(int data[], int numElements, int searchKey); // Prototype int main() { int data[] = {1, 4, 5, 6, 9, 14, 21, 23, 28, 31, 35, 42, 46, 50, 53, 57, 62, 63, 65, 74, 79, 89, 95}; int numElements = 23; // Size of the Array is 23!!! int searchKey; int found; for(int i = 0; i < numElements; i++) cout << data[i] << ", "; cout << endl; for(;;) { cout << "Enter search key: (-1 to exit) "; // I want to quit when I press 'x'. Please let me know. cin >> searchKey; if(searchKey == -1) { cout << "Exiting\n"; break; } found = BinSearch(data, numElements,searchKey); if(found == -1) cout << searchKey << " not found\n"; else cout << searchKey << " is in position " << found << endl; } } int BinSearch(int data[], int numElements, int searchKey) { int mid; int beg = 0; int end = numElements; bool not_found = 1; // Algorithm Begins. for(int i = beg; i <= end;) { mid = (beg+end)/2; if(data[mid] == searchKey) return mid; else if(data[mid] > searchKey) end = mid - 1; else if(data[mid] < searchKey) beg = mid + 1; } return -1; } [/CODE] This doesn't seem to work. Sorry, I didn't completely understand what you meant... And Yea, the compiler's telling me this: warning C4715: 'BinSearch' : not all control paths return a value [/quote]
  7. [quote name='szecs' timestamp='1340952968' post='4953859'] Some spoonfeeding: [code]found = BinSearch(data, numElements,searchKey); if( found == -1 ) { cout << Element not found << endl; } else // if( found >= 0 ) // for other error codes { cout << searchKey << " is in position " << found << endl; }[/code] [/quote] Thanks for replying. Did You mean this: [CODE] #include<iostream> using namespace std; int BinSearch(int data[], int numElements, int searchKey); // Prototype int main() { int data[] = {1, 4, 5, 6, 9, 14, 21, 23, 28, 31, 35, 42, 46, 50, 53, 57, 62, 63, 65, 74, 79, 89, 95}; int numElements = 23; // Size of the Array is 23!!! int searchKey; int found; for(int i = 0; i < numElements; i++) cout << data[i] << ", "; cout << endl; for(;;) { cout << "Enter search key: (-1 to exit) "; // I want to quit when I press 'x'. Please let me know. cin >> searchKey; if(searchKey == -1) { cout << "Exiting\n"; break; } found = BinSearch(data, numElements,searchKey); if(found == -1) cout << "Not Found!\n"; else cout << searchKey << " is in position " << found << endl; } } int BinSearch(int data[], int numElements, int searchKey) { int mid; int beg = 0; int end = numElements; // Algorithm Begins. for(int i = beg; i <= end;) { mid = (beg+end)/2; if(data[mid] == searchKey) return mid; else if(data[mid] > searchKey) end = mid - 1; else if(data[mid] < searchKey) beg = mid + 1; } return -1; } [/CODE] Not working. [img]http://public.gamedev.net//public/style_emoticons/default/sad.png[/img]
  8. Thanks! No more warnings now. I'm returning -1 outside the for loop in the BinSearch function [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img] But how do I print a message like "Element not found" using that return value -1 ?? Your English doesn't suck, I'm pure rookie [img]http://public.gamedev.net//public/style_emoticons/default/biggrin.png[/img]
  9. @szecs Hey, thanks for your replyl! Do you mean this: [CODE] #include<iostream> using namespace std; int BinSearch(int data[], int numElements, int searchKey); // Prototype int main() { int data[] = {1, 4, 5, 6, 9, 14, 21, 23, 28, 31, 35, 42, 46, 50, 53, 57, 62, 63, 65, 74, 79, 89, 95}; int numElements = 23; // Size of the Array is 23!!! int searchKey; int found; for(int i = 0; i < numElements; i++) cout << data[i] << ", "; cout << endl; for(;;) { cout << "Enter search key: (-1 to exit) "; // I want to quit when I press 'x'. Please let me know. cin >> searchKey; if(searchKey == -1) { cout << "Exiting\n"; break; } found = BinSearch(data, numElements,searchKey); if(found == -1) cout << searchKey << " not found\n"; cout << searchKey << " is in position " << found << endl; } } int BinSearch(int data[], int numElements, int searchKey) { int mid; int beg = 0; int end = numElements; bool not_found = 1; // Algorithm Begins. for(int i = beg; i <= end;) { mid = (beg+end)/2; if(data[mid] == searchKey) return mid; else if(data[mid] > searchKey) end = mid - 1; else if(data[mid] < searchKey) beg = mid + 1; else return -1; } } [/CODE] This doesn't seem to work. Sorry, I didn't completely understand what you meant... And Yea, the compiler's telling me this: warning C4715: 'BinSearch' : not all control paths return a value
  10. Damn! What was that?? Lol. I've reposted it [img]http://public.gamedev.net//public/style_emoticons/default/biggrin.png[/img]
  11. [color=#000000][font=verdana, arial, helvetica, sans-serif][size=3]I've got the logic right and the algo seems to work fine. Now, that's epic for me [img]http://public.gamedev.net//public/style_emoticons/default/biggrin.png[/img] But..[/size][/font][/color] [color=#000000][font=verdana, arial, helvetica, sans-serif][size=3]I want to add 2 more features to this code:[/size][/font][/color] [color=#000000][font=verdana, arial, helvetica, sans-serif][size=3]1) Exit on pressing 'x'. For now I'm using -1 to exit.[/size][/font][/color] [color=#000000][font=verdana, arial, helvetica, sans-serif][size=3]2) Print a message "Element not found" when an element not present in the array is searched for. Yeah, I'm not able to figure that out :|[/size][/font][/color] [color=#000000][font=verdana, arial, helvetica, sans-serif][size=3]Well, Here goes my code:[/size][/font][/color] [font=verdana, arial, helvetica, sans-serif][color=#000000][size=3][CODE][/size][/color][/font] #include<iostream> using namespace std; int BinSearch(int data[], int numElements, int searchKey); // Prototype int main() { int data[] = {1, 4, 5, 6, 9, 14, 21, 23, 28, 31, 35, 42, 46, 50, 53, 57, 62, 63, 65, 74, 79, 89, 95}; int numElements = 23; // Size of the Array is 23!!! int searchKey; int found; for(int i = 0; i < numElements; i++) cout << data[i] << ", "; cout << endl; for(;;) { cout << "Enter search key: (-1 to exit) "; // I want to quit when I press 'x'. Please let me know. cin >> searchKey; if(searchKey == -1) { cout << "Exiting\n"; break; } found = BinSearch(data, numElements,searchKey); cout << searchKey << " is in position " << found << endl; } } int BinSearch(int data[], int numElements, int searchKey) { int position, mid; int beg = 0; int end = numElements; // Algorithm Begins. for(int i = beg; i <= end;) { mid = (beg+end)/2; if(data[mid] == searchKey) { return mid; } else if(data[mid] > searchKey) { end = mid - 1; } else if(data[mid] < searchKey) { beg = mid + 1; } } } [font=verdana, arial, helvetica, sans-serif][color=#000000][size=3][/CODE][/size][/color][/font] Thanks, --Sid
  12. [color=#000000][font=verdana, arial, helvetica, sans-serif][size=3]I've got the logic right and the algo seems to work fine. Now, that's epic for me But..[/size][/font][/color] [color=#000000][font=verdana, arial, helvetica, sans-serif][size=3]I want to add 2 more features to this code:[/size][/font][/color] [color=#000000][font=verdana, arial, helvetica, sans-serif][size=3]1) Exit on pressing 'x'. For now I'm using -1 to exit.[/size][/font][/color] [color=#000000][font=verdana, arial, helvetica, sans-serif][size=3]2) Print a message "Element not found" when an element not present in the array is searched for. Yeah, I'm not able to figure that out :|[/size][/font][/color] [color=#000000][font=verdana, arial, helvetica, sans-serif][size=3]Well, Here goes my code:[/size][/font][/color] [color=#000000][font=verdana, arial, helvetica, sans-serif][size=3][CODE][/size][/font][/color] #include<iostream> using namespace std; int BinSearch(int data[], int numElements, int searchKey); // Prototype int main() { int data[] = {1, 4, 5, 6, 9, 14, 21, 23, 28, 31, 35, 42, 46, 50, 53, 57, 62, 63, 65, 74, 79, 89, 95}; int numElements = 23; // Size of the Array is 23!!! int searchKey; int found; for(int i = 0; i < numElements; i++) cout << data[i] << ", "; cout << endl; for(;;) { cout << "Enter search key: (-1 to exit) "; // I want to quit when I press 'x'. Please let me know. cin >> searchKey; if(searchKey == -1) { cout << "Exiting\n"; break; } found = BinSearch(data, numElements,searchKey); cout << searchKey << " is in position " << found << endl; } } int BinSearch(int data[], int numElements, int searchKey) { int position, mid; int beg = 0; int end = numElements; // Algorithm Begins. for(int i = beg; i <= end;) { mid = (beg+end)/2; if(data[mid] == searchKey) { return mid; } else if(data[mid] > searchKey) { end = mid - 1; } else if(data[mid] < searchKey) { beg = mid + 1; } } } [CODE] Thanks, --Sid
  13. Thanks for all the wonderful replies. I think I'll stick with C++ [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]
  14. Hey thanks for your reply! I'm currently learning C++ The learning curve seems steep. But I'm just pushing myself [img]http://public.gamedev.net//public/style_emoticons/default/huh.png[/img] When a large program runs I'm motivated else a bit restless [img]http://public.gamedev.net//public/style_emoticons/default/biggrin.png[/img]
  15. Which Languages are used for specifically Multiplayer Programming in Games? I've basic knowledge of Computer Networks and would also be having Advanced Computer Networks soon and also "High Speed Network Architecture and Protocols, Neural Networks later" in my college..Will these subjects help me in learning Multiplayer Programming? I'm interested in Networking altogether. So how does Networking come in games and which languages are used? I'm new to programming and have begun with C++. Sorry for not narrowing my question. In short please enlighten me about multiplayer programming in games... Thanks, --Sid