SyntaxBomb - Indie Coders

General Category => General Discussion => Topic started by: Josh on September 26, 2017, 11:22:56

Title: Hello
Post by: Josh on September 26, 2017, 11:22:56
Hi everyone, this is Josh the founder of Leadwerks Software.  It is very shocking how the Blitz community disappeared overnight.  It seems this is the best place for the survivors to gather.  I used BlitzMax to make our previous editor and am now using C++11 and Lua exclusively.

Leadwerks 5 has begun development (https://www.leadwerks.com/community/blogs/entry/2051-leadwerks-game-engine-5-is-coming/) and will make use of C++11 features to make game development easier than ever.  Shared pointers are basically the same kind of garbage collection BlitzMax used, where it uses reference counting.  You still have to watch out for circular references, but that's the reason BMX was so fast.

Here's some Leadwerks 5 code:
#include "Leadwerks.h"

using namespace Leadwerks;

int main(int argc, const char *argv[])
{
auto window = CreateWindow();
auto context = CreateContext(window);
auto world = CreateWorld();

auto camera = CreateCamera(world);
camera->Move(0, 0, -3);

auto light = CreateDirectionalLight(world);
light->SetRotation(35, 35, 0);
light->SetShadowMode(0);

auto model = CreateBox(world);
model->SetColor(0.0, 1.0, 0.92);

while (not window->Closed())
{
if (window->KeyHit(EscapeKey)) break;
if (model) model->Turn(0, 1, 0);
if (window->KeyHit(SpaceKey)) model = nullptr;
world->Update();
world->Render(context);
}
return 0;
}


And in Lua it's even simpler:
local window = CreateWindow()
local context = CreateContext(window)
local world = CreateWorld()

local camera = CreateCamera(world)
camera:Move(0, 0, -3)

local light = CreateDirectionalLight(world)
light:SetRotation(35, 35, 0)
light:SetShadowMode(0)

local model = CreateBox(world)
model:SetColor(0.0, 1.0, 0.92)

while not window:Closed() do
if window:KeyHit(EscapeKey) then break end
if model) model:Turn(0, 1, 0)
if window:KeyHit(SpaceKey) then model = nil end
world:Update()
world:Render(context)
end


Anyways, keep an eye out for more news and I will see you around.
Title: Re: Hello
Post by: Steve Elliott on September 26, 2017, 11:26:52
Welcome Josh.  Yes, the old faces are gradually coming here.
Title: Re: Hello
Post by: MikeHart on September 26, 2017, 11:39:17
Hi Josh, good luck with LW5
Title: Re: Hello
Post by: Naughty Alien on September 26, 2017, 12:26:46
..hey man..very nice to see you around here..welcome :)
Title: Re: Hello
Post by: sphinx on September 26, 2017, 14:27:10
Welcome Josh :)
Title: Re: Hello
Post by: RobFarley on September 26, 2017, 15:54:49
Halo! Nice to see you! One day I might write another game! Good to see you're still at it!