Gwenel

Forum Replies Created

Viewing 12 posts - 106 through 117 (of 117 total)
  • Author
    Posts
  • in reply to: Sprite collision? #14274

    Gwenel
    Participant

    I’m making a Lemming-like game that’s very detailed at the pixel level, I guess I could make use of a polygon collision routine but I would rather build one myself than use system (personal preference).

    Are there other examples there how to do that kind of thing as I’m totally beginner with polygons. What’s a “transformed” polygon? http://mojolabs.nz/codearcs.php?code=1676

    Are there any rules on what polygons are possible in Monkey2? do they have to be convex or concave?

    in reply to: Space Monkey #14259

    Gwenel
    Participant

    One can use this general formula 🙂

    ‘ Rotation
    var startVector = point#0.start – point#1.start
    var currentVector = point#0.current – point#1.current
    var startAngle = math.atan2( startVector.Y, startVector.X )
    var endAngle = math.atan2( currentVector.Y, currentVector.X )
    var deltaAngle = endAngle – startAngle

    ‘ Panning
    var startCenter = (point#0.start – point#1.start)/2 + point#1.start
    var currentCenter = (point#0.current – point#1.current)/2 + point#1.current
    var rawTrans = currentCenter – startCenter
    ‘ Now add rotation to rawtrans and call it translation
    var rotationMatrix = matrix.rotationZ(-angle)
    var translation = vector.transform(rawTrans, rotationMatrix)

    ‘ Zooming
    var startVector = point#0.start – point#1.start
    var currentVector = point#0.current – point#1.current
    var scale = vector.length(currentVector) / vector.length(startVector)
    var translation = vector.transform(rawTrans, rotationMatrix) / scale

    in reply to: Android Compiling problem #14257

    Gwenel
    Participant

    Okay It was missing the Android SDK Tools 26.1.1 it suddenly asked for it in the middle of things and now it works (the first time you compile something always gives two red errors about not being able to distribute it to the device but it always works the second time).

    Thanks!

    in reply to: Good cheap machine for development #14248

    Gwenel
    Participant

    I’ve already started to write some amazing code for the weak machine I mentioned and it runs so smooth I can’t believe it. It has absolutely no problem with Monkey2 as long as you stay away from certain things inside the language. It has such potential.

    in reply to: Good cheap machine for development #14247

    Gwenel
    Participant

    Let me be clear I don’t think it’s about just the memory amount, but the combination of memory and the CPU and what a CPU needs to do to handle New, Lists etc, it needs to move around a lot of memory.

    in reply to: Good cheap machine for development #14246

    Gwenel
    Participant

    Also Vgrid which relies on that, is heavily underpowered and can’t perform anywhere near what it should on that machine for the same reason.

    in reply to: Good cheap machine for development #14245

    Gwenel
    Participant

    No it’s a freshly installed minimal Win 64bit Home edition on a quick SSD.Everything else runs perfectly smooth (except Indesign CC inside a Win7 VM, it can’t run that well either, but all the other heavy things including other programming languages works perfect 🙂

    But few code snippets and particular example Gridshooter shows it clearly by going from 60fps to 30fps in intervals.

    in reply to: Good cheap machine for development #14234

    Gwenel
    Participant

    Found the slowdown for slow machines 🙂 it was not the graphic card it performs nicely instead it was the use of storage (Lists etc).

    One of the Bananas that had this  slowdown was Gridshooter. Somehow 2Gb just wasn’t enough for handling the objects like it does and If you keep away from “lists”, and “new” keywords and such then it’s all good.

    The plan now is to learn Monkey2 more in detail and re-introduce them one by one and see which ones are demanding.

    in reply to: Good cheap machine for development #14222

    Gwenel
    Participant

    Solved ! I could borrow my friends Dell Latitude 5580 (Core i7 and 8GB memory) Monkey2 flies on it 🙂

    in reply to: Good cheap machine for development #14207

    Gwenel
    Participant

    Still it’s my wish to let other people with worse devices than me to be able to run the games, so in a way I don’t want the best.

    in reply to: Good cheap machine for development #14206

    Gwenel
    Participant

    It’s a Windows 10 Home 64bit machine btw. I wish I could afford an Intel I3 or I5.

    in reply to: Good cheap machine for development #14205

    Gwenel
    Participant

    Yup I’ve the debug set to off.

Viewing 12 posts - 106 through 117 (of 117 total)