Commit Graph

105 Commits

Author SHA1 Message Date
Linus Probert b4a6c4b46f Fixes some render layer issues
- Chance for more daggers in containers
- Less health from meat
- Prevent exit from spawning under containers
2018-08-11 15:15:53 +02:00
Linus Probert 4ba301769a Fixes: #30
- Also fixes a bug with artifact generation
- Extends menu room with new features
- Adds more descriptive text to container openings
- Fixes bug with container loot generation
2018-08-10 22:31:06 +02:00
Linus Probert 62d1bbd49d Completes #31 Adds chests to game 2018-08-10 20:09:56 +02:00
Linus Probert aaa8e8c36e Makes stunned enemies "wobble" instead of having an indicator.
- Also adds more decorations to rooms.
2018-08-06 13:34:27 +02:00
Linus Probert ffde0793e5 Fixes: #4 Room stuff: Traps
- Adds traps
- Adds lua hooks for traps
- Fixes level exit in pit bug
2018-08-06 00:28:23 +02:00
Linus Probert 2aee3600e6 Merge branch 'master' into dev 2018-08-03 10:41:21 +02:00
Linus Probert b3b8208b11 Adds complete rewrite of lua scripts
Lua scripts now build an in memory structure of all the rooms and their
contents before loading this data into the game. This enables better
possibilities to prevent monsters from spawning in bad places. Monsters
can now also spawn in coridoor rooms.
2018-07-31 14:25:29 +02:00
Linus Probert dff55a1978 Fixes some buggs
- Fixes mapbuilder pit loading nullpointer
- Fixes black main menu bg after return to main menu
- Fixes skill sparkling on new game start
2018-06-14 00:12:49 +02:00
Linus Probert be42981ff3 Fixed errors and adapted to new vim 8.1 2018-05-27 15:13:03 +02:00
Linus Probert 60052af7f5 Merge branch 'master' into dev 2018-05-25 13:46:55 +02:00
Linus Probert 4684e0409c Minor cleaning of lua scripts 2018-05-25 13:46:28 +02:00
Linus Probert 6a9a3bdbcf Removed some old debug output from pitlayouts. 2018-05-25 13:32:15 +02:00
Linus Probert 2462e4cf33 Adds sentinel monster behaviour. 2018-05-21 21:03:59 +02:00
Linus Probert 186cc7b514 Replaced state logic with behaviours instead. 2018-05-19 17:55:10 +02:00
Linus Probert 33324b6802 Less chance for pits 2018-05-15 14:15:51 +02:00
Linus Probert 524e10ac8f Adds camera shake.
Removed some old buildfiles that had accidentally made it into the repo.
2018-05-13 23:32:44 +02:00
Linus Probert f65f135bdf Fiddled a bit with the pit layouts 2018-03-30 23:42:39 +02:00
Linus_Probert cee584832e Fixed multiple pits in layout file 2018-03-26 13:53:45 +02:00
Linus Probert 0a21a2d915 Adds falling into pits
Monsters also avoid pits. Still need more pit layouts and
prevent monsters from "spawning"  in pits.
2018-03-25 23:30:26 +02:00
Linus Probert 9feed28357 Initial addition of pits
Need more options, tile type to handle damage and death.
Prevent monsters from spawning in pits etc.
2018-03-20 21:54:57 +01:00
Linus_Probert 42fd246185 Add direction to windy rooms in lua 2018-03-16 10:04:43 +01:00
Linus_Probert 07136c70f9 Windy rooms affect player
Left a possibility to make it affect projectiles.
2018-03-15 16:30:41 +01:00
Linus_Probert 97af927004 Fixed rabid dog sprite 2018-03-13 10:01:17 +01:00
Linus Probert 22bed2948f Fixed CPack and made lua work from .pack file
Adds a custom searcher to the lua table package.searcher.
2018-02-27 19:59:51 +01:00
Linus Probert 2a3f5aaa6a Added physfs for file loading and safety. 2018-02-22 12:36:24 +01:00
Linus_Probert 94363a2e95 Added monster stats generation to lua. 2018-02-20 14:22:26 +01:00
Linus_Probert f9443b1468 Hopefully fixes the "exit under decor" problem for the last time. 2018-02-16 09:10:05 +01:00
Linus_Probert a045ffc07c Fixes missing lights in coridors and exit under candle
Also some improvements to the in game menu handling.
2018-02-13 09:50:52 +01:00
Linus Probert 1bb8514a8d Fixed a minor lua bug 2018-02-10 08:00:20 +01:00
Linus_Probert 8def916504 Nicer menu background 2018-02-09 13:27:25 +01:00
Linus_Probert 73e300e343 Prevent exit from spawning under collidable.
Removed "accidental" monster player hits
2018-02-05 16:15:45 +01:00
Linus_Probert 0564f6c3a2 Info print from lua and new hash function in hashtable 2018-02-01 09:55:12 +01:00
Linus Probert a0b86eb06d Memory leaks and left over debug prints 2018-01-31 16:55:48 +01:00
Linus Probert c19fb67279 WASD movement and more logical monsters in levels. 2018-01-30 21:05:33 +01:00
Linus_Probert b13479b5e1 Monster levels, player death and player levels 2018-01-30 15:16:14 +01:00
Linus_Probert 969af2f8c2 Better labels, more treasure 2018-01-25 10:45:05 +01:00
Linus Probert 38a584f418 Added labels to monsters 2018-01-17 09:32:49 +01:00
Linus Probert 60b374f84e Levele exit and next level load 2017-12-22 06:27:58 +01:00
Linus Probert 1c48f1dd9a Added enemy behaviour to lua and monster states. 2017-12-18 12:12:24 +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 80ab804e07 More monsters 2017-12-14 09:48:49 +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 88bcc9c5ad Lua modules 2017-12-11 20:07:05 +01:00
Linus Probert 9eab032a71 Added some nice lighting to maps 2017-12-11 11:53:18 +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 4a2b709900 Better map visuals 2017-12-08 12:27:36 +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 b950673952 Attemptive lua structuring and more mapgeneration code 2017-12-06 16:02:50 +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 f5a23d6798 Nicer map creation with walls. 2017-12-05 08:13:28 +01:00
Linus Probert 7362c2370f Generate maps using lua 2017-12-02 23:32:40 +01:00