Scripturi
Scripturile vor fi legatura dumnevoastra cu enginu! Prin intermediul lor o sa incarcati modele pentru personaje, harta principala, melodia de pe fundal, o sa setati titlul aplicatiei, o sa stabiliti eventuri…. Practic voi o sa lucrati prin scripturi! Momentan ele nu au o logica prea evoluata si nu accepta IF-uri, Loop-uri, while-uri, ci doar indica locul spre modelele care trebuiesc incarcate, cantecele care trebuiesc “ascultate” si hartile care trebuiesc parcurse! Continutul, cu explicatii ale scripturilor, este urmatorul:
Client.cfg
localhost
44
YouRp Client v0.1
//First Line is the Server Ip Adress
//The Second one is the server port
//Third one is the Application Title
Server.cfg
10
44
Hide
// First Line is the Maximum Accepted Connections Number!
// Default is 10... Change it to what ever you like
// The second one is the Server Port!
//The 3rd line hides the window! Just delete it if you want the server window to be visable!
Map_Type.cfg
MapType
texture
//There are 3 map types:
//Object(3D Map, .X),
//HeightMap(3D Image based Map, .BMP)
//Default(Random Matrix Generated Map)
//Delete MapType and change it to object or HeightMap or default!
//The second line is for the Image Name that should be used to texture pe map if map type is
//HeightMap or Game Generated Map!
Player.cfg
PlayerModel
ScaleX
ScaleY
ScaleZ
//Change PlayerModel into any .X Model name
// Eg: Link.X
//ScaleX, ScaleY,ScaleZ are used to redemension the model
//Defautl dimensions are 100 100 100!
// A number bigger then 100 will make them bigger
// A number smaller will make them smaller *duh*
Sound.cfg
sound_on
media/sound/mystic.mp3
//Change the first line to anything you want if you do not want to have music in the game!
//ATENTION!!! Change sound_on to anything, just make sure you don't delete it!
//The second line targets the directory where the .mp3 file is located!
//The game loads that music file and plays it in Game!
In curand voi adauga noi scripturi pentru animatia playerului, pentru incarcarea si positionarea de obiecte etc!