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

learning to script

Sign in to follow this  



so yeah. this is what i'm going to learn for scripting. i might be getting a little ahead of myself, but i'm not getting any of the content done, so i might as well do something useful in the meantime. i've compiled it with gcc so its ready to use with dev-cpp (thanks lua community!) and now i need to play with it. into the docs with me, i guess! [working]

ok, i got to thinking a little. i'm going to use scripting for just about everything related to the content - excepting things i need to have in the backend. those things are the hardware communications routines, like timing, sound, graphics, and input. i need to expose that stuff to the scripting. as i think more on it, i suppose i don't want to force a bunch of it - like for instance, the title screen, inventory, and stuff like that. any kind of 'action' or 'thinking' sequence needs to be scripted.

i've read a bunch of the stuff about how to use lua, but i haven't read anything about how to use its api from C. what i want to do as my first test is have a program that loads a picture and bounces it around the screen until the user presses a key. i want to have lua pick the picture, and be in complete control of the movement. having it check for input is also going to happen from the script. the rest of the stuff, the actual hardware stuff, the picture load/unload, and the timing lock-down are going to be handled in the 'backend'. i think i'll skip to the api docs. [working]

ok wow. i can't seem to wrap my head around this stuff anymore. i'll have to try again later..
Sign in to follow this  

1 Comment

Recommended Comments

I wish you luck. I have gotten Lua in as the scripting engine for my projects and I'm still learning alot. Mine was done in C#, so hope the Cpp works out well.

-- Eric 'Wackatronic' Tomlinson

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!