Skip to content

Commit

Permalink
Merge pull request #1 from rincew1nd/Development
Browse files Browse the repository at this point in the history
New release
  • Loading branch information
rincew1nd authored Jul 1, 2018
2 parents 2fb7a19 + 496f030 commit 0b7dd06
Show file tree
Hide file tree
Showing 43 changed files with 725 additions and 368 deletions.
23 changes: 17 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ include $(DEVKITPRO)/libnx/switch_rules
#---------------------------------------------------------------------------------
APP_TITLE := Minesweeper
APP_AUTHOR := Rincew1nd
APP_VERSION := 1.0.3
APP_VERSION := 1.1.0
ICON := icon.jpg
TARGET := $(notdir $(CURDIR))
BUILD := build
Expand All @@ -52,12 +52,12 @@ CFLAGS := -g -Wall -O2 -ffunction-sections \

CFLAGS += $(INCLUDE) -D__SWITCH__

CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11 -Wno-sign-compare

ASFLAGS := -g $(ARCH)
LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)

LIBS := -lSDL2_image -lSDL2_mixer -lSDL2 -lnx
LIBS := -lSDL2_image -lSDL2_mixer -lSDL2_ttf -lSDL2 -lfreetype -lpng -lz -lbz2 -lnx -lm

#---------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level containing
Expand All @@ -77,12 +77,23 @@ export OUTPUT := $(CURDIR)/$(TARGET)
export TOPDIR := $(CURDIR)

export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \
$(foreach dir,$(DATA),$(CURDIR)/$(dir))
$(foreach dir,$(SOURCES)/Engine,$(CURDIR)/$(dir)) \
$(foreach dir,$(SOURCES)/GameObjects,$(CURDIR)/$(dir)) \
$(foreach dir,$(SOURCES)/Scenes,$(CURDIR)/$(dir)) \
$(foreach dir,$(SOURCES)/Widgets,$(CURDIR)/$(dir)) \
$(foreach dir,$(SOURCES),$(foreach subdir,$(SOURCES)/$(dir),$(CURDIR)/$(dir)/$(subdir))) \
$(foreach dir,$(DATA),$(CURDIR)/$(dir))

$(info VAR is $(VPATH))

export DEPSDIR := $(CURDIR)/$(BUILD)

CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp))) \
$(foreach dir,$(SOURCES)/Engine,$(notdir $(wildcard $(dir)/*.cpp))) \
$(foreach dir,$(SOURCES)/GameObjects,$(notdir $(wildcard $(dir)/*.cpp))) \
$(foreach dir,$(SOURCES)/Scenes,$(notdir $(wildcard $(dir)/*.cpp))) \
$(foreach dir,$(SOURCES)/Widgets,$(notdir $(wildcard $(dir)/*.cpp)))
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*)))

Expand Down Expand Up @@ -194,4 +205,4 @@ $(OFILES_SRC) : $(HFILES_BIN)

#---------------------------------------------------------------------------------------
endif
#---------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ Feel free to report bugs and contribute!

## To-Do:

* Option screen with basic parametrization
* Touch screen gestures for zooming and moving field
* Touchscreen gestures for zooming and moving field
* Timer and scoreboard

## Roadmap for next release:

* Timer and scoreboard (000%).
Binary file added romfs/Pixeled.ttf
Binary file not shown.
Binary file renamed romfs/easyButton.bmp → romfs/arrowLeftButton.bmp
Binary file not shown.
Binary file renamed romfs/hardButton.bmp → romfs/arrowRightButton.bmp
Binary file not shown.
Binary file added romfs/escButton.bmp
Binary file not shown.
Binary file removed romfs/mediumButton.bmp
Binary file not shown.
Binary file added romfs/minusButton.bmp
Binary file not shown.
Binary file added romfs/plusButton.bmp
Binary file not shown.
Binary file added romfs/settingsButton.bmp
Binary file not shown.
199 changes: 0 additions & 199 deletions source/Board.cpp

This file was deleted.

7 changes: 0 additions & 7 deletions source/Button.cpp

This file was deleted.

12 changes: 0 additions & 12 deletions source/Button.hpp

This file was deleted.

30 changes: 0 additions & 30 deletions source/Cell.hpp

This file was deleted.

54 changes: 0 additions & 54 deletions source/DrawableObject.cpp

This file was deleted.

12 changes: 12 additions & 0 deletions source/Engine/Button.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "Button.hpp"

Button::Button(int x, int y, int w, int h, std::string name, std::function<void()> func) : SpriteObject(x, y, w, h)
{
_name = name;
SetAction(func);
}

Button::Button(int x, int y, int w, int h, std::string name) : SpriteObject(x, y, w, h)
{
_name = name;
}
Loading

0 comments on commit 0b7dd06

Please sign in to comment.