Forum Replies Created
-
AuthorPosts
-
Oops, swearing removed.
I am still working my way through the workings of Mark’s DocsMaker tool in mx2cc. Hopefully once this is done I can automate the process of generating versions for the sphinx tool chain I am currently using.
It may be I am the only one interested in hardcopy printed manuals for monkey2 so I am going to take it slow for now.
Darn, I was hoping you were going to declare 65536 was the new order to keep wrap functions and normal packing optimal.
I have been using latest monkey2 with visual studio on windows and it rocks, for me this feature alone makes monkey2 a superior working environment over BlitzMax.
I also found mojox impenetrable, the only real example is the original ted editor which will make an excellent reference for the person who steps up and takes on the documentation job.
The important thing to note is monkey2 is only 99% complete, the last 1% as anyone who has published anything of this nature is a HUGE amount of work and the community needs be patient, supportive and willing to pitch in with constructive feedback where appropriate.
Reasons why integral values for rotation could be considered better:
- exact precision of degrees, with radians the only angle that can be stated precisely is 0
- fractions of Math.Pi are neither human readable, integral or rational
- navigation has been using degrees for longitude, latitude, bearing etc. since beginning of modern time
- integers rock, floats and doubles don’t
- rational numbers rock, irrational numbers don’t
/opinion
So what do you mean based on physics – applyforce, applyimpulse, setlinearvelocity or what exactly?
My guess would be to create a new body at the new location. Moving stuff without using physical force will just break stuff in most physics simulations.
I was thinking version control would be a great feature with the base class calling itch.io with httprequest and automatically downloading any new builds.
Monkey123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145' ncurses.monkey2' linux console control for monkey2' sudo apt-get install ncurses-dev#Import "<libc>"#Import "<libncurses.a>"#Import "<ncurses.h>"Externstruct MEVENTfield id:shortfield x:intfield y:intfield z:intfield bstate:intendstruct mmask_tendclass WINDOWendconst ALL_MOUSE_EVENTS:mmask_tconst OK:intconst A_STANDOUT:intconst A_UNDERLINE:intconst A_REVERSE:intconst A_PROTECT:intconst A_INVIS:intconst A_DIM:intconst A_BOLD:intconst A_BLINK:intconst A_ALTCHARSET:intconst A_ATTRIBUTES:intconst A_CHARTEXT:intconst A_COLOR:intglobal COLS:intglobal LINES:intconst KEY_MOUSE:intconst KEY_DOWN:intconst KEY_UP:intconst KEY_LEFT:intconst KEY_RIGHT:intconst KEY_HOME:intconst KEY_BACKSPACE:intconst KEY_DC:intconst KEY_IC:intconst KEY_ENTER:intconst KEY_F1:intconst KEY_F2:intconst KEY_F3:intconst COLOR_BLACK:intconst COLOR_BLUE:intconst COLOR_GREEN:intconst COLOR_CYAN:intconst COLOR_RED:intconst COLOR_MAGENTA:intconst COLOR_YELLOW:intconst COLOR_WHITE:intFunction initscr()Function noecho()Function echo()Function raw()Function noraw()Function printw:Int(text:CString)Function refresh:Int()function clear:int()Function getch:Int()function curs_set(cursor:int)function newwin:WINDOW(w:int,h:int,x:int,y:int)function wclear(window:WINDOW)function wrefresh(window:WINDOW)function box(window:WINDOW,a:int,b:int)function wprintw(window:WINDOW,text:CString)function mvwprintw(window:WINDOW,x:int,y:int,text:CString)function delwin(window:WINDOW)Function wgetch:Int(window:WINDOW)Function endwin:Int()function wattron(window:WINDOW,attribute:int)function wattroff(window:WINDOW,attribute:int)function keypad(window:WINDOW,enable:bool)function getmouse:int(event:MEVENT ptr)function mousemask:mmask_t(events:mmask_t, oldmask:mmask_t ptr)PublicFunction Main()initscr()noecho()curs_set(0)local w:=newwin(10,32,4,(COLS-32)/2)local oldmask:mmask_tlocal newmask:=mousemask(ALL_MOUSE_EVENTS, varptr oldmask)box(w,0,0)mvwprintw(w,3,2,"HELLO")wattron(w,A_BOLD)mvwprintw(w,4,2,"("+LINES+","+COLS+")")wattroff(w,A_BOLD)mvwprintw(w,8,2,"Escape To Quit")wrefresh(w)keypad(w,true)local e:MEVENTwhile truelocal key:=wgetch(w)mvwprintw(w,6,2,"key="+key)if key=27 exitif key=113 exitif key=KEY_MOUSElocal r:=getmouse(varptr e)if r=OKmvwprintw(w,6,2,"mouse="+e.id+","+e.x+","+e.y+","+e.z+","+e.bstate+" ")endifendifwendwclear(w)wrefresh(w)delwin(w)endwin()EndA product manager featuring all enabled platforms could also make a great marketing image.
I personally want to follow convention set by mx2cc and bananas and so was a bit distressed Ted2Go had broken ranks.
With mx2cc, binary name is lower case binary with _target appended. Making this mandatory could be considered simplification.
Monkey1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859' native win32 window, menu and request#import "<libc>"#Import "<windows.h>"#Import "<libgdi32.a>"#Import "<libuser32.a>"#Import "<libkernel32.a>"#Import "<libversion.a>"ExternStruct HINSTANCEEndStruct HWNDEnd'Alias HANDLE:Void Ptr'Alias HWND:IntAlias DWORD:IntAlias HMENU:Int'Alias HINSTANCE:HANDLEAlias LPCTSTR:CStringAlias LPVOID:Void PtrFunction CreateWindowEx:HWND(dwExStyle:DWORD,lpClassName:CString,lpWindowName:CString,dwStyle:DWORD,x:Int,y:Int,nWidth:Int,nHeight:Int,hWndParent:HWND,hMenu:HMENU,hInstance:HINSTANCE,lpParam:LPVOID)PublicFunction Main()Local winClass:=New Byte[32]Local winTitle:=New Byte[32]Local lparam:LPVOIDLocal parent:HWNDLocal instance:HINSTANCE'=Cast<HINSTANCE>(0)Local hwnd:=CreateWindowEx(0,"Class","Title",0, 0,0,320,240, parent,0, instance, lparam)' Print "hellohellohello"EndMy comment was not about Ted2 but regarding my own command lines apps.
I think the binaries produced end up capitalised due to BuildProduct.monkey2[84]:
_appName=StripDir( StripExt( srcPath ) ).Capitalize()
As a Linux user building command line apps why would I want the binary name forcibly capitalised?
Perhaps in future all new “features” could at the least be opt-out.
Instead of blaming your graphics card maybe you should blame the number of particles you are drawing for your smoke effect
Reflection may be work in progress and not yet documented and the module looks a bit empty but there is a reflectiontest.monkey2 file in the bananas folder.
I am here for the 3D.
My new graphics card spins it’s fan in anticipation.
Mojo3D please and thankyou x 5
-
AuthorPosts