Forum Replies Created
-
AuthorPosts
-
That looks pretty sweet, the lighting makes it look rather intense! Is this using mojo or has it been heavily modified/a custom graphics implementation?
On the Itch page I find the contrast between the text and background a bit hard to read
Yup you betcha, getting the information is pretty darn easy.
I think I’ll work towards splitting this up into some modules:
REST = help with getting REST resources, this would be quite useful for a lot scenarios now as it seems like all online service use REST now
GitHub = use the Json returned from the REST module to create GitHub resources into objects, so we can list repositories and such
Git = using std.process to interact with the local users git installationAwesome, thank you Mark, I was hoping there was more elegant way of doing this
Haha wow Angus, thank you.
Here’s my version of what you made
Monkey1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465Function Main()Local fileTime := GetFileTime(AppDir()+ "app.json")Print fileTimeLocal st := New StringTime(fileTime)Local str:String = stPrint "string:" +strLocal time:Time = stPrint "time:" +timeEndClass StringTimeGlobal dayName:String[]=New String[]("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")Global monthName:String[]=New String[]("January","February","March","April","May","June","July","August","September","October","November","December")Global suffix:String[]=New String[]("th","st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st")Global tf:Long=24Field day:Long,mins:Long,secs:Long,year:Long,leap:LongField oSecond:Long,oHour:Long,oMinute:Long,oWeekDay:Long,oYear:Long,oYearDay:Long,oMonth:Long,oMonthDay:LongMethod New(ut:Long)day=ut/(tf*60*60)secs=ut Mod (tf*60*60)oSecond=secs Mod 60mins=secs/60oHour=mins/60oMinute=mins Mod 60oWeekDay=(day+4) Mod 7year=(((day*4)+2)/1461)oYear=year+70leap=Not(oYear & 3)day-=((year*1461)+1)/4oYearDay=dayIf day>(58+leap)If leapday+=1Elseday+=2EndElseday+=0EndoMonth=((day*12)+6)/367oMonthDay=day+1-((oMonth*367)+5)/12oYear+=1900EndMethod To:String()Return dayName[oWeekDay]+", "+String(oMonthDay)+suffix[oMonthDay]+" "+monthName[oMonth]+" "+String(oYear)+", "+String(oHour)+":"+String(oMinute)+":"+String(oSecond)EndMethod To:Time()Return New Time(oMonthDay, oMonth, oYear, oHour, oMinute, oSecond)EndEndCool, what platforms are you building this for?
Monkey123456Class Canvas ExtensionMethod magicplot(x:Float, y:Float)Color = New Color(Rnd(0, 1), Rnd(0, 1), Rnd(0,1))DrawPoint(x, y)EndEndYou’re looking for Extensions. There’s a small explanation of it in the manual under “User defined types”.
Yeah, this MBA isn’t very good for 3D acceleration. Pretty much any 3D game chugs at least a tiny bit.
This looks awesome, I can’t wait to see this develop into a game!
For reference, it’s a bit slow on my early 2014 MacBook Air but still playable.
I was hoping to see this come around sometime, it will be quite useful. Thank you!
That’s awesome, game’s pretty cool and seems like a lot of people love it.
For the record everything seems to work here now on my Mac. I can compile to wasm and asmjs no problem after installing emscripten to sdk-incoming-64bit with the latest monkey branch.
Great! I can compile the develop branch without a hitch, and compile projects to asmjs but when compiling to wasm I still receive the ‘NameError: name ‘allow’ is not defined’ error. Any ideas?
@jesse did you ever resolve this issue? I get the same error when compiling to wasm
That looks pretty cool Richard. Did you face any problems optimizing it to run that well?
I’ve been using Ted2Go for a few weeks now and enjoying it. Thank you for the work nerobot!
Does anyone else experience the IDE throttling CPU? Right now it’s at 98% CPU on my MacBook Air early-2014, and it regularly idles around 15% CPU on my desktop Windows 10.
-
AuthorPosts