Brutus2D
Encyclopedia
Brutus2D is a game programming language developed using Visual Basic
Visual Basic
Visual Basic is the third-generation event-driven programming language and integrated development environment from Microsoft for its COM programming model...

, VBScript
VBScript
VBScript is an Active Scripting language developed by Microsoft that is modeled on Visual Basic. It is designed as a “lightweight” language with a fast interpreter for use in a wide variety of Microsoft environments...

 and DirectX
DirectX
Microsoft DirectX is a collection of application programming interfaces for handling tasks related to multimedia, especially game programming and video, on Microsoft platforms. Originally, the names of these APIs all began with Direct, such as Direct3D, DirectDraw, DirectMusic, DirectPlay,...

.

It is aimed at the amateur
Amateur
An amateur is generally considered a person attached to a particular pursuit, study, or science, without pay and often without formal training....

 programmer
Programmer
A programmer, computer programmer or coder is someone who writes computer software. The term computer programmer can refer to a specialist in one area of computer programming or to a generalist who writes code for many kinds of software. One who practices or professes a formal approach to...

 who is interested in learning more about programming & game development
Game development
Game development is the software development process by which a video game is developed. Development is undertaken by a game developer, which may range from a single person to a large business. Mainstream games are normally funded by a publisher and take several years to develop. Indie games can...

.

Simple 2D games can be developed in Brutus2D and with the aid of an additional plugin, 3D games can also be created.

Platform

Brutus2D was designed using Microsoft
Microsoft
Microsoft Corporation is an American public multinational corporation headquartered in Redmond, Washington, USA that develops, manufactures, licenses, and supports a wide range of products and services predominantly related to computing through its various product divisions...

 Visual Basic
Visual Basic
Visual Basic is the third-generation event-driven programming language and integrated development environment from Microsoft for its COM programming model...

 and runs on Windows 2000
Windows 2000
Windows 2000 is a line of operating systems produced by Microsoft for use on personal computers, business desktops, laptops, and servers. Windows 2000 was released to manufacturing on 15 December 1999 and launched to retail on 17 February 2000. It is the successor to Windows NT 4.0, and is the...

, Windows XP
Windows XP
Windows XP is an operating system produced by Microsoft for use on personal computers, including home and business desktops, laptops and media centers. First released to computer manufacturers on August 24, 2001, it is the second most popular version of Windows, based on installed user base...

 & Windows Vista
Windows Vista
Windows Vista is an operating system released in several variations developed by Microsoft for use on personal computers, including home and business desktops, laptops, tablet PCs, and media center PCs...

.

Syntax

Brutus2D has two distinctive syntaxes
Syntax of programming languages
In computer science, the syntax of a programming language is the set of rules that define the combinations of symbols that are considered to be correctly structured programs in that language. The syntax of a language defines its surface form...

, the first is VBScript
VBScript
VBScript is an Active Scripting language developed by Microsoft that is modeled on Visual Basic. It is designed as a “lightweight” language with a fast interpreter for use in a wide variety of Microsoft environments...

 and is similar in style to traditional Basic
BASIC
BASIC is a family of general-purpose, high-level programming languages whose design philosophy emphasizes ease of use - the name is an acronym from Beginner's All-purpose Symbolic Instruction Code....

. The second is JScript
JScript
JScript is a scripting language based on the ECMAScript standard that is used in Microsoft's Internet Explorer.JScript is implemented as a Windows Script engine. This means that it can be "plugged in" to any application that supports Windows Script, such as Internet Explorer, Active Server Pages,...

 which is Microsoft's dialect
Programming language dialect
A dialect of a programming language is a variation or extension of the language that does not change its intrinsic nature. With languages such as Scheme and Forth, standards may be considered insufficient, inadequate or even illegitimate by implementors, so often they will deviate from the...

 of ECMAScript
