UnderwareDESIGN

PlayBASIC => Show Case => Topic started by: micky4fun on May 31, 2009, 06:31:01 PM

Title: Water wescue final released
Post by: micky4fun on May 31, 2009, 06:31:01 PM
Hi all

will do web site as soon as possible , tried google sites , but came out crap , so will try another soon

ok heres my latest w.i.p , will get a demo asap

story line , theres been an earth quake , and some old buildings have came down near waters edge and fell into water , you have to rescue , sorry no wescue the traped victims under the water before there time runs out , but be carfull as buildings are very fragile and may collapse any second ,,

well that the idea , lets see if i can pull it of

screenie below

mick :)


Get Download Here (http://www.underwaredesign.com/forums/index.php?topic=3074.msg20739#msg20739)



Final Video

 





Work In Progress Video

Watch Water rescue (http://www.youtube.com/playbasic#p/f/11/QHD40Lpy4cE) on youtube








Title: Re: Water wescue w.i.p
Post by: micky4fun on June 06, 2009, 05:18:05 PM
sorry , been tied up with something else at work that pays the bills so will get back to this in a few days

mick ;D
Title: Re: Water wescue w.i.p
Post by: micky4fun on June 09, 2009, 05:04:18 PM
Hi all

well just getting a little more time to myself again

heres where i am , lots and lots still to do , buts heres a screenie teaser

main boat image to change into some kind of gunboat as that is what you controll fighting of helicopters and subs , also background underwater may change a little
slightly over subscribed with subs at mo , all to be fine tuned..

mick ;D
Title: Re: Water wescue w.i.p
Post by: micky4fun on June 10, 2009, 07:36:52 PM
Hi All

ok starting to take shape , heres a quick demo , controll of ship will be keyboard with mousr for crosshair and firing back at enemy , still lots to do
as you can see your ship looks a mean bugger ,, lol , will update that as soon as i find an image

mick ;D
Title: Re: Water wescue w.i.p
Post by: micky4fun on June 12, 2009, 04:32:06 PM
Hi all

This is now the main frame of the game , just some animations to do , still not completely happy with main boat , but will try to tidy it up ,
still got explosion images to add , fish , bubbles etc
controll mouse for aim , left mouse to fire at helicopters , left and right arrows to move your boat , down arrow for ship bombs only 1 a second allowed at mo , still got to do amount of missiles fired by you and enemy so its not to easy or hard , but this is the basic game , i know its been done a million times , but had to do something with Kevins water effect , also learning me how easy it is to use linked list's , well for now all seems well ,
ok ive borrowed the gfx from a well known game

ile post when i feel its a update worth having

mick ;D

mick
Title: Re: Water wescue w.i.p
Post by: micky4fun on June 14, 2009, 07:56:39 AM
Hi all

well thought it was going to easy with this program using linked list , but after playing lastest demo attached it causes windows to stop program , im using vista , pb 1.64h
but i think its something to do with my linked list that im doing wrong , if anyone can point me in the right direction before i continue that would be great

thanks
mick ;D
Title: Re: Water wescue w.i.p help !!! please
Post by: kevin on June 14, 2009, 09:29:40 AM

  PB1.64h ?  upgrade -> PB1.64i

  I don't think the crash is list related, but you find you yourself (locate what the cause is) by inserting break points and running in debug mode. 

  #break   = break point

Title: Re: Water wescue w.i.p help !!! please
Post by: micky4fun on June 15, 2009, 05:31:46 AM
hi Kevin

thanks for the fast reply , i did upgrade but still the same , seems if you play it for 5-10 mins windows vista stops and exits the program
does this on both pc and laptop of mine

i did do a debug mode and stopped it now and then and could not see any values that looked wrong , trouble is when windows stops the program in debug mode you can't getin debug to read values and states ,

what im going to do is run program with some bits taken out see if i can narrow it down

just one question does the currentlistpos and setlistpos have to be in the for each loops or can they be left out as i have remarked out here?
or if they do have be be in the code is this the correct way ?

also i doing a for next link list loop within a for next link loop would this cause a problem ?

For Each shells()
      ;CurrentListPOs=GetListPos(shells())
        ;SetListPos shells(),CurrentListPos
        if shells.whathit=0
        shells.x#=shells.x#+shells.speed#*2
        shells.y#=shells.y#+4
        endif
       
        positionsprite shells.sprite,shells.x#,shells.y#
        ;drawsprite shells.sprite
        ThisSprite=SpriteHit(shells.sprite,GetFirstSprite(),1)
  if thissprite=boatone
  shells.whathit=1
  shells.y#=shells.y#+1
endif
       
        if shells.y#>cc#+SinusTable(2)
      deletesprite shells.sprite
      shells = null
      endif
      next
        return


thanks
mick ;D
Title: Re: Water wescue w.i.p help !!! please
Post by: kevin on June 15, 2009, 10:47:29 AM

You can't really nest  for each's loops without projecting the outer list position.


    For each MyList()
        ; cycle through and look from some in this same list
         for each MyList()   ;<< nested list iteration
              do stuff
         next
     next


    The reason for this is the list is really a container, inside this container is the objects and a pointer to the current object.    In the example above the inner loop is altering the outer loops pointer.   So if you need to search through the same loop, while iterating through it.  Then you need to protect the pointer.


    For each MyList()
        CurrentPos=GetLIstPOs(MyList())
        ; cycle through and look from some in this same list
         for each MyList()   ;<< nested list iteration
              do stuff
         next
       ; reset this position
       SetListPos MyList(), CurrentPos
  next

 
   Having said that,  I don't really think this is where your crash is coming from.  However without a repeatable cause,  there's not too much I can really do.

Title: Re: Water wescue w.i.p help !!! please
Post by: medwayman on June 15, 2009, 02:19:12 PM
Had a good few 10 min+ goes on my Vista machine (PB 1.64j) without any problems. Great work so far btw.

Strange that both your machines have the same problem... Are they both from the same manufacture? I know that Acer eSecurity causes  some software to shut down in vista but you obviously had no problems with your other games. Just a shot in the dark.

Good luck tracking it down :)

Title: Re: Water wescue w.i.p help !!! please
Post by: micky4fun on June 15, 2009, 02:49:27 PM
Hi medwayman , Thanks for coments , but if you keep rapid firing the missiles in all direction it does eventually crash ,

and Kevin for all this info on getlistpos and setlistpos ,

but i think ive found the problemm ,
buy changing the following lines it seems fine now

ThisSprite=SpriteHit(bm.sprite,GetFirstSprite(),1) change it to ThisSprite=SpriteHit(bm.sprite,GetFirstSprite(),2)
ThisSprite=SpriteHit(shells.sprite,GetFirstSprite(),1  change it to) ThisSprite=SpriteHit(shells.sprite,GetFirstSprite(),4)
ThisSprite=SpriteHit(subsmissile.sprite,GetFirstSprite(),1) change it to ThisSprite=SpriteHit(subsmissile.sprite,GetFirstSprite(),4)

then make the boatone sprites collisionclass 4
and heli.sprite sprites make them collisionclass 2
i was going to make boat , missiles , helicopter etc different sprite collisionclasses later in the game anyway , so might as well do it now
so i think its either these statements or the code that follows

its seems ok so far , ile keep testing

mick ;D
Title: Re: Water wescue w.i.p help !!! please
Post by: u9 on June 16, 2009, 02:24:39 AM
Quote from: micky4fun on May 31, 2009, 06:31:01 PM
screenie below

Hi mick, you keep saying see screenshots and stuff, but is it just me or have you not added them yet? Anyways, this sounds interesting. I am looking forward seeing it.
Title: Re: Water wescue w.i.p help !!! please
Post by: micky4fun on June 16, 2009, 04:48:31 AM
Hi U9

first of all thanks for all your help on clowning around game , great programming , and very much appreciated

ok heres a screenie , looks like ive found the problem so i will carry on with game now , as i did'nt want to spend loads of time doing it and when anyone played it , it crashed

i knew that it must be something i was doing wrong , so just taking bits out i finally suss it ,
a good way of testing code above , is taking out the if mousebutton=1 line and putting in

delay=delay+1
 if delay=8
     delay=0

you may have to adjust delay value a little

this will make it auto fire , then just move mouse 1/4 down screen and move left and right fast and circle movements , it will crash with a few mins

mick ;D
Title: Re: Water wescue w.i.p help !!! please
Post by: u9 on June 16, 2009, 03:17:05 PM
No problem. It was a joy to participate. I am glad you finished it. I must admit i still have not had a chance to try the final release. I have been quite busy with my new iPhone developer job :) so between my mac and my eeepc, xp doesn't get much time.

