New answers tagged screen
Yes, you should use WM_INPUT for things like camera movement. Why? Because it doesn't matter what the mouse's factory DPI is. Pretty much all games give the user a "mouse sensitivity" setting, where they can tweak a custom DPI value (they don't need to know it's the DPI!) to fit their preferences. When it comes to GUI, you should still use the ...
Define a vector that shifts the rendered position of everything. When that vector is (0,0), the screen is still. Changing it randomly every 5-10 frames causes the screen to shake. You can smooth this change if you like.
If you want to add a screen before all assets are loaded you have to use a preloader. You can read about this here. Flixel provides simple preloader (FlxPreloader) that is easy to understand and to customize.
The centre of the screen is x_pos:0 y_pos:0. As you draw the tiles, y positive is 'upwards' on the screen. So the code is now functioning correctly, but your perception of the tile positions is horizontally mirrored.
Top 50 recent answers are included