250 likes | 372 Views
SW Development Course Multiplayer Multimedia Apps on the Web. 1 – Getting Started. Possible Applications What is DimensioneX Understand dev environment How to install Creating a basic multiplayer. What do we want to make?. Possible Applications:
E N D
SW Development CourseMultiplayer Multimedia Apps on the Web 1 – Getting Started Possible Applications What is DimensioneX Understand dev environment How to install Creating a basic multiplayer
What do we want to make? Possible Applications: • GDR Multiplayer, Adventure Multiplayer, MMORPG • Turn-based games • Innovative multimedia apps: • Turism • e-Commerce • e-Learning
What is DimensioneX • It’s a game engine: it makes your software run by doing the basic things, but • “parts” are missing (graphics, messages and multimedia elements), also your desired interactions
DimX Server Architecture DXWWorld DXWWorld DimensioneX(servlet “multiplayer”) Web server (Tomcat) Java Windows / Linux
A few Features • Simple to use (no downloads nor installs) • Web based • Sounds/Music • Scripting VisualBasic-like language • Free hosting 24/7 (www.gamesclan.it) • Instant visibility (+13,000 visits/week) for your own little project
Practice 1.1 • A test tour • Connect to a • www.dimensionex.net • English • Online Games • Underworld
Working Tools • DimensioneX Server (Java+Tomcat+DimX) • Text editor (Textpad) • Developer’s Reference (PDF) • Optional: • Image management (ACDSee) • Image editor (Paint Shop Pro+Anim Pro)
How to install • Download from: www.dimensionex.net • Follow instructions: • Readme.PDF • Installation Manual (online, WIKI)
Start the server • Click Programs/Apache Tomcat/Monitor Tomcat • Run the service • Navigate to: • http://localhost:8080/dimx/ (menu) • URL like: • http://localhost:8080/dimx/servlet/multiplayer?game=slot
Creating a basic MultiplayerLet’s Roll • Open world1.dxw in the system folder
DESIGN-TIME Logic RUN-TIME Logic DXW Format WORLD def. WORLD GUIROOMS LINKS ITEMSCHARACTERS SCRIPTS END_WORLD
WORLD WORLD NAME World 1 IMAGESFOLDER /dimx/pics/ VERSION 1.5 AUTHOR Cristiano Leoni HELP http://www.dimensionex.net... (body of the game/world) END_WORLD
Practice 1.2 • edit world1.dxw, restart server • Add &view=admin to the URL • Click Restart
ROOM ROOMS ROOM beach NAME The beach DESCRIPTION It is a sunny beach IMAGE spiaggia1.jpg IMAGE face image.jpg END_ROOMS face=NSEW
Practice 1.3 • On Google/Images look for 3 suitable scenes • Plan how to link them • Save in “pics” • Right-click, save image as… • Edit game and restart
LINKS LINKS LINK c1 beach-room2 E MLINK c2 beach-underground D NAME pit (more LINKs) END_LINKS
Practice 1.4 • Place LINKs! • Edit game and restart, test
ITEMS ITEMS ITEM box NAME a box DESCRIPTION Just an ordinary box POSITION beach ICON icoBox.gif ATTRLIST open=0,hideable=0 IMAGE 80x64 box.gif SHOW ICON END_ITEMS
Practice 1.5 • Make a box! • Edit game, restart and test
CHARACTERS CHARACTERS ATTRLIST type=0,Health=10,Strength=1,Experience=1 ' Type da 10 onwards=monsters ' from 1 to 9 humans ' 0 means non-combating robot CHARACTER guy NAME A Guy DESCRIPTION A walking guy. POSITION beach ATTRLIST type=1,Strength=3 IMAGE 120x120 chrSurfer.gif END_CHARACTERS
Practice 1.6 • Add a character • Edit game and restart, test
SCRIPTS SCRIPTS EVENT guy.onLook Speak“Hey, what’s up?", “Leave me alone!“ END_SCRIPTS
Esercitazione 0.7 • Add interactivity • Edit game, restart, test
Summary • Possible Applications • What is DimensioneX • Understand dev environment • How to install • Creating a basic multiplayer