Skip to content

Commit

Permalink
branched linux-release
Browse files Browse the repository at this point in the history
  • Loading branch information
xinoip committed Sep 16, 2019
1 parent 7099626 commit d2d0bfa
Show file tree
Hide file tree
Showing 155 changed files with 70 additions and 99 deletions.
26 changes: 0 additions & 26 deletions Game-release/Makefile

This file was deleted.

60 changes: 0 additions & 60 deletions Game-release/sdl2-config

This file was deleted.

17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
OBJS = ./*/pio-texture.c ./*/pio-text-font.c ./*/pio-window.c ./*/miner.c ./*/camera.c ./*/tile.c ./*/level.c ./*/controls.c render.c main.c
CC = gcc
COMPILER_FLAGS = -w
LINKER_FLAGS = ./libs/libSDL2.so ./libs/libSDL2_image.so ./libs/libSDL2_mixer.so ./libs/libSDL2_ttf.so ./libs/libfreetype.so -L.

LD_LIBRARY_PATH = ./libs
export LD_LIBRARY_PATH

OBJ_NAME = app
all : $(OBJS)
$(CC) $(OBJS) $(COMPILER_FLAGS) $(LINKER_FLAGS) -o $(OBJ_NAME) | ./app

run :
./app



40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
![Showcase](https://github.com/xinoip/boulderDash/blob/readme-assets/ast2.gif "Showcase")

# Boulderdash Clone

Clone of famous commodore 64 game, boulderdash, made in C with SDL2 library.

## Level Editor

Level Editor that i made is [here](https://github.com/xinoip/boulderdash-level-editor).

### Controls

Arrow keys for movement.
R to reset level.
P to pause game.

## Compiling and Running Release Version

Install the release version and extract the files.

Make the makefile, you don't need anything else installed.

#### For pure dev version

Clone the master branch, make the makefile.

You will need libSDL2, libSDL2-mixer, libSDL2-image, libSDL2-ttf and freetypefont library.
In release version you do not need them.

## Library Path

If you run the game using makefile, there will be no problem.

But if you want to run the game without makefile set your LD_LIBRARY_PATH:

```bash
export LD_LIBRARY_PATH:$LD_LIBRARY_PATH:./libs
```

![Rip](https://github.com/xinoip/boulderDash/blob/readme-assets/ast1.gif "Rip")
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions Game-release/main.c → main.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "./include/SDL.h"
#include "./include/SDL_image.h"
#include "./include/SDL_ttf.h"
#include "./include/SDL_mixer.h"
#include "./libs/include/SDL.h"
#include "./libs/include/SDL_image.h"
#include "./libs/include/SDL_ttf.h"
#include "./libs/include/SDL_mixer.h"

#include "./base.h"
#include "./wrappers/pio-texture.h"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Game-release/objects/controls.h → objects/controls.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

typedef struct Miner miner_t;

#include "../include/SDL.h"
#include "../libs/include/SDL.h"
#include "../base.h"
#include "./level.h"
#include "./miner.h"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Game-release/objects/miner.h → objects/miner.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

typedef struct Miner miner_t;

#include "../include/SDL.h"
#include "../libs/include/SDL.h"
#include <stdlib.h>
#include "../base.h"
#include "./level.h"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions Game-release/render.h → render.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef RENDER_H
#define RENDER_H

#include "./include/SDL.h"
#include "./include/SDL_ttf.h"
#include "./include/SDL_mixer.h"
#include "./libs/include/SDL.h"
#include "./libs/include/SDL_ttf.h"
#include "./libs/include/SDL_mixer.h"
#include "./base.h"
#include "./wrappers/pio-texture.h"
#include "./wrappers/pio-window.h"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef PIO_TEXT_FONT_H
#define PIO_TEXT_FONT_H

#include "../include/SDL_ttf.h"
#include "../libs/include/SDL_ttf.h"
#include <stdlib.h>
#include "./pio-texture.h"

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ifndef PIO_TEXTURE_H
#define PIO_TEXTURE_H

#include "../include/SDL.h"
#include "../include/SDL_image.h"
#include "../libs/include/SDL.h"
#include "../libs/include/SDL_image.h"

typedef struct PioTexture {
int width, height;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef PIO_WINDOW_H
#define PIO_WINDOW_H

#include "../include/SDL.h"
#include "../libs/include/SDL.h"

typedef struct PioWindow {
SDL_Window *window;
Expand Down

0 comments on commit d2d0bfa

Please sign in to comment.