Git Product home page Git Product logo

bottle's Introduction

Every game programmer eventually has the urge to create their own game engine. This is mine. It's written in Scopes, an experimental programming language. Note you need a working install of Scopes in your path to use this framework.

Basic goals (for a first version):

  • Good enough for sprite based games
  • can be combined with game code in a standalone executable (+ supporting shared libraries)

Examples can be found in the demos folder. To run a demo, execute in the root bottle directory (for example):

scopes -e run.sc snake
# for demos in subdirectories, you use dots instead of slashes:
scopes -e run.sc gpu.buffers

Building

Currently Linux and Windows (MSYS2 MinGW) are supported. If it seems like you have all dependencies and it still fails to install, please open an issue.

Linux

The exact package names for linux will depend on your distribution. You may need to install the following packages prior to running the bootstrap recipe:

  • git
  • cmake
  • gcc
  • make
  • zip
  • unzip
  • rustc (might need to be installed manually if your distro ships a version that is too old)
  • clang (used to build some rust libraries)
  • python3
  • libsdl2-dev (for the X11 dependencies)

Here are examples for a couple common distributions; you can then translate to your favorite package manager / distribution.

Arch Linux:

pacman -S wget git base-devel rust python3 zip unzip sdl2 cmake clang

Windows (MinGW)

Install all needed dependencies inside a MSYS2 shell:

pacman -S git mingw-w64-x86_64-python mingw-w64-x86_64-gcc zip unzip mingw-w64-x86_64-7zip mingw-w64-x86_64-make mingw-w64-x86_64-rust mingw-w64-x86_64-clang mingw-w64-x86_64-cmake

You should then clone bottle and bootstrap it:

cd bottle
wget https://hg.sr.ht/~duangle/majoreo/raw/eo?rev=tip -O ./eo
chmod +x eo
./eo init
./eo install -y bootstrap

Using Bottle

After bootstrapping, you can then start a new project:

mkdir my_project
cd my_project
../bottle/install # initializes a new bottle project with all dependencies
scopes -e -c "import bottle; bottle.run;"

Happy coding!

bottle's People

Contributors

radgerayden avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

josh-perry ljnic

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.