Jump to content


Photo

[Example] Some kind of arrow

Posted by aiaf, 05 November 2016 · 185 views

Draws a box from one vector to another.
To be used as some kind of arrow.

Need feedback if its a better way to do this, but so far seem to be ok for my purposes.

Example usage:
ArrowUi *t = new ArrowUi(Vec3(0.0, 0.0, 0.0), testshadow->GetModel()->GetPosition());


class ArrowUi {
    private:
    Model *model;
    Entity *pivot;
    Vec3...


Photo

[Example] Basic missile class

Posted by aiaf, 10 October 2016 · 181 views

Want to share this maybe will help someone.

Its pretty basic but it has missile effect by distance and at certain time.
Should be easy to extend.

trigger the missile:

tm3 = new Missile(Vec3(5.0f, 5.0f, 0.0f));
tm2 = new Missile(Vec3(0.0f, 0.0f, 0.0f), tm3->GetPosition(), true);


and call the Loop method in the game loop


#ifndef...


Photo

Leadwerks and gcc 5.2.1 (regarding c++ abi)

Posted by aiaf, 23 October 2015 · 684 views

I just updated my laptop to ubuntu 15.10 (from 15.04).

And got into some intereasting issues.

I rebuild my game with the new compiler, and it doesnt link anymore.

I got a bunch of undefined references like below:

undefined reference to `Leadwerks::Window::Create(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>...


Photo

Example c++ project with cmake

Posted by aiaf, 11 October 2015 · 460 views

Just started with Leadwerks.Heres a way to build a c++ project using cmake on linux.

Start from an existing project (lets call it Proj):

Copy
~/.steam/steamapps/common/Leadwerks
into Source/Libs.
Now you have Proj/Source/Libs/Leadwerks (this directory contains all the header files and static libs needed).

Can use this Libs dir to add any other external...





March 2017

S M T W T F S
   1234
567891011
12131415161718
19202122232425
2627282930 31  

Recent Comments

Search My Blog

Tags