Skip to content

Commit

Permalink
Updated project to GBDK 4.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgalan committed Dec 20, 2021
1 parent 6266c42 commit d640290
Show file tree
Hide file tree
Showing 13 changed files with 96 additions and 20 deletions.
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# El Dueloroso

**El Dueloroso** is a western-themed arcade game for the Nintendo Game Boy.
**El Dueloroso** is a western-themed arcade game for the Nintendo Game Boy and Analogue Pocket.
Submitted as a [Game Boy Competition 2021](https://itch.io/jam/gbcompo21) entry.
Download the latest version [here](https://github.com/ajgalan/el-dueloroso/releases/latest).

Expand All @@ -10,7 +10,8 @@ Download the latest version [here](https://github.com/ajgalan/el-dueloroso/relea

- [Features](#features)
- [Screenshots](#screenshots)
- [Build instructions](#build-instructions)
- [Build instructions for Game Boy](#build-instructions-for-game-boy)
- [Build instructions for Analogue Pocket](#build-instructions-for-analogue-pocket)
- [Licenses](#licenses)
- [Credits](#credits)
- [Links](#links)
Expand All @@ -30,12 +31,18 @@ Download the latest version [here](https://github.com/ajgalan/el-dueloroso/relea
![El Dueloroso Screenshot 2](assets/screenshot2.png)
![El Dueloroso Screenshot 3](assets/screenshot3.png)
![El Dueloroso Screenshot 4](assets/screenshot4.png)
## Build instructions

1. Download [GBDK 2020 v4.0.4](https://github.com/gbdk-2020/gbdk-2020/releases/tag/4.0.4)
2. Clone this repository and modify the first line of `make.bat` by defining the path to GBDK
3. Run `make.bat`
4. The compiled game will be located at `build/ElDueloroso.gb`
## Build instructions for Game Boy
1. Download [GBDK 2020 v4.0.5](https://github.com/gbdk-2020/gbdk-2020/releases/tag/4.0.5)
2. Clone this repository and modify the first line of `make_gameboy.bat` by defining the path to GBDK
3. Run `make_gameboy.bat`
4. The compiled game will be located at `build/gb/ElDueloroso.gb`

## Build instructions for Analogue Pocket
1. Download [GBDK 2020 v4.0.5](https://github.com/gbdk-2020/gbdk-2020/releases/tag/4.0.5)
2. Clone this repository and modify the first line of `make_analoguepocket.bat` by defining the path to GBDK
3. Run `make_analoguepocket.bat`
4. The compiled game will be located at `build/ap/ElDueloroso.pocket`

## Licenses
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
Expand Down
67 changes: 67 additions & 0 deletions make_analoguepocket.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
@set GBDK=d:\GBDev\gbdk

@if not exist build mkdir build
@if not exist build\ap mkdir build\ap
@if not exist obj mkdir obj
@if not exist obj\sprites mkdir obj\sprites
@if not exist obj\tiles mkdir obj\tiles
@if not exist obj\maps mkdir obj\maps
@if not exist obj\backgrounds mkdir obj\backgrounds
@if not exist obj\sound mkdir obj\sound

%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo0 -c -o obj/main.o src/main.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo0 -c -o obj/utils.o src/utils.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo0 -c -o obj/levels.o src/levels.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo0 -c -o obj/sound.o src/sound.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo0 -c -o obj/title.o src/title.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo0 -c -o obj/duel.o src/duel.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo0 -c -o obj/shooting.o src/shooting.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo0 -c -o obj/riding.o src/riding.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo0 -c -o obj/text.o src/text.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo1 -c -o obj/duel_banked.o src/duel_banked.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo1 -c -o obj/shooting_banked.o src/shooting_banked.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo1 -c -o obj/riding_banked.o src/riding_banked.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/sprites/ridingSprites.o src/sprites/ridingSprites.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/sprites/mainMenuSprites.o src/sprites/mainMenuSprites.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/sprites/shootingSprites.o src/sprites/shootingSprites.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/sprites/duelCharactersSprites.o src/sprites/duelCharactersSprites.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/tiles/numbers.o src/tiles/numbers.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/tiles/bigTextUITiles.o src/tiles/bigTextUITiles.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/tiles/iconsUI.o src/tiles/iconsUI.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/tiles/textTiles.o src/tiles/textTiles.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/tiles/borderTiles.o src/tiles/borderTiles.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/tiles/pausedUITiles.o src/tiles/pausedUITiles.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/maps/bigTextUIMaps.o src/maps/bigTextUIMaps.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/maps/pausedUIMap.o src/maps/pausedUIMap.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/maps/borderMaps.o src/maps/borderMaps.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/backgrounds/adrianjgLogo.o src/backgrounds/adrianjgLogo.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/backgrounds/duelBackground.o src/backgrounds/duelBackground.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/backgrounds/gbcompo2021.o src/backgrounds/gbcompo2021.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/backgrounds/ridingBackground.o src/backgrounds/ridingBackground.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/backgrounds/shootingBackground.o src/backgrounds/shootingBackground.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/backgrounds/titleBackground.o src/backgrounds/titleBackground.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/backgrounds/gameOverBackground.o src/backgrounds/gameOverBackground.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo2 -c -o obj/backgrounds/easterEgg.o src/backgrounds/easterEgg.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo3 -c -o obj/sound/shootingSong.o src/sound/shootingSong.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo3 -c -o obj/sound/winSong.o src/sound/winSong.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo3 -c -o obj/sound/loseSong.o src/sound/loseSong.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo3 -c -o obj/sound/ridingSong.o src/sound/ridingSong.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo3 -c -o obj/sound/titleSong.o src/sound/titleSong.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-ba0 -c -o obj/saveData.o src/saveData.c

%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -DUSE_SFR_FOR_REG -Wm-yn"ELDUELOROSO" -Wm-yj -Wl-yt3 -Wl-yo4 -Wl-ya1 ^
-mgbz80:ap -o build/ap/ElDueloroso.pocket ^
obj/main.o obj/utils.o obj/sound.o obj/levels.o obj/title.o obj/duel.o obj/shooting.o obj/riding.o obj/text.o ^
obj/duel_banked.o obj/shooting_banked.o obj/riding_banked.o ^
obj/sprites/ridingSprites.o obj/sprites/mainMenuSprites.o obj/sprites/shootingSprites.o obj/sprites/duelCharactersSprites.o ^
obj/tiles/numbers.o obj/tiles/bigTextUITiles.o obj/tiles/iconsUI.o obj/tiles/textTiles.o obj/tiles/borderTiles.o obj/tiles/pausedUITiles.o ^
obj/maps/bigTextUIMaps.o obj/maps/pausedUIMap.o obj/maps/borderMaps.o ^
obj/backgrounds/adrianjgLogo.o obj/backgrounds/duelBackground.o obj/backgrounds/gbcompo2021.o obj/backgrounds/ridingBackground.o ^
obj/backgrounds/shootingBackground.o obj/backgrounds/titleBackground.o obj/backgrounds/gameOverBackground.o obj/backgrounds/easterEgg.o ^
libs/huGEDriver.obj.o obj/sound/titleSong.o obj/sound/shootingSong.o obj/sound/ridingSong.o obj/sound/winSong.o obj/sound/loseSong.o ^
obj/saveData.o

@echo.
@if exist build/ap/ElDueloroso.pocket echo Build finished! The game is on build/ap/ElDueloroso.pocket
@if not exist build/ap/ElDueloroso.pocket echo Build failed! Please make sure you have set the path to gbdk-4.0.5 on line 1
pause
8 changes: 5 additions & 3 deletions make.bat → make_gameboy.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@set GBDK=d:\GBDev\gbdk

@if not exist build mkdir build
@if not exist build\gb mkdir build\gb
@if not exist obj mkdir obj
@if not exist obj\sprites mkdir obj\sprites
@if not exist obj\tiles mkdir obj\tiles
Expand Down Expand Up @@ -48,7 +49,8 @@
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-bo3 -c -o obj/sound/titleSong.o src/sound/titleSong.c
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -Wf-ba0 -c -o obj/saveData.o src/saveData.c

%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -DUSE_SFR_FOR_REG -Wm-yn"ELDUELOROSO" -Wm-yj -Wl-yt3 -Wl-yo4 -Wl-ya1 -o build/ElDueloroso.gb ^
%GBDK%\bin\lcc -Wa-l -Wl-m -Wf--debug -Wl-y -Wl-j -DUSE_SFR_FOR_REG -Wm-yn"ELDUELOROSO" -Wm-yj -Wl-yt3 -Wl-yo4 -Wl-ya1 ^
-mgbz80:gb -o build/gb/ElDueloroso.gb ^
obj/main.o obj/utils.o obj/sound.o obj/levels.o obj/title.o obj/duel.o obj/shooting.o obj/riding.o obj/text.o ^
obj/duel_banked.o obj/shooting_banked.o obj/riding_banked.o ^
obj/sprites/ridingSprites.o obj/sprites/mainMenuSprites.o obj/sprites/shootingSprites.o obj/sprites/duelCharactersSprites.o ^
Expand All @@ -60,6 +62,6 @@ libs/huGEDriver.obj.o obj/sound/titleSong.o obj/sound/shootingSong.o obj/sound/r
obj/saveData.o

@echo.
@if exist build/ElDueloroso.gb echo Build finished! The game is on build/ElDueloroso.gb
@if not exist build/ElDueloroso.gb echo Build failed! Please make sure you have set the path to gbdk-4.0.4 on line 1
@if exist build/gb/ElDueloroso.gb echo Build finished! The game is on build/gb/ElDueloroso.gb
@if not exist build/gb/ElDueloroso.gb echo Build failed! Please make sure you have set the path to gbdk-4.0.5 on line 1
pause
2 changes: 1 addition & 1 deletion src/duel.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gb/gb.h>
#include <gb/gbdecompress.h>
#include <gbdk/gbdecompress.h>
#include <rand.h>
#include "utils.h"
#include "duel.h"
Expand Down
2 changes: 1 addition & 1 deletion src/duel_banked.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gb/gb.h>
#include <gb/gbdecompress.h>
#include <gbdk/gbdecompress.h>
#include <rand.h>
#include <time.h>
#include "utils.h"
Expand Down
2 changes: 1 addition & 1 deletion src/levels.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gb/gb.h>
#include <gb/gbdecompress.h>
#include <gbdk/gbdecompress.h>
#include "levels.h"
#include "sound.h"
#include "utils.h"
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gb/gb.h>
#include <gb/gbdecompress.h>
#include <gbdk/gbdecompress.h>
#include "rand.h"
#include "utils.h"
#include "title.h"
Expand Down
2 changes: 1 addition & 1 deletion src/riding.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gb/gb.h>
#include <gb/gbdecompress.h>
#include <gbdk/gbdecompress.h>
#include <rand.h>
#include <time.h>
#include "utils.h"
Expand Down
2 changes: 1 addition & 1 deletion src/riding_banked.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gb/gb.h>
#include <gb/gbdecompress.h>
#include <gbdk/gbdecompress.h>
#include "utils.h"
#include "sound.h"
#include "riding.h"
Expand Down
2 changes: 1 addition & 1 deletion src/shooting.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gb/gb.h>
#include <gb/gbdecompress.h>
#include <gbdk/gbdecompress.h>
#include <rand.h>
#include <time.h>
#include "utils.h"
Expand Down
2 changes: 1 addition & 1 deletion src/shooting_banked.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gb/gb.h>
#include <gb/gbdecompress.h>
#include <gbdk/gbdecompress.h>
#include <rand.h>
#include "utils.h"
#include "sound.h"
Expand Down
2 changes: 1 addition & 1 deletion src/text.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gb/gb.h>
#include <gb/gbdecompress.h>
#include <gbdk/gbdecompress.h>
#include "utils.h"
#include "levels.h"
#include "sound.h"
Expand Down
2 changes: 1 addition & 1 deletion src/title.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <gb/gb.h>
#include <gb/gbdecompress.h>
#include <gbdk/gbdecompress.h>
#include "utils.h"
#include "text.h"
#include "sound.h"
Expand Down

0 comments on commit d640290

Please sign in to comment.