Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Text + Scripting

Sign in to follow this  
Rob Loach


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


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
Very nice. Is there a way to make the objects interactive or execute scripts of there own?

Share this comment

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


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
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!