Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 31

Thread: My C++ games

  1. #21
    KFlint's Avatar ... BT Rep: +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35
    Join Date
    Mar 2007
    Posts
    4,056
    You should check into object-oriented programming and design patterns if you haven't already done it yet. If you ever want to do that as a job, that's the next step.
    Last edited by KFlint; 08-30-2011 at 03:14 AM.

  2. Internet, Programming and Graphics   -   #22
    Poster BT Rep: +65BT Rep +65BT Rep +65BT Rep +65BT Rep +65BT Rep +65BT Rep +65BT Rep +65BT Rep +65BT Rep +65BT Rep +65BT Rep +65BT Rep +65
    Join Date
    Nov 2007
    Location
    Amsterdam
    Age
    33
    Posts
    217
    that code u posted is 14years old hard ! I don't see the idea !
    P.S.: silverlight owns

  3. Internet, Programming and Graphics   -   #23
    KFlint's Avatar ... BT Rep: +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35
    Join Date
    Mar 2007
    Posts
    4,056
    Quote Originally Posted by dash18 View Post
    that code u posted is 14years old hard ! I don't see the idea !
    P.S.: silverlight owns
    Well, you have to start somewhere.

  4. Internet, Programming and Graphics   -   #24
    I wouldn't exactly call this the best place to get support or encouragement when starting out with very basic programming...

    But I'll give one suggestion: since this is C++ you *really* should learn about the standard libraries, then rewrite this without C-style arrays and maybe even using a class or two (just for the hell of it).

    [Edit: and yeah, design patterns...]
    Last edited by Dion; 09-04-2011 at 08:23 AM.

  5. Internet, Programming and Graphics   -   #25
    KFlint's Avatar ... BT Rep: +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35
    Join Date
    Mar 2007
    Posts
    4,056
    If you want even more fun, watch a tutorial on designing app on mobile devices like Android phones or IPhone (I'd suggest Android because it's easier to get into object-oriented programming in Java).

    Something like : Developing Android Applications with Java.

    That's not that hard really, their API is relatively easy to understand.

    Btw : while (quit == false) is redundant, you can just write while (!quit) as it's already a boolean.
    Last edited by KFlint; 09-04-2011 at 01:04 PM. Reason: Automerged Doublepost

  6. Internet, Programming and Graphics   -   #26
    Poster BT Rep: +1
    Join Date
    Apr 2011
    Posts
    182
    Quote Originally Posted by KFlint View Post
    If you want even more fun, watch a tutorial on designing app on mobile devices like Android phones or IPhone (I'd suggest Android because it's easier to get into object-oriented programming in Java).
    Definitely a great idea. The mobile market is blooming and working as a mobile developer at this time can really pay off.

  7. Internet, Programming and Graphics   -   #27
    iLOVENZB's Avatar FST Crew BT Rep: +1
    Join Date
    Sep 2008
    Location
    Land gurt by sea
    Posts
    8,331
    Yes, sometimes I wonder how they do pay off. If pirates are still willing to pre 99c apps how the fuck can they still succeed (mobile devs)? To me, the mobile market looks like a high turnover/low profit industry. Where by you spend all your time and effort into creating a game, selling it for 99c, and then hope that someone will buy it before someone cracks it and uploads it on the interwebz.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music"

  8. Internet, Programming and Graphics   -   #28
    OlegL's Avatar Poster
    Join Date
    May 2009
    Location
    New York City
    Age
    42
    Posts
    1,832
    Quote Originally Posted by Dion View Post
    then rewrite this without C-style arrays
    I know about C++ vectors.
    I love FST!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  9. Internet, Programming and Graphics   -   #29
    KFlint's Avatar ... BT Rep: +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35
    Join Date
    Mar 2007
    Posts
    4,056
    Quote Originally Posted by iLOVENZB View Post
    Yes, sometimes I wonder how they do pay off. If pirates are still willing to pre 99c apps how the fuck can they still succeed (mobile devs)? To me, the mobile market looks like a high turnover/low profit industry. Where by you spend all your time and effort into creating a game, selling it for 99c, and then hope that someone will buy it before someone cracks it and uploads it on the interwebz.
    I agree on the game development on mobile devices being a low profit industry, I don't think there is much money to make unless you do a major hit. I read somewhere than the top 50 apps on Android make 90% of the money, in a sea of thousand apps, that's pretty discouraging.

    A friend of mine coded a 3d puzzle game (it was a bit boring I believe) and made like 23$ in 4 months, not worth the time spent coding this, at all.

    Still many companies want do develop utility apps for their clients for various purposes. That's an interesting field of programming.

    The web is changing with the appearance of those mobile devices and both technologies will be even more intricate in the years to come, no matter what mobile devices will look like in 10 years, wheter the mobile device is in your hands, directly in a pair of glasses or whatever. Web backends, communication with web services and mobile interface, that's the future.

    Anyway, there is more to it than selling games on the market place.

  10. Internet, Programming and Graphics   -   #30
    Quote Originally Posted by OlegL View Post
    I know about C++ vectors.
    Hmmm, then why not something using them?
    (Disclaimer: Code not compiled, tested, read after writing, or taken the least bit of care with...)

    template<class T> T getresponse(std::string s)
    { // print s, then get and return the users response.
    T t;
    cout << s << std::endl;
    cin >> t;
    return t;
    }

    bool play() // returns true if play again
    {
    std::vector<int> array;
    for (int i=0;i<100;++i)
    array.push_back(rand()%1000+1);
    std::sort(array.begin(),array.end());
    cout << "Array has values from "<<array.front()<<" to "<<array.back() << std::endl;
    int guess;
    while ( guess=getresponse<int>("Enter guess (or 0 to exit): "))
    { // user didn't type 0.
    if (find(array.begin(),array.end(),guess)!=array.end())
    { // found guess in the array.
    cout <<"You got it OlegL!" << std::endl;
    break;
    }
    cout << "Nope." << std::endl;
    }
    char answer = 'z';
    while (answer!='y' && answer!='n')
    answer = getresponse<char>("Play again? [y/n]: ");
    return (answer=='y');
    }

    int main()
    {
    srand( time( 0 ) );
    while (play()) ;
    cout << "Bye."<<std::endl;
    }

Page 3 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •