How to create and draw graphics - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Help & Support (https://www.boriel.com/forum/forumdisplay.php?fid=16) +---- Thread: How to create and draw graphics (/showthread.php?tid=297) Pages:
1
2
|
Re: How to create and draw graphics - slenkar - 02-16-2011 which sprite editor should I use? Re: How to create and draw graphics - slenkar - 02-16-2011 I tried to put the bin import code into a program but it produces errors: Code: POKE Uinteger 23675, @MyUdgBlock Line 44 just says ASM and nothing else the error is Quote:snake.bas:44: Error: Syntax error. Unexpected end of line [NEWLINE] Re: How to create and draw graphics - boriel - 02-16-2011 slenkar Wrote:I tried to put the bin import code into a program but it produces errors:Aggh! :x It's *another bug* related to the heavy changes I've introduced in version 1.2.7 (beta). I'm still fixing up your previous bug (you've discovered twice un a week, congratulations!). I go somewhat slow fixing them 'cause my home computer is OS is partially broken (the Subversion is not working; I hope to fix it up today). If you are very impatient, you can download and install 1.2.6 (Stable) and remove this one, but I beg you not to do so and wait. Discovering bugs (as you and others have done) is very important for the compiler stability. Re: How to create and draw graphics - slenkar - 02-16-2011 ok I can wait Its pretty fun coding for spectrum, the fact that it runs on almost any platform is good too, desktop,cell phone,Nintendo DS,webpage, Re: How to create and draw graphics - boriel - 02-16-2011 slenkar Wrote:ok I can waitThe compiler is aimed to be multiplatform. I'm desinging a version to compile into Javscript (Canvas HTML5), so ZX Basic programs could be used to run "on the web". But first thing first: Let's fix this. Re: How to create and draw graphics - slenkar - 02-16-2011 thats good news But, I mean there is a spectrum emulator for all those platforms I mentioned... example: http://jsspeccy.zxdemo.org/ http://www.zophar.net/consoles/nds/sinclair.html Re: How to create and draw graphics - boriel - 02-16-2011 Aggh, after struggling for hour it turned out the compiler was ok. The INCBIN is an assembler macro command, so it's NOT a preprocessor directive, and must not be preceded by # (sharp). The right syntax is: Code: ... Try the above and see if it works, please. On the other hand, I think it would be more coherent to use #incbin "file" instead?? What do you think? Update: Now the compiler will report "Invalid preprocessor directive" if you use an unknown #directive |