impixi

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 100 total)
  • Author
    Posts
  • in reply to: Color #9175

    impixi
    Participant

    There are named constants for some colors. You can also create create your own colors. eg

    [/crayon]

    The docs have more information…

    in reply to: terrain – Release and Debug mojo3d diferent behaviour. #9174

    impixi
    Participant

    Bugs, I’d say. I’m seeing similar results from my own terrain generator (quite different than yours).

    But remember Mojo3d is still a WIP Alpha, so much of it is not “production” ready yet.

    in reply to: Perfect Maze Generation #8810

    impixi
    Participant

    @peteswansen:

    The mazes it makes are not quite complete- they have numerous “dead” ends and there is no single complete path from one side to the other- in other words, there is not one entrance and one exit.

    The code generates “perfect” mazes, meaning every coordinate is reachable from every other coordinate within the maze. There are many types of mazes. See here:

    http://www.astrolog.org/labyrnth/algrithm.htm

    A shame there is only 10 examples of code and over 1800 posts looking for help with Monkey 2.

    The “Monkey 2 Code Library” forum is only a week old. More examples will be posted over time. Personally I have more examples to post when I tidy up my code, but at the moment I’m too busy working on other projects.

    in reply to: Keycodes #8724

    impixi
    Participant

    @Mark Sibly:

    Yes, nice idea, and probably the way it “should” be done. 🙂

    Possibly a bit ‘high level’ for monkey2? Or not?

    Not at all: extra functionality is always welcome. But don’t spread yourself too thin: you have enough to do already! 🙂

    in reply to: Keycodes #8679

    impixi
    Participant

    This is the way I’m currently doing it:

    1. Enumerate the in-game commands that are assignable to keys:

    [/crayon]

    2. Store and initialise the keybindings in a global Key array:

    [/crayon]

    3. Check for the bounded keys during the game’s update call:

    [/crayon]

    The hope is it will make it easy to add a key-rebinding screen (as you’re wanting to do)…

    I’ll probably encapsulate the behaviour in a class but the fundamentals are there…

    in reply to: The bb.com to M2 conversion thread #8575

    impixi
    Participant

    Good idea, @peterigz.

    And if the Blitzbasic.com archives are inaccessible you might be able to find them through the “Wayback Machine”

    https://web.archive.org/

    in reply to: Transition from blitzmax to monkey 2? #8567

    impixi
    Participant

    There are many language similarities but also some differences that could cause confusion.

    Most of BlitzMax’s language concepts have direct Monkey2 equivalents (eg Functions, Objects, Methods, Globals, Locals, Interfaces, Pointers, Modules, Public, Private, etc) but Monkey2 also has additional concepts (eg Interfaces, Virtual Methods, Abstract Classes, Enumerated types, Operator Overloading, Fibres, Structures, Lambda Functions, etc).

    You can structure your own code to not use those additional language features, and therefore convert standard object-oriented BlitzMax code quite easily to equivalent Monkey2 code. However, some of Monkey2’s modules make extensive use of the additional language features and require at least a passing understanding of how they work.

    A good example is MojoX, Monkey 2’s GUI module. It is quite different than MaxGUI.

    So, yes, you can use much of what you learned in BlitzMax – you won’t have to start again. But you will need to build upon that knowledge…

    in reply to: Welcome to the new monkey2 site! #8562

    impixi
    Participant

    @Mark Sibly:

    …code library forum added

    Thanks. I just added a first snippet.

    Adjusting the “height” and “width” properties of “crayon” seems to work to simulate a “code box”. (Thanks @nerobot for the suggestion: http://monkeycoder.co.nz/forums/topic/perlin-noise/page/2/)

    in reply to: Welcome to the new monkey2 site! #8520

    impixi
    Participant

    “Let’s get this party started…”

    PS: Any chance of a “Monkey 2 Code” forum that we can post our code snippets into?

    in reply to: List sorting function help #8483

    impixi
    Participant

    You could maybe do something like this:

    [/crayon]
    in reply to: the first thing I plan with mojo3d is #8441

    impixi
    Participant

    @pakz: We have very similar objectives / plans!

    In addition to procedurally generating level layout, I’m trying to decide if it’s worth generating models and materials in code too. Probably not…

    in reply to: Steam Direct Fee & Upcoming Store Updates #8440

    impixi
    Participant

    What did it cost before?

    TBH, from a consumer’s perspective I can only see negatives: Steam is already flooded with “crap”; if the entry barrier is even lower it’s going to get worse.

    in reply to: 'Functional vs OO' :coding a GUI #8144

    impixi
    Participant

    I was going to ask the same question…

    Functional: https://en.wikipedia.org/wiki/Functional_programming
    Procedural: https://en.wikipedia.org/wiki/Procedural_programming

    Functional programming, as in lisp, clojure, etc
    Procedural programming, as in old style basic, pascal, c, etc.

    There are different GUI implementation strategies for both styles, though IIRC it’s rather difficult to do in a purely functional manner.

    in reply to: Windows SendInput function #8119

    impixi
    Participant

    Ah, I see. Then yes, you’ll need something lower level, probably coded in C/C++. Good luck. 😉

    in reply to: Windows SendInput function #8116

    impixi
    Participant

    * Hide the “actual” mouse cursor. Draw a “sprite” mouse cursor instead.
    * Read your gamepad input coordinates.
    * Translate the coordinates to a screen location vector.
    * Draw the mouse cursor sprite at the vector.
    * Trigger an EventType.MouseMove event, including the vector.
    * Handle the event in the OnMouseEvent method.

    Easy peasy?! 😉

    Or I still misunderstand your objectives… Forgive me if that’s the case. 🙂

Viewing 15 posts - 16 through 30 (of 100 total)