Hey everybody! I just recently began learning C++/Lite-C scripting/programming. I read on some tutorials and sites that the best thing to do, is to start small, like create a pong game. So, that is exactly what I am doing. I am going to create a simple pong game to give me a little bit of practice and experience, but early on, I have run into some problems o.O
So, this is what I have so far.
#include <achnex.h>
var tops_score = 0;
var bottoms_score = 0;
BMAP left_border = "border_left.bmp"
PANEL border_left =
{
pos_x = 0;
pos_y = 0;
layer = 1;
bmap = left_border
flags = VISIBLE
}
function main()
{
screen_color.blue = 150;
}
Now, the function main part is fine, it does what it is supposed to do. I have already created the 'graphics' for the game, such as the ball, pong, border, etc... and I put them in the same folder as the script. But, when I try to test run that, it comes up with like a whole bunch of errors saying why it can't run the test thing, and this is like what it says.
< BMAP left_border = ''border_left.bmp'' PANEL border_left = {>
PING_PONG_TEST.WDL 8:0 (): Parameter unknown BMAP bad keyword in {}
and then it says that about everything else, like the pos_x =, the layer =, the pos_y =, the flags, it says that it is a parameter unknown pos_x or flags bad keyword in {}. I am using the stuff exactly as it says in the workshop stuff, and it isn't working? How come?