Click

Propose new game/software design concepts or new game/software ideas. They can be as whimsical as you like, just be careful you don't ask someone to make it for you...
Post Reply
User avatar
Jbizzel
Dynamite Dan
Posts: 1537
Joined: Mon May 04, 2020 4:34 pm
Location: Hull
Contact:

Click

Post by Jbizzel »

At the other end of the spectrum to Mario kart development,

Here I am making a dice game from 1965.

Called click!


Image
User avatar
Jbizzel
Dynamite Dan
Posts: 1537
Joined: Mon May 04, 2020 4:34 pm
Location: Hull
Contact:

Re: Click

Post by Jbizzel »

Here is some ZX basic code that draws a box using graphic mode.

This example would draw a rectangle:

Code: Select all

box(5,5,10,20)
so this is box(x1,y1,x2,y2) specifying the top left and bottom right coroner of you box.

Code: Select all

sub box(x1 as ubyte, y1 as ubyte,x2 as ubyte, y2 as ubyte)

for z = 1 to x2-x1
print at x1+z,y1 ;"\: "
next
for z = 1 to x2-x1
print at x1+z,y2 ;"\ :"
next
for z = 1 to y2-y1
print at x1,y1+z ;"\''"
next
for z = 1 to y2-y1
print at x2,y1+z ;"\.."
next
print at x1,y1;"\:'"
print at x1,y2;"\':"
print at x2,y1;"\:."
print at x2,y2;"\.:"

end sub

Image
User avatar
Jbizzel
Dynamite Dan
Posts: 1537
Joined: Mon May 04, 2020 4:34 pm
Location: Hull
Contact:

Re: Click

Post by Jbizzel »

Progress - now playable in 4 player human mode (but manual scoring)

Image
User avatar
Jbizzel
Dynamite Dan
Posts: 1537
Joined: Mon May 04, 2020 4:34 pm
Location: Hull
Contact:

Re: Click

Post by Jbizzel »

Another little zx basic snippet.

This uses plot and line to draw a square. You provide the x and y of the squares corner, and the side length in pixels.

The thing that caught me out was that in zx basic plot x= 0 is the bottom left of the screen.

Code: Select all


sub square (x1 as ubyte, y1 as ubyte, s as ubyte)

plot y1,x1
draw 0,s
draw s,0
draw 0,-s
draw -s,0


end sub
User avatar
Jbizzel
Dynamite Dan
Posts: 1537
Joined: Mon May 04, 2020 4:34 pm
Location: Hull
Contact:

Re: Click

Post by Jbizzel »

Image
Post Reply