Forum Replies Created
- 
		AuthorPosts
 - 
		
			
				
ted2 request thread? Requesting middle click close tabs (probably easy to add), F1 Context Sensitive help (not as easy but probably not a huge undertaking to add), and Shift+F2 jumps to definition (Probably quite a bit more involved)….
There are a few approaches, but most efficient ones take advantage of some first-pass culling which you’re likely already familiar with.
Bounding box collision, separated into buckets (or organized into quadtrees; any kind of spacial partitioning will do as long as it’s appropriate for the amount of sprites you have to test) are usually the first culling step.
Once you’ve confirmed a collision on the bounding box, you do a bitmask comparison on portions of the bounding boxes which overlap. There are multiple ways to approach this — I believe using the stencil mask is one way you can perform this test “in hardware”, though I don’t know if it would be any quicker than blitting to memory. You can generate the masks using a shader, or process them manually (I’m not sure how to do this in mojo2, but in mojo1 you’d pull the data using gles11.LoadImageData() and do a simple threshold on the alpha bits to shove it into a bool matrix).
After you get to this point, you have a couple options: 1. Test every pixel one at a time, in the standard left-to-right, top-to-bottom order until you hit a “pass” (A And B = True), or 2. Spot test at a certain pixel resolution (for example, a 1:8 resolution primary pass). If you take the first option this may be fast enough for your game, but if it isn’t, the second option is better, you can increase the resolution every time you get overlapping masks until it’s as accurate as you want it.
As long as we can omit “then” for block-ifs I’m cool either way.
wiebow: I’ve used this as my general rule of thumb… If you tried to avoid using a class type in Monkey1 when targeting Android because it would trip the GC (convenience classes like vectors, shapes, colors, custom strings etc), then that’s probably something that could benefit from having some of it changed into using Structs instead because of the way it’s allocated.
There’s probably more advantages…
Does subversion even support the git protocol? If you need a copy of the source code you can use the zip file function on the GitHub portal page, but without proper git support you won’t have much luck making pull requests…
AFAIK, svn doesn’t have distributed version control, but if you really wanted to keep similar commandline syntax to svn you could try pulling from the repo using mercurial with the hg-git plugin.
Please consider adding c-style loops carefully. Some people (especially c coders) will not take to using basic style loops at all, even if it is the recommended standard convention, and this is one of the cornerstones of what many would consider the readability of basic-style syntax. (I consider Monkey syntax even more readable then standard Basic when the step value is positive if using Until!)
As long as the step value can be arbitrary, it retains most of the flexibility of a c-style for loop. With a custom iterator, it should be able to do just about everything.
Presented for your consideration: https://msdn.microsoft.com/en-us/library/dscyy5s0.aspx
Due to the way iterators were implemented in the different languages (possibly related to foreach syntax), their articles are different, and VB didn’t get custom iterators until 7 years later.
Though I would recommend against reserving a keyword for something as simple and arbitrary as a negative step value, perhaps this might be okay if specifying a custom iterator. (IteratingBy x? Step x if x is a Func? Idk..) in that case, the iterator method would have a standard pattern whereby all for loops invoking one would have the loop bounds available to it as arguments.. maybe a bit clunky, like old Property syntax…
Ideally I’d like to specify an arbitrary step value (positive, negative, and integer runtime variables that aren’t consts) without c-style syntax, but if it’s not possible for whatever reason (and if that’s why you’re leaning towards enabling c-style for loops), please consider this.
Any chance of putting codeboxes in an iframe on mobile, mark? Sorry if this isn’t the right thread to ask, but I’d really like to be able to at least read the body text on a post with code in it
I’d even be okay with the code being scrolled off, so long as it didn’t take the rest of the post off-screen with it…
I do enjoy the look and feel so far, at least on mobile (haven’t tried the forums yet on my pc). Finally, timestamps!
The magical mobile theme totally has a fetish for killing the h-scroll, leading to situations where posts are unreadable:

And this input box seems to not understand how swiping keyboards work! (It must be doing something clever with the cursor in “visual” mode that ruins backspacing by creating corrupted text…)
 - 
		AuthorPosts