Git Product home page Git Product logo

blitz3d-ng / package Goto Github PK

View Code? Open in Web Editor NEW
78.0 78.0 8.0 31.56 MB

This project is an attempt to revive & modernize Blitz3D.

Home Page: https://blitz3d-ng.github.io

License: Other

BlitzBasic 17.55% HTML 31.18% CSS 0.03% C++ 32.35% C 15.51% Inno Setup 0.04% Lua 0.01% Objective-C 0.03% Batchfile 0.02% Makefile 0.07% Ruby 0.56% JavaScript 0.05% Shell 0.19% CMake 2.07% GLSL 0.13% BitBake 0.03% Clojure 0.09% Java 0.01% SCSS 0.08%
blitz3d directx opengl

package's Introduction

Blitz3D "NG"

Build status Help

New IDE on macOS

This project is an attempt to modernize Blitz3D by adding cross-platform & 64-bit support.

So far, we've made huge strides in making this happen. Some of the basic samples (such as castle, driver, and tron) can run on macOS with little-to-no modifications.

This is achieved by adding LLVM-powered code generation to the original compiler. A basic test suite test/all.bb has been implemented to help ensure the compiler functions as expected and the runtime can execute without error.

(Note: The 32-bit Windows build still uses the original Blitz code generation.)

Download

You can get the latest Windows & macOS builds from the releases page.

If you're looking to customize your build further or interested in Linux/other platforms, see Building.

Support

If you need help with anything, please ask on the Discord server.

For bug reports & feature requests, feel free to open an issue.

Building

All 3rd-party dependencies are included in the repo or linked as submodules to keep the project simple to build.

The single exception to this is LLVM due to it's size and the time required build. A pre-built toolchain is provided for Windows & macOS. Download the appropriate archive for your platform, and unpack it into an llvm/ directory in the root of this repository.

Windows

Download cmake (3.16+) and ninja.

Install Visual Studio 2022. Be sure to install the MFC components.

To build 32-bit or 64-bit, open x86 Native Tools Command Prompt for VS 2022. For 64-bit, open x64 Native Tools Command Prompt for VS 2022.

> powershell
> git clone --recursive https://github.com/blitz3d-ng/blitz3d-ng b3d
> cd b3d
> # download and unpack LLVM archive
> .\make.bat release

Once the build is complete, you can open the _release/ directory and run Blitz3D.exe as expected.

macOS

Install Xcode and brew.

$ brew install cmake ninja
$ git clone --recursive https://github.com/blitz3d-ng/blitz3d-ng b3d
$ cd b3d
$ make llvm # or download the pre-built archive
$ make ENV=release

Linux

Setup will vary across distributions, but here is an example for Ubuntu.

$ sudo apt-get install -y git ninja-build libxml2-dev zlib1g-dev build-essential autoconf libtool gettext autopoint gperf cmake clang libwxgtk3.0-gtk3-dev libxrandr-dev libxinerama-dev libxcursor-dev uuid-dev libfontconfig1-dev
$ git clone --recursive https://github.com/blitz3d-ng/blitz3d-ng b3d
$ cd b3d
$ make llvm # or download the pre-built archive
$ make ENV=release

Alternatively, you can build everything with docker. See env.sh and the env repo for some example Dockerfiles.

Documentation

The original Blitz3D help is available in the _release/help directory in HTML form. We've started replacing it with a Markdown based system. You'll need a ruby 3.1.2 install to generate the documentation.

$ make help

Roadmap

  • Add misc. quick fixes & improvements (i.e., add "missing" features like BlitzClose.)
  • Improve help files & styling.
  • Swap out FMOD for something with a more permissive license.
  • OpenGL, Vulkan, Metal, and newer Direct3D renderers.
  • macOS, Linux, Android, iOS support.

License

The zlib/libpng License

Copyright (c) 2013 Blitz Research Ltd

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.

2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.

3. This notice may not be removed or altered from any source distribution.

package's People

Contributors

davecamp avatar humangamer avatar kfprimm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

package's Issues

freeimage: build failed

