Control Gravity Direction

  • ssc4k
    20th Aug 2010 Member 0 Permalink
    [Topic title was up, down, left, and right ASCII arrows but got destroyed upon posting]

    Does anyone like the idea of having the arrow keys control the direction of gravity in TPT? It would allow more complicated devices, mazes, and just more plain fun options to the game in my opinion. It also (shouldn't, much better devs can comment on this) be to hard to code, a couple of key bindings, a ifdef turned into a variable, and a small section of logic to check if the keys have been pressed and therefore the direction particles are pulled.

    Opionions/thoughts/comments?
  • HeyJD
    20th Aug 2010 Member 0 Permalink
    yeah that would be good... although the stick man uses the arrow keys...

    Anyway is it alright if I add this to my environment topic?
    (https://powdertoy.co.uk/Forum.html?action=vthread&forum=2&topic=488)
  • ssc4k
    20th Aug 2010 Member 0 Permalink
    Hey guys I made it, it's a bit awkward to use but the keys can be changed easily later

    y off
    u up
    i down
    8 left
    9 right

    Up down left and right are used by the stickman so better keys can be found later anyways.

    Also included in the build below is my previous addition "d switches death on/off for stickman". If Simon wants these merged to the main build I'll upload my code then (don't feel like wasting time otherwise).

    enough talk,

    here it is
  • Felix
    20th Aug 2010 Member 0 Permalink
    ssc4k:
    Hey guys I made it, it's a bit awkward to use but the keys can be changed easily later

    y off
    u up
    i down
    8 left
    9 right

    Up down left and right are used by the stickman so better keys can be found later anyways.

    Also included in the build below is my previous addition "d switches death on/off for stickman". If Simon wants these merged to the main build I'll upload my code then (don't feel like wasting time otherwise).

    enough talk,

    You have to release the source too. GPL you know.
  • ssc4k
    20th Aug 2010 Member 0 Permalink
    I usually don't waste my time until someone wants it (only happened 2 times including this lol)

    Okay now that it's not midnight I can think clearly and mapped the numberpad to the directions
    Keypad 1 - downleft
    Keypad 2 -down
    Keypad 3 -downrgiht
    Keypad 4 - left
    Keypad 5 - no gravity
    Keypad 6 - right
    Keypad 7 - upleft
    Keypad 8 - up
    Keypad 9 - upright

    You'll notice this makes much more sense as not only are the directions the direction they key is but it's much easier to switch, adds 4 modes, and has arrows on the key if your're still lost :p

    here is the program with the source included
  • Xenocide
    20th Aug 2010 Former Staff 0 Permalink
    Small problem, I aint got a numpad.
  • Rob215
    20th Aug 2010 Member 0 Permalink
    lol. A laptop has function + a key.

    EDIT - 5 numkey not working.



    *Please do not double post.*
  • zc00gii
    20th Aug 2010 Banned 0 Permalink
    This post is hidden because the user is banned
  • Rob215
    20th Aug 2010 Member 0 Permalink
    try 7-zip
  • bchandark
    20th Aug 2010 Member 0 Permalink
    I mapped out the keys already used in shortcuts (tell me if I missed any)
    http://img801.imageshack.us/img801/2164/inputusckeyboard.gif

    As far as I can tell, there's no 9 spaces free that would be logical (other than the number pad), so I just think there could be four directions (G,V,B,N possibly). There still would be the number pad option, though