aboutsummaryrefslogtreecommitdiff
path: root/games
AgeCommit message (Collapse)Author
2019-11-01Fix generation of web examples (#1007)Pablo Marcos Oltra
At least on Linux, CMake seems to add automatically the '-rdynamic' flag. As a result, Emscripten generates a fat HTML file that does not work. Removing it allows HTML+JS+WASM generation.
2019-08-03Replace tabs with spaces and update year of copyright notices (#927)Leandro Gabriel
* Update year of copyright notices * Fix mistake in comment * Fix typo ("algorythms") * Replace tabs with spaces * Remove trailing whitespace and fix mistake in comment * Fix ExportImageAsCode missing comment rectangle corner * Replace tab with spaces * Replace tabs with spaces
2019-07-27#917 This commit changes the path to 'shell.html' in all Makefiles (#918)Antonio Radovcic
2019-07-24Some tweaks revisiting an old game...Ray
2019-07-24BREAKING CHANGE: Read descriptionRay
Changes: - Font structure has been redesigned, CharInfo structure contained character rectangle within font texture, it has not much sense, considering that it was an information relative to the font atlas generated and not the character itself, so character rectangles have been moved out from CharInfo to Font. - CharInfo included a data parameters to contain character pixel data (usually grayscale), generated on TTF font generation. It was inconsistent with other fonts types, so, now CharInfo includes directly an Image of the glyph. - REDESIGNED: GenImageFontAtlas(), additional recs parameter added, loaded and filled inside the function to export atlas characters rectangles, instead of silently modify the input CharInfo data. - REVIEWED: ImageTextEx(), funtion retrieved the font atlas image from the GPU, that was slow and problematic in several platforms. Now it uses directly the CharInfo image. Support for unicode codepoints has also been added. - REDESIGNED: ImageDraw(), now it includes an additional parameter, the color tint, not only it could be useful for several situations but also function signature is more consistent with similar functions. - ADDED: ImageFromImage() to generate a new image from a piece of another image. - REVIEWED: GetNextCodepoint(), renamed parameters to be more clear. Also all examples and games that were affected by those changes have been reviewed.
2019-06-09Update MakefileXiaochuanWang
corrected file location for "raylib.rc.data", which will cause an error during compilation
2019-06-07Updated games buildingRay
2019-06-06Remove wrong filesRay
2019-06-06Update exampleRay
2019-05-29Define standard examples sizeRay
2019-05-22Update MakefileRay
2019-05-22Update MakefileRay
2019-05-22Move emscripten web shell to srcRay
2019-05-21Review gamesRay
2019-05-21Update MakefileRay
2019-05-21Review sample gamesRay
2019-05-21Review MakefilesRay
2019-04-07Happy new year 2019ChillerDragon
2019-01-27Added new game: Cat vs RoombaRay
GGJ2019 game
2019-01-03REMOVED: ShowLogo()raysan5
Same functionality could be achieved using FLAGS... but also considering removing raylib logo animation...
2018-12-26WARNING: BREAKING CHANGEraysan5
Added a bunch of useful text management functions. Consequently, some already available functions like `FormatText()` and `SubText()` has been renamed for consistency. Created temporal fallbacks for old names. raylib version bumped to 2.3.
2018-12-25Support float texture data on OpenGL ES 2.0raysan5
2018-12-25REVIEWED: LoadFontEx()raysan5
Changed parameters order for consistency with LoadFontData() and other functions when an array is passed by parameter and array size is the following parameter.
2018-12-24Some code tweaksraysan5
2018-11-19Review resources namingRay
raylib resource data file for Windows platform (containing raylib icon and metadata for executable file) has been renamed to a more consistent name: raylib.rc.data Also required to work with tcc compiler.
2018-11-19Review RenderTexture drawing usageRay
Now `BeginTextureMode()` does not clean buffers automatically, that behaviour has been changed because there could be some case (i.e. painting software) where texture buffer does not ned to be cleared; user is responsible of clearing buffers using `ClearBackground()`
2018-10-103 minor sample game cleanups:noshbar
* changed bitwise & to logical && * removed redundant state check * moved a strcpy inside a NULL check to prevent a crash. NOTE: nothing sensible will happen as a result, but no crash at least.
2018-09-25PNG image size optimizationRay
2018-09-18enjoy!Ray
2018-08-13Games: Snake: Fixes snake head collision with fruitJoseph-Eugene Winzer
CheckCollisionRecs() returns true on edge-collision what means that the snake eats the fruit when colliding with it but also when sliding by one unit above or below the fruit.
2018-08-13Games: Snake: Fixes fruit spawn positionJoseph-Eugene Winzer
If the initial fruit position collides with the snake's body a new position for the fruit is generated but without adding the grid offset.
2018-08-06Reviewed spacings on latest PRRay
2018-07-29CMake: Major cleanup to support find_package(raylib)Ahmad Fatoum
Remove that link_libraries_to_executable() hack and defines a proper raylib target that can be used with target_link_libraries. The same target is also available for external (user) code by using find_package(raylib). This results in: - Remove hardcoded build directories from examples and games CMakeLists.txt - Allow rlgl_standalone and other special examples to be built easily - Allow CMake projects to find_package(raylib instead of fiddling with pkg-config - Makes code a little more maintainable - Fixes #471, #606. - Makes code less confusing by removing the double use of PLATFORM (#584). Note that this is still not _The Right Way_(TM), because normally raylib-config.cmake (or its includes) would be automatically generated. I didn't manage to get that to work though, so I went the easier route of just wrapping pkg_check_modules for consumption by find_package.
2018-07-25Fix HTML5 examples and games using CMake (#589)Pablo Marcos Oltra
Mimic the Makefile by outputting html + js instead of LLVM IR.
2018-07-21Added Android Makefile for gamesraysan5
2018-07-21Review formattingraysan5
2018-07-21Looking for a place for raylib resource fileraysan5
2018-06-23Added support OpenBSD, NetBSD, DragonFlymaficccc@gmail.com
2018-06-03Improved game drawingRay
Reduced draw calls
2018-05-29Reviewed Windows resource file nameRay
2018-05-21Move utils.cmake to separate cmake/ directoryAhmad Fatoum
2018-05-12Makefile: Remove unnecessary -no-pie for older GCC supportAhmad Fatoum
Currently, if: * GCC doesn't supports -no-pie: Build error * GCC supports -no-pie * GCC is not configured with --enable-default-pie: No-op * GCC is configured with --enable-default-pie: Slightly worse performance because we still generate -fpie code (-pie affects linker, -fpie affects compiler) So instead of probing for existence of -fno-pie -no-pie, remove it altogether. Fixes #540: Build breakage on Debian 8 with gcc 4.9.
2018-05-11Updated raylib_icon resourceRay
2018-05-04BREAKING CHANGE: Renamed SpriteFont type to FontRay San
- Preparing MP3 files support - Jumped version to raylib 2.0-dev (too many breaking changes...)
2018-04-03Updated to latest raylib changesRay
Removed OpenAL and GLFW3 dependencies on building. Reviewed platforms and flags
2018-04-02Review games MakefileRay
2018-03-16Allow use of main instead of android_mainAhmad Fatoum
Inspired by #504. Instead of requiring the user to do PLATFORM_ANDROID #ifdefery, have the android_main entry point exported by raylib and call the user-defined main. This way many games could (in theory) run unmodified on Android and elsewhere. This is untested!
2018-02-21Removed flag -fgnu89-inlineRay
2018-02-18Support UTF8 basic characters on ImageTextEx()raysan5
Supported UTF8 range equivalent to [128..255] (80h..FFh) Exposed and renamed text function GetGlyphIndex() Renamed spriteFont parameter name to simply font Small security check on transmission mission ending screen
2018-02-17Reviewed transmission mission gameraysan5
Support string replacing to generate newspaper headline ISSUE: UTF8 characters not supported when drawing to Image