March 11, 2018 at 3:41 pm #13962
Hi, I want to learn how to use Monkey 2, so the only viable way I see of doing it is to create a website and make tutorials, and give feedback to the knowledge. My concern is if there are no inconveniences with using the respective Monkey 2 logos and if there is a specific license to use them.
On the other hand, how do I find the plugin that has the syntax to write Monkey code in WordPress.
Kind regards.March 11, 2018 at 10:17 pm #13969
Yes, a Spanish site would be great!
Logos etc can be found at the download link above:
As for syntax highlighing, this site uses the crayon plugin which has ‘monkey’ as one of its supported languages so we just use that!March 12, 2018 at 12:31 am #13970
Que? Hahaha! 🙂
Si necesitas ayuda, posiblemente te pueda ayudar. Ultimamente no he tenido tiempo para dedicar a la programación pero cuando pueda lo hare.
Mi español no es muy bueno pero ojalá y te sirva en algo.
Desde EEUU, Colorado.March 12, 2018 at 9:11 pm #13986
@Mark Sibly Thanks You!! 🙂
@jesse o.O? Es muy agradable que alguien hable español 🙂
Well, I’ve already started writing on the site, and in a way what I learned with Blitz3D and especially with BlitzMax helps a little bit to understand the power of Monkey 2. Although there are strange things I can’t understand about everything. Such as the following code.12345' BlitzMaxLocal numero:Byte = 255Print numero ' Print 255 Ok!Monkey1234567891011121314151617' Monkey 2Class boxField visible:Bool = TrueEndFunction Main()Local myBox:box=New boxLocal numero:Byte = 255Print(myBox.visible)Print (numero) ' Return -1 <<< o.O?End
I don’t know what I’m missing, in BlitzMax a byte data type has a range from my perspective of 0 to 255, in Monkey 2 obviously something is happening. What is it?
Kind regards.March 12, 2018 at 9:35 pm #13987
@yue – The based types are all signed, for unsigned “Yue” can add the “U” to the prefix the data type for the unsigned version.
Byte 8 bit signed integer.
UByte 8 bit unsigned integer.March 12, 2018 at 11:58 pm #13988
@yue if you have time watch this video:
cambia las opciones the subtitulos a “autoTranslate ->Spanish”.March 23, 2018 at 11:33 pm #14120
All integral datatypes in monkey2 are ‘signed’ by default with ‘unsigned’ variants of each. For example, ‘i:Int’ is a signed int, while ‘i:UInt’ is unsigned. So ‘b:UByte=255’ should do what you expect, as UByte is the unsigned variant of Byte.
With blitzmax, you didn’t get a choice: byte and short were always unsigned, int and long were always signed (I think it was).
You must be logged in to reply to this topic.