Anywho... this looks like a very interesting project.
Title: Re: Water wescue w.i.p help !!! please
Post by: micky4fun on June 17, 2009, 05:13:46 AM
ok thanks u9

QuoteI have been quite busy with my new iPhone developer job
well wish you all the best with that  , got an ipod touch at moment , getting phone soon , some good games and apps on this platform and its getting better all the time ..


mick  :)
Title: Re: Water wescue w.i.p help !!! please
Post by: kevin on June 18, 2009, 02:26:52 AM
Quoteok heres a screenie , looks like ive found the problem so i will carry on with game now , as i did'nt want to spend loads of time doing it and when anyone played it , it crashed

  so what was the problem ????
Title: Re: Water wescue w.i.p help !!! please
Post by: micky4fun on June 18, 2009, 02:40:34 AM
Hi Kevin

i had to change collisionclass tested for collision to 2 or 4 or 8 anything other the class of the linked list sprite (bm.sprite)

ie the code was
ThisSprite=SpriteHit(bm.sprite,GetFirstSprite(),1)
now changed to
ThisSprite=SpriteHit(bm.sprite,GetFirstSprite(),2)

i did this with all 3 spritehit commands that tested a linked list sprite and set the collisionclass of sprite tested for collsion against to 2 , 4 or 8
did my testing again and all seems ok now
as soon as i changed it back to  ThisSprite=SpriteHit(bm.sprite,GetFirstSprite(),1) it bombed out again
so i think it must be this

