Waudby
Guest
- 0
- Posts
Ok first of all will get those pics from my games tomorrow i am going to bed, my mmorpg i can get you some pics but i never put it on a web page,
i can show you some of my work with java script its a little messy it is from a pokemon game thing i call ANImon its a demo and i will get the pics for that too in the morning anyways heres the java script:
Code:var town_door_1 = WarpObject(101, 149, 0, "Home.rmp"); var house_1 = WarpObject(570, 137, 0, "Lantern.rmp"); var main_font = GetSystemFont(); var main_window = LoadWindowStyle("ANImon.rws"); EvaluateSystemScript ("menu.js"); function game() { BindKey (KEY_ESCAPE, 'Game_Menu()', 't()'); Draw_Image (10, 10, "Title.png"); GetKey(); main_font.drawText (0, 0, "In a Island far far away..."); FlipScreen(); GetKey(); CreatePerson("Ki","Main.rss", false); AttachInput("Ki"); AttachCamera("Ki"); SetTalkActivationKey (KEY_ENTER); MapEngine("Lantern.rmp",60); UnbindKey (KEY_ESCAPE); } function Draw_Image (x, y, image) { var cur_image = LoadImage(image); cur_image.blit (10, 10); FlipScreen(); } function Text_Box (txt) { main_window.drawWindow(16, 16,GetScreenWidth()-32,GetScreenHeight()-192); main_font.drawTextBox(20, 22,GetScreenWidth()-34,GetScreenHeight()-202, 0, txt); FlipScreen(); RenderMap(); while (GetKey() != KEY_ENTER); } function Game_Menu() { RenderMap(); var menu = new Menu(); menu.addItem ("Pack", Items_Menu); menu.addItem ("Exit",Exit); menu.execute (10, 40, 110, 64); } function Items_Menu() { } function t() { } function WarpObject(x, y, layer, map) { if (this instanceof WarpObject == false) { return new WarpObject(x, y, layer, map); } this.x = x; this.y = y; this.layer = layer; this.map = map; } WarpObject.prototype.warp_to = function() { var person = GetInputPerson(); if (this.map) ChangeMap(this.map); if (this.layer >= 0) SetPersonLayer(person, this.layer); SetPersonX(person, this.x); SetPersonY(person, this.y); }
EDIT: oh ya and i how to use it but i have to be able to comprehend it to right it and on sphere it tells you the syntax errors you make
Sorry but that code is horribly written and laid out.
Stick to one kind of style. Because you've had help over at Spherical, other people's coding styles have been blended into your own. Try and redo the codes to support one style.
Anyways, this is looking like it has a lot of potential. I'm happy to say I'll be keeping an eye on this.