Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Organised ASCII objects

Author
Message
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 27th Jan 2007 13:43 Edited at: 27th Jan 2007 14:02
I has a thought about what the best way to make ascii objects would be (like 2D objects, but made from ascii characters). It really would be silly to have to program in every ascii characters and it's positions and other data seperatelly, so I devised two functions:
num=asc_createObject(objlist$)
asc_drawObject(num,x,y)

So the first returns the object number, and the second will position that objects.

Objlist$, the parameter for the first function, it basically what the object will look like.
This is how you set it out:
char,x,y,size,r,g,b;
and that can be done over and over to make seperate objects in one line, aslong as you split it up using a semi-colon( ; ).

Here's the code, with a very.. sexy.. example



[edit]
Here's another cool object:
num=asc_createObject(" )),0,0,12,255,255,255; ( ¬¬),0,12,12,255,255,255;/_(')'),0,24,12,255,255,255;")

Alquerian
18
Years of Service
User Offline
Joined: 29th Mar 2006
Location: Reno Nevada
Posted: 31st Jan 2007 02:25
lol you dork

Quit planning to make a game and make a game.
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 31st Jan 2007 18:14
Oi

lower logic
18
Years of Service
User Offline
Joined: 15th Jun 2006
Location:
Posted: 31st Jan 2007 18:29
Hahah, nice.

Login to post a reply

Server time is: 2024-11-23 00:26:42
Your offset time is: 2024-11-23 00:26:42