Re: A86: HI.


[Prev][Next][Index][Thread]

Re: A86: HI.




> First, how do you compile a basic prog to asm?  I've tried it, and I keep
> getting syntax 07 errors.

You can't.

> Second, what's an easy (or any) way to save games without storing to
> variables that can be used for something else, or modified (what's a little
> cheating going to hurt;))?

Save it in your program and write it back when you quit.  You store
values at .db locations. EX:

high_score:
	.db 100

Then you use a writeback routine, which I'm not going to post but you
can find them at 86central, to write it to the program so it is
permanent (doesn't disappear when program exits).

> And finally, how do I make a sprite?  I've thought it through, and I can't
> see a way, but I'm sure there is.  Though, I've made one with little text
> symbols, I can't figure out how to make one with pictures.

Store a simple 8x8 sprite using .db's:

sprite:
	.db %10000001
	.db %10000001
	.db %01000010
	.db %00111100
	.db %01000010
	.db %10000001
	.db %10000001

Then use a sprite display routine, like PutSrite (there are many) to
display it.  You simply tell it where the sprite data is and give it the
coordinates.

Hope that helps a little...

Cassady Roop


References: