Search found 179 matches

by Shaun_B
Tue Aug 05, 2014 7:46 pm
Forum: BASIC
Topic: beginners text adventure problem
Replies: 20
Views: 21618

Re: beginners text adventure problem

Hi, If you're going to store the information for each location in a variable, you may run out of space in a single variable as each string will only accept a maximum of 255 characters. I put a quick example of how to negate this problem here: http://www.melon64.com/forum/viewtopic.php?f=24&t=181...
by Shaun_B
Wed Jul 16, 2014 2:59 pm
Forum: BASIC
Topic: Joystick port II with sprites demo.
Replies: 15
Views: 17038

Re: Joystick port II with sprites demo.

You typically don't require keyboard interactions whilst doing your initialisation stuff, so you may also switch off interrupts as I've already said somewhere in this thread (this should quicken things up a little more I think - can anyone confirm this?) Yep! Now your code is running with no interr...
by Shaun_B
Wed Jul 09, 2014 1:38 pm
Forum: Off Topic
Topic: New job!
Replies: 2
Views: 3614

New job!

Well, it's been a couple of months but I've had a job offer that I've accepted, working in the Midlands (UK) as a developer :-) Happy days.

Regards,

Shaun.
by Shaun_B
Tue Jul 08, 2014 10:05 pm
Forum: BASIC
Topic: Joystick port II with sprites demo.
Replies: 15
Views: 17038

Re: Joystick port II with sprites demo.

Thanks buzbard for the counting with toes tips. I never thought of that as I struggle when I get to 10. For those interested, the following listing demonstrates switching off and on the screen: 10 poke 53265, peek(53265) and 239 20 poke 198,0: wait 198,1 30 poke 53265, peek(53265) or 16 Line 10 swit...
by Shaun_B
Tue Jul 08, 2014 4:42 pm
Forum: BASIC
Topic: Joystick port II with sprites demo.
Replies: 15
Views: 17038

Re: Joystick port II with sprites demo.

Hi Buzbard, How the heck did you type in line 63999? I thought I did say that I was using CBM Prg Studio but I must have been thinking about a different thread. Anyway, I always use CBM Prg Studio for BASIC programming as it just makes the process more efficient. For the msb logic you could use: msb...
by Shaun_B
Tue Jul 08, 2014 12:22 pm
Forum: Game Coding
Topic: Taipan with graphics.
Replies: 19
Views: 16434

Re: Taipan with graphics.

Good work satpro, I'll have to give it a go later (as I've not been sleeping well).

Regards,

Shaun.
by Shaun_B
Tue Jul 08, 2014 9:10 am
Forum: BASIC
Topic: Joystick port II with sprites demo.
Replies: 15
Views: 17038

Re: Joystick port II with sprites demo.

I've just realised that line 120 may be changed to: 120 joy = peek(po) That's untested so I'm not 100% sure of the results, but as the logic is using 'and', taking off the value in bit may no longer be required. If this is right, the bit constant may be removed altogether (I don't think it's used an...
by Shaun_B
Tue Jul 08, 2014 12:59 am
Forum: BASIC
Topic: Joystick port II with sprites demo.
Replies: 15
Views: 17038

Re: Joystick port II with sprites demo.

Sure no worries :-)

Actually, I can't seem to attach files, so here's a link to the prg:

https://dl.dropboxusercontent.com/u/795 ... s/main.prg

Regards,

Shaun.
by Shaun_B
Tue Jul 08, 2014 12:33 am
Forum: BASIC
Topic: Joystick port II with sprites demo.
Replies: 15
Views: 17038

Re: Joystick port II with sprites demo.

Here is a newer (hopefully cleaner?) version which now handles diagonal movements. It's also been refactored somewhat. 0 dim xaxis, yaxis, atemp, spr, smem, index, jtemp, up, down, left, right, fire, vic, joy, po, bit, msb, cmsb, zero, ff, sd 10 poke 53280,0:poke 53281,0 20 gosub 63990 30 print &quo...
by Shaun_B
Mon Jul 07, 2014 7:37 pm
Forum: BASIC
Topic: Joystick port II with sprites demo.
Replies: 15
Views: 17038

Re: Joystick port II with sprites demo.

Thanks for that Marc. I have to say things are a little clearer now I've slept. I don't recall the time but I didn't get to sleep until around 3am and I was up at 6am - must unplug. So with a clearer head, I'll give your method a go.

Regards,

Shaun.