Coder Social home page Coder Social logo

a few suggestions about petaxian HOT 4 CLOSED

cyborgar avatar cyborgar commented on August 16, 2024
a few suggestions

from petaxian.

Comments (4)

cyborgar avatar cyborgar commented on August 16, 2024 1

Thanks for taking the time to give me feedback. I've already done some of the quick ones

  • Use EXTCOL (I actually still remember the hardware address for screen and border color so I didn't even look in the lib files)
  • Using repeat instead of while 1
  • Removed () for while (and most if's). I'm just so used to C style syntax these get added automatically :-)
  • I now use txt.clear_screen() so I don't have to implement my own
  • And I switched to using sys.wait() instead of my own (not so great) wait function

I've only recently taken closer look at the lib files and will make sure I use function from there when appropriate. I didn't really do that initially.

I'm probably not going to use any 65c02 assembly as long as I aim for C64 support. I did scan through the new commands for this processor and there are a few nice improvements.

As you suggest I will sooner or later have a look at custom function instead of setcc. Though at the moment this is fast enough for CX16 and it's only on C64 I have a bit of lag.

I will take a closer look at the joystick stuff. That is a slightly annoying issue.

from petaxian.

cyborgar avatar cyborgar commented on August 16, 2024

I've added my own workaround now (just checking if "all keys are active" and skipping "retrieving" this value) and uploaded a new "working" version of the game.

I have not checked out the other bug you mentioned yet but will take a closer look later.

I may also want to take a look at the waitvsync as well later, but currently the setcc speed is likely the main limiting factor (as long as I want this to run on C64).

from petaxian.

irmen avatar irmen commented on August 16, 2024

feel free to close this issue if you think you worked through the suggestions enough 👍

from petaxian.

cyborgar avatar cyborgar commented on August 16, 2024

Yes, I think I can remember the main remaining suggestions anyway (optimization suggestions). I'm mostly testing with the X16 emulator and there is no slowdowns there. And it's basically a lot easier to work with Prog8 code than assembly anyway.

from petaxian.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.