Ignore:
Timestamp:
Jun 1, 2012, 7:42:36 PM (11 years ago)
Author:
sam
Message:

orbital: enhance the language with [] contexts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/orbital/snake.h

    r1433 r1434  
    2020        m_ready(false)
    2121    {
    22         m_head.SendCommand("sc#d91,"
    23                            "afcb30,3,3,.8,fl,"
    24                            "sc#cca,"
    25                            "afcb10,10,10,1,fl,"
    26                            "afcb.4,.4,12,.4,tz3,tx8,mx,fl,"
    27                            "afcb.4,.4,12,.4,tz3,tx12,mx,fl,"
    28                            "sc#69c9,"
    29                            "afcb5,8,8,1,ty3,tz3,fl");
     22        m_head.SendCommand("sc#d91"
     23                           "[afcb30 3 3 .8]"
     24                           "sc#cca"
     25                           "[afcb10 10 10 1]"
     26                           "[afcb.4 .4 12 .4 tz3 tx8 mx]"
     27                           "[afcb.4 .4 12 .4 tz3 tx12 mx]"
     28                           "sc#69c9"
     29                           "[afcb5 8 8 1 ty3 tz3]");
    3030
    31         m_body.SendCommand("sc#d91,"
    32                            "afcb3,20,3,.8,afcb20,3,3,.8,fl,"
    33                            "sc#cca,"
    34                            "afcb6,6,12,1,fl,"
    35                            "afcb.4,.4,7,.4,ty8,my,fl,"
    36                            "afcb.4,.4,7,.4,tx8,mx,fl");
     31        m_body.SendCommand("sc#d91"
     32                           "[afcb3 20 3 .8 afcb20 3 3 .8]"
     33                           "sc#cca"
     34                           "[afcb6 6 12 1]"
     35                           "[afcb.4 .4 7 .4 ty8 my]"
     36                           "[afcb.4 .4 7 .4 tx8 mx]");
    3737
    38         m_tail.SendCommand("sc#cca,"
    39                            "afcb6,6,10,1,tz-1,fl,"
    40                            "afcb.4,.4,8,.4,tz-1,ty8,fl,"
    41                            "afcb.4,.4,8,.4,tz-1,ty12,fl,"
    42                            "afcb.4,.4,8,.4,tz-1,tx8,fl,"
    43                            "afcb.4,.4,8,.4,tz-1,tx12,fl,"
    44                            "sc#d91,"
    45                            "afcb3,15,3,.8,ty8,fl,"
    46                            "afcb15,3,3,.8,tx8,fl");
     38        m_tail.SendCommand("sc#cca"
     39                           "[afcb6 6 10 1 tz-1]"
     40                           "[afcb.4 .4 8 .4 tz-1 ty8]"
     41                           "[afcb.4 .4 8 .4 tz-1 ty12]"
     42                           "[afcb.4 .4 8 .4 tz-1 tx8]"
     43                           "[afcb.4 .4 8 .4 tz-1 tx12]"
     44                           "sc#d91"
     45                           "[afcb3 15 3 .8 ty8]"
     46                           "[afcb15 3 3 .8 tx8]");
    4747
    4848        m_position = vec3(RandF(0.f, 100.f), 20.f, RandF(150.f, 250.f));
Note: See TracChangeset for help on using the changeset viewer.