Thread: Little Game

Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    Auxilium's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,518
    Reputation
    445
    Thanks
    609
    My Mood
    Happy
    Quote Originally Posted by FailHacker View Post
    ultilize OOP

    -create a friend class
    -- attack function
    -enemy class
    -- attack function
    *This gonna help make your code look nice cause all you have to call is amigo1.attack(); or enemy1.attack();. Plus if you wanted to add more features like maybe "use potion" or "retreat", its gonna be much easier.

    OR you could make the attack function global so you don't need to have it in there twice, since its essentially the same.
    How about create 1 base class and both inherit.

  2. #17
    hackzerz's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    $T4Lk much?
    Posts
    1,450
    Reputation
    18
    Thanks
    159
    My Mood
    Sneaky
    how do i compile it i get error

  3. #18
    Auxilium's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,518
    Reputation
    445
    Thanks
    609
    My Mood
    Happy
    Quote Originally Posted by master131 View Post
    Yeah, it's so messy and does not utilise the power of Object Oriented Programming. It's like DOS/Batch, C++ style.

    Also, usage of: system("pause") is a big no no. It's inefficient and uses a crap load of resources just for 1 little command.


    A better alternative would be something like this:
    [highlight=c++]std::cout << "Press any key to continue...";
    std::cin.get();[/highlight]
    In this day and age, The resource usage would be not noticed

    Why DOS/Batch? How about procedural programming language like code, after All, C++ is a multi paradigm language

  4. #19
    Ambery's Avatar
    Join Date
    Jul 2011
    Gender
    female
    Posts
    17
    Reputation
    10
    Thanks
    2
    My Mood
    Fine
    Great job ^^
    Using C++ for make FPS Hacks ..

    ----------------------------------------
    Please wait while loading my informations..
    |\\\\\\\\\\\\\83% |
    Name:Ambery
    Email: cute-girl.1988@hotmail.com
    ----------------------------------------

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Request] Little Browser Game [SQL,JS]
    By RarnX in forum Hack Requests
    Replies: 0
    Last Post: 01-10-2011, 01:54 PM
  2. [Noob] My First Little Game
    By poneboy00 in forum Visual Basic Programming
    Replies: 10
    Last Post: 10-06-2009, 07:26 PM
  3. Fun little game to play if you're bored. :)
    By ballshot14 in forum General
    Replies: 11
    Last Post: 04-12-2009, 05:43 PM
  4. A little SF game..
    By m164life in forum Soldier Front General
    Replies: 2
    Last Post: 07-22-2008, 03:01 PM
  5. Replies: 5
    Last Post: 03-13-2008, 07:17 PM