Commit graph

60 commits

Author SHA1 Message Date
Hannes Mann 5de095de75 Add documentation for some of the formats
This could not have been done without the amazing https://github.com/szymski/Rayman2Lib. (i have not verified if it works, it might be crap)
2016-06-16 04:25:48 +02:00
Hannes Mann 26c6e69844 Add a folder for future documentation 2016-06-16 03:37:28 +02:00
Hannes Mann f5f3044a26 Fix windows support 2016-06-16 00:56:11 +02:00
Hannes Mann 72f1910585 Fix typo 2016-06-15 19:53:35 +02:00
Hannes Mann 11ff4b30fb Add rebindable keyboard keys 2016-06-15 18:16:25 +02:00
Hannes Mann c277fb918d Add SDL_GameController support 2016-06-15 16:51:05 +02:00
Hannes Mann 1ed79727cb Better solution for SDL (endianness) 2016-06-15 16:12:45 +02:00
Hannes Mann b88a45a9e0 Fix window icon with SDL 2016-06-15 16:09:32 +02:00
Hannes Mann 5d6803b59f Switch from GLFW to SDL2
SDL2 is better supported and has a great game controller api
Wont build on Windows right now
2016-06-15 05:06:21 +02:00
Hannes Mann 3fffccf665 Add a game class for mod support
This commit adds a game class, which is a collection of files that can depend on other files.
The base game "rayman2" contains all files required for the game, and they can then be overriden by games that depend on it.
OpenRayman will use this for editing menus (adding settings) and possibly other things.
All mods should target "rayman2_openrayman".
2016-06-15 03:55:52 +02:00
Hannes Mann 96bba9bf03 Replace info.json with something more appropriate for the games (mod) system 2016-06-15 02:32:18 +02:00
Hannes Mann be3c5ee953 Export FPS from engine 2016-06-14 21:27:03 +02:00
Hannes Mann c92759a9b8 Tweak command line output 2016-06-14 04:41:32 +02:00
Hannes Mann 17cc6b3483 Add --convert-data command line option 2016-06-14 04:37:33 +02:00
Hannes Mann 012f0035f9 G++ on Windows uses standard main(int argc, char** argv)
We need the arguments in the future for converting the Rayman data folder (--convert-data?)
Converting the data folder will allow for easier modding
2016-06-14 04:34:15 +02:00
Hannes Mann 4d51c8173d Complete timing functions 2016-06-14 04:29:23 +02:00
Hannes Mann 4f53002fd8 Move some more variables into info.json 2016-06-13 18:34:37 +02:00
Hannes Mann 4efa463dc1 Add config and static info file 2016-06-13 18:26:03 +02:00
Hannes Mann 2e6c7faefb Add basic delta timing
Will probably need fixed (60fps) updates and interpolation (idk if Rayman 2 uses that)
We need a config file for vsync and locked fps
2016-06-13 17:20:59 +02:00
Hannes Mann fd9f68e4f8 Add keyboard mappings to N64 controller
These should be accurate to the original PC game
The plan is to make these rebindable
2016-06-13 17:06:13 +02:00
Hannes Mann 8187541233 Add standalone input provider
Also fix const correctness, improve documentation and other tweaks
2016-06-13 05:18:59 +02:00
Hannes Mann 7875b205cf Add input commands and improve documentation 2016-06-13 04:14:04 +02:00
Hannes Mann dd76a33821 Add input commands for additional actions such as fullscreen 2016-06-13 03:59:36 +02:00
Hannes Mann f4b6006019 Add JSON library 2016-06-13 01:29:50 +02:00
Hannes Mann becce1b1f2 Remove build_win
oops
2016-06-13 00:19:33 +02:00
Hannes Mann 240c485b5d Small fix for Windows 2016-06-13 00:18:11 +02:00
Hannes Mann 6d8893f65d Add input_state structure 2016-06-12 22:33:35 +02:00
Hannes Mann fc8255d366 ... 2016-06-12 21:56:23 +02:00
Hannes Mann 30fc078ae1 Add backend specific methods 2016-06-12 21:46:48 +02:00
Hannes Mann 15cb5c582b Hide cursor when in client area 2016-06-12 19:01:27 +02:00
Hannes Mann e35a7782b1 No! 2016-06-12 18:54:25 +02:00
Hannes Mann cd10d8aa66 Make sure everything is correct when we leave fullscreen 2016-06-12 16:43:11 +02:00
Hannes Mann 0bdfb582c9 Fix for windows 2016-06-12 16:37:23 +02:00
Hannes Mann 492557f3ba Add game demos based on Rayman 2 engine for research 2016-06-12 05:20:13 +02:00
Hannes Mann 1b3b32c9d6 meh 2016-06-12 05:03:35 +02:00
Hannes Mann 65d838e2e3 This will give latest GL 2016-06-12 05:00:10 +02:00
Hannes Mann 3cebe66332 Remove TODO
Will make something proper later
2016-06-12 02:41:47 +02:00
Hannes Mann 07027c7ec3 oops was for testing 2016-06-12 02:08:25 +02:00
Hannes Mann 850a9eb0e0 Fix GTK+ dialog crashing 2016-06-12 02:06:55 +02:00
Hannes Mann 97bfe06cdb Use program icon 2016-06-12 02:01:54 +02:00
Hannes Mann 0782100983 Check for data files on start 2016-06-12 01:56:25 +02:00
Hannes Mann 932e9961f8 Fix typo and forgot fix_string 2016-06-12 01:26:03 +02:00
Hannes Mann a46d94c215 Add file system abstraction
Basic, for now.
2016-06-12 01:22:41 +02:00
Hannes Mann b24fbeb381 Make openrayman::engine use new window abstraction 2016-06-12 00:58:30 +02:00
Hannes Mann d3bc643d2a Abstract window handling 2016-06-12 00:27:28 +02:00
Hannes Mann f2b5e0bb73 Thanks to for lodepng 2016-06-11 22:44:50 +02:00
Hannes Mann ec23ad10ce Add lodepng for png loading 2016-06-11 22:43:55 +02:00
Hannes Mann 443b6630f5 Improve stub 2016-06-11 22:40:36 +02:00
Hannes Mann ca11333274 Add libepoxy and GL stub 2016-06-11 21:50:52 +02:00
Hannes Mann 56fda34225 Copy data directory into binary directory 2016-06-11 21:19:43 +02:00