Linux,

...
==== Building freeimage (release_linux) ====
make[2]: *** No rule to make target '../src/deps/freeimage317/src/Source/DeprecationManager/Deprecated.cpp', needed by 'obj/linux/release/freeimage/Deprecated.o'.  Stop.
make[1]: *** [Makefile:995: freeimage] Error 2
make[1]: Leaving directory '/home/lion/Port/blitz3d-ng/build'
make: *** [Makefile:2: all] Error 2
lion@Lion-Laptop [ blitz3d-ng@master ] ! 

Modern IDE!?

Please revise the ide, dark mode and other highlighting. main thing modern. That would be a dream =)

Conversion from BlitzBasic to BlitzMax not implemented

When I attempted to import a BlitzBasic program with File > Import BB Project..., I got this output:

Converting game
Command line error : Unknown operation 'convertbb'
Usage: bmk <operation> [options] source
(start bmk with no parameters for more usage information)

Process complete

blitz3d config error

Getting the following error:

bin/blitz3d config && premake4
Traceback (most recent call last):
	2: from bin/blitz3d:5:in `<main>'
	1: from /usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- bundler (LoadError)

Collision Error

There seems to be an issue with the collision system where, under certain circumstances, the screen just goes completely blank.

To replicate, fire up the castle demo & jump up under the cone "roof" of the left tower. If you hit it just right, the screen blanks.

I checked the value of the camera X/Y/Z & the print out as "NaN."

I traced the problem all the way back to 0077a1e (my first commit). So I did a diff but couldn't find anything that jumped out as a problem.

When I have a chance, I will compile the original source under VS2015 from scratch and see if the problem exists there.

Linux: Cmake error

Hi dears,
I have downloaded blitz3d-ng-master to my platform (Feren OS-2021.10-64bit), and installed all requested libs and tools like cmake and ruby and its gems, When I started run the following line:
./bin/blitz3d config && make ENV=release
It result in the following lines:
`
Generating stub for Graphics...
Generating stub for Blitz...
Generating stub for Timer...
Generating stub for Runtime...
Generating stub for Input...
Generating stub for System...
Generating stub for Blitz2D...
Generating stub for Sockets...
Generating stub for Unit Test...
Generating stub for Filesystem...
Generating stub for Audio...
Generating stub for ODE...
Generating stub for Stream...
Generating stub for Math...
Generating stub for String...
Generating stub for Blitz3D...
Generating stub for Standard IO...
Generating stub for Windows System...
Generating stub for Steamworks...
Generating stub for Bank...
Generating stub for Enet...
Generating stub for Userlibs...
Generating runtime Direct3D 7...
win32...
mingw32...
Generating runtime OpenGL...
mingw32...
macos...
linux...
ios...
emscripten...
win32...
win64...
mingw32...
Generating runtime Test...
win32...
mingw32...
macos...
linux...
ios...
android...
emscripten...
nx...
cmake -G Ninja -H. -Bbuild/linux/release -DBB_PLATFORM=linux -DBB_ENV=release -DCMAKE_TOOLCHAIN_FILE=src/llvm.cmake && (cd build/linux/release && cmake --build . -j 4 -- -k 0)
CMake Error at deps/zlib/CMakeLists.txt:7 (add_subdirectory):
The source directory

/home/khalidaf/Executables/blitz3d-ng-master/deps/zlib/tree

does not contain a CMakeLists.txt file.

CMake Error at deps/zlib/CMakeLists.txt:8 (target_include_directories):
Cannot specify include directories for target "zlib" which is not built by
this project.

CMake Error at deps/zlib/CMakeLists.txt:9 (target_include_directories):
Cannot specify include directories for target "zlibstatic" which is not
built by this project.

CMake Error at deps/zlib/CMakeLists.txt:11 (set_target_properties):
set_target_properties Can not find target to add properties to: zlibstatic

CMake Error at deps/zlib/CMakeLists.txt:14 (set_target_properties):
set_target_properties Can not find target to add properties to: zlib

