Jump to content

Photo

TI Basic game finished: Viper squadron


26 replies to this topic

#1 tibasic OFFLINE  

tibasic

    Space Invader

  • 37 posts

Posted Thu May 4, 2017 1:53 PM

*** Finished game is attached as VIPER.zip to this post and further down as well *** tibasic 24.8.2017

 

I have started another basic game. It is based loosely on Defender but here you pilot a Colonial Viper trying to save humans from the Cylons.

 

The humans are trying to escape using underground turbo trains. There is a map at the top of the screen consisting of a number of boxes that indicates the different sectors of interest along the track. The sectors with trains are represented by a filled in box while an empty box indicates a sector with no train. A Cylon head on the map indicates a group of Cylons are chasing and monitoring the train. Your location is represented on the map by a flashing cursor. The map and ship controls (ESDX) are working but not much else at the moment.

 

Eventually the game will allow you to shoot the Cylons and collect the people in the train. After you have collected the people they will need to be delivered to safety to score points. If you encounter any Cylons and they shoot you down then the people and any potential points would be lost. If you do not save the people on the trains then the Cylons will eventually get them and then move onto another sector with a train.

 

 

Attached Files


Edited by tibasic, Fri Aug 25, 2017 1:13 PM.


#2 Retrospect OFFLINE  

Retrospect

    Dragonstomper

  • 866 posts
  • Location:Wakefield, England

Posted Thu May 4, 2017 2:12 PM

This is great!   :thumbsup:



#3 sometimes99er OFFLINE  

sometimes99er

    River Patroller

  • 3,910 posts
  • Location:Denmark

Posted Fri May 5, 2017 12:51 AM

He he, that's almost crazy.  :thumbsup:



#4 TheBF OFFLINE  

TheBF

    Moonsweeper

  • 308 posts
  • Location:The Great White North

Posted Sat May 6, 2017 9:07 AM

Wow. That was a lot of work.  Great job.



#5 TheBF OFFLINE  

TheBF

    Moonsweeper

  • 308 posts
  • Location:The Great White North

Posted Sat May 6, 2017 9:10 AM

Mine just crashed on Classic99 with

* BAD VALUE in 1360

 

1360 CALL GCHAR( 1,XP,GC)

 

PRINT XP  .4

PRINT GC 32

 

Looks likes you need INT(XP)+1 or some such in the line


  • RXB likes this

#6 tibasic OFFLINE  

tibasic

    Space Invader

  • Topic Starter
  • 37 posts

Posted Sat May 6, 2017 1:54 PM

 

This is great!   :thumbsup:

Thanks Retrospect.

 

 

He he, that's almost crazy.  :thumbsup:

Great! :)

 

 

Wow. That was a lot of work.  Great job.

Thanks. I'm actually using a lot of ideas from my previous games and even copy pasting routines from them so it may not be as much work as it seems.



#7 tibasic OFFLINE  

tibasic

    Space Invader

  • Topic Starter
  • 37 posts

Posted Sat May 6, 2017 2:05 PM

Some progress. The Cylons are all shooting now. They change colour before they shoot so you have time to escape (although they can't destroy the Viper yet). You can't see the missile fired by the Cylon because it is going so fast ... you can just see it when it explodes nearby.

 

Also when you get to the end of the map which is at the top of the screen the Viper automatically turns around. That is to avoid the program crashing when the Viper goes off the map.

Attached Files



#8 sometimes99er OFFLINE  

sometimes99er

    River Patroller

  • 3,910 posts
  • Location:Denmark

Posted Sat May 6, 2017 11:08 PM

Looking good. And the title screen too.  :thumbsup:



#9 tibasic OFFLINE  

tibasic

    Space Invader

  • Topic Starter
  • 37 posts

Posted Tue May 9, 2017 5:11 AM

Add the lines below to version 0605 of Viper Squadron (two posts up) to enable the Viper to fire super fast laser bolts! :)

 

1475 IF K=32 THEN 1476 ELSE 1480
1476 CALL HCHAR(Y*2+5,10+X*9,74,3)
1477 CALL HCHAR(Y*2+5,10+X*9,32,3)
1478 CALL HCHAR(Y*2+5,1+X*28,74,3)
1479 CALL HCHAR(Y*2+5,1+X*28,32,3)

 

 



#10 unhuman OFFLINE  

unhuman

    Stargunner

  • 1,139 posts
  • Location:Vienna, VA

Posted Tue May 9, 2017 7:21 PM

The technique to move the viper is really crafty.



#11 tibasic OFFLINE  

tibasic

    Space Invader

  • Topic Starter
  • 37 posts

Posted Wed May 10, 2017 4:48 AM

Actually the game 3D Road Race in Computer and Video Games magazine was where I got the idea from. I could never play it though because it was too fast but the idea was great.



#12 tibasic OFFLINE  

tibasic

    Space Invader

  • Topic Starter
  • 37 posts

Posted Wed May 17, 2017 1:13 PM

Here is the latest version. The Viper can destroy a Cylon now. It has to destroy about 4 or 5 of them before it can rescue people from the train. The people rescued are represented by a score at the top of the screen. The Cylons can also shoot back. There are five Vipers to play with.

 

There are a few more pieces of the game to add but it should be quite straight forward to do. It runs a little slower than I would like now but runs quite nicely in RXB.

 

 

Attached Files



#13 PeBo OFFLINE  

PeBo

    Dragonstomper

  • 885 posts
  • Location:Toronto, Canada

Posted Thu May 18, 2017 10:42 PM

Well how could anyone with my avatar not love this!!!

 

 

By your command



#14 Vorticon OFFLINE  

Vorticon

    River Patroller

  • 2,726 posts
  • Location:Eagan, MN, USA

