Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!

We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Member Since 14 Dec 2013
Offline Last Active Yesterday, 09:33 AM

Posts I've Made

In Topic: Culling points from a polygon.

29 August 2014 - 07:07 AM

Thank you. It worked like a charm!

Here is the code for anyone that could need it later.


#define EPSILON 0.0001f
//Culling mean removing unneeded vector.
void Cull(std::vector<CVector> &_val)
        for(int i = 0; i < static_cast<int>(_val.size());)
            int n = i + 1 < _val.size() ? i + 1 : 0; //next
            int l = i - 1 >= 0 ? i - 1 : _val.size() - 1; //last
            if((SignedArea(_val[l], _val[i], _val[n]) * 0.5f) < EPSILON)

float SignedArea( CVector _a, CVector _b, CVector _c )
    return ( (_b.x - _a.x) * (_c.y - _a.y)
           - (_c.x - _a.x) * (_b.y - _a.y) );

In Topic: SDL 1.2, moving window, objects falling through tiles

12 June 2014 - 10:49 AM

Hi too_many_stars,


there is not enough information to solve the problem without going into speculations.


1. Try posting code you think might be the culprit.

2. Add more information to the problem. Try to be as descriptive as possible.

3. Explain how your game work. What is normally supposed to happen when you move the game window?

4. Do you use other library or engin?


Since you mention SDL, i assume this is a simple 2D game. What kind of physic do you use?


As you can see, more information is needed.

In Topic: Advise for a beginner needed

03 June 2014 - 12:36 PM

Many thanks everyone, but could you please maybe tell me wich language i should learn and maybe a good website, book, method, etc to learn thuis too?


If your ultimate goal is to make a 3D FPS, i would pick C++ and DirectX / OpenGL. You need a OOP language for 3D and C++ is already largely used in the gaming industry.

Thoses are the reasons i would pick C++. Be warned though, C++ is a magnificent beast.

For learning, http://www.learncpp.com/ is a good place to start. For book, http://www.gamedev.net/page/books/index.html/_/technical/general-programming/beginning-c-through-game-programming-r1400 seems to have good reviews. I did not read it myself. Maybe it be better to search google for more reviews.

In Topic: Advise for a beginner needed

02 June 2014 - 01:47 PM

While it's possible, i wouldn't recommend doing a FPS as your first game, especialy since you say you've got little experience with programming.

You need to take bite-size task.


Start with small project like Tic-Tac-Toe or  Pong and work your way up from there. It will take many years for you to be confortable with a single programming language.

In Topic: Is this commenting macro safe to use?

23 May 2014 - 08:43 AM

As many already stated, i will revise the logic of my code to avoid using preprossesor-comments altogether. I already have an idea on how i might do that cleanly.

I understand now, the macro is not standard and should be avoided.


Thank you everyone.