+ All Categories
Home > Documents > Torque Script IDE plug-in for the Eclipse Platform

Torque Script IDE plug-in for the Eclipse Platform

Date post: 07-Jan-2016
Category:
Upload: xenon
View: 44 times
Download: 6 times
Share this document with a friend
Description:
Torque Script IDE plug-in for the Eclipse Platform. Team: Matt Cummings and Steven Defriese Mentor: Dr. William Harrison. What is Torque Script?. The scripting language the controls the Torque Game Engine. The Torque Game Engine is a general purpose game engine developed by Garage Games. - PowerPoint PPT Presentation
Popular Tags:
28
Torque Script IDE plug-in for the Eclipse Platform Team: Matt Cummings and Steven Defriese Mentor: Dr. William Harrison
Transcript
Page 1: Torque Script IDE plug-in for the Eclipse Platform

Torque Script IDE plug-in for the Eclipse Platform

Team: Matt Cummings and Steven Defriese

Mentor: Dr. William Harrison

Page 2: Torque Script IDE plug-in for the Eclipse Platform

What is Torque Script?

The scripting language the controls the Torque Game Engine.

The Torque Game Engine is a general purpose game engine developed by Garage Games.

Cheap licensing fees, $100 for all the source code, non-commercial

Page 3: Torque Script IDE plug-in for the Eclipse Platform

Types of games that can be made…

First Person Shooters Racing Simulation RPG Action And others

Page 4: Torque Script IDE plug-in for the Eclipse Platform

Structure of Torque Script

A procedural, script language with C-like syntax.

Emphasis on simplicity, aimed towards game engines.

All the expensive graphics, audio, physics, etc. calculations are handled by the game engine (written in C++)

Page 5: Torque Script IDE plug-in for the Eclipse Platform

Some of the things Torque Script controls in the engine

scoring managing players defining player and vehicle

behavior controlling GUI interfaces control physics settings

Page 6: Torque Script IDE plug-in for the Eclipse Platform

In-Game Screenshot

Page 7: Torque Script IDE plug-in for the Eclipse Platform

In-Game Screenshot

Page 8: Torque Script IDE plug-in for the Eclipse Platform

In-Game Screenshot

Page 9: Torque Script IDE plug-in for the Eclipse Platform
Page 10: Torque Script IDE plug-in for the Eclipse Platform

An example of a player code block with physics settings datablock PlayerData(HumanMaleAvatar) { …

className = Avatar; shapeFile = "~/player.dts"; cameraMaxDist = 4;

mass = 100; drag = 0.1; maxdrag = 0.5; density = 10; maxDamage = 100; maxEnergy = 100;

runForce = 4000; // 50 * 90; …

jumpForce = 1000; // 10 * 90;

… };

Page 11: Torque Script IDE plug-in for the Eclipse Platform

More Code… function ParseArgs() //----------------------------------------------------------------------------- // handle the command line arguments // // This is called from common code. //----------------------------------------------------------------------------- { for($i = 1; $i < $Game::argc ; $i++) { $currentarg = $Game::argv[$i]; $nextArgument = $Game::argv[$i+1]; $nextArgExists = $Game::argc-$i > 1; $logModeEnabled = false; switch$($currentarg) { case "-?": $usageFlag = true; $argumentFlag[$i] = true; case "-h": $usageFlag = true; $argumentFlag[$i] = true; } } }

Page 12: Torque Script IDE plug-in for the Eclipse Platform

Which platform to develop our Torque Script IDE on?

Developing an IDE from scratch takes alot of time just developing the UI components.

Answer: develop an IDE on top of a robust platform to allow us to focus on the IDE layout and functionality.

We chose the Eclipse platform

Page 13: Torque Script IDE plug-in for the Eclipse Platform

Information about the Eclipse Platform

An open-source IDE with various development tools integrated within

Universal IDE Supports development of plug-ins Free!

Page 14: Torque Script IDE plug-in for the Eclipse Platform

Eclipse Platform

Page 15: Torque Script IDE plug-in for the Eclipse Platform

Eclipse Interface

Page 16: Torque Script IDE plug-in for the Eclipse Platform

Structure of Eclipse Interface

Page 17: Torque Script IDE plug-in for the Eclipse Platform

Java Features in Eclipse

Syntax highlighting Code collapsing Code auto-completion Code hints Code generating tools Debugging

Page 18: Torque Script IDE plug-in for the Eclipse Platform

Syntax highlighting

•Keywords•Comments•Etc.

Page 19: Torque Script IDE plug-in for the Eclipse Platform

Code collapsing

main is collapsed Hover mouse over main

Page 20: Torque Script IDE plug-in for the Eclipse Platform

Code Auto-Completion

With system calls:

Page 21: Torque Script IDE plug-in for the Eclipse Platform

Code Auto-Completion

With user defined variables and methods:

Page 22: Torque Script IDE plug-in for the Eclipse Platform

Wizard to Generate Code

Java class wizard:

Page 23: Torque Script IDE plug-in for the Eclipse Platform

The Generated Code

Code stubs:

Page 24: Torque Script IDE plug-in for the Eclipse Platform

Debugging

Page 25: Torque Script IDE plug-in for the Eclipse Platform

Debugging cont.

Page 26: Torque Script IDE plug-in for the Eclipse Platform

Our objective

Build a plug-in for the Eclipse platform that enables a programmer to code, run, test, and debug their code.

One complete package that is easy to install, given to us for free by being able to distribute a plug-in file as one binary file.

Page 27: Torque Script IDE plug-in for the Eclipse Platform

Important Features

Syntax highlighting Code collapse Function lists IntelliSense-like code assistance Test runs Module testing Debugging

Page 28: Torque Script IDE plug-in for the Eclipse Platform

Questions?

?


Recommended