Forum Replies Created
-
AuthorPosts
-
Ok, people who are having this problem will have to manually create a ‘tmp’ folder inside their monkey2 dir. For some reason, Windows is preventing the app from doing this in some cases.
Also, can people having this problem just quickly post if they are using an admin account or not?
I like it Impixi. Actually, I’ve been thinking about doing something similar on and off for ages – very ‘top of my head’ code follows…
Monkey12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152Enum GameButton 'or just 'Button'?UpDownLeftRightFire1Fire2EtcEndClass GameController 'or 'GamePad'?Method ButtonDown( button:GameButton ) VirtualMethod Joyx:Float() VirtualMethod Joyy:Float() Virtual...etc...more 'useful' gamecontroller stuff.EndClass KeyboardController Extends GameControllerMethod ButtonDown:Bool( button:GameButton ) OverrideReturn Keyboard.KeyDown( _unmap[button] )End'Customize...Method MapKeyToButton( key:Key,button:GameButton )_map[key]=button_unmap[button]=keyEnd'Some stock mappings...Function WASDController:KeyboardController()Function IJKLController:KeyboardController()Function NumpadController:KeyboardController()Function ArrowKeysController:KeyboardControler()EndClass JoystickController Extends GameController'...etc...EndThe basic idea being your code would only really have to deal with GameControllers and GameButtons.
Possibly a bit ‘high level’ for monkey2? Or not?
Reflection is mostly in…
(This is in language manual too).
However, the current implementation is a bit ‘bulky’, both in terms of compile times and app size so YMMV.
Reflection is mostly in…
(This is in language manual too).
However, the current implementation is a bit ‘bulky’, both in terms of compile times and app size so YMMV.
Well, ASM.JS will probably give you a little more compatibility for a while yet, perhaps with Edge and on Macos. But WASM is the future..!
Ok, a quick overview of the differences between all these techs:
WASM (short for WebAssembly) is proper ‘virtual machine code’ and is compiled to real machine code inside the browser. This should eventually give very near ‘native’ level performance while remaining sandboxed/secure etc. This is IMO pretty *#$&ig exciting tech…
ASM.JS uses a small subset of javascript as a sort of virtual nachine code. This means browsers that don’t know anything about ASM.JS code can run it anyway, and those that do can optimize it. ASM.JS is in the process of getting replaced by WASM, which is faster, smaller has a cooler name etc.
Emscripten is an llvm based set of compiler tools that can produce both ASM.JS and WASM code. When it comes to mx2, I generally use ’emscripten’ to mean asm.js, and wasm to mean wasm.
‘Html5’ usually just means the DOM Canvas class, which is used by monkey-x for 2d graphics, but not by monkey2 (which uses webgl for graphics).
What browser are you using?
Chrome and Firefox both work for me here.
Where have you installed it?
There’s just the ‘docs’ and what’s here in the forums. But don’t be afraid to ask noob Qs, they’re usually quick and easy to answer and will help others out.
Just trying to change the favicon too, I’m using this in header.php just before I enqueue_styles.
<link rel=”icon” href=”<?php get_template_directory_uri().’/favicon.png’?>” type=”image/x-icon” />
<link rel=”shortcut icon” href=”<?php get_template_directory_uri().’/favicon.png’?>” type=”image/x-icon” />
..and have a favicon.png in my theme dir. Not working, but perhaps chrome’s caching something?
Ugh, docs don’t even mention methods – will fix NOW!
But as Danilo says, it’s basically indicates you’re ‘changing’ the behaviour of a method in a super class (which is usually declared ‘Virtual’, indicating it can be overridden).
This is actually the default behavior in blitzmax/monkey, where all methods are virtual/override by default. In monkey2 you must explictly declare which methods can be overriden by subclass methods (with ‘Virtual’), and which methods are overriding superclass methods (with ‘Override’).
There’s UDP and TCP modules in std and it should be 100% ipv6 friendly – see echoserver bananas, although it’s largely untested beyond that.
Yay, the gangs back together!
stick a 301 redirect on the old site
Wish I could and but I don’t even know how! So it’s taken me half an hour to hack a clumsy ‘redirect’ into index.php instead…
…code library forum added, good idea.
Edzup, are you sure you want to be here? You seem ultra pissed off about monkey2 and how I’m handling things all the time, and that’s unlikely to change.
-
AuthorPosts