Sign in to follow this  
  • entries
    108
  • comments
    319
  • views
    137634

Text + Scripting

Sign in to follow this  
Rob Loach

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.Draw
glasses.X = 100f
glasses.Y = 100f
glasses.Rotation = 10f
glasses.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
Sign in to follow this  


3 Comments


Recommended Comments

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.)

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now