sparkart's Profile User Rating: -----

Reputation: 114 Stalwart
Author w/DIC++
Active Posts:
698 (0.28 per day)
16-February 09
Profile Views:
Last Active:
User is offline Oct 29 2015 09:59 PM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Your Car:
Who Cares
Dream Kudos:

Latest Visitors

Icon   sparkart has not set their status

Posts I've Made

  1. In Topic: Help with a simple C++ Code

    Posted 29 Oct 2015

    Here are the two area formulas for rectangle and square:

    Square: area = side * side
    Rectangle: area = sidea * sideb

    Test if it's a square. If it fails the test, then it's a rectangle, otherwise, it's both.

    int area;
    std::cin >> area;
    if (area <= 0 || area > 105)
        std::cout << "Input out of bounds\n";
    else if (sqrt(area) % 1 == 0)
        std::cout << Unknown << std::endl;
        std::cout << Rectangle << std::endl;

    With your code, in line 14, why do you divide by 2 and divide by 3?
  2. In Topic: How to improve this bounding box collision so it looks more realistic?

    Posted 13 Dec 2014

    Basically all you do is check the position you want to move to before moving, and if it is free, then move. Perform the check individually for each direction:
    if (moveLeft)
        if (collides(x-xx, y) == false)
            x -= xx;

    So, to implement collides(), you want to check the bounding box of all of the collidables and see if the coordinates are within the bounding box.
    for (int i = 0; i < collidables.size(); i++)
        vec2d v1, v2;
        v1 = collidables[i].getPosition();
        v2 = collidables[i].getSize();
        //Check if x and y are within bounds of collidable
        if (x > v1.getX() && x < v2.getX() && y > v1.getY() && y < v2.getY())
            return true;
            return false;
  3. In Topic: Free engine for a 2D/2.5D MMORPG or with networking support?

    Posted 22 Nov 2014

    Cocos2d-X with something like Poco.

    Unreal Engine 4
  4. In Topic: confused by concept of making games C++. please help

    Posted 29 Oct 2014

    In my opinion, you should teach yourself how to learn new things. You can teach yourself how to program with the C++ language but it doesn't make you an expert at other things like an API or developing for a certain platform or developing a large scale project.

    You have to learn how to pick things up fast, like picking up the source code of a project or an API that you've never used before.

    Don't get caught up with the mentality of not being able to do something because you have no experience with it.

    My approach to anything is usually figuring out what the problem is and then figuring out the best approach to solve the problem. I don't think to myself that it has to be written in X because that's what I know.

    So I would say, don't look at it like you have to learn SDL or OpenGL or C++.... First ask yourself what you're trying to do. What is the end goal. Then work your way backwards on how to get to that goal.

    I think this is the best approach because it reveals what you do not know but is required for the end goal, opposed to spending so much time being proficient at something you would never know if you would use it or not.

    For example... you're so concerned about whether you should learn C++ or OpenGL or SDL. For what purpose? Let's say you learned one of the three... Now what?

    But lets say you're concerned with making a game... Work backwards to figure out how to do that... then you learn everything you need to make a game... then you have some experience with whatever you used to reach that goal. What you do doesn't matter too much to reach the end goal.

My Information

Member Title:
D.I.C Addict
Age Unknown
Birthday Unknown
Full Name:
Emmanuel Barroga
Years Programming:
Programming Languages:

Contact Information

Website URL:
Website URL  http://


Page 1 of 1
  1. Photo

    vultren Icon

    03 Nov 2011 - 15:39
    It's tony. Been trying to get a hold of you, please call or get on skype!
  2. Photo

    ismail23 Icon

    24 May 2010 - 18:52
    Hi how are you, I have to program a game 'quiz' questions/answers in c++ and I want u to help me if it's possible.this's my
    there's 4 category in the game and the player can play in several one but he shouldn"tsurpass 10 questions.There's top10 of the game & category
  3. Photo

    doanviettrung Icon

    06 May 2010 - 03:00
    Hi Sparkart, I saw your name on the top10kudos list. Please read my post re machine consciousness in the Post-A-Job forum and tell me what you think, thanks.
  4. Photo

    4a4ik Icon

    07 Feb 2010 - 02:08
    EXPERT in c++ !!!!! :D
Page 1 of 1