Changeset 1396
- Timestamp:
- May 15, 2012, 2:24:22 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/orbital/Makefile.am
r1386 r1396 4 4 orbital_SOURCES = \ 5 5 orbital.cpp orbital.h mesh.h particlesystem.h tank.h player.h \ 6 snake.h starfield.h6 gun.h snake.h starfield.h 7 7 nodist_orbital_SOURCES = \ 8 8 shiny.lolfx.cpp -
trunk/orbital/orbital.cpp
r1379 r1396 239 239 int main(int argc, char **argv) 240 240 { 241 Application app("Orbital", ivec2(800, 600), 60.0f); 241 Application app("Orbital", ivec2(1280, 720), 60.0f); 242 //Application app("Orbital", ivec2(800, 600), 60.0f); 242 243 243 244 #if defined _MSC_VER && !defined _XBOX -
trunk/orbital/orbital.h
r1367 r1396 10 10 #include "mesh.h" 11 11 #include "particlesystem.h" 12 #include "gun.h" 12 13 #include "starfield.h" 13 14 #include "tank.h" -
trunk/orbital/snake.h
r1391 r1396 15 15 Snake(int nodes) 16 16 : m_steer(0.f), 17 m_stick(0), 17 18 m_ready(false) 18 19 { … … 46 47 ~Snake() 47 48 { 49 if (m_stick) 50 Input::UntrackStick(m_stick); 48 51 } 49 52 … … 68 71 69 72 /* Destruction test */ 70 if (m_nodes.Count() >= 3 && m_steer > 30 71 && (int)m_steer / 6 != (int)(m_steer - 2.f * seconds) / 6) 73 if (!m_stick) 74 m_stick = Input::TrackStick(); 75 if (m_stick && m_stick->GetButtonCount() >= 4 76 && m_stick->GetButton(12) 77 && (int)m_steer != (int)(m_steer - 2.f * seconds)) 72 78 { 73 79 int tohit = (int)RandF(m_nodes.Count() - 2); … … 167 173 /* List of nodes (position, self-rotation angle, life, damage) */ 168 174 Array<vec3, float, float, float> m_nodes; 175 /* Test */ 176 Stick *m_stick; 169 177 bool m_ready; 170 178 }; -
trunk/win32/orbital.vcxproj
r1386 r1396 29 29 <ItemGroup> 30 30 <ClInclude Include="..\orbital\CommandParser.h" /> 31 <ClInclude Include="..\orbital\gun.h" /> 31 32 <ClInclude Include="..\orbital\mesh.h" /> 32 33 <ClInclude Include="..\orbital\orbital.h" /> -
trunk/win32/orbital.vcxproj.filters
r1380 r1396 2 2 <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 3 <ItemGroup> 4 <ClInclude Include="..\orbital\gun.h" /> 4 5 <ClInclude Include="..\orbital\mesh.h" /> 5 6 <ClInclude Include="..\orbital\CommandParser.h" />
Note: See TracChangeset
for help on using the changeset viewer.