Skip to content

About

This is a project I created in 12 hours for a SuperCell challenge during the studies. The Readme has the instructions we received form SuperCell.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Supercell Coding Test

Hi! This is the base code structure for the Supercell coding test. The code is basic and plays poorly, so we need YOU to make it better.

Theme

This year's theme is "Endless Runner". The starter code gives you a basic, generic infinite runner game.

Disclaimer - MANDATORY RULES

We strongly recommend that you:

  • Read this README to the end.
  • Keep to the theme.
  • Place assets in the /assets folder and use the ResourceManager class to get file paths.
    • Example usage: ResourceManager::getOrLoadFont("Lavigne.ttf")
    • Look in /src/gamestates/StateMenu.cpp for examples of loading fonts and textures.
  • DO NOT MODIFY the ResourceManager. We might run your game on a different platform than what you developed on.
  • Avoid modifying the CMakeLists.txt file. We will use Cmake to build your project.
  • (optional) Test on different platforms if you can, to assure your submission builds and functions the same.

We will build your project with the build steps outlined below. If your submission produces any build errors we will most likely end the evaluation there.

Prerequisites

NOTE: Hive computers (should) have these dependencies installed already.

You must have CMake version 3.22.1 or later installed to build this project.

If you are on Linux, make sure to install SFML's dependencies. For Debian-based distros:

sudo apt update
sudo apt install \
    libxrandr-dev \
    libxcursor-dev \
    libudev-dev \
    libfreetype-dev \
    libopenal-dev \
    libflac-dev \
    libvorbis-dev \
    libgl1-mesa-dev \
    libegl1-mesa-dev

Building

Simply run cmake -B build and cmake --build build. This builds the executable in ./build/bin/.

The exact location of the executable may differ depending on your system and compiler. Example locations are ./build/bin/shooter and ./build/bin/Debug/shooter.exe.

Alternatively, you can specify a generator suited for your toolchain.

  • cmake -B build -G"Unix Makefiles"
  • cmake -B build -G"Visual Studio 17 2022"
  • cmake -B build -GXcode

Run cmake -G to list all available generators.

Submission

Upload your work to Google Drive, Dropbox (or some other service), and complete the provided form with:

  • A link to your submission (remember to check permissions)
  • Your full name
  • Your email address

SUBMIT

Your Game's Instructions

Please include any instructions to your game here.

Troubleshooting

MacOS

Your game may not be receiving keyboard inputs. If you see "Detected a keyboard without any keys" printed to the terminal. You will need to treat the launcher as the app that is "monitoring input"

  • Open System Settings -> Privacy & Security -> Input Monitoring
    • If you run from Terminal or iTerm2: enable it for that app.
    • If you run from Xcode or Visual Studio Code: enable it for that app.
  • Quit and reopen the launcher, then run your game again.

About

This is a project I created in 12 hours for a SuperCell challenge during the studies. The Readme has the instructions we received form SuperCell.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages