Author Topic: Fishing for, well, fish.  (Read 6152 times)

0 Members and 1 Guest are viewing this topic.

Offline bikemadness

  • Amiga 1200
  • ****
  • Posts: 319
  • Karma: 25
  • Hard players don't go home.
    • View Profile
Fishing for, well, fish.
« on: February 05, 2007 »
Hiya everyone.
This is one of my bigger experiments straight from the files Jim transferred from my PS2 to P.C
It's incomplete and untidy, as I ran out of energy.

Up, Down and Left to action.

Code: [Select]
open window 640,512
x=70
y=300
dir=330
ang=pi/180
fish=20
catch=0
skip=0.5
walk=5
side=1
man=4

dim aa(man),bb(man),cc(man),dd(man)
dim ee(man),ff(man),gg(man),hh(man)

for a=1 to man
read aa(a),bb(a),cc(a),dd(a),ee(a),ff(a),gg(a),hh(a)
next a

dim fx(fish),fy(fish),fsp(fish)

for a=1 to fish
fx(a)=int(ran(19))*20+170
fy(a)=int(ran(512))
fsp(a)=ran(3)+1
next a

repeat
setdispbuf vm
vm=1-vm
setdrawbuf vm
clear window

setrgb 1,20,200,20
fill rectangle 0,0 to 640,512
setrgb 1,100,75,0
fill rectangle 120,0 to 170,512
fill rectangle 550,0 to 600,512
setrgb 1,80,80,255
fill rectangle 170,0 to 550,512

c=peek("port1")
if recast=1 and and(c,128)>0 then
sp=0
dir=dir-move
else
sp=sp+hold
dir=dir+sp
endif

if and(c,16)>0 then
y=y-2.5
walk=walk+skip
endif
if and(c,64)>0 then
y=y+2.5
walk=walk+skip
endif

if walk>10 or walk<0 skip=-skip
if y<40 y=40
if y>440 y=440

if and(c,16384)>0 then
move=0
else
move=2.5
endif

if dir<180 dir=180
if dir>330 then
dir=330
hold=0
cast=1
else
hold=0.2
cast=0
l=0
endif

setrgb 1,0,0,0
for a=1 to man
line x+cos((dir+aa(a))*ang)*bb(a),y+sin((dir+cc(a))*ang)*dd(a) to x+cos((dir+ee(a))*ang)*ff(a),y+sin((dir+gg(a))*ang)*hh(a)
next a

if cast=0 line x+cos((dir+15)*ang)*80,y+sin((dir+15)*ang)*80 to x+10+cos((dir+15)*ang)*80,y+sin((dir+15)*ang)*80
if cast=1 then
l=l+5
line x+cos((dir+15)*ang)*80,y+sin((dir+15)*ang)*80 to x+l+cos((dir+15)*ang)*80,y+sin((dir+15)*ang)*80
if l>50*sp l=50*sp
if caught=1 circle x+l+cos((dir+15)*ang)*80,y+sin((dir+15)*ang)*80,5
rem previous line denotes caught fish on line
rem drawing fish will be laborious
endif

line x,y to x,y+30
line x,y+30 to x-10,y+70+(walk)
line x,y+30 to x+10,y+70-(walk-10)
text 20,20,str$(l)
text 20,40,str$(y)
text 550,50,"cast"
text 550,65,"strength"
text 580,85,str$(sp)
text 550,110,"fish"
text 550,125,"caught"
text 580,145,str$(catch)

setrgb 1,40,40,40
fill circle x,y-10,10
whip=whip+side
if whip<-2 or whip>2 side=-side

for a=1 to fish
fy(a)=fy(a)-fsp(a)
line fx(a)+3,fy(a)-4 to fx(a)+3,fy(a)-20
line to fx(a)+7+(whip/4)*fsp(a),fy(a)-28
line to fx(a)+13+(whip/4)*fsp(a),fy(a)-28
line to fx(a)+17,fy(a)-20
line to fx(a)+17,fy(a)-4
line to fx(a)+14,fy(a)+6
line to fx(a)+10+whip*fsp(a),fy(a)+25
line to fx(a)+6,fy(a)+6
line to fx(a)+3,fy(a)-4
if fy(a)<-10 then
fy(a)=522
fx(a)=int(ran(19))*20+170
endif

if x+l+cos((dir+15)*ang)*80>fx(a) and x+l+cos((dir+15)*ang)*80<fx(a)+20 and y+sin((dir+15)*ang)*80>fy(a) and y+sin((dir+15)*ang)*80<fy(a)+20 then rem and l=50*sp then
catch=catch+1
caught=1
sp=sp-0.05
if sp<0.2 then
sp=0.2
recast=1
endif
if sp>0.2 recast=0
endif
if l=50*sp then
sp=sp-0.05
if sp<0.2 then
sp=0.2
recast=1
caught=0
endif
if sp>0.2 recast=0
endif
next a
until (1=0)

