Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v2
Expand All @@ -37,6 +37,9 @@ jobs:
- name: Install ncurses
run: sudo apt install libncurses5-dev

- name: Install X11
run: sudo apt install libx11-dev

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
Expand Down
2 changes: 1 addition & 1 deletion snap/gui/shellsnake.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ GenericName=Snake
Comment=A simple terminal based game
#TryExec=gnome-terminal --maximize -e "bash -c 'shellsnake'"
Exec=shellsnake
Icon=${SNAP}/meta/gui/shellsnake.png
Icon=${SNAP}/meta/gui/shellsnake.jpeg
Type=Application
Terminal=true
Categories=Utility;Game;
Expand Down
Binary file added snap/gui/shellsnake.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed snap/gui/shellsnake.png
Binary file not shown.
2 changes: 1 addition & 1 deletion src/counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Counter : public IDrawable
return true;
};

void notify(int ch) override{};
void notify(int ch) override {};
bool isNotifiable() override
{
return false;
Expand Down
4 changes: 2 additions & 2 deletions src/image.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ class Image : public IDrawable
return true;
}

void update() override{};
void update() override {};
bool isUpdatable() override
{
return false;
}

void notify(int ch) override{};
void notify(int ch) override {};
bool isNotifiable() override
{
return false;
Expand Down
4 changes: 2 additions & 2 deletions src/label.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ class Label : public IDrawable
return true;
};

void update() override{};
void update() override {};
bool isUpdatable() override
{
return false;
};

void notify(int ch) override{};
void notify(int ch) override {};
bool isNotifiable() override
{
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Menu : public IDrawable
return true;
}

void update() override{};
void update() override {};
bool isUpdatable() override
{
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/settingsMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class SettingsMenu : public IDrawable
return true;
}

void update() override{};
void update() override {};
bool isUpdatable() override
{
return false;
Expand Down
4 changes: 2 additions & 2 deletions src/snake.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ class Snake : public IDrawable
return true;
};

void update() override{};
void update() override {};
bool isUpdatable() override
{
return false;
};

void notify(int ch) override{};
void notify(int ch) override {};
bool isNotifiable() override
{
return false;
Expand Down