master
Jay 5 years ago
parent 7ccaea0245
commit 95548b3c3a

File diff suppressed because it is too large Load Diff

@ -1,10 +1,10 @@
rem Drugwar//e - Version 1.01
rem 19-OCT-2018
rem Drugwar//e - Version 1.02
rem 20-OCT-2018
rem Copyright 2018 Jay Moore
rem Released under GPL v3
rem drugwar2e.sourceforge.io
rem twitter: _nq4t
rv=1.02
goto @instructions {because we're sticking subroutines up here}
£titlebar {this literally just draws the game title at the top of the screen}
HTAB 16 : print "Drugwar//e"
@ -30,7 +30,7 @@ rem twitter: _nq4t
vtab 2:htab 19
return
£jetalthere
inverse:vtab 2: htab 19:print"Jet":normal
inverse:gosub @twonineteen:print"Jet":normal
return
£timera
for j = 1 to 2500
@ -74,10 +74,10 @@ This has cleaned the code up a bit
f=int(i-((g*5)-m+n+o+u+t+p))
return
£chase
inverse:vtab 2: htab 15: print"Being Chased":normal
inverse:gosub @twofifteen: print"Being Chased":normal
return
£gmod
speed=100:vtab 2: htab 16:inverse:print"Game Over":normal:speed=255
speed=100:gosub @twosixteen:inverse:print"Game Over":normal:speed=255
return
£bronxcheck
if p$ = "THE BRONX" then return
@ -166,7 +166,7 @@ goto @menu
£prices
home
gosub @titlebar
inverse:vtab 2:htab 18:print"Prices":normal
inverse:gosub @twoeighteen:print"Prices":normal
print chr$(10)
print"cocaine:","$"c
print"heroin:","$"h
@ -180,7 +180,7 @@ goto @menu
£inventory
home
gosub @titlebar
inverse:vtab 2: htab 16:print"Trenchcoat":normal
inverse:gosub @twosixteen :print"Trenchcoat":normal
print chr$(10)
print"cocaine:",m
print"heroin:",n
@ -194,7 +194,7 @@ goto @menu
£buy
home
gosub @titlebar
inverse:vtab 2: htab 19: print"Buy":normal
inverse:gosub @twonineteen: print"Buy":normal
print chr$(10)
print"What do you want to buy?"
print chr$(10)
@ -216,7 +216,7 @@ goto @menu
£sell
home
gosub @titlebar
inverse: vtab 2: htab 18: print"Sell":normal
inverse: gosub @twoeighteen: print"Sell":normal
print chr$(10)
print "What would you like to sell?"
print chr$(10)
@ -268,7 +268,7 @@ goto @menu
£loan
home
gosub @titlebar
inverse : vtab 2: htab 16:print "Loan Shark":normal
inverse : gosub @twosixteen:print "Loan Shark":normal
print chr$(10)
gosub @bronxcheck
print "Your debt is: $";v
@ -283,7 +283,7 @@ goto @menu
£bank
home
gosub @titlebar
inverse : vtab 2 : htab 15: print"Bank O'Murica":normal
inverse : gosub @twofifteen: print"Bank O'Murica":normal
print chr$(10)
gosub @bronxcheck
print "Your balance: $";e
@ -299,7 +299,7 @@ goto @menu
£cokebuy
home
gosub @titlebar
inverse:vtab 2: htab 16: print"Buy Cocaine":normal
inverse:gosub @twosixteen: print"Buy Cocaine":normal
print chr$(10)
j=int(w/c) {calculate how many we can buy}
gosub @howmuchbuy
@ -308,7 +308,7 @@ goto @menu
£herbuy
home
gosub @titlebar
inverse:vtab 2: htab 16: print"Buy Heroin":normal
inverse:gosub @twosixteen: print"Buy Heroin":normal
print chr$(10)
j=int(w/h)
gosub @howmuchbuy
@ -317,7 +317,7 @@ goto @menu
£acidbuy
home
gosub @titlebar
inverse:vtab 2: htab 17:print"Buy Acid":normal
inverse:gosub @twoseventeen:print"Buy Acid":normal
print chr$(10)
j=int(w/a)
gosub @howmuchbuy
@ -326,7 +326,7 @@ goto @menu
£weedbuy
home
gosub @titlebar
inverse:vtab 2: htab 17: print"Buy Weed":normal
inverse:gosub @twoseventeen: print"Buy Weed":normal
print chr$(10)
j=int(w/z)
gosub @howmuchbuy
@ -335,7 +335,7 @@ goto @menu
£spdbuy
home
gosub @titlebar
inverse:vtab 2: htab 17: print"Buy Speed":normal
inverse:gosub @twoseventeen: print"Buy Speed":normal
print chr$(10)
j=int(w/s)
gosub @howmuchbuy
@ -344,7 +344,7 @@ goto @menu
£ludbuy
home
gosub @titlebar
inverse:vtab 2: htab 17: print"Buy Ludes":normal
inverse:gosub @twoseventeen: print"Buy Ludes":normal
print chr$(10)
j=int(w/l)
gosub @howmuchbuy
@ -355,10 +355,10 @@ goto @menu
£cokesell
home
gosub @titlebar
inverse:vtab 2: htab 15:print"Sell Cocaine":normal
inverse:gosub @twofifteen:print"Sell Cocaine":normal
print chr$(10)
j=m {write amount to variable}
gosub @howmuchsell
gosub @howmuchsell {some buy logic}
m=m-k {sub sends back here if valid, adjusts inventory}
w=w+(c*k) {adds money to wallet}
goto @menu
@ -366,7 +366,7 @@ goto @menu
£hersell
home
gosub @titlebar
inverse:vtab 2 : htab 17:print"Sell Heroin":normal
inverse:gosub @twoseventeen:print"Sell Heroin":normal
print chr$(10)
j=n
gosub @howmuchsell
@ -377,7 +377,7 @@ goto @menu
£acidsell
home
gosub @titlebar
inverse:vtab2: htab 17: print"Sell Acid":normal
inverse:gosub @twoseventeen: print"Sell Acid":normal
print chr$(10)
j=o
gosub @howmuchsell
@ -388,7 +388,7 @@ goto @menu
£weedsell
home
gosub @titlebar
inverse:vtab 2: htab 17:print"Sell Weed":normal
inverse:gosub @twoseventeen:print"Sell Weed":normal
print chr$(10)
j=u
gosub @howmuchsell
@ -399,7 +399,7 @@ goto @menu
£spdsell
home
gosub @titlebar
inverse:vtab 2: htab 16:print"Sell Speed":normal
inverse:gosub @twosixteen:print"Sell Speed":normal
print chr$(10)
j=t
gosub @howmuchsell
@ -410,7 +410,7 @@ goto @menu
£ludsell
home
gosub @titlebar
inverse:vtab 2: htab 16:print"Sell Ludes":normal
inverse:gosub @twosixteen:print"Sell Ludes":normal
print chr$(10)
j=q
gosub @howmuchsell
@ -435,7 +435,7 @@ goto @menu
V=int(V*1.1+.5) {loan calculation}
E=int(E*1.06+.5) {savings calculation}
gosub @titlebar
inverse:vtab 2: htab 18:print"Subway":normal
inverse:gosub @twoeighteen:print"Subway":normal
print chr$(10)
if b=1 then goto @cheapludes
if b=2 then goto @cheepweed
@ -749,7 +749,7 @@ conditions on how/when we run cops
£instructions
home
vtab 2:htab10:print "Welcome to Drugwar//e":htab14:print"Version 1.01"
vtab 2:htab10:print "Welcome to Drugwar//e":htab14:print"Version ";rv
vtab 8:htab 3:print "Based on the classic TI-BASIC clone":htab2:print"of John E. Dell's 1984 IBM/TRS80 game."
vtab12:htab6:print "Applesoft version by: Jay Moore"
vtab19:input "Would you like instructions? (Y/N): ";X$
@ -773,7 +773,7 @@ conditions on how/when we run cops
£weedend
home
gosub @titlebar
inverse : vtab 2: htab 15: print "SMOKE Weed" : NORMAL
inverse : gosub @twofifteen: print "SMOKE Weed" : NORMAL
speed = 50 :print "You hallucinate on the wildest trip"
print "of your life, stumble on to the tracks,"
print "and get creamed by a train!"

Loading…
Cancel
Save