If you don't want to use a Framework!

Monkey Forums/Monkey Programming/If you don't want to use a Framework!

Amon(Posted 2013) [#1]
Download this group of modules I gathered and import them like so in to your test projects or quick prototyping projects.

http://www.amon.co/storage/amon.zip

Import mojo
Import amon.arrays.twodarray
Import amon.arrays.arraytype
Import amon.arrays.jarrays
Import amon.autofit
Import amon.delta
Import amon.atimers
Import amon.collisions


I've got a few more that I will add; trying at the moment to rip the Diddy screens code out of the diddy framework in order to have just a quick screens module that works without needing diddy. Should be done with that soon. Anyone interested can help by sorting the screens code while I get to work on a few other modules.

Why do this?

Well, sometimes I test things out, don't want this or that, prototype a quick idea etc and for some reason I feel like there's less bloat. Strange...but that's it. :)

[edit]
P.S These aren't mine. The modules are by various members: GfK, DruggedBunny, therevills, etc!

[edit]
Updated with Jesse's contribution as a separate import.


Jesse(Posted 2013) [#2]
I was looking at your array and notice that it's only for integers.
I don't know if this is useful to you but I did a flexible array using generics a while back:


Class MakeArray<T>

	Function TwoD:T[][](i:Int,j:Int)
		Local arr:T[][] = New T[i][]
		For Local ind:Int = 0 Until i
			arr[ind] = New T[j]
	    Next
	    Return arr		
	End Function

End Class



and to create it :


	Local arr:String[][]=MakeArray<String>.TwoD(5,5)


you can create any type string,float, int, object, etc....

it's a little ugly but it does the job.
.
.


Amon(Posted 2013) [#3]
Thanks, jesse!

I've added it to the array imports and updated the archive. :)


wiebow(Posted 2013) [#4]
Combining modules is kinda like making a framework, Amon :) haha.


OvineByDesign(Posted 2013) [#5]
Just come across this thread .... excellent stuff !

/StuC


Midimaster(Posted 2013) [#6]
it's exactly like wiebow said: combining modules is like making a framework. I would suggest to add such small functions and gimmixs in a in the forums code section, so everybody can find and combine them as needed.

Also it would be very helpful to have a list of f.e. all android java functions ever successful combined with monkey. f.e. sending a sms, etc...


Amon(Posted 2013) [#7]
Adedd a few more needful mods; glfw resolution changing; BlitzMax style DefData.