Changeset 1363


Ignore:
Timestamp:
May 10, 2012, 2:01:06 PM (7 years ago)
Author:
sam
Message:

orbital: add the two parallax starfields.

Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/orbital/orbital.cpp

    r1357 r1363  
    4242Orbital::Orbital()
    4343{
     44#if 0
    4445    for (int j = 0; j < 20; j++)
    4546    {
     
    5455        }
    5556    }
    56 
     57#endif
     58
     59    /* Grey/red bonus */
     60    m.SendCommand("sc0.6,0.7,0.8,1,afcb7,4,7,0.6,sc1,0,0.3,1,afcb4,7,4,0.6");
     61    m.SendCommand("t-40,20,-30,fl");
     62
     63#if 0
    5764    /* Yellow sphere */
    5865    m.SendCommand("sc1,1,0,1,asph10,30,20,24");
     
    6673    m.SendCommand("sc0,0,0.3,1,afcb30,30,30,5,ry45,rx45,afcb30,30,30,5");
    6774    m.SendCommand("t40,40,0,fl");
    68 
    69     /* Grey/red bonus */
    70     m.SendCommand("sc0.6,0.7,0.8,1,afcb7,4,7,0.6,sc1,0,0.3,1,afcb4,7,4,0.6");
    71     m.SendCommand("t-40,20,-30,fl");
    7275
    7376    /* Orange/white alien */
     
    8285    /* Lasers */
    8386    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");
     87#endif
    8488
    8589    //m_particlesystem = new ParticleSystem();
    8690    //Ticker::Ref(m_particlesystem);
     91
     92    m_starfield = new StarField(100, 100, 1.f, 2.f, 10.f, 20.f);
     93    Ticker::Ref(m_starfield);
    8794
    8895    /* Create a camera that matches the settings of XNA Orbital */
     
    195202        Ticker::Unref(m_players[i]);
    196203    //Ticker::Unref(m_particlesystem);
     204    Ticker::Unref(m_starfield);
    197205    Ticker::Unref(m_camera);
    198206}
  • trunk/orbital/orbital.h

    r1344 r1363  
    1010#include "mesh.h"
    1111#include "particlesystem.h"
     12#include "starfield.h"
    1213#include "tank.h"
    1314#include "player.h"
     
    3233
    3334    ParticleSystem *m_particlesystem;
     35    StarField *m_starfield;
    3436    Camera *m_camera;
    3537    Array<Player *> m_players;
  • trunk/win32/orbital.vcxproj

    r1344 r1363  
    3333    <ClInclude Include="..\orbital\particlesystem.h" />
    3434    <ClInclude Include="..\orbital\player.h" />
     35    <ClInclude Include="..\orbital\starfield.h" />
    3536    <ClInclude Include="..\orbital\tank.h" />
    3637  </ItemGroup>
  • trunk/win32/orbital.vcxproj.filters

    r1344 r1363  
    66    <ClInclude Include="..\orbital\player.h" />
    77    <ClInclude Include="..\orbital\tank.h" />
     8    <ClInclude Include="..\orbital\starfield.h" />
    89  </ItemGroup>
    910  <ItemGroup>
Note: See TracChangeset for help on using the changeset viewer.