Page 1 of 2

Someone interested in some libs/includes?

Posted: Sun Aug 09, 2020 12:42 pm
by Allanon
Hello Hollywood coders!

Recently I've decided to publish all my stuff on GitHub and I started to upload my libraries (which are includes in plain Hollywood), I've included a readme with some basic instruction on how to install them (it's very simple!).

I plan to upload what I've coded it the last years to give my contribute to the community, the libraries are updated because I'm still using then and from time to time I fix bugs and add functionalities, so the code is not obsolete.
Time permitting, every week, I'll check a lib adding english comments (and removing italian ones), putting a bit of docs and I'll push it on GitHub, if you have questions please ask here :)

Some notes:
- Where possible I've included examples in separate files
- But you will also find tests and examples embedded in the include, for example, for the GFX library, you will find some tests under:
GFX.Test_xxx(), look at the bottom of the source, there is a list of all available tests.
- All available functions & methods are documented in the source, sorry but I don't have time to produce a proper documentation :)
- I'll try to keep this thread updated

My GitHub Repo

Happy coding!

Re: Someone interested in some libs/includes?

Posted: Sun Aug 09, 2020 1:15 pm
by Bugala
Thank you!

Re: Someone interested in some libs/includes?

Posted: Tue Aug 11, 2020 5:04 pm
by ocean77
Awesome! Thank you. :)

Re: Someone interested in some libs/includes?

Posted: Tue Aug 11, 2020 5:38 pm
by Allanon
I've added another include called G2D, it has a full-featured skinning system :)
Here is the contents:

Code: Select all

 :: POINT 2D OBJECT ::
 G2D.Point:New()
 G2D.Point:Distance()
 G2D.Point:DotProduct()
 G2D.Point:MidPoint()
 G2D.Point:Normal2D()
 G2D.Point:Normalize()
 G2D.Point:Rotate()
 G2D.Point:Scale()
 
 :: POLYGON OBJECT ::
 G2D.Poly:New()
 G2D.Poly:Collide()
 G2D.Poly:Draw()
 G2D.Poly:Project()
 G2D.Poly:SetAnchor()
 G2D.Poly:SetAngle()
 G2D.Poly:SetScale()
 G2D.Poly:Translate()
 
 :: AREA OBJECT ::
 G2D.Area:New()
 G2D.Area:Box()
 G2D.Area:FillColor()
 G2D.Area:FillPattern()
 G2D.Area:Move()
 G2D.Area:Scale()
 G2D.Area:SkinBevel()
 G2D.Area:SkinColor()
 G2D.Area:SkinFitMax()
 G2D.Area:SkinFitMin()
 G2D.Area:SkinGradient()
 G2D.Area:SkinHPattern()
 G2D.Area:SkinHPattern3S()
 G2D.Area:SkinMulti()
 G2D.Area:SkinPattern()
 G2D.Area:SkinPattern9S()
 G2D.Area:SkinQuick()
 G2D.Area:SkinShades()
 G2D.Area:SkinStretch()
 G2D.Area:SkinVPattern()
 G2D.Area:SkinVPattern3S()
 G2D.Area:Snapshot()
 
 :: BG Picture ::
 G2D.BGPic.CreateSkinned()
:)

Re: Someone interested in some libs/includes?

Posted: Tue Aug 11, 2020 6:43 pm
by airsoftsoftwair
Nice! Go ahead and post some more :)

Re: Someone interested in some libs/includes?

Posted: Fri Aug 14, 2020 11:51 pm
by Clyde
Great stuff, thanks!

Re: Someone interested in some libs/includes?

Posted: Sat Sep 26, 2020 10:13 am
by Allanon
- Added G2D Lib examples, this is useful especially for the skin system.
- Added JSON Lib, an include file I use to decode JSON answers I get querying servers.

Code: Select all

JSON Lib CONTENTS
 =================
 :: Main Functions ::
 JSON.Decode()
 
 :: Support Functions ::
 JSON._IsArrayEnded()
 JSON._IsObjectEnded()
 JSON._ReadArray()
 JSON._ReadNumber()
 JSON._ReadObject()
 JSON._ReadPair()
 JSON._ReadString()
 JSON._ReadValue()
:)

Re: Someone interested in some libs/includes?

Posted: Sat Sep 26, 2020 1:42 pm
by Bugala
Oh, I am getting spoiled here with all the JSON options.

You, Clyde, and upcoming official Hollywood JSON support. Having difficulty in deciding which one to use now.

Re: Someone interested in some libs/includes?

Posted: Sat Sep 26, 2020 3:59 pm
by Allanon
Hi @Bugala, my lib only decode JSON into HW tables, no encoding options :)

Re: Someone interested in some libs/includes?

Posted: Sat Oct 03, 2020 11:20 am
by Bugala
well, that is all I need currently. I dont plan to encode JSON tables, only decode them.