Mark Sibly

Forum Replies Created

Viewing 15 posts - 946 through 960 (of 1,431 total)
  • Author
    Posts
  • in reply to: Status of miniz #5713

    Mark Sibly
    Keymaster

    What do you need it for exactly?

    It’s all ‘there’ in that the whole thing compiles, but the API side is incomplete and even if I complete it it wont be particularly easy to use as it’ll be very C-ish.

    If you can give me some pointers re: what to concentrate on ‘mkaing useful’ first etc it’d help.

    I do actually use it in the module manager to decompress files, so it already sort of works…

    in reply to: Keyboard Flush (flushchars?) #5699

    Mark Sibly
    Keymaster

    KeyPressed() will return true if the given key has been been pressed *since the last ‘render’* – you cannot manually clear it, it will be automatically cleared after the next render.

    Some people are used to KeyPressed auto-clearing itself after it’s called but that is not the case in mx2 – no matter which way I go here I manage to piss off someone so sorry if that turns out to be you!

    For GUI stuff, I really recommend using OnKeyEvent, OnMouseEvent etc as these will generally give you much more precise results.

    in reply to: Monkey2-v1.1.02 Emscripten Build ERROR! #5698

    Mark Sibly
    Keymaster

    Have you updated/rebuilt emscripten modules?

    in reply to: VIdeo playback #5697

    Mark Sibly
    Keymaster

    There’s no video playback in yet but thanks for reminding me, it’s definitely high up the todo list now!

    in reply to: Reflection questions #5696

    Mark Sibly
    Keymaster

    Use Typeof<> for ‘type expressions’ (eg: Typeof<mojo.Canvas>) and GetDecl( “New” )/Invoke() to create a class instance at runtime.

    Check out my reflection blog post and the reflectiontest banana which should cover the basics, including creating a new class instance at runtime.

    in reply to: Client Server Separation? #5665

    Mark Sibly
    Keymaster

    Not 100% sure what’s up (it’s not crashing here, but not working either…), but for starters you can only currently use fibers with mojo based apps. I plan to change this eventually but it’s a reasonably complex-ish job…

    in reply to: Ted2Go keyboard shortcuts not working #5625

    Mark Sibly
    Keymaster

    I just updated to latest ted2go and all seems fine here on windows – f5, f7, Ctrl-S work anyway. Will test soon on linux.

    in reply to: Newbie Building Problems – Windows MAX_PATH issue? #5624

    Mark Sibly
    Keymaster

    The latest mx2cc up at github should fix some/most/all of the crazy-long tmp file name issues.

    in reply to: Digg Article on Visualising Algorithms #5466

    Mark Sibly
    Keymaster

    Great page!

    The maze curling up into a tree is especially cool.

    in reply to: Fatal mx2cc error, why? #5438

    Mark Sibly
    Keymaster

    Thanks for posting sample code!

    It appears to be fixed now (due to fixes to related stuff) although only in the develop branch which I wouldn’t recommended using just yet.

    in reply to: Minimum System Requirements? #5408

    Mark Sibly
    Keymaster

    What are the minimum system requirements for the all targets for Monkey2?

    The only real ‘hard’ requirement is it needs GLES20 or equivalent, eg: direct3d9 on windows, gl2 on macos/linux, android2.2, no idea about ios, etc.

    It should run on any OS you can build SDL for.:

    https://wiki.libsdl.org/Installation

    I wont be able to test/build for *all* potential platforms, so community help with this will be important.

    in reply to: libxmp mod music player #5392

    Mark Sibly
    Keymaster

    > just to mention if you run in debug mode you’ll get a seg fault

    This could be because the SDL callback happens on a different thread and mx2 is not threadsafe. This’ll probably also cause problems in release mode depending on what the code does.

    in reply to: DrawLine+Scale: thickness bug.. #5391

    Mark Sibly
    Keymaster

    Ok, a fix for this is now up at github in develop branch – you just need to grab latest canvas.monkey2.

    The problem was due to DrawLine using ‘normal’ DrawLine if LineWidth<1. But with scaling, this isn’t always correct.

    So I’ve changed the check to LineWidth<=0 (LineWidth now defaults to 0 too) so any >0 linewidth will make mojo use it’s ‘fancy’ DrawLine, ie: draw rects instead of lines.

    I’ve also added a LineSmoothing property to Canvas (defaults to false) to control the fake antialiasing of lines. If LineSmoothing is true, lines drawn with LineWidth>0 will be antialiased-ish.

    This actually produces pretty convincing antialiased lines with LineWidth>=2 and less than about 5. Less than 2 and the line starts to ‘break up’ noticably, greater than 5 and the anitaliasing ‘fudge’ starts showing! I’ve added a little linetest banana showing this.

    I’ve also tweaked draw circle/oval/ellipse so primtives are better ‘centered’ and hopefully more symmetrical.

    There are still issues with line end points, but I think this is getting there!

    in reply to: += on function pointers? #5390

    Mark Sibly
    Keymaster

    Add functions together atually produces a ‘temporary’ function the calls the first function, discards the returned value, then calls the second.

    in reply to: 16 Shades of color mode? #5323

    Mark Sibly
    Keymaster

    There’s a bug in mojo (now fixed in develop branch) that means some graphics drivers only create 4 bit RGB framebuffers.

Viewing 15 posts - 946 through 960 (of 1,431 total)