Skip to content

Commit

Permalink
ADD RES
Browse files Browse the repository at this point in the history
  • Loading branch information
langresser committed Aug 5, 2012
1 parent fdccfcf commit 239529c
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 0 deletions.
Binary file added smc/data/pixmaps/extern/back.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added smc/data/pixmaps/extern/back1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added smc/data/pixmaps/extern/menuclick.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added smc/data/pixmaps/extern/menunormal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added smc/data/pixmaps/extern/search.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added smc/data/pixmaps/extern/search2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions smc/smc/config.xml
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>

<config >
<property name="game_version" value="2.0.0" />
<property name="game_language" value="" />
<property name="game_always_run" value="0" />
<property name="game_menu_level" value="menu_green_1" />
<property name="game_camera_hor_speed" value="0.3" />
<property name="game_camera_ver_speed" value="0.2" />
<property name="video_screen_w" value="480" />
<property name="video_screen_h" value="320" />
<property name="video_geometry_quality" value="0.5" />
<property name="video_texture_quality" value="0.75" />
<property name="audio_music" value="1" />
<property name="audio_sound" value="1" />
<property name="audio_sound_volume" value="100" />
<property name="audio_music_volume" value="80" />
<property name="keyboard_key_up" value="1073741906" />
<property name="keyboard_key_down" value="1073741905" />
<property name="keyboard_key_left" value="1073741904" />
<property name="keyboard_key_right" value="1073741903" />
<property name="keyboard_key_jump" value="115" />
<property name="keyboard_key_shoot" value="32" />
<property name="keyboard_key_item" value="13" />
<property name="keyboard_key_action" value="97" />
<property name="keyboard_scroll_speed" value="1" />
<property name="keyboard_key_screenshot" value="1073741894" />
<property name="keyboard_key_editor_fast_copy_up" value="1073741920" />
<property name="keyboard_key_editor_fast_copy_down" value="1073741914" />
<property name="keyboard_key_editor_fast_copy_left" value="1073741916" />
<property name="keyboard_key_editor_fast_copy_right" value="1073741918" />
<property name="keyboard_key_editor_pixel_move_up" value="1073741920" />
<property name="keyboard_key_editor_pixel_move_down" value="1073741914" />
<property name="keyboard_key_editor_pixel_move_left" value="1073741916" />
<property name="keyboard_key_editor_pixel_move_right" value="1073741918" />
<property name="level_background_images" value="1" />
<property name="image_cache_enabled" value="1" />
<property name="editor_mouse_auto_hide" value="0" />
<property name="editor_show_item_images" value="1" />
<property name="editor_item_image_size" value="40" />
</config>
28 changes: 28 additions & 0 deletions smc/src/input/joystick.cpp
Expand Up @@ -30,6 +30,30 @@ void Joystick::createJoystick(cSprite_Manager *sprite_manager)
m_right = new cHudSprite(sprite_manager);
m_right->Set_Image(pVideo->Get_Surface("extern/jsright.png"));
m_right->Set_Pos( 20, 150, 1 );

m_menu = new cHudSprite(sprite_manager);
m_menu->Set_Image(pVideo->Get_Surface("extern/menunormal.png"));
m_menu->Set_Pos(2, 2, 1);

m_menuClick = new cHudSprite(sprite_manager);
m_menuClick->Set_Image(pVideo->Get_Surface("extern/menunclick.png"));
m_menuClick->Set_Pos(2, 2, 1);

m_jump = new cHudSprite(sprite_manager);
m_jump->Set_Image(pVideo->Get_Surface("extern/back1.png"));
m_jump->Set_Pos(430, 250, 1);

m_jumpClick = new cHudSprite(sprite_manager);
m_jumpClick->Set_Image(pVideo->Get_Surface("extern/back.png"));
m_jumpClick->Set_Pos(430, 250, 1);

m_fire = new cHudSprite(sprite_manager);
m_fire->Set_Image(pVideo->Get_Surface("extern/search.png"));
m_fire->Set_Pos(400, 280, 1);

m_fireClick = new cHudSprite(sprite_manager);
m_fireClick->Set_Image(pVideo->Get_Surface("extern/search2.png"));
m_fireClick->Set_Pos(400, 280, 1);
}

void Joystick::show()
Expand All @@ -52,6 +76,10 @@ void Joystick::show()
m_right->Draw(NULL);
break;
}

m_menu->Draw(NULL);
m_jump->Draw(NULL);
m_fire->Draw(NULL);
}

Joystick& Joystick::Instance()
Expand Down
7 changes: 7 additions & 0 deletions smc/src/input/joystick.h
Expand Up @@ -29,6 +29,13 @@ namespace SMC
cHudSprite* m_down;
cHudSprite* m_left;
cHudSprite* m_right;

cHudSprite* m_menu;
cHudSprite* m_menuClick;
cHudSprite* m_jump;
cHudSprite* m_jumpClick;
cHudSprite* m_fire;
cHudSprite* m_fireClick;
cSprite_Manager* m_spriteManager;
};
}

0 comments on commit 239529c

Please sign in to comment.