• 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.

ontheheap

Members
  • Content count

    1571
  • Joined

  • Last visited

Community Reputation

798 Good

About ontheheap

  • Rank
    Contributor

Personal Information

  • Location
    New Port Richey, FL
  1. This type of crap makes my blood boil. Hopefully those scumbags will at least lose their jobs for this, but I doubt it. Maybe someday we'll live in a society where we all have respect and compassion for fellow humans.. I doubt I'll live to see it, but someday...
  2. There's boost tokenizor and boost string algorithm. Example: #include <iostream> #include <string> #include <vector> #include <boost/tokenizer.hpp> #include <boost/algorithm/string.hpp> using namespace std; using namespace boost; int main() { // here's a string in the format you described, plus // two empty vectors v1 and v2 string text = "A,B,C::D,E,F"; vector<string> v1; vector<string> v2; // tokenize the string by the "::" character // and get an iterator to the first tokenizer result char_separator<char> sep("::"); tokenizer<char_separator<char>> tokens(text, sep); tokenizer<char_separator<char>>::iterator it = tokens.begin(); // split (defined in algorithm/string.hpp will tokenize // the string pointed to by it and store each token in // the specified container split(v1, string(*it), is_any_of(","), token_compress_on); ++it; split(v2, string(*it), is_any_of(","), token_compress_on); } Edit: Added links.
  3. Have you checked out Khan Academy? He has a bunch of short video lectures on all sorts of topics, including physics lectures on everything from projectile motion to electromagnetism (basically what you would cover in two semesters of physics).
  4. Make sure your main function is defined as: int main( int argc, char* argv[] ) Make sure you are linking against SDL.lib and SDLmain.lib Edit: Fixed the wrong version of "your" above ;)
  5. Quote:Original post by Sneftel Everyone who posted in this thread needs to read about the bike shed. That was great. "... the amount of noise generated by a change is inversely proportional to the complexity of the change." =)
  6. Quote:Original post by SelethD I tried system.io.path, and its not working for me. I need simply to know how to remove the text from a String after the last occuring '/' What do you mean "its not working" for you? Please post the relevant code. I suppose you could do it with String.LastInstanceOf and String.SubString.
  7. Quote:Original post by SelethD I am new to C# and I have never used the String class much. I have a complete path in a String String myPath = "C:\\directory\\subdirectory\\file.dat"; what can i do with myPath to get it to hold the data... "C:\\direcotory\\subdirectory\\" Thanks for your help, I have googled this and all I find is a buch of VB stuff. Check out System.IO.Path. I believe the method is GetDirectoryName.
  8. Look into InternetExplorer objects in VBScript. Example: Set IE = CreateObject("InternetExplorer.Application") IE.Visible = False IE.Silent = True IE.Navigate "http://www.google.com" Do While IE.Busy Loop IE.Document.f.q.Value = "gamedev" IE.Document.f.submit() Do While IE.Busy Loop IE.Visible = True
  9. A comment system we use at work has limitations on the number of characters that will fit on a line, as well as the number of lines that will fit on a screen. I wrote an HTA script to make posting the comments easier. Here's my text-wrapping code.. written in VBScript so should be easy to follow and translate to whatever language you need. Each line gets stored as a new array entry, then the array can be looped through and a new line started at the beginning of each element. Function WrapComment() strComment = UCase("CLRC Updated by " & mainform.workerNumber.value & ", " & mainform.comment.value) strComment = Replace(strComment, vbCrLf, " ") strDirtyComment = "" strWrapText = "(((%%%WRAPTEXT.$$--</ br>--$$.WRAPTEXT%%%)))" arrWordsTmp = Split(strComment," ") intRunningLength = 0 intWrapLength = LineSizeCLRC ' Any single word (that is, block of characters without a space) that is ' longer the the line size get broken up into words the size of 1 line tmpStr = "" For Each Word In arrWordsTmp If Len(Word) => intWrapLength Then ' figure out how many lines it will take up numOfLinesNeeded = Len(Word) / intWrapLength temp = Round(numOfLinesNeeded) If temp < numOfLinesNeeded Then numOfLinesNeeded = temp + 1 Else numOfLinesNeeded = temp End If // Break the long word up into chunks that will fit on a clrc comment line For t = 1 To numOfLinesNeeded if t = numOfLinesNeeded Then tempStr = tempStr + Mid(Word, ((t-1)*intWrapLength)+1,intWrapLength) else tempStr = tempStr + Mid(Word, ((t-1)*intWrapLength)+1,intWrapLength) + " " end if Next Else tempStr = tempStr + Word + " " End If Next tempStr = Trim(tempStr) arrWords = Split(tempStr," ") arrTrailingCharacters = Split(tempStr," ") For x = LBound(arrTrailingCharacters) To UBound(arrTrailingCharacters) arrTrailingCharacters(x) = " " Next For x = LBound(arrWords) To UBound(arrWords) intRunningLength = intRunningLength + Len(arrWords(x) & " ") If intRunningLength = intWrapLength Then arrTrailingCharacters(x) = strWrapText intRunningLength = 0 End If If intRunningLength => intWrapLength And x > 0 Then arrTrailingCharacters(x-1) = strWrapText intRunningLength = Len(arrWords(x) & " ") End If Next For x = LBound(arrWords) To UBound(arrWords) strDirtyComment = strDirtyComment & arrWords(x) & arrTrailingCharacters(x) Next arrDirtyComment = Split(strDirtyComment, strWrapText) i = 0 For Each commentLine In arrDirtyComment ReDim Preserve CommentArray(i) CommentArray(i) = commentLine i = i + 1 Next If i = 0 Then ReDim Preserve CommentArray(0) CommentArray(0) = "" End If End Function
  10. OMG I would have liked to have known about this site when I took physics last semester! I didn't really understand anything in the book we used.
  11. Quote:Original post by CyberSlag5k Quote:Original post by Thevenin Is it true that you can play and browse online with the Wii for free (using an existing internet connection)? That Microsoft Live subscription nonsense was/is rediciously overpriced. I believe it costs $5 to active the browser, but after that it's free. Though I think right now the browser is in beta mode, and is free for the time being. Don't quote me on that, though. Yeah, it's supposedly going to cost 500 Wii points ($5.00 USD) but it's free until June 2007. Right now it's just a trial version, with the final version available in March.
  12. I've tried out DarwiinRemote on my Macbook (in OSX). It worked ok (it was a little hard to control the pointer). I'm downloading the software on wiiscript right now to check it out. Edit 1: Meh. My WiiMote is able to connect to Windows but none of the GlovePIE scripts work. I'm having trouble getting the BlueSoleil bluetooth software working (which seems to be the recommended software if MS bluetooth doesn't work with Glove). Oh well, I'll spend more time on this later to see if I can get it working. [Edited by - ontheheap on December 23, 2006 1:13:29 PM]
  13. You declare buymenu() as returning type int, but you have no return statement. I'm surprised it even compiles. VC++ Express issues an error. Based on what buymenu() does, I think you should make its return type void. Or, you could get the user's input within buymenu() and then as then return the menu option selected. void buymenu() { // stuff return; } Or: int buymenu() { // stuff int choice; cin >> choice; return choice; }
  14. Quote:Original post by Alpha_ProgDes Quote:Original post by Michalson I would try this but I already have my Wii turned on to make this post. Is there a WiiBoard or do you use the WiiMote to type? WiiMote with OnScreen keybord. It has that "intellitype" thing where it guesses what word you want as you input letters. It's pretty easy to "type" on, but it would be much better if you could just use a wireless keyboard.
  15. Event Two reminds me of one of the American Gladiator game called Assault. It was one of my favorite games on the show.