The canvas has a method, centerOn. It takes care of the current window size and set the scrollbars to the proper coordinates and size. Also we can scroll the canvas view to any grid, if we traslate the dungeon coordinates to canvas coordinates (it depends on the current tile size). How Qt optimizes that, I don't know. Perhaps it uses a big offscreen pixmap and redraws only the edges like you said. A change in the window size is also handled by Qt without our intervention. Once you get used to the idea that the dungeon as a whole doesn't exists anymore and all we have is a bunch of grids that are separately redrawn at any time, some parts of the code get easier to write. Full redraws are rare. If we write a good draw method for one grid everything flows. Well, mostly, because I remember some strange flickering situation that I had to solve with a full screen redraw (that Qt surely limits to the items that are currently visible).
NPPAngband/NPPMoria QT port
Collapse
X
-
-
We are done coding the beta version, and it is just being de-bugged now. I am down to finding a bug maybe once every 15 minutes of play. When it can be played for an hour without any bugs the beta of the QT port will be released.NPPAngband current home page: http://nppangband.bitshepherd.net/
Source code repository:
https://github.com/nppangband/NPPAngband_QT
Downloads:
https://app.box.com/s/1x7k65ghsmc31usmj329pb8415n1ux57Comment
-
Comment
-
All set to release. Unfortunately the simple days of zipping up the files and uploading them are over. Qt binaries require a release package with all the DLLs.
Step 1) learn how to do a release package.
Is anyone experienced with this process? Thanks to anyone who can offer some help or advice. I am trying to read up on it but I haven't quite gotten my head around it yet.NPPAngband current home page: http://nppangband.bitshepherd.net/
Source code repository:
https://github.com/nppangband/NPPAngband_QT
Downloads:
https://app.box.com/s/1x7k65ghsmc31usmj329pb8415n1ux57Comment
-
Update: The development phase for a fully functional NPPQT windows port is finished!
There is some de-bugging to do but a final beta will be out soon.
Ports for Linux and the MAC will follow shortly after that.NPPAngband current home page: http://nppangband.bitshepherd.net/
Source code repository:
https://github.com/nppangband/NPPAngband_QT
Downloads:
https://app.box.com/s/1x7k65ghsmc31usmj329pb8415n1ux57Comment
Comment