CPCWiki forum

General Category => Programming => Topic started by: EgoTrip on 14:06, 17 November 11

Title: Need help with a BASIC program
Post by: EgoTrip on 14:06, 17 November 11
I am working on a BASIC game, and have got stuck. If anyone is good with BASIC, and importantly has the time to work on this with me, then can you drop me a PM please. Thanks.
Title: Re: Need help with a BASIC program
Post by: SuTeKH/Epyteor on 14:22, 17 November 11
What's the problem you got? It might end up being an easy fix.
If you don't want to divulge the contents just yet, then outline what you want to the program to do and we'll see if we can help.
 
Title: Re: Need help with a BASIC program
Post by: EgoTrip on 14:46, 17 November 11
Nah not an easy fix, I need help with caculating formulas and stuff. Maths was never my strong point, and to be honest the way this project is going its looking like i'll need more than just a little help but someone to collaborate with.


I dont want to give away what the game is going to be just yet, its definitely something that does not exist in the form I am making as the CPC was around before it got popular, but its a strategy/luck based game played against the CPU, the AI I have in mind is not overly complex though.
Title: Re: Need help with a BASIC program
Post by: Morn on 16:28, 17 November 11
Sure, we'll try to help you. The thing is, TastefulMrShip and me are discussing doing a strategy game too, that's why we are interested in getting a broad idea about your concept. Although our game would probably not have AI, just human players. So far it certainly looks different enough, but a few more tidbits about your basic idea would be useful. If it turns out to be too close to what we intended, we can still change our concept.
Title: Re: Need help with a BASIC program
Post by: EgoTrip on 16:35, 17 November 11
Im pretty sure the game I have in mind is completely different to yours - its impossible to play more than 1 players on the CPC due to certain assets not being visible to the opponent. So any help would be gratefully received, although I'd rather do it in private as I want the game to be a surprise.
Title: Re: Need help with a BASIC program
Post by: Morn on 17:39, 17 November 11
Im pretty sure the game I have in mind is completely different to yours - its impossible to play more than 1 players on the CPC due to certain assets not being visible to the opponent.

It's not Battleship, is it?  :P

But yes, if this is always one human player vs computer, I think that sounds different enough for me.

So what are those fancy algorithms you are having trouble with?
Title: Re: Need help with a BASIC program
Post by: EgoTrip on 18:31, 17 November 11
I will pm you the notes, its way beyond my ability.
Title: Re: Need help with a BASIC program
Post by: steve on 18:42, 17 November 11
If it is something we could all learn from, then perhaps once the game is released you might consider doing a wiki page on the difficult bits?
Title: Re: Need help with a BASIC program
Post by: SuTeKH/Epyteor on 18:46, 17 November 11
It's not Battleship, is it?  :P
Damn you, internet! Why isn't there a video of Jasper saying "You sunk my Battleship!" on MyTubeFaceSpaceYou.com?
Without it, this post looks pathetic and uninteresting. (Not unlike the 330 other posts I've written!)
Title: Re: Need help with a BASIC program
Post by: EgoTrip on 18:51, 17 November 11
If it is something we could all learn from, then perhaps once the game is released you might consider doing a wiki page on the difficult bits?


Sure, it'll be a BASIC game so the source will be viewable, and memory permitting, should be commented with REM statements. The entire thing is difficult for me, so once its released I will share what I have learned.
Title: Re: Need help with a BASIC program
Post by: remax on 20:06, 17 November 11
Damn you, internet! Why isn't there a video of Jasper saying "You sunk my Battleship!" on MyTubeFaceSpaceYou.com?
Without it, this post looks pathetic and uninteresting. (Not unlike the 330 other posts I've written!)

Not quite the same but...

http://www.dailymotion.com/video/x8yji3_pub-jeux-mb-touche-coule_creation (http://www.dailymotion.com/video/x8yji3_pub-jeux-mb-touche-coule_creation)

 ;D
Title: Re: Need help with a BASIC program
Post by: Morn on 20:19, 17 November 11
Not quite the same but...

http://www.dailymotion.com/video/x8yji3_pub-jeux-mb-touche-coule_creation (http://www.dailymotion.com/video/x8yji3_pub-jeux-mb-touche-coule_creation)

 ;D

Is that spelled Touché-Coulé or Touche mon Cul?  :P Aaand now we're back in TastefulMrShip's territory.

Title: Re: Need help with a BASIC program
Post by: SuTeKH/Epyteor on 20:39, 17 November 11
Is that spelled Touché-Coulé or Touche mon Cul?  :P Aaand now we're back in TastefulMrShip's territory.
Hey, you can't prove that! It was a crowded room and I was just in the WRONG place at the WRONG time!
Title: Re: Need help with a BASIC program
Post by: Morn on 20:56, 17 November 11
Hey, you can't prove that! It was a crowded room and I was just in the WRONG place at the WRONG time!

I could distinctly feel that the object that touched me, um, down there was very brick-like. And I think I also noticed an overpowering smell of Craggy Island Mountain brandy at the time.
Title: Re: Need help with a BASIC program
Post by: Bryce on 23:56, 17 November 11
If Father Jack touched you, you'd know about it, because he'd have probably "touched" you with a brick!  :D

Battleship sounds like a great idea for two CPCs :) If someone writes it, I'll develop a cheap cable for the comms :)

Bryce.
Title: Re: Need help with a BASIC program
Post by: AMSDOS on 10:41, 18 November 11
If it's Battleships then there's an excellent Battleships game which was in AA70 Type-ins.  ;)  Not sure it had any AI, probably just a Random generator as to where all the ships were placed!  :)  Though it's been Ages since I've played with it.  :o
Title: Re: Need help with a BASIC program
Post by: Morn on 14:17, 18 November 11
If it's Battleships then there's an excellent Battleships game which was in AA70 Type-ins.  ;)

