Brutus2D

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Brutus2D is a game programming language developed using Visual Basic, VBScript and DirectX.

It is aimed at the amateur programmer who is interested in learning more about programming & game development.

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

Brutus2D
Brutus2D-Wikipedia-Logo
Paradigm(s) Procedural
Developer Guilect
Appeared in 2004
Stable release v1.8.7 / 11 February 2009
Dialects BASIC
Influenced by QuickBASIC, GW-BASIC
OS Windows
Website http://pewtersoftware.com/wordpress/

Platform[edit]

Brutus2D was designed using Microsoft Visual Basic and runs on Windows 2000, Windows XP & Windows Vista.

Syntax[edit]

Brutus2D has two distinctive syntaxes, the first is VBScript and is similar in style to traditional Basic. The second is JScript which is Microsoft's dialect of ECMAScript.

Functions & Procedures[edit]

Functions & procedures are supported in Brutus2D.

Sound & Music[edit]

Support for Sound Effects using Wav files & the following 2 types of music format, Ogg & Midi can be found in Brutus2D.

Example[edit]

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[edit]

By using the Truevision3D plugin you can create 3D environments using Brutus2D.

Network Support[edit]

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

Object Based[edit]

The core programming engine is supplemented with hard-coded Visual Basic objects. Like JavaScript Brutus2D is object based. Almost all functions (methods) are part of a related object that does a specific task.

License[edit]

Brutus2D used to be available in two versions, one of them was Freeware 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[edit]

External links[edit]