Changeset 1739


Ignore:
Timestamp:
Aug 14, 2012, 2:22:30 PM (8 years ago)
Author:
Jnat
Message:

not working ...

Location:
trunk/games/demo-jnat
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/games/demo-jnat/demo-jnat.cpp

    r1729 r1739  
    5959                            vec3(0.f, 0.f, 0.f),
    6060                            vec3(0, 1, 0));
    61     m_camera->SetPerspective(20.f, 960.f, 600.f, .1f, 1000.f);
     61    //m_camera->SetPerspective(20.f, 960.f, 600.f, .1f, 1000.f);
     62        m_camera->SetPerspective(30.f, 960.f, 600.f, .1f, 1000.f);
     63
    6264    m_camera->SetTarget(vec3(0.f, 0.f, 0.f));
    6365    m_camera->SetPosition(vec3(0.f, 60.f, 100.f));
     
    8284        m_angle = 0;
    8385
    84         m_camera->SetTarget(m_player->m_position + vec3(0.f,100.f,0.f));
    85         m_camera->SetPosition(m_player->m_position + vec3(0.0f, 0.0f, 1000.0f));
     86        m_camera->SetTarget(m_player->m_position + vec3(0.f,50.f,0.f));
     87        //m_camera->SetPosition(m_player->m_position + vec3(0.0f, 0.0f, 1000.0f));
     88        m_camera->SetPosition(m_player->m_position + vec3(0.0f, 200.0f, 300.0f));
    8689    mat4 anim = mat4::rotate(m_angle, vec3(0, 1, 0));
    8790    mat4 model = mat4::translate(vec3(0, 0, 0));
  • trunk/games/demo-jnat/demo-jnat.h

    r1715 r1739  
    44#define __DEMOJNAT_H__
    55
     6#include "bo.h"
     7#include "player.h"
    68
    7 #include "player.h"
    89
    910class DemoJnat : public WorldEntity
  • trunk/games/demo-jnat/demo-jnat.vcxproj

    r1715 r1739  
    4444  </ItemGroup>
    4545  <ItemGroup>
     46    <ClInclude Include="bo.h" />
    4647    <ClInclude Include="demo-jnat.h" />
    4748    <ClInclude Include="player.h" />
  • trunk/games/demo-jnat/player.h

    r1723 r1739  
    1515    {
    1616                m_bodymesh.Compile("[sc#3a0 afcb5 10 5 0.4 ty5]""[sc#a30 afcb8 7 10 0.4]");
     17                //m_bo.m_position = m_position + vec3(100.0f,100.0f,100.0f);
    1718    }
    1819
     
    2122        if (m_stick)
    2223            Input::UntrackStick(m_stick);
     24                m_bo = new Bo();
     25                Ticker::Ref(m_bo);
    2326    }
    2427
     
    3235        float updown = (float)(Input::GetButtonState(273 /*SDLK_UP*/) - Input::GetButtonState(274 /*SDLK_DOWN*/));
    3336        float rightleft = (float)(Input::GetButtonState(275 /*SDLK_RIGHT*/) - Input::GetButtonState(276 /*SDLK_LEFT*/));
     37               
     38                //float StickAngle = (float)m_stick->GetAxis(2);
     39
    3440                if (!m_stick)
    3541            m_stick = Input::TrackStick(0);
     
    5965                        m_position += deltapos;
    6066                }
    61                
     67                m_bo->m_position = (m_position + vec3(0.0f,0.0f,10.0f) );
    6268                //m_position += deltapos;
    6369
     
    8288    EasyMesh m_bodymesh;
    8389    Stick *m_stick;
     90        Bo *m_bo;
    8491       
    8592    bool m_ready;
Note: See TracChangeset for help on using the changeset viewer.