All Questions
Tagged with scrolling html-canvas
4 questions
0
votes
1
answer
335
views
Perlin noise terrain issue when scrolling
I am generating a terrain in Javascript canvas using this js project for the Perlin noise. I have an array of points, and when one point leaves the left-hand-side of the window, it is removed, and a ...
3
votes
0
answers
880
views
Drawing a hexgrid on a canvas, yet making it zoom/scrollable?
I'm developing a game in JS / PHP. The game is basically a 2D plane (hexgrid) where each hex represents a location in space.
In total, I'm drawing 25 * 25 hexes on a 1000x1000 canvas. I also draw ...
6
votes
1
answer
16k
views
HTML5 - Dynamic canvas grid for scrolling a big map
I've been working on different scrolling algorithms for my JS-based game. My main problem is that I need to draw a huge map and also have it scroll smoothly. I've made a few attempts and while they're ...
0
votes
0
answers
212
views
What would be a good way to scroll a large html canvas (that contains little repetition if any)
What would be a good way to scroll the content of a huge html5 canvas so that the scroll is crisp and smooth, and memory consumption (and cpu load or battery consumption) is also reasonable?
any ...