• entries
108
319
• views
137634

# Text + Scripting

296 views

Gsl now has text output. After having difficulties getting OpenGL lists to work in C#, I just rolled my own system which just manually loops goes through each character. Not really the best way to do thing, but it does mean that I can do neat things like line breaks, etc.

Click to enlarge

What you see above is a scripting dog flying around the screen along with some glasses I manually typed into the scripting interpreter. Here's what I typed in the screen:
glasses = Sprite('glasses.png')Core.Draw += glasses.Drawglasses.X = 100fglasses.Y = 100fglasses.Rotation = 10fglasses.Rotat
As you can see, this is quite a powerful system. You can make objects dynamically during runtime and manipulate events quite easily.

### Random Interest

Bill and Napoleon

Wow, I must say that's pretty sexy.

Question - does the text cursor blink? (I've still got to re-write all of my text-drawing functions for the Seeing Double contest, and am not looking forward to it... It'll get done though. Eventually.)

Very nice. Is there a way to make the objects interactive or execute scripts of there own?

They showed that Napolean Dynamite sketch at the MVP GS as well. Not having seen the film it was mostly lost on me [headshake]

Jack

## Create an account

Register a new account