Jump to content

  • Log In with Google      Sign In   
  • Create Account


Sunsharior

Member Since 14 Dec 2013
Offline Last Active Yesterday, 01:45 PM
-----

Posts I've Made

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.


In Topic: Is this commenting macro safe to use?

23 May 2014 - 08:22 AM


 

But why/how does the one in the OP work?

#define MACRO / ## /

This uses the concatenation operator "##" to insert a comment "//"

Edit: beaten by servant of the lord.


PARTNERS