THIS IS ALL OF THE MAIN CODE
#include "DragonFireSDK.h"
//CIRCLE THE DOT CODE! int HelpButton; int PlayButton; int HomeScreen; int HomeScreenView; int Dv; //dot dogma int Dx; //dot x int Dy; //doy y
//event: 1=down, 2=move, 3=up
void AppMain()
int HBPress(int id, int event, int x, int y); //event: 1=down, 2=move, 3=up
if (event == 3)
ViewAdd("images/helpscreen",0,0);
return;
int PBPress(int id, int event, int x, int y); //event: 1=down, 2=move, 3=up
if (event == 3)
ViewAdd("images/during game backround.jpg", 0, 0);
return ;
HomeScreen=ImageAdd("Images/homescreen backround.jpg"); HomeScreenView=ViewAdd(HomeScreen,0,0); ImageAdd("images/helpscreen.jpg"); ImageAdd("images/during game backround.jpg");
Dx= 0; Dy= 0; Dv= ViewAdd("Images/dot.jpg",Dx,Dy);
//NEED TO WORK ON BUTTONS! HelpButton=ViewAdd("images/help button", 100, 300, HBPress, 0); PlayButton=ViewAdd("images/play button", 100, 200, PBPress, 1);
void AppExit()
void OnTimer()
//moves dot around the screen //need to know how to move backwards //need to know how to grab dot on screen Dx=Dx+Random(2);
Dy=Dx+Random(2); ViewSetxy(Dv,Dx,Dy);
THIS IS THE ERROR MESSAGE
>------ Build started: Project: circle the dot, Configuration: Debug Win32 ------ 1> App.cpp 1>e:\\circle the dot\\app.cpp(24): error C2065: event : undeclared identifier 1>e:\\circle the dot\\app.cpp(34): error C2065: event : undeclared identifier ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
|