Commit Graph

83 Commits

Author SHA1 Message Date
76d6dfcf2f Change notation for dengine headers 2016-06-28 16:00:03 +10:00
26cec05ff0 Applied const to more vars, change tile size to 64 2016-06-28 15:03:04 +10:00
f53325cc6a Batch tiles to single vbo at render pass 2016-06-28 02:28:57 +10:00
fd3a353fdd Call renderer on tiles only-if tile on screen
OpenGL automatically clips objects outside of the view space but we were
still using up a lot of useless glDraw calls which impacts performance.
This change is temporary and will change when we get to scrolling the
world.
2016-06-25 21:51:35 +10:00
e638724c75 Add tile grid and atlas concept to game 2016-06-25 21:23:15 +10:00
b7063963b8 Add basic AABB collision detection 2016-06-25 19:12:25 +10:00
7acf36cd59 Basic multi animation support, with walking transition 2016-06-23 21:34:38 +10:00
7a2dc3da41 Add game entity list rendering, create animations 2016-06-23 18:40:00 +10:00
eda06bcfe9 Rudimentary animated sprite capabilities 2016-06-19 02:16:16 +10:00
d44ddf9371 Sprite switches direction, update vbo on render 2016-06-19 00:34:20 +10:00
bb57f080c9 Draw sprite from offset into tilesheet 2016-06-18 20:45:14 +10:00
753d700ca6 Complete port over to C, replace glm math lib 2016-06-18 19:12:09 +10:00
d4117ea729 Start math library by preprocessor templating 2016-06-18 03:15:02 +10:00
6251e105c8 Remove stdstring, use platform layer to open files 2016-06-18 02:01:43 +10:00
3c51010e77 Port project over to C, some C++ left 2016-06-18 00:40:40 +10:00
bcb847c18c Add acceleration to movement code 2016-06-17 18:11:23 +10:00
c54e6323a7 Use GLFW swap interval for force vsync to monitor 2016-06-17 16:32:59 +10:00
9861a02ed1 Add frame limiter, update glfw to 3.2 2016-06-17 03:00:11 +10:00
5cebf9ad0d Build world model in engine 2016-06-17 00:14:58 +10:00
b75009d03e Fix ortho projection, sprite vertex to map from 0 to 1 2016-06-14 00:51:14 +10:00
68c53dad0a Switch to sprite renderer 2016-06-09 15:49:03 +10:00
60fcecab0e Apply const correctness to project 2016-06-08 17:29:16 +10:00
a01c597340 Migrate game code into game.c
Separate the game code from the engine code
2016-06-08 02:02:58 +10:00
6f7f9fa50a Sprite uses unique vao for rendering
Remove notation of "m" in member variables.
2016-06-08 01:35:00 +10:00
761609e1f9 Add sprite functionality, doesn't render yet 2016-06-07 23:54:14 +10:00
864dca6f3d Add basics for breakout game, separate tutorial code 2016-06-05 17:54:41 +10:00
17a89269f0 Remove cubes, restore back to drawing squares 2016-06-04 23:09:59 +10:00
7295d4712c Abstract asset loading to asset manager 2016-06-04 22:42:22 +10:00
d08cc4621b Add zooming by modifying fov in perspective matrix 2016-06-04 17:14:08 +10:00
83d44b8991 Add warnings on compile, free movement + camera 2016-06-04 16:36:37 +10:00
540b871c58 Add camera linear rotation 2016-06-03 17:05:28 +10:00
472b952408 Fix VS gitignore ignoring external library folders 2016-06-03 15:18:23 +10:00
04e9f7bf85 Initialise repo 2016-06-03 15:07:40 +10:00