mick :)

ps  heres the latest code , main game framwork nearly done now , got to get some kind of gun fitted to boat now
Title: Re: Water wescue w.i.p help !!! please
Post by: u9 on June 20, 2009, 07:13:21 AM
Quote from: micky4fun on June 17, 2009, 05:13:46 AM
QuoteI have been quite busy with my new iPhone developer job
well wish you all the best with that  , got an ipod touch at moment , getting phone soon , some good games and apps on this platform and its getting better all the time ..

My opinion... Don't waste your money on an iphone if you have the touch. At least not for gaming. The iPod Touch runs software much faster, i am guessing because the iPhone has to run phone-software in the background. It is also much bigger and bulkier. Of course, they just released the new iphone with much more powerful hardware, so... I believe it is the same hardware that is in the OpenPandora.
Title: Re: Water wescue w.i.p help !!! please
Post by: kevin on June 22, 2009, 10:58:06 AM
 Mick,

    any progress on the site idea ?  as a few of your older games seem to have been deleted from the upload sites.


    I've set upload space for you on the UW server,  Email Me for details.
Title: Re: Water wescue w.i.p help !!! please
Post by: micky4fun on June 24, 2009, 03:40:28 PM
Hi all

well i was hoping to get this game done before i go on holiday , but with me making a few mistakes with my programming it slowed me down ,

so ile leave you with a running demo of game nearly complete , i will return to it when i get back in 2 weeks

lots of fine tuning to be done yet and a decent main player gunship to be found..

