At 7/29/13 10:42 AM, Rustygames wrote:
We need more showing off what we've been working on and more luis posts in general which often tickle me.
Ooh, I get to show off?
Been working on this - just ported it over to MonoGame from XNA. Required a bit of tinkering with XInput to get the 360 controllers working, but everything else wasn't bad.
Here's a generated gave
10 pseudo-random numbers from two similar algorithms:
0.782636925942561
0.131537788143166
0.755604293083588
0.44134794289309
0.734872750814479
0.782636925942561
0.131537788143166
0.755605322195033
0.458650131923449
0.532767237412169
A JSON-serialized controller (wrapper-helper class):
{
"connected":false,
"buttons":{
"a":false,
"b":false,
"y":false,
"x":false,
"start":false,
"back":false,
"main":false,
"leftStick":false,
"rightStick":false,
"leftShoulder":false,
"rightShoulder":false
},
"dPad":{
"up":false,
"down":false,
"left":false,
"right":false
},
"triggers":{
"left":0.0,
"right":0.0
},
"sticks":{
"left":{
"x":0.0,
"y":0.0
},
"right":{
"x":0.0,
"y":0.0
}
},
"deadZones":{
"leftStick":{
"x":0.01,
"y":0.01
},
"rightStick":{
"x":0.01,
"y":0.01
},
"leftTrigger":0.002,
"rightTrigger":0.002
},
"motors":{
"lowRumble":0.0,
"highRumble":0.0
},
"batteryInfo":{
"level":0,
"levelStr":"empty"
}
}
Also includes quad-trees, threading, the ability to temporarily bypass the firewall and external IP getter, misc. Math/rounding utils, state machine (of course), steam API as well as steamworks C++ wrapper (still working on those), papal API, file upload/download supporting various protocols, e-mail sending (coming soon. Receiving if I can manage it as well), HTTP-reader, IP2Loc, misc. input including mic and various game pads, filesystem utils for easier directory walking, various 2D and 3D engines, cryptographic classes and functions (thanks, MS and byte arrays!), various compression including LZW and 7z's LZMA, connection tunneling and finally sleep mode prevention.
More to come as I continue think of things that would be useful.
Seriously, this framework is massive and a lot of work .-.