1k hires idea, adaptation of Grandpr1x

General games-related topics
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1k hires idea, adaptation of Grandpr1x

Post by dr beep »

The drawing routine now is drawing each next turn as if you are already standing on that point.
However when the road is turning you need to draw fromthe point you will reach after the turn.
In fact you need to keep the vector from previous turns in mind to draw the next turn.

So after a left turn a straight road must be drawn straight, but in a left movement.
This means calculating a vector on each step and draw the road according to that vector.
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1k hires idea, adaptation of Grandpr1x

Post by dr beep »

A picture to show what I mean
Dots show position after 1 track, then rest of road is shown.
image.jpeg
(1.07 MiB) Downloaded 413 times
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1k hires idea, adaptation of Grandpr1x

Post by dr beep »

Still working on the correct draw of the track.
Routine doesn't crash, but isn't working either.

Quick thought about the screen.
When I invert the road I create a horizon without the costs of any memory
Screen.png
Screen.png (22.5 KiB) Viewed 3246 times
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1k hires idea, adaptation of Grandpr1x

Post by dr beep »

Single trackdrawing looks promissing. I need to add the doubletrack.
Some plotpositions are skipped over. Not much of a problem, but it would be better if all were filled.
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1k hires idea, adaptation of Grandpr1x

Post by dr beep »

Screendisplay is working, now I need to find the perfect width/depth mode in the display, but that is just a small formula.
road.png
road.png (8.92 KiB) Viewed 3211 times
nollkolltroll
Posts: 325
Joined: Sat Sep 27, 2014 8:02 pm
Location: Stockholm, Sweden

Re: 1k hires idea, adaptation of Grandpr1x

Post by nollkolltroll »

Looking very good! Nice to get it to fit in 1k :D
/Adam
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1k hires idea, adaptation of Grandpr1x

Post by dr beep »

At the cost of 70 bytes data I think I can add the racecar. This looks much better than just the road.
I will keep this in mind...
User avatar
1024MAK
Posts: 5102
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: 1k hires idea, adaptation of Grandpr1x

Post by 1024MAK »

It's always fascinating watching the development as it progresses :mrgreen:

Mark
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp

:!: Standby alert :!:
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :!:
Looking forward to summer later in the year.
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1k hires idea, adaptation of Grandpr1x

Post by dr beep »

Small video of work in progress. Tracktravelling...
http://www.youtube.com/watch?v=gq5YNpKqCuA
User avatar
Paul
Posts: 1511
Joined: Thu May 27, 2010 8:15 am
Location: Germanys west end

Re: 1k hires idea, adaptation of Grandpr1x

Post by Paul »

Wow! Brillant! :ugeek:
In theory, there is no difference between theory and practice. But, in practice, there is.
Post Reply