No, it's not Battleships. As EgoTrip hinted it's a game that does not appear to have an implementation on the CPC yet—or at least not this particular variant of the game.
Title: Re: Need help with a BASIC program
Post by: AMSDOS on 23:01, 18 November 11
No, it's not Battleships. As EgoTrip hinted it's a game that does not appear to have an implementation on the CPC yet—or at least not this particular variant of the game.


Ok, I only mentioned it cause a lot of people may not be familiar with it & that's the only Battleships game I know of, though there could be some other PD or commercial releases of the game (which I'm unfamiliar with).  ;D


Can EgoTrip be more specific as to what the problem is without giving the game away?
For example I've written a small BASIC program with a graphical character (using TAG/TAGOFF) at a set position on screen and am trying to use Arrays to store and recall objects as they move behind my character and reveal themselves when my character has passed them. Most BASIC programs I know of that do this seem to be using Text based co-ordinates, though in my case it's a graphical character which is 8 pixels across. Sort of had this idea earlier of having a fixed character at y-position on the screen and if they move forward the screen scrolls instead of them moving forward!  :D
Title: Re: Need help with a BASIC program
Post by: Gryzor on 12:49, 27 November 11
Actually there was a commercial Battleships title on the CPC (HitPak?), and a pretty good one at it!
Title: Re: Need help with a BASIC program
Post by: EgoTrip on 13:19, 27 November 11

Can EgoTrip be more specific as to what the problem is without giving the game away?


Unfortunately not. Ive been trying to figure it out but not really making much progress on it.
Title: Re: Need help with a BASIC program
Post by: SuTeKH/Epyteor on 13:33, 27 November 11
Unfortunately not. Ive been trying to figure it out but not really making much progress on it.
(I'll sign an NDA!) If you want, email me what you're having probems with and I'll have a look at it. My coding projects are annoying me at the moment and I would welcome a distraction... and helping people is always nice! ^_^
(Morn won't mind. I think he's beginning to see the gulf between my grievance and my powers... no, wait! That's War Of The Worlds... scrub that!)
Title: Re: Need help with a BASIC program
Post by: TFM on 00:52, 28 November 11
The VN96 is perfect for Battleships, and there are actually a bunch of such games for that multi-CPC network.
 
I remember the Klassentreffen 2001 meeting: Seven networked CPCs and seven guys playing TRON. Amazing!