Ignore:
Timestamp:
Apr 26, 2012, 8:20:48 PM (9 years ago)
Author:
sam
Message:

core: prefix some member variables with m_ for clarity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mrpigeon/redenemy.cpp

    r1211 r1300  
    3030    enemy_casualredfall = Tiler::Register("mrpigeon/gfx/enemy_CasualRED_fall.png", ivec2(16,24), ivec2(0));
    3131
    32     position = vec3(512, 81, 0);
    33     velocity = vec3(-0.15f, 0, 0);
     32    m_position = vec3(512, 81, 0);
     33    m_velocity = vec3(-0.15f, 0, 0);
    3434}
    3535
     
    4242    enemytime = fmod(deltams + enemytime, 700.0f);;
    4343
    44     position += velocity * deltams;
     44    m_position += m_velocity * deltams;
    4545}
    4646
     
    5050
    5151    /* + 48 because of vertical flip */
    52     Scene::GetDefault()->AddTile(enemy_casualred, (int)(enemytime * 6 / 700.0f), position + vec3(48.0f, 0, 0), 0, vec2(-3.0f, 3.0f));
     52    Scene::GetDefault()->AddTile(enemy_casualred, (int)(enemytime * 6 / 700.0f), m_position + vec3(48.0f, 0, 0), 0, vec2(-3.0f, 3.0f));
    5353}
    5454
Note: See TracChangeset for help on using the changeset viewer.