Skip to content

Repository files navigation

Chrome Dino Game (C++)

preview (Click for uncompressed video, do note capture lags a bit more than usual)

The game should support mostly everything SDL2 supports out of the box.

There are special configs for UWP (Xbox One / Series), PS2, Original Xbox. (use -DUWP=ON to enable UWP)

Keybinds

Control Keyboard Gamepad
JUMP UP, SPACE A/image
DUCK DOWN X/image
START/RESTART ENTER /image
EXIT ESCAPE N/A
Clear high score Double-click HI LB/image/Black (Xbox)

Missing features from the original

  • System for seasonal themes (e.g. custom floating objects, custom obstacles, custom collectables)
  • Accessibility features (e.g. synthesized obstacle warning, slow game mode)

To build for Android, open the android-build folder in Android Studio. Once inside, allow the project to load. Then set the variant to Release. Use Build -> Build APKs to build the APK file. Finally, click locate inside the popup.

PS2 build:

git clone --depth 1 https://github.com/DanielLMcGuire/chrome-dino-cpp.git
cd chrome-dino-cpp
export PS2DEV=$HOME/ps2dev
export PS2SDK=$PS2DEV/ps2sdk
export GSKIT=$PS2DEV/gsKit
export PATH=$PATH:$PS2DEV/bin:$PS2DEV/ee/bin:$PS2DEV/iop/bin:$PS2DEV/dvp/bin:$PS2SDK/bin
mkdir -p $PS2DEV
curl -o ps2dev-latest.tar.gz -LC - \
  https://github.com/ps2dev/ps2dev/releases/download/latest/ps2dev-ubuntu-latest.tar.gz
tar -xf ps2dev-latest.tar.gz --strip-components 1 -C $PS2DEV
cmake -B build-ps2 -DCMAKE_TOOLCHAIN_FILE=$PS2SDK/ps2dev.cmake \
  -DCMAKE_BUILD_TYPE=Release \
  -DPS2=ON # OR -DPCSX2=ON
cmake --build build-ps2 -j$(nproc)
# pcsx2 build-ps2/DINOGAME.ELF

Original Xbox:

git clone --depth 1 --recurse-submodules --shallow-submodules https://github.com/XboxDev/nxdk.git
git clone --depth 1 https://github.com/DanielLMcGuire/chrome-dino-cpp.git
cd chrome-dino-cpp
eval "$(../nxdk/bin/activate -s)"
make -f Makefile.nxdk
# xemu -dvd_path DinoGame.iso

About

SDL2 port of chromium dino_game with android, ps2, win32, original xbox and UWP (xbox1/series/windows) support

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages