• Welcome to Jose's Read Only Forum 2023.
 

Little fun with thinGaming

Started by Eros Olmi, June 14, 2009, 10:04:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Patrice Terrier

#15
Petr,

I am downloading it asap ;)


Another general consideration:
When i see what some of us are able to achieve, while each of us is working in his little specific sphere, i come to dream to what we could do puting together our talent(s).  ;D

...  
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Eros Olmi

Quote from: Patrice Terrier on June 15, 2009, 03:45:29 PM
When i see what some of us are able to achieve, while each of us is working in his little specific sphere, i come to dream to what we could do puting together our talent(s).  ;D

Agree 100%.

And if you read the very first page in thinBasic at http://www.thinbasic.com/ "About programming passion" you will see I stated just that some years ago. That's why thinBasic is modular. I cannot do all by myself even if I would have nothing else to do. But putting together different passions in different areas something impossible can come true. And I was really lucky and honored to have found some programming friends in my thinBasic adventure.

thinBasic Script Interpreter - www.thinbasic.com | www.thinbasic.com/community
Win7Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

Patrice Terrier

Eros,

I have looked at your SDK template, but didn't understood very well how to use it with an existing DLL, for example GDImage.
Does we have to create a specific one using your template, or can we use already an existing Win32 DLL?

Petr,

I spent more than one hour testing all your examples, so far the only one that didn't work was "PlasmaTunnel.tbasic".

By the way, i would love to see "Tornado" turned into a BBPlugin  :)

I like also very much the effect of water you have done in  "WaterWithSky", especialy when the orientaion is close to horizontal.

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Eros Olmi

Quote from: Patrice Terrier on June 15, 2009, 04:54:58 PM
Eros,

I have looked at your SDK template, but didn't understood very well how to use it with an existing DLL, for example GDImage.
Does we have to create a specific one using your template, or can we use already an existing Win32 DLL?


Patrice,

maybe you can have a look at TBJ (thinBasic Journal) at http://community.thinbasic.com/index.php?board=160.0
In issue number 2 I made an introductory article on creating thinBasic modules. See if it can help.

I'm at work at the moment so I cannot reply in details but later this night I can give more info.

In order not to abuse too much of José forum about specific thinBasic issues, if you are interested, please feel free to write into thinBasic SDK dedicated forum at http://community.thinbasic.com/index.php?board=38.0 There is a Power Basic dedicated area.

Just to give you already a few detailed reply: thinBasic modules are standard WIN32 dll but with a specific set of functions. You have to follow my template for what concerns the presence of "LoadLocalSymbols" and "UnLoadLocalSymbols" but for the rest you are free.
Consider that thinBasic does not produces pCode so the module creator is responsible and free in creating to define the command syntax so the module author has to parse the new thinBasic commands he wants to creates the way it prefer using the many function thinBasic SDK exposes.

My suggestion is to start from the template and create a new one starting simple. Than when you have got the main picture ... well the limit will be your fantasy but ... you have sooooo much  ;)

See you later.
Eros
thinBasic Script Interpreter - www.thinbasic.com | www.thinbasic.com/community
Win7Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

Eros Olmi

#19
Patrice,

I had some time to create a demo thinBasic module for you on the area you are the guru: GDI+

How to check it.

  • have thinBasic already installed in your system
  • create a new folder and copy all files present in attached ZIP maintaining folder organization
  • run "ScriptExample_GDIp_LoadImage.tBasic" script.
    Script load some standard thinBasic modules (UI and FILE) that try to load GDIP module. Check keyword USES to see what is its strategy in loading thinBasic modules
    It just create a window
    loads some images from .\Images\ folder
    creates on the fly label controls and shows images on the label DC

If you want to see if thinBasic module creation can be in your range of interests, check GDIP module sources "thinBasic_GDIP.bas"
Check TBJ issue number 2 at http://community.thinbasic.com/index.php?action=dlattach;topic=2310.0;attach=3826
At page -32- I've written an introductory article on how thinBasic modules are internally organized and how to create your first thinBasic keyword.

The above can hopefully give you a start.

And of course if you need more info, just ask.

Ciao
Eros


thinBasic Script Interpreter - www.thinbasic.com | www.thinbasic.com/community
Win7Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

Patrice Terrier

Eros,

Thank you, i shall give it a try.

Petr,

I have translated "PlasmaTunnel" into a BBPlugin  :)

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Petr Schreiber

Plasma tunnel is very nice,

it was done by Matthew in TB, I have seen it in other languages too.
It is very hypnotic :)
AMD Sempron 3400+ | 1GB RAM @ 533MHz | GeForce 6200 / GeForce 9500GT | 32bit Windows XP SP3

psch.thinbasic.com

Patrice Terrier

Petr,

Indeed i was not able to run "PlasmaTunnel" because of error, the one i have turned into a BBPlugin is "Tornado" however with many changes ;)

I shall post it there in a few minutes under the name of "Vortex".

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Petr Schreiber

Hi Patrice,

yes, there is error caused by DIM <variable> without type. I will talk to Eros whether we will continue to support this syntax or not.
If not, I will correct the examples.


Petr
AMD Sempron 3400+ | 1GB RAM @ 533MHz | GeForce 6200 / GeForce 9500GT | 32bit Windows XP SP3

psch.thinbasic.com

Eros Olmi

Found
I've recently introduced a bug when added parsing for pre type declaration.
Example:
LONG MyLong
that is equivalent to
DIM Mylong AS LONG

Fixes will be present in next release.

Eros
thinBasic Script Interpreter - www.thinbasic.com | www.thinbasic.com/community
Win7Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB