cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
user name:
password:
Forgot your password?
please wait
try again
cancel
forgot your password?
sign up
log in
[Legacy version]
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Tile collision control with SDL2
Page 2
Tile collision control with SDL2
Pages:
1
2
Jul 18, 2019 at 12:05pm
Jul 18, 2019 at 12:05pm UTC
Zaap
(101)
Ok so my bad, usually it's better to use sprites with the same size, but here, instead of dividing the player pos by its size, divide it by the size of a tile. Should work now.
Topic archived. No new replies allowed.
Pages:
1
2