Forum Replies Created
- 
		AuthorPosts
 - 
		
			
				
Ethernaut’s code changed to use a list of Vec2f:
Monkey1234567891011121314151617181920212223242526272829303132333435363738#Import "<std>"Using std..Function Main()Local list := New List< Vec2f >'Populates listFor Local n := 0 Until 20list.Add( New Vec2f )Next'' Set value, copy struct back into list'Local iterator := list.All()While Not iterator.AtEndLocal item := iterator.Currentitem.x = Rnd( 100.0 )iterator.Current = itemiterator.Bump()Wend'' read values'For Local item := Eachin listPrint item.xEndEndAssign new value:
Monkey123456789101112131415161718192021222324252627282930313233#Import "<std>"Using std..Function Main()Local list := New List< Vec2f >'Populates listFor Local n := 0 Until 20list.Add( New Vec2f )Next'' Set new value'Local iterator := list.All()While Not iterator.AtEnditerator.Current = New Vec2f( Rnd(100.0), Rnd(100.0) )iterator.Bump()Wend'' read values'For Local item := Eachin listPrint item.x + " : " + item.yEndEndGot a new request for custom work yesterday. A woman has an idea
to start a new company and she is looking for someone to bring
her idea into reality. She is looking for a coder/programmer/software-developer.
At start of a new business, developing a software using a full-time
company ($70+/hour) may be too expensive, so she is looking for a cheaper solution.She had a program for desktop in mind.
Thanks to MonkeyX2, I can at least cover Windows+Linux+Mac+Android+iOS,
and maybe Web (MX2 using EMScripten is not the best solution for Web, IMO).
So, thanks to MX2, I can bring-in new ideas to make the application
portable for use on phones and tablets as well — the modern world.MX2 may open completely new doors, possibilities, ideas…
Thanks for that, Mark!
‘Override’ replaces a ‘Virtual’ method by a new method.
Class X has a virtual method doSomething().
Class Y inherits/extends class X.
Class Y would like to change the method doSomething(),
so it overrides it. When calling Y.doSomething(),
the overriden/replaced method is executed.Without the keyword ‘Override’ you could replace a
method by accident, just by using the same method
fingerprint (method name + parameters).
To avoid such accidents, you have to explicitely
use ‘Override’ to make sure it is really what you want
to do.Search for “OOP override”: https://en.wikipedia.org/wiki/Method_overriding
@nerobot:
Is it possible to configure shortcut keys? I would like to have
“Compile+Run” as F5 key, and the new “Compile+Debug” as F6 for example.
Pressing 2 keys (CMD+R / CMD+D) to trigger this most-used actions is annoying.> But strange still.
Of course still a bug that needs to be looked at by Mark.
Works with ‘0.1’, but with ‘.1’ there is a problem somewhere
in the semantic process, automatic type conversion, or
code generation.It has nothing to do with ‘+=’, it is that ‘.1’ is not correctly converted to integer.
The result is a random (uninitialized) number:Monkey12345678910111213141516171819202122232425Function IntFunc( value:Int )Print valueEndFunction Main()For Local i:Int = 1 To 5IntFunc(.1) ' Shows the same value 5 timesNextPrint "----------"Local x:Int ' Display 5 times different valuex = .1Print xx = .1Print xx = .1Print xx = .1Print xx = .1Print xEndFor the loop it displays the same number 5 times, because it is only generated once.
For the Print statements, each of the 5 assignments result in different uninitialzed/random numbers.Output:
Monkey1234567891011121712979817129798171297981712979817129798-----------1467958384-1467957952-1467957504-1467957056-1467956608The generated C++ code has the wrong numbers directly implemented (hard coded):
C++1234567891011121314151617181920212223{bbInt l_i=1;for(;(l_i<=5);l_i+=1){g_default_IntFunc(4312097094);}}bb_print(bbString(L"----------",10));bbInt l_x{};l_x=140538451901328;bb_print(bbString(l_x));l_x=140538451901760;bb_print(bbString(l_x));l_x=140538451902208;bb_print(bbString(l_x));l_x=140538451902656;bb_print(bbString(l_x));l_x=140538451903104;bb_print(bbString(l_x));}void g_default_IntFunc(bbInt l_value){bb_print(bbString(l_value));}Two things come to my mind:
1. Windows DPI scaling. Do you have a HighDPI display (200% or so)?
2. Graphics card driver settings. Check GPU driver settings. (NVidia/AMD control center?)image.Texture.TextureFilter = true/false
image.Texture.WrapST = true/false+1 for AdamStrange
For Linux, Mac, Windows: http://www.kvirc.net/ (free, open-source)
Okay, thanks Mark!
Mollusk ( http://grudlux.com/mollusk/ ) supports MX1 + MX2
and is actively developed.Mark wants to see every bug report on GitHub. Opening an issue
on github increases the chance for a fix, as far as I understand it.@javicervera:
Please don’t use “mx23d”…“MX2-3D” / “M2-3D”/ “MX-3D” / “MonkeyX2 3D” / “Monkey 2 3D” / “MonkeyX 3D”
would be Okay.
“mx23d” looks weird… and it would be better to
have a name like “MX2-3D” / “MonkeyX2 3D” / “Monkey2 3D”.> Something like ‘Out’ or Var’ params will likely happen at some point, not sure when.
+1 for ‘Out’ params.
 - 
		AuthorPosts