April 26, 2024, 04:23:15 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


v1.5 compile problem

Started by J B Wood (Zumwalt), December 05, 2006, 08:14:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

J B Wood (Zumwalt)

Compiling...
EFlyingInvaders.eba

Linking...
Emergence Linker v1.11 Copyright ÂÃ,© 2006 Ionic Wind Software
Unresolved external _ib_main
Error: Unresolved extern _ib_main
Error(s) in linking EFlyingInvaders.exe


What does this mean?

J B Wood (Zumwalt)



/*
EFlying Invaders is a port from my Flying Invaders originally written in Aurora
This is my pet project to prove to myself that I can still write BASIC... :)
Jonathan (Zumwalt) Wood

*/
DECLARE IMPORT,timeGetTime(),UINT

/* First build up all of our structures used in the game */

' game structures, Invaders, Bunker, Player, Score, Level, etc
' Rows   Invaders HP
' 1      random saucer appearance 4
' 2      12 high level invaders 3
' 3 & 4  12 medium level invaders 2
' 5 & 6  12 low level invaders 1

' our struct_types
INT Invader_S,Bunker_S,Player_S,Bullet_S,Saucer_S
Invader_S=0
Bunker_S=1
Player_S=2
Bullet_S=3
Saucer_S=4

' Invader related items
TYPE sInvaders
int struct_types /* Invader_S */
pointer Invader /* Our Invader Sprite Handler */
float x,y /* our X and Y locations */
string resourceName /* name of our sprite file */
int Visible /* Set visible value */
float speed /* speed of movement */
float drop /* rate of drop */
float incPoint /* number to determine time to increase speed */
float curPoint /* current movement point, add 1 per time hit right side of screen */
float totalIncrease /* total times we increased speed */
float maxSpeed /* maximum object speed */
float minSpeed /* minimum object speed */
int maxHP /* maximum damage it can take */
int currentHP /* current life remaining */
int scrollState /* individual scroll state */
float Steping /* 0.10f */
float throttle /* whooo nelie, slow this horse down */
int pointValue /* what it is worth when it is destroyed */
int imgWidth /* images width value */
int imgHeight /* images height value */
int scoreCheck /* see if score already taken, 0=false, 1=true */
int tAmmo /* total shots */
int cAmmo /* current shots left */
ENDTYPE

TYPE sBunker
INT struct_types /* Bunker_S */
pointer Bunker /* Bunker Sprite */
float x,y /* Position */
float imgheight /* bunker image height */
float imgwidth /* bunker image width */
string resourceName /* Name of the bunker resource */
int Visible /* visible or destroyed */
int maxHP /* maximum damage it can take */
int currentHP /* current life remaining */
ENDTYPE

TYPE sLevel
pointer Background /* Level background image */
int CurrentLevel /* Players current level */
ENDTYPE

TYPE sScore
int CurrentScore /* Players Score */
int tLives /* total lives */
int rLives /* remaining lives */
ENDTYPE

TYPE sPlayer
INT struct_types /* Player_S */
float x,y /* location */
float imgwidth /* image width */
float imgheight /* image height */
pointer Ship /* player ship */
int tAmmo /* Player total Ammo */
int cAmmo /* Player current Ammo */
string resourceName /* Name of the bunker resource */
int Visible /* visible or destroyed */
int maxHP /* maximum HP */
int currentHP /* current HP */
int activated /* activated ship */
ENDTYPE

TYPE sBullet
INT struct_types /* Bullet_S=4 */
pointer Ammo /* ammo image */
string resourceName /* Name of the bullet resource */
float x,y /* screen location */
float imgheight /* image height */
float imgwidth /* image width */
int Active /* Active shot, becomes inactive (destroyed) when hits edge of screen or player or enemy */
int dmg /* amount of damage the object can do */
int activated /* visible or destroyed */
int timeFired /* time in MS when bullet was fired  */
pointer firedBY /* pointer to who fired the bullet */
ENDTYPE

width = 800
height = 600
IF CREATESCREEN(width,height,16) < 0
MESSAGEBOX 0,"Couldn't open screen\nThis program requires DirectX 7.0 or greater","Error"
ENDIF

'turn off the cursor
SETCURSOR FrontBuffer,@CSCUSTOM,0
'Set our font and text colors
SETFONT BackBuffer,"Ariel",12,600
FRONTPEN BackBuffer,RGB(192,192,255)
DRAWMODE BackBuffer,@TRANSPARENT

int mElapsed,mTimer
mTimer = timeGetTime()
exit_game=FALSE
/* Our beautiful Game Loop */
DO
FILLSCREEN 0
'ESC to exit at any time
IF KEYDOWN(1) then exit_game = TRUE
'target 75 frames per second for ball movement.
mElapsed = timeGetTime() - mTimer
mTimer = timeGetTime()
mAdjust = mElapsed / 13.3333
fps = FLIP 1
'mAdjust = 1

UNTIL exit_game
CLOSESCREEN


Ionic Wind Support Team

You have a project and forgot the $main statement.  See the users guide "IDE Topics->Using Projects"  about 3/4 down the page.

Ionic Wind Support Team

J B Wood (Zumwalt)

Pfft..
*shakes his head*
back to converting

J B Wood (Zumwalt)

I really got to do something about throttling the game, my FPS is upwards to 3226... oui....