Author Topic: LaserBoy "Plug-Ins"  (Read 29145 times)

0 Members and 1 Guest are viewing this topic.

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
LaserBoy "Plug-Ins"
« on: February 27, 2009, 06:25:27 pm »
I know this is not exactly what you might have in mind when you think of "plug-ins", but, since we have a nice collection of programmers here, I thought I throw this out there for some thought.

LaserBoy can create sets of frames based on functions. One kind of function takes a single frame of vector art and makes a series of frames that are an animation. Another kind of function takes a frame set as input and applies some sort of effect to the whole thing.

These functions are separated from the rest of the code in LaserBoy in their own files; ez_uail_frame_effects.cpp and ez_uail_frame_set_effects.cpp.

The neat thing about this is that YOU can add your own special effects to LaserBoy! All you need to do is make up a new function (in the appropriate cpp file) add its location (pointer to function) to a list and its name as a string. Then you have to compile this code page and re-link the executable.

It's no big deal to set up Dev-C++ on any Windows machine. Alec did it and he's not a C++ programmer! The .dev file that opens in Dev-C++ is part of the LaserBoy distro.

Once you have this going, you can tweak and experiment very quickly, because only that one code page needs to be compiled.

You call upon these functions in the output menu 'o'. They are options 4 & 5. The frame effects work on whatever frame is currently in the view. The frame set effects work on some or all of the frames that are currently loaded.

When you choose one of the effects by name, it is applied and saved as an ILDA file of the same name as the effect.

To see it, you need to open the ILDA file into the LaserBoy view.

Check it out. If nothing else, it might give you some ideas for your own code.

There is also a mechanism for creating whole frame sets from arythmetic functions (abstracts!) but it has never had any interface in the multi-platform version of LaserBoy.

James.  :)
« Last Edit: February 27, 2009, 06:27:47 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: LaserBoy "Plug-Ins"
« Reply #1 on: February 28, 2009, 02:23:58 am »
Just out of curiosity, how many people here are willing to admit that they can and have compiled the LaserBoy src directory?  ???

I know of two for sure.   ::) ;D

That's where it's at, man.  8)

James.  :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: LaserBoy "Plug-Ins"
« Reply #2 on: February 28, 2009, 02:27:18 am »
NO! Waint! Three !!!

Damn!

I'll come in again.  :-[

James.  :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline drlava

  • Sr. Member
  • ****
  • Posts: 314
  • Milliwatts: 18
    • View Profile
Re: LaserBoy "Plug-Ins"
« Reply #3 on: February 28, 2009, 05:02:42 pm »
Yep I'm one!  And while the DEV-C++ might be an unrefined developer environment, the gcc compiler is great.
 
« Last Edit: February 28, 2009, 05:04:26 pm by drlava »

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: LaserBoy "Plug-Ins"
« Reply #4 on: February 28, 2009, 05:20:50 pm »
I haven't but one of these days I'll probably check out the code.  Do you have a class diagram available?  That would be helpful.

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: LaserBoy "Plug-Ins"
« Reply #5 on: February 28, 2009, 05:37:20 pm »
A class diagram!  :P

Ha!  ::) ;D

I guess I could work one up for this forum!  8)

James.  :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: LaserBoy "Plug-Ins"
« Reply #6 on: February 28, 2009, 05:52:40 pm »
There ought to be some tool to do it for you.  Visual Studio will automatically generate them from your code.  I'm sure there is a free open source something or another to do it.

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: LaserBoy "Plug-Ins"
« Reply #7 on: March 01, 2009, 10:47:50 pm »
in dec c++ its kinda layed out..
look at it in there first

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: LaserBoy "Plug-Ins"
« Reply #8 on: March 02, 2009, 01:55:53 am »
Good point!

Dev-C++ gives you a class browser much like MSVC++.

I'd be THRILLED to get into some technical discussions about it!

;D ;) ;D ;) ;D ;) ;D ;) ;D ;) ;D ;) ;D ;) ;D ;) ;D ;) ;D ;) ;D ;) ;D

You could use MSVC++ to compile it. But it's a lot easier to just get Dev-C++ and use its own online updater to get the SDL stuff. It is GCC, after all, I mean WTF !!!  ;D

http://www.bloodshed.net/devcpp.html

James.  :)
« Last Edit: March 02, 2009, 02:05:39 am by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.7 © 2008-2024, SimplePortal