Ignore:
Timestamp:
Apr 28, 2012, 3:38:35 PM (9 years ago)
Author:
sam
Message:

orbital: add more comments to the various meshes we have.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/orbital/orbital.cpp

    r1302 r1304  
    3030Orbital::Orbital()
    3131{
    32     m.SendCommand("sc1,1,0,1,asph10,16,20,24");
     32    for (int j = 0; j < 20; j++)
     33    {
     34        for (int i = 0; i < 20; i++)
     35        {
     36            m.SendCommand(((i + j) % 2) ? "sc.3,.7,.9,1,scb.3,.7,.9,1"
     37                                        : "sc.3,.3,.7,1,scb.3,.3,.7,1");
     38            m.SendCommand("ac4,2,44,40,0,0,ty-1,ad4,40,0,ry45");
     39            m.Scale(vec3(std::sqrt(0.5f)));
     40            m.Translate(vec3(i * 44 - 440, -50, j * 44 - 440));
     41            m.Flush();
     42        }
     43    }
     44
     45    /* Yellow sphere */
     46    m.SendCommand("sc1,1,0,1,asph10,30,20,24");
    3347    m.SendCommand("t0,0,-60,fl");
    3448
     49    /* Pink box */
    3550    m.SendCommand("sc1,0,1,1,afcb10,10,10,1,rx45,rz45");
    3651    m.SendCommand("t-20,-20,0,fl");
    3752
     53    /* Large meteor */
    3854    m.SendCommand("sc0,0,0.3,1,afcb30,30,30,5,ry45,rx45,afcb30,30,30,5");
    3955    m.SendCommand("t40,40,0,fl");
    4056
    41     m.SendCommand("sc1,1,0,1,scb1,0,0,0,at4,1,s1.5,1,4,tz-13,ad6,5.8,1");
    42     m.SendCommand("t-40,-40,0,fl");
    43 
     57    /* Grey/red bonus */
    4458    m.SendCommand("sc0.6,0.7,0.8,1,afcb7,4,7,0.6,sc1,0,0.3,1,afcb4,7,4,0.6");
    4559    m.SendCommand("t-40,20,-30,fl");
    4660
     61    /* Orange/white alien */
    4762    m.SendCommand("sc1,0.7,0,1,afcb12,3,10,0.4,tz3,sc1,1,1,1,afcb2,10,10,0.4");
    4863    m.SendCommand("rx20,ry30,t0,40,-20,fl");
    4964
     65    /* Tank body + tank head */
    5066    m.SendCommand("sc0.1,0.1,0,1,ab6,6,15,ty-2,sc1,1,1,1,afcb4,5,16,0.4,tx4,tx60,mx,tx120,fl,sc0.2,0.7,0,1,afcb8,7,10,0.4,tz-4,tx60,fl");
    5167    m.SendCommand("sc0.2,0.7,0,1,afcb3,6,10,0.4,tx-8,afcb3,6,10,0.4,tx4,ty10,tx60,fl,sc1,1,1,1,afcb3,6,10,0.4,rx-30,ty10,tx60,fl");
    5268
    53     m.SendCommand("sc1,1,1,1,scb0,0,0,1,aq8,1,sx0.25,tx-3,sc1,0,0,1,scb0,0,0,1,aq8,1,tx4,sz50,sx0.3,tz-200,mx,as10,12,8,1,1,ty60,fl");
    54 
     69    /* Orange player ship */
    5570    m.SendCommand("sc1,.5,0,1");
    5671    m.SendCommand("afcb5,1,3,0.6,fl,sc1,1,1,1,afcb1,5,3,0.6,tz-1,irb");
     
    6176    m.SendCommand("scb1,1,1,1,ac4,15,.2,.6,1,1,tz-2,ac4,15,.2,.6,1,1,rx90,t0,-2,-7,fl");
    6277
     78    /* Orange fire */
     79    m.SendCommand("sc1,1,0,1,scb1,0,0,0,at4,1,s1.5,1,4,tz-13,ad6,5.8,1");
     80    m.SendCommand("t-40,-40,0,fl");
     81
     82    /* Lasers */
     83    m.SendCommand("sc1,1,1,1,scb0,0,0,1,aq8,1,sx0.25,tx-3,sc1,0,0,1,scb0,0,0,1,aq8,1,tx4,sz50,sx0.3,tz-200,mx,as10,12,8,1,1,ty60,fl");
     84
     85    /* Thrusters */
    6386    m.SendCommand("sc0,1,1,scb0,0,0,1,ac5,15,0,1.5,0,1,ac7,35,1.1,4,0,1,rx90,t-3,0,27,mx");
     87    m.SendCommand("fl");
    6488
    6589    m_particlesystem = new ParticleSystem();
    66     m_camera = new Camera(vec3(0, 150, 200),
     90    m_camera = new Camera(vec3(0, 200, 300),
    6791                          vec3(0, 0, 0),
    6892                          vec3(0, 1, 0));
     
    80104    WorldEntity::TickGame(deltams);
    81105
    82     m_angle += deltams / 1000.0f * 90.0f;
     106    m_angle += deltams / 50.0f;
    83107
    84     mat4 anim = mat4::rotate(m_angle, vec3(0, 1, 0))
    85               * mat4::rotate(m_angle * 0.25f, vec3(0, 0, 1));
     108    mat4 anim = mat4::rotate(m_angle, vec3(0, 1, 0));
    86109    mat4 model = mat4::translate(vec3(0));
    87110
Note: See TracChangeset for help on using the changeset viewer.