+ 2

How to use bit map

Hey coder am trying to code a board game from scratch do I need to know bit map or is there another way to implement it Thanks

27th Feb 2022, 11:04 PM
D Doyen
D Doyen - avatar
36 odpowiedzi
+ 4
A bitmap is a type of memory organization or image file format used to store digital images. The ImageBitmap interface represents a bitmap image which can be drawn to a <canvas> without undue latency.
1st Mar 2022, 1:41 PM
Vaibhav
Vaibhav - avatar
+ 2
FF9900 like those used in games
27th Feb 2022, 11:08 PM
D Doyen
D Doyen - avatar
27th Feb 2022, 11:10 PM
D Doyen
D Doyen - avatar
+ 2
FF9900 do you understand it now
27th Feb 2022, 11:14 PM
D Doyen
D Doyen - avatar
+ 2
FF9900 PanicS Ipang sorry if you find your name here but just need your help thanks
27th Feb 2022, 11:29 PM
D Doyen
D Doyen - avatar
+ 1
[2,2,2,0,0,2,2,2] [2,2,2,0,0,2,2,2] [0,0,0,0,0,0,0,0]
27th Feb 2022, 11:09 PM
D Doyen
D Doyen - avatar
+ 1
Both but mainly logic
27th Feb 2022, 11:10 PM
D Doyen
D Doyen - avatar
+ 1
Thanks everyone but FF9900 the code you wrote was in esc5 or 6 So my device does not support advance javascript so i would have to go through it and convert to plain javascript by the way thanks for the attempt you solved the question but you ended up using bit map why and how did you implement it try adding more comment and try suggest where I can learn about bitmap thanks
28th Feb 2022, 4:32 PM
D Doyen
D Doyen - avatar
0
Is it possible to map my ui to a bit map or
27th Feb 2022, 11:15 PM
D Doyen
D Doyen - avatar
0
I search the web for implementation of bit map but none to start with
27th Feb 2022, 11:20 PM
D Doyen
D Doyen - avatar
0
Or is there a way to get each token location without bit map and how to move it around on the track without it running ofcourse
27th Feb 2022, 11:21 PM
D Doyen
D Doyen - avatar
0
FF9900 You don't know that but you know chess you know how each piece move in it design track can you explain how to do that if I could grab that
27th Feb 2022, 11:36 PM
D Doyen
D Doyen - avatar
0
But I don't know bitmap manipulation have gone through the link pretty difficult to grasp cos every thing was bit map
27th Feb 2022, 11:50 PM
D Doyen
D Doyen - avatar
0
FF9900 do you know ludo game if you know it then try explain how to move things around in ludo game
27th Feb 2022, 11:51 PM
D Doyen
D Doyen - avatar
0
Well would look into that can you write a simple code that has few columns and try explain with that how distance calculations work note necessary now you can send later thanks in advance
27th Feb 2022, 11:54 PM
D Doyen
D Doyen - avatar
0
But have seen where bitmaps were used on sololearn lot cos the ui was drawn with bit map
27th Feb 2022, 11:57 PM
D Doyen
D Doyen - avatar
0
Also there has been cases where it was drawn with html and the movement tracking and position mappings were added without hiccups
27th Feb 2022, 11:58 PM
D Doyen
D Doyen - avatar
0
https://code.sololearn.com/WIOJY33TnijA/?ref=app Like this it was drawn with html but js was added successfully without bitmap
28th Feb 2022, 12:00 AM
D Doyen
D Doyen - avatar
0
FF9900 the logic is the main problem now if I get how those tokens would move without colliding with the center box I wud handle the rest
28th Feb 2022, 12:03 AM
D Doyen
D Doyen - avatar
0
FF9900 You mention offset I wud look into that
28th Feb 2022, 12:06 AM
D Doyen
D Doyen - avatar