data -180,25,-180,25,0,25,0,25
data 0,25,0,25,45,33,45,33
data -180,25,-180,25,135,33,135,33
data 150,40,150,40,15,80,15,80

Have a Yahappy day.
« Last Edit: June 22, 2013 by bikemadness »
Have a Yahappy day.
I don't know what is wrong with the world - but I know how to fix it.

Offline rain_storm

  • Here comes the Rain
  • DBF Aficionado
  • ******
  • Posts: 3088
  • Karma: 182
  • Rain never hurt nobody
    • View Profile
    • org_100h
Messing around with ideas again... [2]
« Reply #1 on: February 05, 2007 »
Thats great Bikemadness I think that this one deserves a topic all its own I love the animation karma + buddy

Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Messing around with ideas again... [2]
« Reply #2 on: February 05, 2007 »
Topic split - much better to start a new topic so everyone sees the new things :D
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Messing around with ideas again... [2]
« Reply #3 on: February 06, 2007 »
Good idea for a game, fishing!  It's difficult though, I played for a couple of minutes without catching anything - which reminds me a lot of going fishing in my childhood!

Jim
Challenge Trophies Won:

Offline rain_storm

  • Here comes the Rain
  • DBF Aficionado
  • ******
  • Posts: 3088
  • Karma: 182
  • Rain never hurt nobody
    • View Profile
    • org_100h
Re: Messing around with ideas again... [2]
« Reply #4 on: February 06, 2007 »
yeah it looks like nothin happenin in the catches but your points go up and if Im not mistaken a fish dissappears from the river as well but its hard to tell they move so fast

Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Messing around with ideas again... [2]
« Reply #5 on: February 06, 2007 »
Ah, OK.

Have you got 'Sync to 50Hz' turned on in the options?  It ran at normal pace for me.

Jim
Challenge Trophies Won:

Offline bikemadness

  • Amiga 1200
  • ****
  • Posts: 319
  • Karma: 25
  • Hard players don't go home.
    • View Profile
Re: Messing around with ideas again... [2]
« Reply #6 on: February 07, 2007 »
I've tried two options of 'catching fish'. The one that's working now, when reeling in, the end of the line catches all fish running over the top of them. And the other, which I think is there but turned off, catches fish only when the line stops and meets the fish at the same time. Cast strength depends on pull back position.

Have a Yahappy day.
Have a Yahappy day.
I don't know what is wrong with the world - but I know how to fix it.

Offline rain_storm

  • Here comes the Rain
  • DBF Aficionado
  • ******
  • Posts: 3088
  • Karma: 182
  • Rain never hurt nobody
    • View Profile
    • org_100h
Re: Messing around with ideas again... [2]
« Reply #7 on: February 07, 2007 »
I think that this would be very hard if you could only catch fish where the end of the line stopped but at the same time you are garanteed to catch a fish the way it is, like a regular Rex Hunt

Challenge Trophies Won:

Offline Clanky

  • Laser Guided Memories
  • Amiga 1200
  • ****
  • Posts: 340
  • Karma: 16
  • kiss that sound that pounds your senses
    • View Profile
Re: Messing around with ideas again... [2]
« Reply #8 on: February 08, 2007 »
I think it would be great if you could reel the line in and the fish follow if they are in 'feeding zone' or something?
Then if they eat it a resistance bar appears, and you must reel them in by tapping X without the resistance reaching 100 (or so)... the bigger the fish, the harder they fight back - the quicker the resistance goes up... if the resistance reaches or goes higher than the max resistance - the line snaps and the fish excapes...

Also, maybe there could be a point system where the larger fish scores more points... and you can go shopping for stronger line, better rods and more fish friendly bait or lourers - using the money gained by selling the fish? larger fish attract a larger price?

Great game by the way...
« Last Edit: February 08, 2007 by CLANKY »
He tilts, and his eyes are focused on the ground far below.. Wind? Angels? Men..

Offline bikemadness

  • Amiga 1200
  • ****
  • Posts: 319
  • Karma: 25
  • Hard players don't go home.
    • View Profile
Re: Messing around with ideas again... [2]
« Reply #9 on: February 08, 2007 »
Hah! ...well, when you put it like that, who wouldn't want to buy it as a PS2 game.
Of course, you'd have to make sure Nemo the clown fish isn't used, the fishermen are all wearing life-jackets and have them throw back the little ones.

Have a Yahappy day.
Have a Yahappy day.
I don't know what is wrong with the world - but I know how to fix it.

Offline rain_storm

  • Here comes the Rain
  • DBF Aficionado
  • ******
  • Posts: 3088
  • Karma: 182
  • Rain never hurt nobody
    • View Profile
    • org_100h
Re: Messing around with ideas again... [2]
« Reply #10 on: February 08, 2007 »
hah how bout fishin with dynamite?

Challenge Trophies Won: