Hello

Started by Josh, September 26, 2017, 11:22:56

Previous topic - Next topic

Josh

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 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.

Steve Elliott

Welcome Josh.  Yes, the old faces are gradually coming here.
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

MikeHart

Hi Josh, good luck with LW5

Naughty Alien

..hey man..very nice to see you around here..welcome :)

sphinx

Kind regards,
Maher F. Farag
www.ancientsoft.com
www.osakit.com

RobFarley

Halo! Nice to see you! One day I might write another game! Good to see you're still at it!
Cheers, Rob