I'm working on a Gideros API manual that's completely generated by the existing API documentation. Hopefully this will allow us to see more easily what's missing and if any corrections need to be made. Because it's generated from the data as the data gets updated I can just run the script to make a new version of the manual.
Currently it's missing two things, a html parser to properly format descriptions and a syntax highlighter to colour the examples.
Here it is so far:
https://www.dropbox.com/s/62dtqjtfqsbl2y3/GiderosApi.pdf?dl=0If you find anything wrong or missing (compared to the online API docs) then please let me know. Don't forget the descriptions might look a little odd because of no formatting and the listings are not yet in colour!
The plan is to have the pdf available as a free download, if possible a free e-book on Amazon and as a paid for paper book on Amazon or Lulu - which ever is the cheaper for people to buy. The paper version hopefully will be available in either b/w or colour.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
https://deluxepixel.com
Comments
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: SinisterSoft, MoKaLux
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
Likes: SinisterSoft
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
"An inactive body is still owned by a [[b2.World]]"
this looks like a wiki cross reference. Ideally you should set cross references as links.
Likes: SinisterSoft
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
As for links, for the very first version I won't have them as they are both forward and backward references so I'll have to track where they are in the pdf and update on a second pass.
Syntax highlighting will also come later as I'll be making both a 'B/W' and a 'colour edition' - it costs nothing to add them to Amazon as printed books - they print on demand.
Likes: john26
https://deluxepixel.com
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
Here is the new version with constants and events added, can you take a look and see if the format for showing events makes sense.
https://www.dropbox.com/s/62dtqjtfqsbl2y3/GiderosApi.pdf?dl=0
Likes: antix
https://deluxepixel.com
I would prefer to see the Events listed according to their symbolic name eg ENTER_FRAME. In your case you call it the "enterFrame event" but I always think of it as the ENTER_FRAME event or even Event.ENTER_FRAME... Gideros allows two uses
addEventListener(Event.ENTER_FRAME...)
addEventListener("enterFrame"...)
since Event.ENTER_FRAME = "enterFrame"
Personally I always use the former and think it's easier to spot
So I would list the section heading like this
Sprite > ENTER_FRAME event
Then in the function description I would call the function "onEnterFrame" not "enterFrame" to distinguish from the event string name so
function onEnterFrame({deltaTime, time, frameCount})
so just prepend "on" to each one and capitalise the first letter of the next word
Likes: antix
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
I'll have to think about it, but I think onEnterFrame might just confuse people?
https://deluxepixel.com
https://deluxepixel.com
Also a big fan of "on" in onEnterFrame because it tells you the method is an event handler.
Likes: antix
string.gsub and .gmatch needs lots of paragraph marks. It's all run together into a single paragraph. Might be other examples in the lua library.
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
Likes: SinisterSoft
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
https://deluxepixel.com
https://deluxepixel.com
Likes: SinisterSoft
https://www.dropbox.com/s/62dtqjtfqsbl2y3/GiderosApi.pdf?dl=0
I need to put in a html parser for the descriptions and a syntax highlighter for the code examples.
Likes: oleg, pie, antix
https://deluxepixel.com
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
drop 1 more manual but only with the latest changes that have changed in the latest version of Gideros
Likes: SinisterSoft
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Likes: oleg, Apollo14, totebo
https://deluxepixel.com
Likes: Apollo14