code_snippets:code_snippet
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
code_snippets:code_snippet [2024/10/07 15:09] – [Platform Info] mrvalentine | code_snippets:code_snippet [2024/10/22 07:17] (current) – [Loading and Drawing Tiled Maps] mrvalentine | ||
---|---|---|---|
Line 19: | Line 19: | ||
Ever load an old project and not sure if it was DesktopDX or DesktopGL? or Windows or Linux? This snippet helps answer that question. | Ever load an old project and not sure if it was DesktopDX or DesktopGL? or Windows or Linux? This snippet helps answer that question. | ||
- | |||
- | It should be mentioned however checking for Device Reset issues is mostly not an issue on modern systems and is usually an edge case. | ||
---- | ---- | ||
+ | |||
+ | ==== Drawing When Loaded ==== | ||
[[code_snippets: | [[code_snippets: | ||
Line 30: | Line 30: | ||
---- | ---- | ||
+ | |||
+ | ==== Device Reset With Loading ==== | ||
[[code_snippets: | [[code_snippets: | ||
Line 35: | Line 37: | ||
Here is a basic implementation of handling Device Reset events, with the content loading implementation. | Here is a basic implementation of handling Device Reset events, with the content loading implementation. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== PSX Scaling ==== | ||
+ | |||
+ | [[code_snippets: | ||
+ | |||
+ | The code required to draw PSX scale resolution games, in Wide Screen! | ||
---- | ---- | ||
Line 42: | Line 52: | ||
Code that is a little longer than 5-10 lines of code excluding comments. | Code that is a little longer than 5-10 lines of code excluding comments. | ||
+ | ---- | ||
+ | |||
+ | ==== Frameless Window Draggable ==== | ||
[[code_snippets: | [[code_snippets: | ||
Line 48: | Line 61: | ||
---- | ---- | ||
+ | |||
+ | ==== Loading and Drawing Tiled Maps ==== | ||
[[code_snippets: | [[code_snippets: | ||
This is a roll your own implementation for loading Tiled maps, you can also use MonoGame.Extended to load them too, but this helps you to understand the roll your own process. | This is a roll your own implementation for loading Tiled maps, you can also use MonoGame.Extended to load them too, but this helps you to understand the roll your own process. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Animated Custom Mouse Cursor ==== | ||
+ | |||
+ | [[code_snippets: | ||
+ | |||
+ | Code to use a custom mouse cursor and also immediate mode is explained briefly. | ||
---- | ---- |
code_snippets/code_snippet.1728313741.txt.gz · Last modified: 2024/10/07 15:09 by mrvalentine