Speed issue's with POINT (x,y)
Subject: Speed issue's with POINT (x,y)
Newsgroups: gmane.comp.systems.sam-coupe
Date: 2008-09-18 10:35:30 GMT
Hey there, been a while... hope everybody's doing good :)
Some of you may remember me starting work on a new game engine last year, "Slip 'n Slide", well it only got to the stage of a couple of weeks work, but picked it up again 3 months ago and have been working on it daily since then.
It's progressed a lot, with relation to how 'nice' the engine is, and I'm rather pleased with it so far, however since the levels are drawn and there is no map data everything is done using the POINT command (collisions with scenery, enemies and power pills(well there's an array for pills, but fiding them is handled with point initially)), and whilst this allows for rather sweet level designs and movement (You can get squashed vertically or horizontally now :) ) the engine has slowed about 50 % even in the last 4 weeks :(
Is there nothing to be done, is the Point command as fast as it could be or is
there another way forward? I'm always shy/awkward over asking for
help, but could anybody see themselves helping with a little machine code prog that would do the following:-
take the x and y values from the Basic variable list, check about 9 pixel colour values around it the main 9*9 sprite (L,R,B,B2,B3,T,C,BR,B0) and put the values into those variables, could this in theory be done easily, or would there be no speed benefit... POINT does seem to be really slow, it's the complexity of the game engine too slowing it down (a lot of code for uncompiled 8 bit basic at least, every iteration) and I've used every trick I learned from Tomato Antics, so no more I can do :(
I'm really sad over this, this is for the 20 Mhz SAM and I know I should
be using MC but I just haven't got the head for learning it at the moment still, and
honestly don't think I would enjoy programming in anything else than Basic... I
really like this engine too, but have took the enemies out, so I'm only drawing 1 (yes ONE) masked sprite... I'm
stupid for attempting this in Basic, but it would just be another flat level mapped platformer without the POINT command...
anyways, I've had my moan ;)
Hope all your own projects are coming along, and I'm not really expecting anyone to be able to find the time, but I'd be a fool not to mention it :)
Cal...
RSS Feed