Ignore:
Timestamp:
Jul 1, 2012, 3:12:51 AM (9 years ago)
Author:
touky
Message:

Added basic character logic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/games/ToukyDemo/ToukyDemo.cpp

    r1526 r1547  
    4949    m_camera->SetRotation(quat::fromeuler_yxz(0.f, -30.f, 0.f));
    5050    //m_camera->SetPerspective(120.f, 1280.f, 960.f, -1000.f, 1000.f);
    51         m_camera->SetOrtho(1280.f / 3, 960.f / 3, -1000.f, 1000.f);
     51        m_camera->SetOrtho(1280.f / 6, 960.f / 6, -1000.f, 1000.f);
    5252    Ticker::Ref(m_camera);
    5353
    5454        m_URO = new UserReactiveObject();
    5555        Ticker::Ref(m_URO);
     56
     57        m_Character = new Character();
     58        m_Character->m_position = vec3(.0f, 10.0f, .0f);
     59        Ticker::Ref(m_Character);
    5660
    5761    m_ready = false;
     
    8387        Ticker::Unref(m_camera);
    8488    Ticker::Unref(m_URO);
     89        Ticker::Unref(m_Character);
    8590}
    8691
Note: See TracChangeset for help on using the changeset viewer.