thanks
mick ;D
Title: Re: Water wescue w.i.p help !!! please
Post by: kevin on June 25, 2009, 12:20:40 PM

   Looks pretty good, shame we can't play it :).   So is the scene backdrop going to be static in the final ? -  if so, this is the type of scene that would benefit from dirty rectangles  See-> (OPt'ing tutorial (http://www.underwaredesign.com/forums/index.php?topic=2548.0).     

   



Title: Re: Water wescue w.i.p demo !!
Post by: micky4fun on July 09, 2009, 07:02:59 PM
Hi all

Ok just back from hols , done a bit tonight , so heres a playable demo where i am at now , still a quite a bit to do yet .

QuoteSo is the scene backdrop going to be static in the final ? -  if so, this is the type of scene that would benefit from dirty rectangles

well still some more sprites yet to come in sky , but ile have a look at dirty rectangles and see how i get on if needed

press "S" to skip demo to play game
left and right-arrow to move boat , mouse to aim at heli-coptors and boats , leftmouse to fire missiles , rightmouse or down-arrow for depth charges
you gunsight will get smaller the more you get it , after 40 hits on your boat it will go into demomode so press "S" to restart .. thats it
ohh yeh still trying to find a gunboat image so this will change..

Title: Re: Water wescue w.i.p demo !!
Post by: LBFN on July 10, 2009, 08:00:55 AM
Nice game Micky4fun.  I never could see any of the pics you said were there until the post before this one.  Did you make the images yourself?
Title: Re: Water wescue w.i.p demo !!
Post by: BlinkOk on July 10, 2009, 07:00:58 PM
lookin good micky. nice work mate.
Title: Re: Water wescue w.i.p demo !!
Post by: micky4fun on July 11, 2009, 04:55:34 PM
Hi all

QuoteDid you make the images yourself?
no LBFN im not that clever , i slightly altered some of net , with my last 2 games ive been very lucky to have images supplied by BlinkOk , you may notice 1 or 2 images by him here ,

Hi BlinkOK , yep its coming along ok i think ,

i did a little more tonight i think it should be ready in a day or 2 hopefully

heres a latest screenie

mick ;D
Title: Re: Water wescue w.i.p demo !!
Post by: reno on July 11, 2009, 05:00:31 PM
Sprites from METAL SLUG ;)
Title: Re: Water wescue w.i.p demo !!
Post by: micky4fun on July 14, 2009, 04:29:45 PM
Hi all

QuoteSprites from METAL SLUG

yep from metal slug ..

im still a day or 2 away , im adding a couple of extra things to make it play a bit better i hope , then goto to put in sound and level update, so heres another 3 in game screenie's with a couple of extra's on

mick ;D
Title: Re: Water wescue w.i.p demo !!
Post by: micky4fun on July 14, 2009, 06:26:11 PM
Hi all


ok quick demo here , a few levels into game this is what its going to like ,, i think , lol
run project1

mick ;D
Title: Re: Water wescue w.i.p demo !!
Post by: kevin on July 15, 2009, 02:06:05 AM
Mick,

    Pretty good (as expected :) ), reminds me a lot of Sabotage game play actually, expect you can move left/right in this.   I'm not sure if it's intended or not, but It's a bit biased currently.   There's need to be some type of control over how aggressive the game gets over all.   This level can then be used as how frequently objects are spawned/fire etc.   So the game starts out fairly passive and over time gets more aggressive.   

     Random ideas

     * you could have some objects moving in the distance (left/right , right left)  so a heli might move on in the far distance .. move left..  move forward  to the attack plane.   Giving the illusion of perspective.   They only be active when on the foreground plane though.
 
     * how about when the boat is just about stuffed, the player jumps out into a row boat/floaty thing.  If you make it off the screen you restore you're boat,  or perhaps  you set off a flare and can be rescued by air. 

     * it'd be nice to be able to shoot the hover craft bullets,  as if it gets a clear shot, you're sitting duck.  Moveover,  if might be fairer to make the players bullets hit the water also.  So both sides adhere to the same rules.
   
     * The hover craft could also dock on the player,  jump on take control, player loses.   

     * also, you might want to think about moving all the media into a folder.  So  when you load an image/sound etc   prefix it with the local path.    Ie.  If graphics we're stored in GFX,  then loadimage "Picture.bmp",1   becomes LoadIMage "gfx\picture.bmp",1   - Much cleaner for the player.     

     Another graphical thing would be to trim up the media of any redundant pixels and you could prolly combined the backdrop into one picture (sky and rock bottom thing),  and perhaps even use the viewport controls to clip it.   This will help reduce some of drawing overhead.   You might not notice it, but those with old clunkers most certainly will !