CMake Error at deps/zlib/CMakeLists.txt:15 (set_target_properties):
set_target_properties Can not find target to add properties to: example

CMake Error at deps/zlib/CMakeLists.txt:16 (set_target_properties):
set_target_properties Can not find target to add properties to: minigzip

CMake Error at deps/enet/CMakeLists.txt:1 (add_subdirectory):
The source directory

/home/khalidaf/Executables/blitz3d-ng-master/deps/enet/src

does not contain a CMakeLists.txt file.

CMake Error at deps/enet/CMakeLists.txt:2 (target_include_directories):
Cannot specify include directories for target "enet" which is not built by
this project.

CMake Error at /usr/share/cmake-3.22/Modules/ExternalProject.cmake:2666 (message):
error: could not find git for clone of LUAJIT_EXTERNAL
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/ExternalProject.cmake:3716 (_ep_add_download_command)
deps/luajit/CMakeLists.txt:14 (ExternalProject_Add)

-- Configuring incomplete, errors occurred!
See also "/home/******/Executables/blitz3d-ng-master/build/linux/release/CMakeFiles/CMakeOutput.log".
make: *** [Makefile:43: build] Error 1
`
So, what is the wrong? What I'm missing?

Thank you so much,

GetKey ignores [Shift] (and AltGr)

If I run help/commands/2d_examples/GetKey.bb with the last version of the original Blitz3D, it takes into account whether modifier keys are pressed. For instance, pressing [A] yields 97 (lower-case a), and pressing [Shift]+[A] returns 65 (upper-case A). Compiling the same source with Blitz3D-NG for Windows, both [A] and [Shift]+[A] lead to 97 as output. This seems not to be intended; and as I don't know the users' keyboard layouts, there also is no easy way to implement the modifier key logic manually from within the BB source.

Can't build Blitz3D-NG

"Error: module './build/src/init' not found:
no field package.preload['./build/src/init']"
followed by complaining about missing a lot of lua files. Am I missing something here or...?

Ruby errors out when building [Ubuntu 21.04, Linux]

Error after executing bin/blitz3d config && make ENV=release

Traceback (most recent call last):
        8: from bin/blitz3d:6:in `<main>'
        7: from /usr/lib/ruby/2.7.0/bundler.rb:174:in `require'
        6: from /usr/lib/ruby/2.7.0/bundler.rb:151:in `setup'
        5: from /usr/lib/ruby/2.7.0/bundler/runtime.rb:20:in `setup'
        4: from /usr/lib/ruby/2.7.0/bundler/definition.rb:237:in `specs_for'
        3: from /usr/lib/ruby/2.7.0/bundler/definition.rb:170:in `specs'
        2: from /usr/lib/ruby/2.7.0/bundler/spec_set.rb:80:in `materialize'
        1: from /usr/lib/ruby/2.7.0/bundler/spec_set.rb:80:in `map!'
/usr/lib/ruby/2.7.0/bundler/spec_set.rb:86:in `block in materialize': Could not find concurrent-ruby-1.1.6 in any of the sources (Bundler::GemNotFound)

source directory doesnt exist? issue compiling

CMake Error: The source directory "/home/william/b3d/build/llvm/build" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Makefile:106: recipe for target 'llvm' failed

ubuntu 18.04

Can't build Blitz3D NG

I forked your repository. I installed VS 2015 community and DX10 SDK. I got premake5.
Placed it inside the forked directory. On the command line I typed

premake5 vs2015 && devenv build\blitz3d.sln /build release

Got an error that it can't find devenv.

And so it doesn't build. Any suggestions?

Huh?

I've downloaded the latest release. Since I wanted more of an up to date version of Blitz3D instead of using the Itch.io version.
When I heard about this software exist on YouTube a while back, I had to try it out with the itch.io version.
So far, I do enjoy this software. it's a lot of fun! Then I thought of finding an up to date version of this software.
I came across this github page. The screenshot looks promising. So I had to download the latest version.

...But I do have a question though. Why does this show 23 detected threats with the 64bit version alone? I'm concerned to run this.

oh no

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.