diff options
| author | Gianni Alessandroni <[email protected]> | 2021-05-10 20:16:12 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-10 20:16:12 +0200 |
| commit | 4ab28fffb42bc3104bca48166ea4d7712450852d (patch) | |
| tree | 3906b43c451cca94bf15a74acd0656ebe960db8c /examples/examples_template.c | |
| parent | e39e45824db79623fa4c7b55a606ca79fc27659e (diff) | |
| download | raylib-4ab28fffb42bc3104bca48166ea4d7712450852d.tar.gz raylib-4ab28fffb42bc3104bca48166ea4d7712450852d.zip | |
Added smooth pixel-perfect camera example + Small typo fix in examples_template.c (#1760)
* Typo fix
Changed "bsasic" to "basic" in the comments.
* Added pixel-perfect camera example
Added pixel-perfect camera example, both the .c file and the cover .png image. The example works with any resolution you want, as long as the ratio stays the same
(ex. 16:9, 4:3) ecc.
* Fixed Typecasts
Fixed compiler errors (implicit conversions)
* Precomputed rectangles, time-based movement and whitespace fix
Moved the source and destination rectangles for the renderTexture into their own variables, modified the animation to be time-based instead of frame-based, fixed the bug with whitespaces.
* Fixed spacing and added more consistency with sinf() and cosf()
* Fixed *= operator spacing
Diffstat (limited to 'examples/examples_template.c')
| -rw-r--r-- | examples/examples_template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/examples_template.c b/examples/examples_template.c index 296a2a22..8dc31706 100644 --- a/examples/examples_template.c +++ b/examples/examples_template.c @@ -1,7 +1,7 @@ /* WELCOME raylib EXAMPLES CONTRIBUTOR! - This is a bsasic template to anyone ready to contribute with some code example for the library, + This is a basic template to anyone ready to contribute with some code example for the library, here there are some guidelines on how to create an example to be included in raylib 1. File naming: <module>_<description> - Lower case filename, words separated by underscore, @@ -95,4 +95,4 @@ int main() //-------------------------------------------------------------------------------------- return 0; -}
\ No newline at end of file +} |
