Commit Graph

186 Commits

Author SHA1 Message Date
80a6389af4 Fix rendering error 2019-08-10 10:15:22 -05:00
dcf71a9903 Updated Gemfile.lock 2019-08-10 09:44:09 -05:00
a22a3f3f3c Moved constants into their own file, LoadingState now loads shaders and now shows 'Loading [model|shader] name...', tweaked player running speed, Player model is no longer rendered when in first person view, removed redundant ShaderManager 2019-08-10 09:40:31 -05:00
bc89fb6911 Tweaked player drag, speed, and turn speed 2019-08-09 19:20:19 -05:00
f84b680de5 PhysicsManager now has a job, CollisionManager enabled, using Player velocity instead of position for movement controls, added Entity drag, added spaces 2019-08-09 08:27:34 -05:00
3b662090fc Fixed Console erasing input when pressing down arrow key 2019-08-08 20:34:18 -05:00
9ab019f1bc Fixed console command history incorrect index for going down through history 2019-08-08 20:28:35 -05:00
a82e71cea7 Added support for Console auto-complete 2019-08-08 20:23:48 -05:00
c89586c286 Added support for command history in Console 2019-08-08 09:37:30 -05:00
4d70ac6d5c Set initial values for DebugCommand 2019-08-08 09:20:55 -05:00
df27c3a873 Added dedicated fps command 2019-08-07 20:02:27 -05:00
3eb34d023e Debug commands now affect game 2019-08-07 17:58:30 -05:00
3e6ff5bd4a Added DebugCommand, added support for 'subcommands' 2019-08-07 17:06:40 -05:00
80576a211a Moved menu files to be under /ui directory, added support for commands to Console! 2019-08-07 15:36:45 -05:00
ffae3ae14e Added Console to replace magic debug keys, added version file 2019-08-07 14:49:49 -05:00
12a588304b Added dependance on cyberarm_engine, removed duplicate code which is in cyberarm_engine 2019-08-07 12:00:39 -05:00
1b6f8cf880 Added river terrain test mesh, each model's manifest file is now simply named manifest.yaml instead of model_folder_name.yaml. 2019-08-07 10:43:04 -05:00
2e69647ae3 Various tweaks 2019-02-26 18:43:42 -06:00
8ccd1506f3 Refactored Model to make faces first class objects for use in AABBTree, renamed BoundingBox.intersect to intersect? 2019-02-25 17:59:09 -06:00
0d7210b3f7 Fixed always adding a new node to AABBTree when updating a node. 2019-02-25 12:51:26 -06:00
97818c8a33 Collision stuff 2019-02-25 11:33:18 -06:00
d5a5ced955 Can now update AABBTree however something weird is happening where the tree grows for the same numbeer of objects... 2019-02-25 09:35:01 -06:00
5cf07ca620 Partially working AABB Tree! (needs much more work) 2019-02-24 21:51:04 -06:00
eeb7a335c1 Fixed bounding box renderer not showing mesh objects bounding boxes. 2019-02-24 15:11:51 -06:00
965b8d0c80 Refactored bounding box to use 2 vectors, stubbed PhysicsManager. 2019-02-24 15:05:54 -06:00
fc72f2bdc8 Implemented a first class BoundingBox, refactored to use bounding box. 2019-02-23 18:28:47 -06:00
7aa99a70a7 Fixed Camera free_move, reduced camera speed. 2019-02-22 15:04:42 -06:00
6191699d8b Replaced usage of with CommonMethods.window (which uses ), refactored InputMapper to match actions to keys and visa-versa, removed categories from InputMapper, moved input mappings from Camera and Player into InputMapper (for now.) 2019-02-22 14:55:18 -06:00
8b65973f6f Added normalized and magnitude to Vector 2019-02-20 17:15:26 -06:00
22bb98cb64 Fixed Vector class 2019-02-20 14:59:11 -06:00
cad7b5c263 Fixed a silly notion with Vector, airthmitic functions won't set Vector's data unless its setting arithmitic now. (vector+other won't set vector but will return a new vector, while
vector+=other WILL set vector's data)
2019-02-20 11:12:38 -06:00
a6e175d9e0 Replaced Vertex struct with Vector class 2019-02-20 11:00:54 -06:00
7b903fbdb9 Refactored GameObject to Entity, replaced @x,@y,@z with @position, added @velocity vector to Entity, bricked Player terrain interaction while authoring Axis Aligned Bounding Box Tree for CollisionManager to handle all collision interaction. Added PhysicsManager stub. 2019-02-20 10:49:56 -06:00
df05ec5150 Added ttank 2019-02-19 15:30:41 -06:00
874d934606 Added README, rescue from missing demo file, add .gitignore. 2019-02-17 21:22:40 -06:00
8d83901237 Removed usages of Gosu.button_down? in InputMapper allowing for 'virtual input' support, tacked on demo support (recording and playback of camera yaw and pitch along with all key events in Game.), Camera now sets @game_object.y_rotation instead of @game_object setting Camera.yaw in Camera.position_camera. 2019-02-17 20:06:48 -06:00
5a97d292c0 remove glu from gemfile, added InputMapper, using InputMapper for Camera and Player. 2019-02-17 14:14:39 -06:00
9f6f330202 Restructured 'objects' folder into a meaningful 'assets' folder, added 'war_factory' model, refactored GameObject#bind_model and ModelLoader to understand the restructuring. 2019-02-17 10:50:08 -06:00
3f7c5e992d Add collision manager... 2019-02-07 15:54:52 -06:00
1c8edb3f13 Remove collision checking from Game and move it into CollisionManager 2019-02-07 13:07:51 -06:00
5c623f1540 Refactored LoadingState to use Menu 2019-02-07 12:00:11 -06:00
f4a81f1e36 Removed global state for LightManager and ObjectManager, they're now inside GameState. Simplified terrain mesh. 2019-02-07 10:05:43 -06:00
2f0cb47ed8 Improved Linux libGL library loader 2019-01-07 19:37:46 -06:00
57e96b38b2 Works on the Pi! Possibly fixed weird mouse behavior, which caused the camera to constantly drift on so systems, that may have been caused by Gosu's automatic screen scaling. 2019-01-07 19:27:04 -06:00
9c8e781898 Added libGL lookup for ARCH 2018-12-12 20:07:44 -06:00
c142bd2392 Sync 2018-12-12 09:02:33 -06:00
5843a9b0ae Count number of vertices instead of faces, added formatted_number to CommonMethods 2018-12-11 12:27:23 -06:00
82265394eb Improved shader error formatting, hide puts statements that are only useful in debug mode. 2018-12-11 11:56:53 -06:00
6341c3b817 Re-added mousefix :(, camera can now be flown around if it's not attached to a game object, tweaked Player initial jump velocity. 2018-12-10 22:22:01 -06:00
4d8638d81c Added shader support, removed unused debugging puts statements and fixed Gosu Font.draw deprecation warning. 2018-12-10 18:50:25 -06:00