Good morning NS,I'm doing an assignment in class where i have to create a arrow and target game using TrueBasic Bronze Edition. First i'm trying to create the arrow and target using plot lines with the format:
Plot lines: x1, y1; x2, y2! From point (x1, y1) to point (x2, y2)
Or just PLOT 100, 100; 200, 150
Any programmers out there that are familar with the plotting system and how to create the arrow and target. The game itselfs pseudocode and overview is:
Arrow and Target Game-
Overview- This program is a game with a target and an arrow. Both the target and the arrow move independently up and down the screen. When the player hits the space bar, the arrow shoots across the screen and hopefully hits the target. Each player gets 10 arrows.
The Program- The main program should consist of a series of subroutine call statements. All of the actual programming should be in the subroutines.
This means that the subroutines will be before the END statement of the main program and the good news is that you will not have to pass parameters. The bad news is that you will not be able to use the same variables in different subroutines.
The target- You have already drawn the target. This block of code will be put in a subroutine called MAKE_TARGET. Then x and y coordinates must be changed to tx and ty so we know that they are the coordinates for the target and not anything else on the screen.
2. OPEN_SCREEN (Contains welcome message and instructions)
Grading- You will need to complete the entire project. If your game works and looks good and follows the directions that you are in the opening, you will get an 85. If you add any of the following, you will get.
On screen message for bullseye (+3 points)
On screen message for game over (+2 points)
Scoring System (+5 Points)
Wall of fame (+5 Points)
Sub Open Screen
Set up screen settings
Have intro message
Explain rules of the game
Limit them to 10 shots.
Move arrow across the screen
Check to see if it hits the target
Call check target
Sub Move arrow
Move arrow up and down the screen
Change direction when it gets to the top or bottom of the screen
Sub move target
Move target up and down the screen
Change direction when it gets to top or bottom of the screen
Sub Make arrow
Make arrow so that it appears on the screen
Sub Make Target
Make target so that it appears on the screen
Sub check target
Determine if arrow hits the target
Show score on screen
It would be nice if someone could give me some help or maybe a start?