Commit Graph

  • df27c3a873 Added dedicated fps command Cyberarm 2019-08-07 20:02:27 -05:00
  • 3eb34d023e Debug commands now affect game Cyberarm 2019-08-07 17:58:30 -05:00
  • 3e6ff5bd4a Added DebugCommand, added support for 'subcommands' Cyberarm 2019-08-07 17:06:40 -05:00
  • 80576a211a Moved menu files to be under /ui directory, added support for commands to Console! Cyberarm 2019-08-07 15:36:45 -05:00
  • ffae3ae14e Added Console to replace magic debug keys, added version file Cyberarm 2019-08-07 14:49:49 -05:00
  • 12a588304b Added dependance on cyberarm_engine, removed duplicate code which is in cyberarm_engine Cyberarm 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. Cyberarm 2019-08-07 10:43:04 -05:00
  • 2e69647ae3 Various tweaks Cyberarm 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? Cyberarm 2019-02-25 17:59:09 -06:00
  • 0d7210b3f7 Fixed always adding a new node to AABBTree when updating a node. Cyberarm 2019-02-25 12:51:26 -06:00
  • 97818c8a33 Collision stuff Cyberarm 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... Cyberarm 2019-02-25 09:35:01 -06:00
  • 5cf07ca620 Partially working AABB Tree! (needs much more work) Cyberarm 2019-02-24 21:51:04 -06:00
  • eeb7a335c1 Fixed bounding box renderer not showing mesh objects bounding boxes. Cyberarm 2019-02-24 15:11:51 -06:00
  • 965b8d0c80 Refactored bounding box to use 2 vectors, stubbed PhysicsManager. Cyberarm 2019-02-24 15:05:54 -06:00
  • fc72f2bdc8 Implemented a first class BoundingBox, refactored to use bounding box. Cyberarm 2019-02-23 18:28:47 -06:00
  • 7aa99a70a7 Fixed Camera free_move, reduced camera speed. Cyberarm 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.) Cyberarm 2019-02-22 14:55:06 -06:00
  • 8b65973f6f Added normalized and magnitude to Vector Cyberarm 2019-02-20 17:15:26 -06:00
  • 22bb98cb64 Fixed Vector class Cyberarm 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) Cyberarm 2019-02-20 11:12:14 -06:00
  • a6e175d9e0 Replaced Vertex struct with Vector class Cyberarm 2019-02-20 11:00:42 -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. Cyberarm 2019-02-20 10:49:56 -06:00
  • df05ec5150 Added ttank Cyberarm 2019-02-19 15:30:41 -06:00
  • 874d934606 Added README, rescue from missing demo file, add .gitignore. Cyberarm 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. Cyberarm 2019-02-17 20:06:48 -06:00
  • 5a97d292c0 remove glu from gemfile, added InputMapper, using InputMapper for Camera and Player. Cyberarm 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. Cyberarm 2019-02-17 10:50:08 -06:00
  • 3f7c5e992d Add collision manager... Cyberarm 2019-02-07 15:54:52 -06:00
  • 1c8edb3f13 Remove collision checking from Game and move it into CollisionManager Cyberarm 2019-02-07 13:07:51 -06:00
  • 5c623f1540 Refactored LoadingState to use Menu Cyberarm 2019-02-07 12:00:11 -06:00
  • f4a81f1e36 Removed global state for LightManager and ObjectManager, they're now inside GameState. Simplified terrain mesh. Cyberarm 2019-02-07 10:05:43 -06:00
  • 2f0cb47ed8 Improved Linux libGL library loader Cyberarm 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. Cyberarm 2019-01-07 19:15:29 -06:00
  • 9c8e781898 Added libGL lookup for ARCH Cyberarm 2018-12-12 20:07:44 -06:00
  • c142bd2392 Sync Cyberarm 2018-12-12 09:02:33 -06:00
  • 5843a9b0ae Count number of vertices instead of faces, added formatted_number to CommonMethods Cyberarm 2018-12-11 12:27:23 -06:00
  • 82265394eb Improved shader error formatting, hide puts statements that are only useful in debug mode. Cyberarm 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. Cyberarm 2018-12-10 22:22:01 -06:00
  • 4d8638d81c Added shader support, removed unused debugging puts statements and fixed Gosu Font.draw deprecation warning. Cyberarm 2018-12-10 18:50:25 -06:00
  • 74b0a0ef6f Small optimization that caches bounding boxes for GameObject collision detection Cyberarm 2018-12-10 13:39:29 -06:00
  • 7f8f534633 Moved game objects to their own folder Cyberarm 2018-12-10 10:38:42 -06:00
  • c656686997 Camera: Removed mouse position correction (no longer needed apparently :)), Mouse can now be released from Camera be pressing LeftAlt and can get captured again by clicking with the left mouse button. Cyberarm 2018-12-10 10:34:18 -06:00
  • a7755dfbdf Removed WaveFont Model Object's knowledge of parenthood. Cyberarm 2018-12-10 10:00:04 -06:00
  • 3ed09dd930 Bounding Box rendering for Mesh objects is now fixed: used to be the objects were all drawn on the original Mesh instead of its copies. Cyberarm 2018-12-10 09:53:13 -06:00
  • 6a5d45ba14 Fixed faces counting bug when removing bb Cyberarm 2018-12-09 21:20:53 -06:00
  • 7271c0e4a1 Fixed bounding box rendering! fixed AABB collision detection (was a bit weird), misc. tweaks and fixes. Cyberarm 2018-12-09 21:17:12 -06:00
  • a5b2ab7992 Split up Renderer into OpenGL and BoundBox renderers, rotate Player nameplate 180d Cyberarm 2018-09-20 09:47:09 -05:00
  • 35b5ee948a Moved OpenGL renderering code into its own class for future optimizations Cyberarm 2018-09-20 09:07:39 -05:00
  • aa4a905bd8 Update gosu and opengl-bindings, added bold defualt for Text Cyberarm 2018-09-17 17:13:52 -05:00
  • 54c480ecb8 Tweaked loading screen to pause for a split second to show 100%, tweaked menu hover color and effect, fixed indention. Cyberarm 2018-09-09 19:19:26 -05:00
  • e57cf8500b git add . Cyberarm 2018-09-09 15:02:06 -05:00
  • 66e7800cad Added main menu, added loading screen, hacked and chiseled things until I could load models without attaching to a gameobject. Cyberarm 2018-09-09 15:01:53 -05:00
  • d37758526a Fix falling edge case where the Player hasn't jumped before Cyberarm 2018-09-09 07:49:23 -05:00
  • 16e0e4dcff Added Game States, decoupled game from Window class and placed it in Game < GameState Cyberarm 2018-09-09 07:36:59 -05:00
  • bf783381ee Fix floating in midair, probably. Cyberarm 2018-09-05 08:37:52 -05:00
  • cd16896f86 Added comments Cyberarm 2018-08-05 11:09:37 -05:00
  • dc34054fb8 Added test menu background Cyberarm 2018-08-05 10:57:46 -05:00
  • 155b89d053 Added distance for tree Cyberarm 2018-07-30 12:56:29 -05:00
  • 67b06b0001 Bounding boxes are now drawn using Vertex arrays Cyberarm 2018-07-30 12:52:35 -05:00
  • ded012a9e0 added support for ruby-prof, make trees jump to nearest vertex position. Cyberarm 2018-07-08 14:39:57 -05:00
  • f21032935b dt with dt for arrow key look Cyberarm 2018-07-01 19:48:00 -05:00
  • 4c603c3a3d Improved terrain collision slightly Cyberarm 2018-07-01 19:10:09 -05:00
  • 5fa2843de2 added width,height and depth vars to GameObjects, randomly position 25 trees about the terrain. Cyberarm 2018-07-01 16:32:10 -05:00
  • 1eea3c92cb Add files Cyberarm 2018-07-01 16:06:39 -05:00
  • a84b9d95b4 Added a proper terrain mesh, implemented basic (and glitchy) terrain collision detection. Cyberarm 2018-07-01 16:06:22 -05:00
  • 5b16d9b4c3 AABB are now functional! Cyberarm 2018-07-01 12:10:48 -05:00
  • 6a14c5e9be Eat memory, load faster. edited comments in parser. Cyberarm 2018-06-30 21:55:51 -05:00
  • 218d7797c1 Intellisense says its faster this way Cyberarm 2018-06-18 13:13:37 -05:00
  • 582443abe4 Retro-actively add sponza copyright info Cyberarm 2018-06-18 12:24:33 -05:00
  • f68c31f87c Duct taping a cache bug, added test_object that uses sponza.obj. Cyberarm 2018-06-18 12:17:32 -05:00
  • 8f39c34d54 Added monkey patch to support rubies < 2.5 Cyberarm 2018-06-18 11:47:44 -05:00
  • aff4c8b545 Replaced usage of Time.now Cyberarm 2018-04-23 22:33:17 -05:00
  • e2af0958bb Fixed multiple text y positioning Cyberarm 2018-04-23 22:07:56 -05:00
  • fb1f4370eb Added fps target, added comma Cyberarm 2018-04-23 21:51:10 -05:00
  • 16e2352322 Got wireframe mostly working Cyberarm 2018-04-23 21:28:06 -05:00
  • 473a597b66 Bunch of stuff Cyberarm 2018-04-23 21:13:16 -05:00
  • bc8c78c90b Terrrain fill dome, added terrain to face count Cyberarm 2018-03-31 21:33:03 -05:00
  • 5a4bafce26 Next! Cyberarm 2018-03-31 21:22:21 -05:00
  • 05a77a0f11 Fixed nameplate oddly cutting off terrain, got a grid for terrain, first/third person toggle. Cyberarm 2018-03-31 21:22:11 -05:00
  • 162e23d0b4 More testing Cyberarm 2018-03-24 10:03:05 -05:00
  • 79f5dba4db Clamp it Cyberarm 2018-03-23 16:10:40 -05:00
  • c9126987fe Added render_pitch to camera for use only for rendering as pitch is used for a bunch of things, maybe? Cyberarm 2018-03-23 16:06:42 -05:00
  • 468600c1b4 Camera almost done, maybe. Cyberarm 2018-03-23 15:59:55 -05:00
  • 134099c2b1 Camera works! Cyberarm 2018-03-23 15:45:07 -05:00
  • 28acb12efc We can now attach an object to the camera- bit buggy atm. Cyberarm 2018-03-23 15:34:03 -05:00
  • 021805cd96 Wireframes! Player now has a name tag. Cyberarm 2018-03-23 13:51:55 -05:00
  • 0b0d307d2a Terrain is still broken, player moves in the correct relative directions now :) Cyberarm 2018-03-23 08:54:23 -05:00
  • dfc6a0cfe8 Got basic terrain generation working in immediate mode, all list is bugged atm. Cyberarm 2018-03-22 22:27:56 -05:00
  • dacf05475f Cleanup Cyberarm 2018-03-22 21:12:21 -05:00
  • bdbb5f2e94 Major refactor Cyberarm 2018-03-22 19:26:02 -05:00
  • 632830503b Everything is broken and stuff. Cyberarm 2018-03-22 15:15:20 -05:00
  • e7aa32b62d Fixed missing spaces, added terrain object, various tweaks trying to get collision detection working correctly; Still isn't... Cyberarm 2018-03-21 12:09:28 -05:00
  • 2de1c0ffdf Camera can bind to model Cyberarm 2018-03-20 22:48:01 -05:00
  • d390d3d728 Refactored lights, use light manager Cyberarm 2018-03-20 20:17:33 -05:00
  • 57c52cd725 Moved camera into its own class, added CommonMethods for gosu methods outside of window. Cyberarm 2018-03-20 19:25:06 -05:00
  • 7aef9b179a Added changable mouse sensitivity Cyberarm 2018-03-20 18:03:50 -05:00
  • fd4530911e Cleaning up Wavefront::Model and centralizing into Model, mouse_look now adapts to FOV better, bounding_boxes are correctly placed (not just moved from center) Cyberarm 2018-03-20 17:19:34 -05:00
  • 46f533f83e Did some reorganizing Cyberarm 2018-03-20 15:11:00 -05:00
  • a3c92f9de3 Add that plane, clamp FOV 1..179 Cyberarm 2018-03-20 11:40:07 -05:00