Looks great
BASIC 10 Liner Competition - Oric Entry
- ibisum
- Wing Commander
- Posts: 1655
- Joined: Fri Apr 03, 2009 8:56 am
- Location: Vienna, Austria
- Contact:
Re: BASIC 10 Liner Competition - Oric Entry
That doesn't look like BASIC speeds to me!
- 6502Nerd
- Pilot Officer
- Posts: 111
- Joined: Thu Oct 08, 2020 9:48 pm
- Location: Leicestershire, UK
- Contact:
Re: BASIC 10 Liner Competition - Oric Entry
Nice speed - if in BASIC this must be plotting strings and likely using LEFT$, RIGHT$ or MID$ to show the right part! I might try something with this technique (if that's what is being used here). But one thing I found took code space is the initialisation of the strings.. anyway this looks great and has got me thinking!
- 6502Nerd
- Pilot Officer
- Posts: 111
- Joined: Thu Oct 08, 2020 9:48 pm
- Location: Leicestershire, UK
- Contact:
Re: BASIC 10 Liner Competition - Oric Entry
Even if not in 10 lines - this would be seriously impressive speed in BASIC and a good game too!
Re: BASIC 10 Liner Competition - Oric Entry
I do generate some strings on startup, with the letters as aliens, and then just a simple PLOT at the right position to display the string, and there are additional spaces on the left and right to erase the previous position.
Nothing crazy complicated
Nothing crazy complicated
Re: BASIC 10 Liner Competition - Oric Entry
I added colors, sound (well, it's a gif) when the invaders move, the game over/restart sequence, and they move down while speeding.
- 6502Nerd
- Pilot Officer
- Posts: 111
- Joined: Thu Oct 08, 2020 9:48 pm
- Location: Leicestershire, UK
- Contact:
Re: BASIC 10 Liner Competition - Oric Entry
Oh very nice - I am already trying something similar but will have to be less complex I think to fit in 10 lines? Although maybe you can do something properly even if more than 10 lines, it looks excellent.
Slightly off-topic of 10 line BASIC games - It reminds me of a Happy New Year program I made for start of 2020 before I joined this wonderful forum. This program also uses long strings to update the central scrolling banner - many people who saw it were surprised it was BASIC, but it's down to using the string technique as you have found.
Re: BASIC 10 Liner Competition - Oric Entry
Nice one
Well, if you think about it, the string technique is a bit like having access to a primitive form of "memcpy" and "batching".
Instead of thinking in terms of "single entities" you can draw them all one go, at least up to a point, and that may only work for some types of games, obviously
Well, if you think about it, the string technique is a bit like having access to a primitive form of "memcpy" and "batching".
Instead of thinking in terms of "single entities" you can draw them all one go, at least up to a point, and that may only work for some types of games, obviously
Re: BASIC 10 Liner Competition - Oric Entry
+1 from me!
And thinking further about the strings - would it be possible to hack somehow the HIMEM and/or BASIC data area pointers so that the value of a string "maps" at screen memory - something like direct 'sprintf' to video memory? Of course there will be more problems to resolve i.e. protecting char definitions from being overwritten by other variables etc...
- ibisum
- Wing Commander
- Posts: 1655
- Joined: Fri Apr 03, 2009 8:56 am
- Location: Vienna, Austria
- Contact:
Re: BASIC 10 Liner Competition - Oric Entry
Clever use of attribute planning to make a marquee, I admit that it now seems obvious this can be done in BASIC, you just have to prepare the field... of course you could do the same thing in HIRES with a lot of DOKE'ing too, or is that not allowed in the competition?
Re: BASIC 10 Liner Competition - Oric Entry
POKE DOKE and HIRES are all allowed, but it's hard to move a lot of things in HIRES in BASIC at a decent speed.
I also asked for precisions regarding control codes: We don't have to CHR$(27)+"X" everywhere, we can directly embed attributes and control codes in the BASIC strings, which is a real space saver
I also asked for precisions regarding control codes: We don't have to CHR$(27)+"X" everywhere, we can directly embed attributes and control codes in the BASIC strings, which is a real space saver
- 6502Nerd
- Pilot Officer
- Posts: 111
- Joined: Thu Oct 08, 2020 9:48 pm
- Location: Leicestershire, UK
- Contact:
Re: BASIC 10 Liner Competition - Oric Entry
I think a simple single line of invaders going across and down the screen might be possible in LORES...HIRES is too much for BASIC..
- ibisum
- Wing Commander
- Posts: 1655
- Joined: Fri Apr 03, 2009 8:56 am
- Location: Vienna, Austria
- Contact:
Re: BASIC 10 Liner Competition - Oric Entry
Oh totally, just dreaming along .. I mean, the lores char aesthetic is really a ripe playground ..