Commit Graph

315 Commits

Author SHA1 Message Date
Linus Probert 417cb78f31 Added items, so far only health that always drops. 2018-01-24 21:14:34 +01:00
Linus Probert 2d05f10a44 Fixed MSVC build 2018-01-24 19:24:05 +01:00
Linus Probert 720ce7fc71 Tweaked the scaling slightly 2018-01-24 18:06:10 +01:00
Linus_Probert eea667f5f1 Timestamps on logs and stuff. 2018-01-24 09:35:21 +01:00
Linus_Probert 6853f860f6 Fixed the scaling which was borked 2018-01-24 08:52:50 +01:00
Linus Probert dda89f65e7 Fixed some messages with bad newlines and added crash notification. 2018-01-24 06:41:37 +01:00
Linus Probert 8d865e9d94 Removed some duplicate code and fixed appveyor issue. 2018-01-23 23:02:26 +01:00
Linus Probert 4088357584 Better info, debug, error and fatal printouts. 2018-01-23 22:54:02 +01:00
Linus Probert b96ba5a2e0 Fixed build for windows
Created m_sprintf to make msvc happy.
2018-01-23 21:03:43 +01:00
Linus_Probert 62b963e643 More codacy stuff 2018-01-23 14:45:05 +01:00
Linus_Probert d6e6e9449a Codacy fixes 2018-01-23 14:37:58 +01:00
Linus_Probert dc7927c6b0 Gui log is working 2018-01-23 14:11:03 +01:00
Linus_Probert 5a95808266 Prepared the gui frames. 2018-01-23 12:14:44 +01:00
Linus_Probert e61b20f024 Include CURRENT_LEVEL in lua script. 2018-01-22 10:12:44 +01:00
Linus Probert 38a584f418 Added labels to monsters 2018-01-17 09:32:49 +01:00
Linus Probert 439dff8840 Codacy warning 2017-12-22 21:33:00 +01:00
Linus Probert c0e22314b9 MinGW warning in gui. 2017-12-22 15:19:26 +01:00
Linus Probert c4b8766a01 Began designing/writing gui. Added states. 2017-12-22 15:15:40 +01:00
Linus Probert 60b374f84e Levele exit and next level load 2017-12-22 06:27:58 +01:00
Linus Probert 01a3aa59d5 More compiler preproc stuff 2017-12-21 12:41:08 +01:00
Linus Probert 618f28a519 Badges and mingw warnings 2017-12-21 12:35:52 +01:00
Linus Probert 433d907ae8 Problems with max and min in mingw 2017-12-21 12:26:57 +01:00
Linus Probert 3504dfc7d1 MinGW can't build with VS .lib files :P 2017-12-21 12:22:37 +01:00
Linus Probert 42aa1cbe86 Fixed some mingw warnings. 2017-12-21 11:57:12 +01:00
Linus Probert 7862b83cb6 Fixed conflicting mains for mingw build 2017-12-21 11:46:52 +01:00
Linus Probert ca7249e954 Log hits, kills and misses 2017-12-21 08:31:25 +01:00
Linus Probert 9250dad9ce Get screen resolution in Windows 2017-12-20 19:17:41 +01:00
Linus Probert d4fa9f89d6 Fixed a massive error in hashtable.
Compile on windows now works fine.
2017-12-20 18:56:28 +01:00
Linus Probert c128a5dc39 Cleaner sprite creation. 2017-12-19 23:30:58 +01:00
Linus Probert 025bd3eda2 Fixed some codacy stuff 2017-12-19 23:02:24 +01:00
Linus Probert 4bbe82a705 More windows stuff 2017-12-19 22:51:00 +01:00
Linus Probert faad866c8b Fixed a lot of stuff to help cross platform compilation 2017-12-19 21:00:02 +01:00
Linus Probert 7f6507d30c Fixed for windows 2017-12-19 19:42:05 +01:00
Linus Probert b269abd0f7 Moved hashtabl and linkedlist into source. 2017-12-19 09:06:21 +01:00
Linus Probert 64a9105d21 Action texts on player and some refactoring 2017-12-18 15:26:56 +01:00
Linus Probert 1c48f1dd9a Added enemy behaviour to lua and monster states. 2017-12-18 12:12:24 +01:00
Linus Probert 995a2f4475 Codacy warnings. 2017-12-18 10:03:58 +01:00
Linus Probert c88c64f4b8 Implemented stupid agressive and coward pathing. 2017-12-18 09:59:01 +01:00
Linus Probert 3a464d8ea6 Added some more undead and fixed the random function. 2017-12-18 09:11:00 +01:00
Linus Probert 6007976d23 Roaming monsters. 2017-12-17 13:43:41 +01:00
Linus Probert 7389c2d588 Hit and miss information. 2017-12-15 15:03:29 +01:00
Linus Probert 916193ecb3 Simple Player vs. Enemy hits 2017-12-15 08:08:45 +01:00
Linus Probert c4d142860c Moved 'clip' from texture to sprite. 2017-12-14 12:01:05 +01:00
Linus Probert 7625e02d21 Make codacy happy. 2017-12-13 23:27:20 +01:00
Linus Probert 00a2b54759 Lua bindings for monsters. Monsters in matrix.
So far I just add one black ant. More to come.
2017-12-13 23:20:54 +01:00
Linus Probert 95c9ed0a67 Made linked list stupid and naive. Prepared for monster lua 2017-12-13 20:31:04 +01:00
Linus Probert 17c3b817a0 Better hashtable destruction. Monsters prepared. 2017-12-13 14:30:12 +01:00
Linus Probert ac63f0b172 More monster and combat prep.
I need a hashtable next.
2017-12-12 11:20:08 +01:00
Linus Probert 9f71d23849 Prepared sprites for monster implementation.
Added a render function to texture
2017-12-11 08:23:30 +01:00
Linus Probert cdf4949eea Switched from 64 tile dimension to 32
64 didn't look very nice on a regular HD screen. Only on my tricky hiDPI
laptop.
2017-12-10 23:49:15 +01:00
Linus Probert a1c57b62d0 Lightsources and lightmaps 2017-12-10 19:51:24 +01:00
Linus Probert f4e24bc8d7 Fixed animated decorations in map 2017-12-08 14:40:33 +01:00
Linus Probert 698c92ae33 Added decorations in lua and core 2017-12-08 09:45:57 +01:00
Linus Probert 577165a0f6 Squelched a bug, fixed a memory leak and wrote a lot of ugly lua.
The lua is map-gen code. It's allowed to be ugly. That is why map-gen
code is in lua. Because it's quick to write and not as crucial if it
gets ugly.
2017-12-07 23:58:29 +01:00
Linus Probert 171f8c8b5e Nicer exits in rooms 2017-12-06 17:00:51 +01:00
Linus Probert e8ccda2faf Fixed map path and generation.
Also found an issue with collisions and room-switching. This has been
fixed also.
2017-12-06 11:44:17 +01:00
Linus Probert bdc5b6d629 Added a room matrix that deals with movement and collisions. 2017-12-05 15:03:20 +01:00
Linus Probert 50f516ad71 Implemented a simple timer 2017-12-05 08:30:08 +01:00
Linus Probert f5a23d6798 Nicer map creation with walls. 2017-12-05 08:13:28 +01:00
Linus Probert 0b376a4998 Camera and map following 2017-12-03 11:09:57 +01:00
Linus Probert 7362c2370f Generate maps using lua 2017-12-02 23:32:40 +01:00
Linus Probert 0cdd0f6d8d Extended linked list and re-thought the map structure 2017-12-02 16:24:31 +01:00
Linus Probert 23abb0f48c Added maps and a camera 2017-12-01 16:03:19 +01:00
Linus Probert 1714c5d732 Fixed a codacy issue 2017-12-01 00:01:51 +01:00
Linus Probert a7d5aa90e1 Initial commit 2017-11-30 21:06:54 +01:00