Posted Fri May 19, 2017 5:24 AM

Well how could anyone with my avatar not love this!!!

 

 

By your command

 

I have my Omnibot robot programmed to roll down to my bedside in the morning and wake me up with "By you command, please wake up!". Drives my wife nuts  :grin:



#15 tibasic OFFLINE  

tibasic

    Space Invader

  • Topic Starter
  • 37 posts

Posted Mon May 29, 2017 4:22 AM

Here is the latest version. I think the next version will be the finished version.

 

There is now a time limit to engage and destroy the Cylons before they destroy the human's underground turbo train. You can also collect people from the trains that are not being chased by the Cylons. To do this press fire when in a sector with a train. In the next version I will add a small time penalty for collecting the passengers. At the moment there is a time limit of 50 game loops (frames?) to save the passengers being chased by the Cylons.

 

Once the underground track is empty of trains then the Viper progresses onto another level. The difficulty remains the same as in the first level at the moment but I will increase the difficulty in the next version of the game. The difficulty will be increased by decreasing the time it takes for a Cylon to shoot a missile at your Viper and increasing the time penalty for collecting passengers in sectors not occupied by Cylons.

 

 

 

 

Attached Files



#16 tibasic OFFLINE  

tibasic

    Space Invader

  • Topic Starter
  • 37 posts

Posted Sun Jul 9, 2017 9:14 AM

Pretty much finished now although I will probably revisit it later to see how it plays and make any necessary improvements then.

 

Main updates from previous version are:

 

1. Revised title music and screen.

 

2. Points can be scored by shooting the Cylons as well as saving passengers.

 

I decided not to increase the difficulty with each level as it seems difficult enough as it is.

 

Attached Files



#17 Ksarul OFFLINE  

Ksarul

    River Patroller

  • 4,131 posts

Posted Sun Jul 9, 2017 11:21 AM

Nice update!  Thanks for an interesting program.  :)



#18 tibasic OFFLINE  

tibasic

    Space Invader

  • Topic Starter
  • 37 posts

Posted Thu Aug 24, 2017 3:16 AM

The game is finished complete with sound effects! Hope you enjoy it.

 

 

Attached Files


Edited by tibasic, Fri Aug 25, 2017 1:14 PM.


#19 Vorticon OFFLINE  

Vorticon

    River Patroller

  • 2,726 posts
  • Location:Eagan, MN, USA

Posted Thu Aug 24, 2017 5:21 AM

Nicely done!



#20 tibasic OFFLINE  

tibasic

    Space Invader

  • Topic Starter
  • 37 posts

Posted Thu Aug 24, 2017 2:24 PM

I was playing the game this afternoon and found a bug that ruined my high score attempt. :/

 

Here is an explanation of the bug and how to fix the problem. The viper is represented on the map at the top of the screen as a cursor. This cursor can come off the map and become stuck which then prevents the player accessing the different zones on the map. This is because the code to keep it on the map fails under a certain condition, i.e. if the key for turning the viper around is pressed just as the viper comes off the map. This can happen if you are fumbling with the keys trying to blast the Cylons. I have rewritten the code so that it fixes this problem and included the code below. You can just add the code to the 'finished' version (in the VIPER.zip file attached to the first post or post #18). Line 3270 overwrites the existing line of code which it is supposed to do.

 

3261 IF XP>=21 THEN 3262 ELSE 3270
3262 X=0
3263 GOTO 3280
3270 X=1

 

I will test the game a bit more tomorrow and replace the VIPER.zip file then.



#21 tibasic OFFLINE  

tibasic

    Space Invader

  • Topic Starter
  • 37 posts

Posted Fri Aug 25, 2017 1:17 PM

Updated the game with a fix for the bug described in the above post #20. The updated file is VIPER.zip found attached to post #1 and #18.



#22 MueThor OFFLINE  

MueThor

    Space Invader

  • 43 posts
  • Location:OMG, yet another good former TI customer from Germany ;-)

Posted Sat Aug 26, 2017 2:11 AM

Hi tibasic,

 

What are the formats of your files and with which programs can I open them? I ask you this question, because I am using V9T9 as TI 99 emulator. 

 

 

Regards


Edited by MueThor, Sat Aug 26, 2017 2:13 AM.


#23 tibasic OFFLINE  

tibasic

    Space Invader

  • Topic Starter
  • 37 posts

Posted Sat Aug 26, 2017 5:02 AM

Hi MueThor,

 

The file in VIPER.zip is for the Classic99 emulator. The extracted file can be put in the DSK1 folder of Classic99 and then loaded from the emulator with OLD DSK1.VIPER.

 

Hope that is helpful ... I am not familiar with the actual format details. If V9T9 has a paste facility I could attach a text file of the program.


Edited by tibasic, Sat Aug 26, 2017 5:12 AM.


#24 Asmusr OFFLINE  

Asmusr

    River Patroller

  • 2,426 posts
  • Location:Denmark

Posted Sat Aug 26, 2017 10:35 AM

The file is in TIFILES format. You can convert it to V9T9 format using Ti99Dir.



#25 Sinphaltimus OFFLINE  

Sinphaltimus

    Stargunner

  • 1,932 posts
  • Distracted at the Keyboard
  • Location:Poconos, PA

Posted Sat Aug 26, 2017 1:41 PM

Having an issue - I downloaded from the first post.

Using classic99

 

 

Attached File  Viper.gif   27.71KB   1 downloads

 

EDIT:

 

Tried again using file from this post (last attachment comment in this topic) - http://atariage.com/...n/#entry3833658

Same result.

EDIT2: Oh wait, this is a BASIC game, not XB - It works fine.

 


Edited by Sinphaltimus, Sat Aug 26, 2017 1:49 PM.





0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users