Skip to content

cirosantilli/Urho3D-cheat

Repository files navigation

Urho3D Cheat

Urho3D extra examples and demos. Tested in Ubuntu 18.04.

More context at: https://cirosantilli.com/ciro-s-2d-reinforcement-learning-games

Video demo: https://www.youtube.com/watch?v=j_fl4xoGTKU

Build and run a demo natively:

git clone https://github.com/cirosantilli/Urho3D-cheat
cd Urho3D-cheat
git submodule update --init --depth 1
./run

The build is broken as of Ubuntu 21.10 with multiple definition of WAYLAND_wl_proxy_marshal, you could run it in Docker as mentioned at https://stackoverflow.com/questions/16296753/can-you-run-gui-applications-in-a-linux-docker-container/71265066#71265066:

sudo apt install tigervnc-viewer
sudo docker create --name rl2d -p 6080:80 -p 5900:5900 -w /root/rl2d -v "$(pwd)":/root/rl2d dorowu/ubuntu-desktop-lxde-vnc:bionic
sudo docker start rl2d

and on another terminal:

xtigervncviewer :5900

Then inside the VNC GUI guest, open a terminal with:

  • Menu icon
  • System Tools
  • LXTerminal

and inside the guest terminal you can build and run normally:

cd ~/rl2
apt update
apt install -y cmake g++ libx11-dev libxext-dev libgl1-mesa-dev
./run

Note that this diretory of the host filesystem is shared with the Docker one, so you can edit files directly on your host after running:

sudo chown -R $USER:$USER .

Docker sets permission to root:root every time you run docker start. TODO find a solution: https://stackoverflow.com/questions/23439126/how-to-mount-a-host-directory-in-a-docker-container

The image inside VPN is a bit choppy when moving fast. But give me a break.

  1. Getting started
  2. Minimal examples
    1. empty.cpp
    2. common_empty.cpp
    3. input.cpp
    4. command_line_arguments.cpp
    5. compound.cpp
    6. collision.cpp
    7. scale_sprite.cpp
    8. velocity_stop.cpp
    9. text.cpp
    10. logic_component.cpp
    11. trigger
  3. More interesting scenes
    1. pong.cpp
    2. biped.cpp
    3. food
  4. 3D
    1. collision3d.cpp
    2. compound3d.cpp
  5. TODO
    1. prismatic_collide_connected.cpp
    2. sprite_repeat

Icons by https://github.com/game-icons/icons

About

Urho3D extra minimal examples and demos. Tested in Ubuntu 18.04.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages