#define MARBLE_COMP_VERSION 4
//#define VG_CAPTURE_MODE
-//#define VG_STEAM
#define VG_STEAM_APPID 1218140U
#include "vg/vg.h"
if( lvl->unlock )
career_unlock_level( lvl->unlock );
- #ifdef VG_STEAM
if( lvl->achievement )
sw_set_achievement( lvl->achievement );
}
sw_set_achievement( "MASTER_ENGINEER" );
- #endif
}
}
if( cell_entry->config == k_cell_type_con_r || cell_entry->config == k_cell_type_con_u
|| cell_entry->config == k_cell_type_con_l || cell_entry->config == k_cell_type_con_d )
{
- #ifdef VG_STEAM
sw_set_achievement( "CAN_DO_THAT" );
- #endif
fish->state = k_fish_state_soon_alive;
if( collide_next_frame || collide_this_frame )
{
- #ifdef VG_STEAM
sw_set_achievement( "BANG" );
- #endif
// Shatter death (+0.5s)
float death_time = world.sim_internal_time + ( collide_this_frame? 0.0f: 0.5f );
}
else
{
- #ifdef VG_STEAM
if( world.sim_run > 0 )
sw_set_achievement( "GOOD_ENOUGH" );
- #endif
vg_error( "Level failed :(\n" );
}
void vg_free(void)
{
-#ifdef VG_STEAM
- sw_free_opengl();
-#endif
-
console_save_map( 0, NULL );
career_serialize();