Title: Re: Water wescue w.i.p demo !!
Post by: micky4fun on July 15, 2009, 05:13:49 AM
reminds me a lot of Sabotage game play actually, expect you can move left/right in this.
yep quite a bit likt that game , yep use arrow keys left right and down , hit diver for extra energy , paratrouper for extra bombs

i will look at all sujestions and see what i can come up with ,
the timing of enemy at moment is random , but i was going to try a timer or timer and random combined,
i was maybe going to do it so you can shoot hovercraft missiles as well , so ile try that

ok ile be back soon with an update

mick :)
Title: Re: Water wescue w.i.p demo !!
Post by: micky4fun on July 19, 2009, 03:36:14 PM
hi all

well have had to do a lot of covering for people on hols at work , but anyway here's version 1 now just some more sound to add , starts of a lot easier now

as before left and right arrow keys to move , mouse button 1 to fire missiles button 2 or down arrow for bombs , bonus time if you bomb diver , bonus energy if you get parashoot , just stay alive as long as possible

i decided not to let you rescue boat or yourself from boat as this would only pre-long game and its only ment to be a arcade type quick play game
but have done some of the other improvements mensioned , will tidy it up a bit and add other sounds as soon as i find some to finish it of in a day or 2 , so this is not the final release

mick ;D

i have deleted all other files from previous posts

download   [plink]In 2 Deep (http://www.underwaredesign.com/files/Micky4Fun/in2deepv1.2.zip)[/plink]


Final In2Deep V1.02 Video




WIP Video

Watch Water rescue (http://www.youtube.com/playbasic#p/f/11/QHD40Lpy4cE) on youtube




Title: Re: Water wescue version 1 released
Post by: micky4fun on July 23, 2009, 03:48:03 AM
Hi there

Final version now posted in above post above , i will now start tinkering around with PlayBasic with some idea's for a few days and be back soon with something else

mick ;D
Title: Re: Water wescue final released
Post by: kevin on July 23, 2009, 11:49:27 AM

    Looks pretty good.   Now it's nice to see somebody getting some results, but before you run off and start something else.. put up a site..
Title: Re: Water wescue final released
Post by: micky4fun on July 28, 2009, 05:07:19 PM
Hi Kevin

OH-NO  , im to busy having fun , please no , ok ile do a deal with you , when ive done 100 games then ile do site..

ive so many ideas , just getting them into practice , programming skills and images are the let down , but im really trying..

here's my latest venture , not a real step forward from last efforts just something i wanted to do
wonder if you can guess by the screen shoot what its going to be ,, eye's down
its pretty hard at the moment to win as the only number in the drum is 42 , but ile make it easier , lol

mick ;D
Title: Re: Water wescue final released
Post by: BlinkOk on July 28, 2009, 09:04:57 PM
micky. this is a great multi-player idea. maybe you could explore that huh?
Title: Re: Water wescue final released
Post by: kevin on July 29, 2009, 08:45:13 AM
QuoteOH-NO, im to busy having fun , please no , ok ile do a deal with you , when ive done 100 games then ile do site..

   You could probably just use a blog with and customize the theme, hey presto, you've got a home page.  Moreover, people will actually see you're creations..

   Failing that, at least take the time to add your stuff to the updated game gallery..
 
Title: Re: Water wescue final released
Post by: micky4fun on July 31, 2009, 04:35:24 AM
Hi Kevin

QuoteFailing that, at least take the time to add your stuff to the updated game gallery..
yep  i will give this a go later today or tomorrow and see if it comes out how you want itto be done ,
but feel free to include any of my games if there upto scratch

mick :)
Title: Re: Water wescue final released
Post by: monkeybot on August 03, 2009, 07:05:41 AM
Bloody hell another game!!

Do you sleep?
Title: Re: Water wescue final released
Post by: micky4fun on August 03, 2009, 10:49:18 AM
Hi monkeybot

lol , yep sometimes , well its hard to put this program down , i have to when i get a clip around the ear from the other half..

mick :)
Title: Re: Water wescue final released
Post by: LemonWizard on August 17, 2009, 04:54:49 PM
that's great haha.

I think the longest I've stayed awake programming in pb was 17 hours. I literally woke up, started my map editor project, drank tea all day, ate dinner, and went to bed.