Comments (4)
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.
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.
feel free to close this issue if you think you worked through the suggestions enough 👍
from petaxian.
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)
- a few observations HOT 2
- fixes for official r39 HOT 7
- sound could perhaps use new psg module? HOT 3
- compiler errors due to upcoming prog8 bool type HOT 5
- reads wrong joystick HOT 1
- psg volume too large HOT 4
- three letter symbols behavior in assembly in next prog8 version HOT 1
- re upload on X16 forum to make it visible again? HOT 1
- upcoming prog8 version 9 has a few breaking changes HOT 4
- freezes on title screen in box16 emulator HOT 1
- suggestion: add screenshot(s) to readme.md HOT 2
- need to mark a few variables as @shared HOT 1
- possible optimizations HOT 11
- enemyRef should be forced into Zeropage HOT 1
- control issue on c64 HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from petaxian.