Grid Engine

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
ZenX2
Citizen
Posts: 89
Joined: Wed Nov 17, 2010 5:35 am

Grid Engine

Post by ZenX2 »

In the past few weeks I have written a simple game engine I have titled Grid.

Pictures: (from the mod I'm working on, GridQuest)
Image
Image

Version 0.1.0 [11/15/10]
-Dynamic Shadows
-Additive Lighting
-Walls
-"Easy" entity creation for new types of entities
-Player movement (w, s, a, and d)
-Directional activation of entities (using arrow keys)
-Cornflower blue!

Version 0.1.3 [11/16/10]
-The start of an inventory system
-Doors (lighting doesn't work well with this, even re-rendering a single light is slow.)
-2 Sensors:
--Switches
--Touch Sensors (stand on it to activate)
-Loading a level clears the ents table
-working file loading (sorry about that)

Version 0.1.4 [11/17/10]
-Improved light calculation speed by 9000

Version 0.1.6 [11/19/10]
-Menu system
-Use TFGH to control menu
--T moves selection up
--G moves selection down
--H accept your selection
--F if there is a back button in the current menu, it will use it
-Better level loading
-An example of a level loader

Version 0.1.6_01 [11/19/10]
-NPCs with customizable ai

Version 0.1.6_02 [11/19/1 :crazy: ]
-View Movement!
--Have levels larger than the window!

Version 0.1.7 [11/25/10 - Thanksgiving!]
-Pausing with p or Pause(true/false)
-Main menu
-An improved version of MiddleClass (that's right, you can inherit now!)
-dialogue menu (with wrapping text!)
-slightly faster light calculation (only checks pixels within the radius!)
-everything else I've done since the last update!

Version 0.1.8 [12/4/10]
-Added chest
-Added better inventories
-Removed p pausing (easily abused)
-Hook library for...
-MODDING SUPPORT! :crazy:
--mods go in mods folder, require them in loader.lua (or use requiredir("mods/folder") to require a directory full of files)
--An example of the hook system is included, gives the player an inventory with 10 spaces for holding items
-Yet a smaller class library, thank you mud

The Grid engine can be used for many 2D game styles. If you can code it for an ASCII game, it should work, and beyond. With unique control, menu, 2D lighting, and AI systems, along with many others, you can create games from Rougelikes to puzzles.
Attachments
gui.zip
Description on Page 6
(2.45 KiB) Downloaded 340 times
grid.love
(20.33 KiB) Downloaded 489 times
Last edited by ZenX2 on Thu Jan 13, 2011 7:06 am, edited 15 times in total.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: Grid Engine

Post by TechnoCat »

missing ext/classlib.lua.
i'm excited to check this game out.
User avatar
ZenX2
Citizen
Posts: 89
Joined: Wed Nov 17, 2010 5:35 am

Re: Grid Engine

Post by ZenX2 »

It's not missing as far as I can tell...
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: Grid Engine

Post by TechnoCat »

I think it is
Attachments
missing.png
missing.png (37.25 KiB) Viewed 10147 times
User avatar
ZenX2
Citizen
Posts: 89
Joined: Wed Nov 17, 2010 5:35 am

Re: Grid Engine

Post by ZenX2 »

It's right there.
At the bottom.
...
Are you hazing me?
If I need obey in my avatar to be taken seriously, I'll do it.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: Grid Engine

Post by TechnoCat »

Oh, you're right, I got thrown off by the traceback saying it isn't there and the z-a sorting.
I'm still wondering to myself why it says it isn't there when i run it.

It runs when I extract it and then run them as loose files. Just not in the love. Some kind of filesystem syntax is wrong probably then.
User avatar
ZenX2
Citizen
Posts: 89
Joined: Wed Nov 17, 2010 5:35 am

Re: Grid Engine

Post by ZenX2 »

Strange.
Ooh, my avatar turned out nicely.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: Grid Engine

Post by TechnoCat »

This fixed it:

Code: Select all

require("ext/classlib.lua")
require("ext/color.lua")
require("ext/math.lua")
require("ext/pixel.lua")
require("ext/vec2.lua")
require("ext/entity.lua")
require("ents/player.lua")
require("ents/light.lua")
require("ents/wall.lua")
User avatar
ZenX2
Citizen
Posts: 89
Joined: Wed Nov 17, 2010 5:35 am

Re: Grid Engine

Post by ZenX2 »

I was unaware require was used in LOVE, I'll fix it in the next version.
User avatar
arquivista
No longer with us
Posts: 266
Joined: Tue Jul 06, 2010 8:39 am
Location: Insert Geolocation tag here
Contact:

Re: Grid Engine

Post by arquivista »

Awesome ZenX2. Perfect for a classic roguelike. This is a "port" from another Lua project? Ah, if you need another LOVE engine of LOS, FOV or A*star path finding to add you have Bartoleo ported engines (http://love2d.org/forums/viewtopic.php?f=5&t=1797) . A bit unrelated since is tiled you have my old roguelike engine (http://love2d.org/forums/viewtopic.php?f=5&t=1942)
--------------------------------------------------------
To Do: Insert Signature Here
--------------------------------------------------------
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 92 guests