Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Darkness Awaits Template For 3.6+


Recommended Posts

Hey all,

 

As a curiosity, over the weekend I found the old install of the 3.0 demo that included assets from the old sample game "Darkness Awaits". While models, textures of this project might be on the template, I don't think the scripts are. The engine has come a long way since 3.0 and instead of simply just porting assets into the newer engine and call it a day, I took the time to streamline code, textures, and fix things that were broken in the old demo. This way, the template is another example of how to make games using Leadwerks!

 

Changes include:

  • The start map has been updated visually showing off the current features of the engine such as deferred shadows and decals. There is now more Goblins!
  • Normal maps are now blue instead of the magenta color they where before.
  • Adjusted some speculator settings in most materials.
  • Removed any instances of mobile/touch controls.
  • All code works with current SDK scripts (Such as the current PushButton.lua).
  • Barbarian and Goblin models both have normal and spec maps for their sheets and weapons.
  • The Player now dies and displays a GameOver screen.
  • Player's healthbar has been fixed when the player's health reached 0.
  • Player and Goblin scripts now use the ReleaseTables script.
  • Other compatibility edits.
  • Player and Goblin scripts calls animation names instead of sequence numbers.
  • The Player's Delete() function got replaced with Release().
  • Fixed Goblin's Navigation code.
  • Goblins now stop attacking the player when they are dead.
  • Player code now creates a camera instead of the mapper having to add one.
  • Player and Goblins now have footsteps sounds.
  • Models had their shapes redone in the model editor instead of the old shape tool that's under the Legacy Features.
  • Added Crate Model.
  • Prefabs where updated/fixed.
  • Removed the switch prefab (it was broken, and broke the editor).
  • The template still uses the older App.lua due to it's menu system. However, it's been modified to include newer additions in later versions of that script. (map changing, settings via Properties)

You can download the file here on my GitHub. Install it under Steam\steamapps\common\Leadwerks Game Engine\Templates. Should work on both Windows and Linux. I ported this project due to the fact I felt like this game showed how to make a simple menu/startscreen in Lua without needing FlowGUI, LEX, or other things.

 

Also another reminder that I just did the port/fixes. "Darkness Awaits" was originally created by Josh, Chris Vossen, and other members who where involved. Again, I did this out of curiosity, and I thought it would benefit the community if it was re-released as a template. If you have any problems, let me know.

 

da.png

  • Upvote 12

I made this with Leadwerks Game Engine!

CycloneVectronic - Darkness Awaits Template - Rolly: The Rollable Ball That Rolls Too Much

If you like my work, consider supporting me on Patreon!

Link to post
Share on other sites
  • 2 months later...

This is really fantastic to see as a template. I think I should add the ability to publish templates in the Workshop, this is great.

  • Upvote 6

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to post
Share on other sites

Thanks Josh! I found it an interesting project to do converting an old template to the current version of Leadwerks. It really shows how far the engine has came since. I'm all for custom template support. and I'm glad you've made the system very simple and open. :)

  • Upvote 1

I made this with Leadwerks Game Engine!

CycloneVectronic - Darkness Awaits Template - Rolly: The Rollable Ball That Rolls Too Much

If you like my work, consider supporting me on Patreon!

Link to post
Share on other sites
  • 5 months later...

I'm getting this error:

 

"F:/Development/Leadwerks/Projects/rpg_template/scripts/objects/player/player.lua" : 58 : attempt to index field 'script' (a nil value)

 

He can't find this script:

Failed to load component "F:/Development/Leadwerks/Projects/rpg_template/Scripts/Objects/Cameras/3rdPersonFollow.lua"

Link to post
Share on other sites

I'm getting this error:

 

"F:/Development/Leadwerks/Projects/rpg_template/scripts/objects/player/player.lua" : 58 : attempt to index field 'script' (a nil value)

 

He can't find this script:

Failed to load component "F:/Development/Leadwerks/Projects/rpg_template/Scripts/Objects/Cameras/3rdPersonFollow.lua"

 

Fixed, thanks. I've pushed the script to the repo. Seems it was removed from the common folder as of late.

I made this with Leadwerks Game Engine!

CycloneVectronic - Darkness Awaits Template - Rolly: The Rollable Ball That Rolls Too Much

If you like my work, consider supporting me on Patreon!

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...