diff --git a/Game/data/sprites/blockattack1.sprite b/Game/data/sprites/blockattack1.sprite index 301f353..ddf9e71 100644 --- a/Game/data/sprites/blockattack1.sprite +++ b/Game/data/sprites/blockattack1.sprite @@ -530,6 +530,13 @@ "width" : 50, "number_of_frames" : 1, "frame_time" : 1 +}, +"help_controller" : { + "texture" : "help_controller", + "topx" : 0, + "topy" : 0, + "height" : 310, + "width" : 479 } } diff --git a/Game/data/textures/help_controller.png b/Game/data/textures/help_controller.png new file mode 100644 index 0000000..c969562 Binary files /dev/null and b/Game/data/textures/help_controller.png differ diff --git a/source/AUTH b/source/AUTH index dfa3508..4f4c09c 100644 --- a/source/AUTH +++ b/source/AUTH @@ -60,6 +60,7 @@ garbage_t.png qubodup garbage_tr.png qubodup green.png qubodup grey.png qubodup +help_controller.png nicefrog (https://opengameart.org/content/generic-gamepad-template) i_check_box_area.png Poul Sander icon.png Poul Sander i_draw.png Poul Sander diff --git a/source/assets/gfx/help/controller.svg b/source/assets/gfx/help/controller.svg new file mode 100644 index 0000000..499e607 --- /dev/null +++ b/source/assets/gfx/help/controller.svg @@ -0,0 +1,523 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A + B + X + Y + + + + diff --git a/source/code/HelpGamepadState.cpp b/source/code/HelpGamepadState.cpp index 541561c..caca5f5 100644 --- a/source/code/HelpGamepadState.cpp +++ b/source/code/HelpGamepadState.cpp @@ -48,6 +48,8 @@ void HelpGamepadState::ProcessInput(const SDL_Event& event, bool& processed) { void HelpGamepadState::Draw(SDL_Renderer* target) { DrawBackground(target); + const sago::SagoSprite& gamepad = globalData.spriteHolder->GetSprite("help_controller"); + gamepad.Draw(target, SDL_GetTicks(), globalData.xsize/2-480/2, 100); } void HelpGamepadState::Update() {