Sign inSign up

hldtux/bennugd-compiler

By hldtux

Updated about 1 month ago

A Docker Image for BennuGD Development

Image
0

616

hldtux/bennugd-compiler repository overview

Deploy

BennuGD 1.x Compiler (Docker)

A lightweight Docker image for cross-compiling BennuGD applications on any platform.

Docker Hub: hldtux/bennugd-compiler

🚀 Setup

Add the following aliases to your shell (~/.bashrc or ~/.zshrc):

bgdc() {
    docker run --rm -it \
        -v "$PWD":/workdir \
        hldtux/bennugd-compiler:r348 \
        bash -ic "bgdc \"$@\""
}
bgdi() {
    docker run --rm -it \
        -v "$PWD":/workdir \
        -e DISPLAY=$DISPLAY \
        -v /tmp/.X11-unix:/tmp/.X11-unix \
        hldtux/bennugd-compiler:r348 \
        bash -ic "bgdi \"$@\""
}

Reload your shell:

source ~/.bashrc   # or ~/.zshrc

🛠️ Usage

Once the aliases are loaded, you can compile and run BennuGD projects directly from the current directory.

▶️ Console Example
cd samples/mod_say
bgdc main.prg       # Compile
bgdi main.dcb       # Run

Output

BGDC 1.0.0 (Feb 12 2018 17:41:12)
Bennu Game Development Compiler

Copyright (c) 2006-2016 SplinterGU (Fenix/BennuGD)
Copyright (c) 2002-2006 Fenix Team (Fenix)
Copyright (c) 1999-2002 José Luis Cebrián Pagüe (Fenix)

File main.dcb compiled (13211 bytes):

  Processes                     1
  Global data                 140 bytes
  Local data                   44 bytes
  Private data                  0 bytes
  Public data                   0 bytes
  Code                         20 bytes
  System processes              5
  Globals vars                  3
  Locals vars                   7
  Private vars                  0
  Publics vars                  0
  Identifiers                 184
  Structs                       1
  Strings                       5 (42 bytes)

Hello World!
🖼️ Graphic Mode
xhost +
cd samples/mod_text
bgdc main.prg
bgdi main.dcb

Output

Tag summary

Content type

Image

Digest

sha256:9230c1c2d

Size

59.1 MB

Last updated

about 1 month ago

docker pull hldtux/bennugd-compiler:r348