Advertisement Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

7644 Excellent

1 Follower

About SimonForsman

  • Rank

Personal Information

  • Interests

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1.   You don't wait for events with PeekMessage(), you would wait with GetMessage(). The if version won't run any update or rendering logic unless peekmessage returns false so it should work properly. All game and rendering code is inside the else block, it should even be a tiny bit faster since it only has to do the check for VM_QUIT (and not the extra assignment and checks for run like the while version does) It also has the advantage of exiting almost immediately on a VM_QUIT, the while version will run through one update before exiting.
  2. Roughly 542 litres but it is highly dependent on your project so it is impossible to give an exact figure.   If you know how to program (in any language) you can just dive in and learn whatever it is you need for your project as you go along, Lua is not that different from other mainstream programming languages.
  3.   it could be any function that outputs data to stdout (the console / terminal / IDE), a lot of such functions could be implemented as wrappers around printf), normally stdout will be line buffered when it is tied to a terminal (each newline will cause the buffer to be flushed which is a fairly slow operation), if you need to push large amount of text to the console you should flush manually when appropriate (once per frame, between levels, when the app closes, once the buffer is full, or whatever suits your application) if you use c++ you can call std::ios_base::sync_with_stdio(false); and then avoid using std::endl (just throw in \n for linebreaks and flush manuall using std::flush once per frame or something) and for C you can use setvbuf to change the buffer mode on stdout, just make sure you have a big enough buffer for your needs.   If you are using debug builds quite a few third party libraries will push data through stdout or stderr to your IDE, make sure you are using release builds when you are profiling.
  4. From the Unity3d FAQ:
  5. SimonForsman

    Building a game like "Game of War"

      You probably want something to record and mix sound and music as well. (Audacity is free and probably good enough to start with).   And yes, it can really be quite hard, the biggest challenge for you will most likely be to prevent rampant cheating while still keeping the server side scalable and fast. Doing one of those things is reasonably easy if you know what you are doing, doing both at the same time is extremely difficult, The client side programming of those games is fairly straight forward but you still want some high quality artwork (which is both time consuming and difficult to produce)
  6. Cobol isn't quite dead yet, There are 17 open cobol positions in my city right now, (all at banks and government agencies), devs who are well past retirement age are being paid insane salaries to stick around and employers are prepared to spend months training junior devs in the language. Technology may move quickly but big corporations and governments do not, Zombie technology may not be all that flashy and interesting but once big business critical systems have been built on any platform it becomes very difficult to kill it completely and you can build a great career supporting that crap.
  7. SimonForsman

    Islamaphobia in the United States

    Is it possible you are completely clueless about the meaning of the word 'Islamist', especially in the way it is distinct from Muslim?   What is the distinction? I might be clueless about that myself.   I've known, and have known for years, the difference between Arab (ethnicity from one part of the middle east - as opposed to, for example, Turkish, or Iranian) and Muslim, and so don't mix the two. But what's the difference between Islamist and Muslim?     Islamism (political islam) is a group of political ideologies based on islam, an islamist is a person who subscribes to one such ideology, extreme islamism is what drives organisations such as isis, Iran is somewhere in the middle (islam stands above the democratically elected officials) and on the reasonable end you have islams equivalent of european christian democracy or pretty much any right wing US politician.
  8. the speed of light is roughly 300.000 km/s , the distance between germany and south korea is 8570km which means light would need ~56ms to travel back and forth between client and server if it could do so in a straight line without interruptions (i.e, if the earth was flat and you used lasers instead of cables)
  9. SimonForsman

    Multi-keypress movement in SDL2

    don't move things when you process the events, flag the keys as pressed on key down, unflag on key up.   case SDL_KEYDOWN: key_pressed[...keysym.sym] = 1; break; case SDL_KEYUP: key_pressed[...keysym.sym] = 0; ... gameloop ... dt = Time::GetDeltaTime(); dx = dt * (key_pressed[SDLK_RIGHT] - key_pressed[SDLK_LEFT]) dy = dt * (key_pressed[SDLK_DOWN] - key_pressed[SDLK_UP]) sprite->Move(dx, dy);
  10. SimonForsman

    Keyboard input Windows

    post the relevant code. (message loop and getkeydown method)
  11. Yes it is possible. Check here for info about the format you're interested in.
  12. Take a look at the prices of those simple games, most people will expect and demand much less from a $5 title than they do for a $60+DLC title. When it comes to the rpg maker titles there are quite a few with some rather good writing (which is likely the main reason why some of those games get great reviews, it is an extremely story focused genre afterall), the generic rpg-maker titles tend to get pretty awful reviews on steam.
  13. The Unity web player won't run in chrome either, chrome dropped its old plugin API and its new API is far more restrictive (and supposedly far more secure). Unity does however have an option to export to html5/webgl and you can use the webplayer as a fallback for older browsers.
  14. SimonForsman

    Debug my bubble sort algorithm?

    If this is Java you can just use the built in sort functions.
  15. SimonForsman

    Misuse of downvotes

    Zip based archive formats such as snb are very frequently just renamed zip archives with some requirements on the content, the manual approach will give you all the information you need to replicate the process in code using the library, The manual process was never suggested by anyone as a replacement for the programmatic process, it was recommended as a first step in figuring out the format.
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!