Add mrsh sprite #4
26
raylib.make
26
raylib.make
@@ -44,54 +44,54 @@ endef
|
|||||||
|
|
||||||
ifeq ($(config),debug_x64)
|
ifeq ($(config),debug_x64)
|
||||||
TARGETDIR = bin/Debug
|
TARGETDIR = bin/Debug
|
||||||
TARGET = $(TARGETDIR)/raylib.lib
|
TARGET = $(TARGETDIR)/libraylib.a
|
||||||
OBJDIR = obj/x64/Debug/raylib
|
OBJDIR = obj/x64/Debug/raylib
|
||||||
DEFINES += -DDEBUG -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33
|
DEFINES += -DDEBUG -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33 -D_GLFW_X11
|
||||||
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -g
|
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -g
|
||||||
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -g
|
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -g
|
||||||
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib64 -m64
|
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib64 -m64
|
||||||
|
|
||||||
else ifeq ($(config),debug_x86)
|
else ifeq ($(config),debug_x86)
|
||||||
TARGETDIR = bin/Debug
|
TARGETDIR = bin/Debug
|
||||||
TARGET = $(TARGETDIR)/raylib.lib
|
TARGET = $(TARGETDIR)/libraylib.a
|
||||||
OBJDIR = obj/x86/Debug/raylib
|
OBJDIR = obj/x86/Debug/raylib
|
||||||
DEFINES += -DDEBUG -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33
|
DEFINES += -DDEBUG -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33 -D_GLFW_X11
|
||||||
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m32 -g
|
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m32 -g
|
||||||
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m32 -g
|
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m32 -g
|
||||||
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib32 -m32
|
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib32 -m32
|
||||||
|
|
||||||
else ifeq ($(config),debug_arm64)
|
else ifeq ($(config),debug_arm64)
|
||||||
TARGETDIR = bin/Debug
|
TARGETDIR = bin/Debug
|
||||||
TARGET = $(TARGETDIR)/raylib.lib
|
TARGET = $(TARGETDIR)/libraylib.a
|
||||||
OBJDIR = obj/ARM64/Debug/raylib
|
OBJDIR = obj/ARM64/Debug/raylib
|
||||||
DEFINES += -DDEBUG -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33
|
DEFINES += -DDEBUG -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33 -D_GLFW_X11
|
||||||
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -g
|
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -g
|
||||||
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -g
|
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -g
|
||||||
ALL_LDFLAGS += $(LDFLAGS)
|
ALL_LDFLAGS += $(LDFLAGS)
|
||||||
|
|
||||||
else ifeq ($(config),release_x64)
|
else ifeq ($(config),release_x64)
|
||||||
TARGETDIR = bin/Release
|
TARGETDIR = bin/Release
|
||||||
TARGET = $(TARGETDIR)/raylib.lib
|
TARGET = $(TARGETDIR)/libraylib.a
|
||||||
OBJDIR = obj/x64/Release/raylib
|
OBJDIR = obj/x64/Release/raylib
|
||||||
DEFINES += -DNDEBUG -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33
|
DEFINES += -DNDEBUG -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33 -D_GLFW_X11
|
||||||
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -O2
|
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -O2
|
||||||
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -O2
|
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -O2
|
||||||
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib64 -m64 -s
|
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib64 -m64 -s
|
||||||
|
|
||||||
else ifeq ($(config),release_x86)
|
else ifeq ($(config),release_x86)
|
||||||
TARGETDIR = bin/Release
|
TARGETDIR = bin/Release
|
||||||
TARGET = $(TARGETDIR)/raylib.lib
|
TARGET = $(TARGETDIR)/libraylib.a
|
||||||
OBJDIR = obj/x86/Release/raylib
|
OBJDIR = obj/x86/Release/raylib
|
||||||
DEFINES += -DNDEBUG -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33
|
DEFINES += -DNDEBUG -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33 -D_GLFW_X11
|
||||||
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m32 -O2
|
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m32 -O2
|
||||||
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m32 -O2
|
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m32 -O2
|
||||||
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib32 -m32 -s
|
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib32 -m32 -s
|
||||||
|
|
||||||
else ifeq ($(config),release_arm64)
|
else ifeq ($(config),release_arm64)
|
||||||
TARGETDIR = bin/Release
|
TARGETDIR = bin/Release
|
||||||
TARGET = $(TARGETDIR)/raylib.lib
|
TARGET = $(TARGETDIR)/libraylib.a
|
||||||
OBJDIR = obj/ARM64/Release/raylib
|
OBJDIR = obj/ARM64/Release/raylib
|
||||||
DEFINES += -DNDEBUG -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33
|
DEFINES += -DNDEBUG -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33 -D_GLFW_X11
|
||||||
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -O2
|
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -O2
|
||||||
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -O2
|
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -O2
|
||||||
ALL_LDFLAGS += $(LDFLAGS) -s
|
ALL_LDFLAGS += $(LDFLAGS) -s
|
||||||
@@ -159,7 +159,7 @@ ifeq (posix,$(SHELLTYPE))
|
|||||||
$(SILENT) rm -rf $(OBJDIR)
|
$(SILENT) rm -rf $(OBJDIR)
|
||||||
else
|
else
|
||||||
$(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET))
|
$(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET))
|
||||||
$(SILENT) $(foreach f,$(subst /,\\,$(GENERATED)),if exist $(f) del /s /q $(f) >nul &)
|
$(SILENT) if exist $(subst /,\\,$(GENERATED)) del /s /q $(subst /,\\,$(GENERATED))
|
||||||
$(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR))
|
$(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
BIN
resources/mrsh.png
Normal file
BIN
resources/mrsh.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 206 B |
@@ -24,7 +24,7 @@ int main ()
|
|||||||
SearchAndSetResourceDir("resources");
|
SearchAndSetResourceDir("resources");
|
||||||
|
|
||||||
// Load a texture from the resources directory
|
// Load a texture from the resources directory
|
||||||
Image image = LoadImage("emi.png");
|
Image image = LoadImage("mrsh.png");
|
||||||
Texture2D emi = LoadTextureFromImage(image);
|
Texture2D emi = LoadTextureFromImage(image);
|
||||||
UnloadImage(image);
|
UnloadImage(image);
|
||||||
|
|
||||||
@@ -48,7 +48,9 @@ int main ()
|
|||||||
// Setup the back buffer for drawing (clear color and depth buffers)
|
// Setup the back buffer for drawing (clear color and depth buffers)
|
||||||
ClearBackground(BLACK);
|
ClearBackground(BLACK);
|
||||||
|
|
||||||
DrawRectangle(HorizontalPosition, VerticalPosition, 10, 10, BLUE);
|
// DrawRectangle(HorizontalPosition, VerticalPosition, 10, 10, BLUE);
|
||||||
|
DrawTexture(emi, HorizontalPosition, VerticalPosition, WHITE);
|
||||||
|
|
||||||
|
|
||||||
DrawCircle(positionXCollectible, positionYCollectible, 10, YELLOW);
|
DrawCircle(positionXCollectible, positionYCollectible, 10, YELLOW);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user