Skip to content
Open
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: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@ logs/
**/*.log
**/*.exe
**/*.out*
resources/databases/*
games/*
**/*.o
ArcadeMachine
**/.DS_Store
37 changes: 37 additions & 0 deletions Program.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#include "include/ArcadeMachine.h"

int main()
{
// Load all resources
set_resources_path("resources" ARCADE_MACHINE_PATH_SEP);
load_resource_bundle("bundle", "resources.txt");

// Instantiate Arcade Machine
ArcadeMachine Arcade;

// Open window and toggle border off.
open_window("arcade-machine", ARCADE_MACHINE_RES_X, ARCADE_MACHINE_RES_Y);
window_toggle_border("arcade-machine");

// Do you want to play the intros and fetch new games?
bool play_intro = true;
bool load_games = true;

// Play Thoth Tech intro
if (play_intro)
{
Arcade.playThothTechIntro();
Arcade.playArcadeTeamIntro();
}
// Play SplashKit intro
if (load_games) Arcade.playSplashKitIntro();

// Prepare the main menu
Arcade.prepareMainMenu();
// Draw the main menu
Arcade.mainMenu();

free_resource_bundle("bundle");

return 0;
}
24 changes: 3 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
# arcade-machine
An application to showcase and execute Splashkit games

## Pre-requisites (all operating systems)

## Install
+ Install the [SplashKit](https://splashkit.io) SDK using the [guide](https://splashkit.io/articles/installation/)

## Pre-requisites (mingw32 / Windows)

+ Install `make` using `pacman -S make`

## Building arcade machine (using the Makefile)
Compiling Arcade Machine using the Makefile allows incremental building of changed objects.

```bash
cd arcade-machine
make
./ArcadeMachine
```

Subsequent builds (as you change code) can be completed by using just `make`. If you need to run a clean build again, you can use `make clean` first proceeded by `make`.

## Building arcade machine (manually)
+ Compile the application with the command ```skm clang++ src/* -Iinclude -lstdc++fs -o test```
## Run
+ Compile the application with the command ```skm clang++ Program.cpp -Iinclude -lstdc++fs -o test```
+ Run the application ```./test```
Loading