Search found 22 matches

by dr.geek
Thu Jan 10, 2019 1:48 am
Forum: Programming
Topic: The IF statement....
Replies: 35
Views: 18958

Re: The IF statement....

those benchmarking tests counting jiffies are interesting They prove you *false*, to be exact. When your game main loops became faster, this was likely because of general optimisations like using less program lines overall, eliminating superfluous instructions, storing often used constants in 'earl...
by dr.geek
Wed Jan 09, 2019 8:49 pm
Forum: Programming
Topic: Super Mario Bros for VIC-20
Replies: 96
Views: 85969

Re: Super Mario Bros for VIC-20

by dr.geek
Wed Jan 09, 2019 7:32 pm
Forum: Programming
Topic: The IF statement....
Replies: 35
Views: 18958

Re: The IF statement....

Mike wrote:No worries! :)

At least CBM BASIC is still good for some surprises, isn't it? :mrgreen:
wonderful that our beloved vic still generates discussion after all these years
by dr.geek
Wed Jan 09, 2019 7:21 pm
Forum: Programming
Topic: The IF statement....
Replies: 35
Views: 18958

Re: The IF statement....

Great Analysis Kweepa....seems like its look-up tables for the win...no (or minimal) calculations to be performed...would integer variables add any extra saving?
by dr.geek
Wed Jan 09, 2019 2:37 am
Forum: Programming
Topic: The IF statement....
Replies: 35
Views: 18958

Re: The IF statement....

those benchmarking tests counting jiffies are interesting They prove you *false*, to be exact. When your game main loops became faster, this was likely because of general optimisations like using less program lines overall, eliminating superfluous instructions, storing often used constants in 'earl...
by dr.geek
Wed Jan 09, 2019 1:05 am
Forum: Programming
Topic: The IF statement....
Replies: 35
Views: 18958

Re: The IF statement....

no urban myth to me...just 36 years experience in BASIC programming....first noticed it when i used the technique to improves a Breakout game from a book listing in about 1985....those benchmarking tests counting jiffies are interesting, but the real evidence is in a practical application.. eg, a ga...
by dr.geek
Tue Jan 08, 2019 9:08 pm
Forum: Programming
Topic: The IF statement....
Replies: 35
Views: 18958

Re: The IF statement....

with a bit of planning, almost all IF statements can be replaced with (multiple) boolean statements.

eg.
if x = 1 then p=p+1
if x = 2 then p=p-1

can be achieved with

p=p+(x=2)-(x=1)

much faster....
by dr.geek
Tue Jan 08, 2019 8:57 pm
Forum: Programming
Topic: How do I stop print scrolling?
Replies: 5
Views: 6620

Re: How do I stop print scrolling?

Yes, you must make sure not to print the last character of the last line to avoid the scroll. There is some nifty PRINT-technique where you use cursor-left and insert in quote mode to push the final character to the last position, but it may be easier to just POKE to that screen destination. or jus...
by dr.geek
Tue Jan 08, 2019 8:55 pm
Forum: Programming
Topic: How do I stop print scrolling?
Replies: 5
Views: 6620

Re: How do I stop print scrolling?

print a "home" character at the end of the line???
by dr.geek
Tue Jan 08, 2019 8:00 pm
Forum: Programming
Topic: Super Mario Bros for VIC-20
Replies: 96
Views: 85969

Re: Super Mario Bros for VIC-20

have you considered multicolor or petscii on an expanded screen ... here is a great example on the commodore pet https://www.mobygames.com/game/pet/rush ... Id,256166/
by dr.geek
Mon Nov 19, 2018 7:56 pm
Forum: Programming
Topic: EightBall - New Programming Language
Replies: 6
Views: 11019

Re: EightBall - New Programming Language

Looks very interesting - i have been looking at the quetzalcoatl compiler which can produce prg's for an actual VIC. Do you see Eightball getting to this point?
by dr.geek
Sat Oct 06, 2018 3:26 pm
Forum: Games
Topic: Meteor Storm (New Game)
Replies: 4
Views: 5625

Re: Meteor Storm (New Game)

Is the runtime monolithic, or can you avoid certain library functions to keep it small? Monolithic i think - as it's only a beta when development ceased - there is a smaller, earlier runtime included in the download package - I will do some tests to see if there are any differences in final binary ...
by dr.geek
Fri Oct 05, 2018 6:24 pm
Forum: Games
Topic: Meteor Storm (New Game)
Replies: 4
Views: 5625

Re: Meteor Storm (New Game)

For Sure - will be interesting as the runtime module is 1.5kb, levaing only 2kb for the actual game code - Meteor Storm is 529 bytes, so things will be a squash in the Unexpanded VIC - but that will just add to the challenge - the next phase will be to work out arrays for multi-object action.
by dr.geek
Wed Oct 03, 2018 11:15 pm
Forum: Games
Topic: Meteor Storm (New Game)
Replies: 4
Views: 5625

Meteor Storm (New Game)

Here is a little game I made (originally for the PET 3032) with the Quetzalcoatl C Compiler for the Unexpanded VIC 20 - Gameplay is simple, but It was just to see if I could get a functional game made with the compiler. Meteor Storm - Avoid the meteors with the A and D Keys https://drgeek.neocities....
by dr.geek
Sat Sep 08, 2018 1:18 am
Forum: Games
Topic: Original Realms of Quest I plus some of my other games
Replies: 26
Views: 18040

Re: Original Realms of Quest I plus some of my other games

I love the Petscii graphics in Dunjon I - are the levels procedurally generated, or just random???