ECMAScript
ECMAScript is the scripting language standardized by Ecma International in the ECMA-262 specification and ISO/IEC 16262. The language is widely used for client-side scripting on the web, in the form of several well-known dialects such as JavaScript, JScript, and ActionScript.- History :JavaScript...

.

Functions & Procedures

Functions & procedures are supported in Brutus2D.

Sound & Music

Support for Sound Effects using Wav
WAV
Waveform Audio File Format , is a Microsoft and IBM audio file format standard for storing an audio bitstream on PCs...

 files & the following 2 types of music format, Ogg
Ogg
Ogg is a free, open container format maintained by the Xiph.Org Foundation. The creators of the Ogg format state that it is unrestricted by software patents and is designed to provide for efficient streaming and manipulation of high quality digital multimedia.The Ogg container format can multiplex...

 & Midi can be found in Brutus2D.

Example

option explicit

dim Font1

dim bRunning
bRunning = True

sub main

if (graphics.initialize <> True) then exit sub

key.initialize
Font1 = graphics.createFont ("System", 14)

do while bRunning = True
if key.pressed(1) or key.pressed(0) = True then bRunning = False
graphics.clear 255
graphics.settext "Hello world", 10,10,Font1
graphics.display
loop

key.terminate
graphics.terminate

end sub

Call Main


The code above will display a window on the screen & print "Hello world" in it.

Truevision3D Plugin

By using the Truevision3D
Truevision3d
Truevision3D is a 3D commercial 3D engine first created by Sylvain Dupont in 1999.The Truevision3D engine is written in Visual Basic 6 and C++ and layered on top of the Microsoft DirectX API, currently supporting DirectX version 8. The engine is accessible from a number of programming languages...

 plugin you can create 3D environments using Brutus2D.

Network Support

Brutus2D also has support for network programming, Meaning that you can write multiplayer games or multiuser applications

Object Based

The core programming engine is supplemented with hard-coded Visual Basic objects. Like JavaScript
JavaScript
JavaScript is a prototype-based scripting language that is dynamic, weakly typed and has first-class functions. It is a multi-paradigm language, supporting object-oriented, imperative, and functional programming styles....

 Brutus2D is object based. Almost all functions (methods) are part of a related object that does a specific task.

License

Brutus2D used to be available in two versions, one of them was Freeware
Freeware
Freeware is computer software that is available for use at no cost or for an optional fee, but usually with one or more restricted usage rights. Freeware is in contrast to commercial software, which is typically sold for profit, but might be distributed for a business or commercial purpose in the...

 but extra functions could be added if Brutus2D was registered for a small fee. However since v1.8.5, Brutus2D has been available to download for free with complete functionality.

See also

  • Basic4GL
    Basic4GL
    Basic4GL is an interpreted, open source version of the BASIC programming language which features support for 3D computer graphics using OpenGL...

  • Blitz Basic
    Blitz BASIC
    Blitz BASIC refers to the programming language dialect that was interpreted by the first Blitz compilers, devised by New Zealand-based developer Mark Sibly. Being derived from BASIC, Blitz syntax was designed to be easy to pick-up for beginners first learning to program...

  • Darkbasic
    DarkBASIC
    DarkBASIC is a commercial game creation programming language released by The Game Creators. The language is a structured form of BASIC and is similar to AMOS on the Amiga. The purpose of the language is game creation using Microsoft's DirectX from a BASIC programming language. It is faster and...

  • FreeBASIC
    FreeBASIC
    FreeBASIC is a free/open source , 32-bit BASIC compiler for Microsoft Windows, protected-mode DOS , Linux, FreeBSD and Xbox....

  • Game Maker
    Game Maker
    GameMaker is a Windows and Mac IDE originally developed by Mark Overmars in the Delphi programming language. It is currently developed and published by YoYo Games, a software company in which Overmars is involved...

  • ThinBasic
    ThinBasic
    thinBasic is a BASIC-like computer programming language interpreter with a central core engine architecture surrounded by many specialized modules...

  • List of BASIC dialects
  • List of BASIC dialects by platform

External links

The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK