Skip to content

Commit

Permalink
Add application icon
Browse files Browse the repository at this point in the history
  • Loading branch information
aleamb committed Jan 26, 2020
1 parent 41c78f1 commit aa9c352
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 15 deletions.
9 changes: 4 additions & 5 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ int main(int argc, char** argv)
cleanup();
exit(1000);
}

if (init_sound(SAMPLE_RATE) < 0) {
cleanup();
exit(1001);
Expand Down Expand Up @@ -101,11 +102,11 @@ void run_game()
while (gameState != EXIT) {
startTime = sys_get_ticks();
if (pendingEvent) {
process_events_task(&event);
process_events_task(&event);
}
if (currentState != gameState || reset_frames_counter) {
framesElapsed = 0;
currentState = gameState;
framesElapsed = 0;
currentState = gameState;
}
reset_frames_counter = process_state(framesElapsed, pendingEvent, &event);
render();
Expand All @@ -119,8 +120,6 @@ void run_game()
wait_time = 0;
}
pendingEvent = sys_wait(&event, wait_time);


}
}

Expand Down
6 changes: 2 additions & 4 deletions projects/vs2017/Pong3D/Pong3D.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,13 @@
<ClInclude Include="..\..\..\tasks.h" />
<ClInclude Include="..\..\..\text.h" />
<ClInclude Include="resource.h" />
<ClInclude Include="resource1.h" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="resource.rc" />
</ItemGroup>
<ItemGroup>
<Image Include="..\..\..\pong3d.ico" />
<ResourceCompile Include="..\..\..\resource.rc" />
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>16.0</VCProjectVersion>
Expand Down
10 changes: 4 additions & 6 deletions projects/vs2017/Pong3D/Pong3D.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,16 @@
<ClInclude Include="resource.h">
<Filter>Archivos de encabezado</Filter>
</ClInclude>
<ClInclude Include="resource1.h">
<Filter>Archivos de encabezado</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="resource.rc">
<ResourceCompile Include="..\..\..\resource.rc">
<Filter>Archivos de recursos</Filter>
</ResourceCompile>
</ItemGroup>
<ItemGroup>
<Image Include="..\..\..\pong3d.ico">
<Filter>Archivos de recursos</Filter>
</Image>
</ItemGroup>
</Project>
Binary file removed projects/vs2017/Pong3D/resource.aps
Binary file not shown.
Binary file added resource.aps
Binary file not shown.
File renamed without changes.
Binary file renamed projects/vs2017/Pong3D/resource.rc → resource.rc
Binary file not shown.

0 comments on commit aa9c352

Please sign in to comment.