summaryrefslogtreecommitdiff
path: root/src/rb.c
AgeCommit message (Collapse)Author
2025-11-29Add a couple macros to set screen centerCarlos Maiolino
Signed-off-by: Carlos Maiolino <[email protected]>
2025-11-29Change mouse input to use mouse speedCarlos Maiolino
Instead of directly setting the object accordingly to the mouse's cursor orientation, use a 'speed' trick to move the object. X and Y coordinates are now incremented according to the speed instead of hard setting them to the current x*y hardware coordinates. Use al_set_mouse_xy() to always reset the real mouse position (not the object). This will avoid the mouse position to hit one of the limits preventing the object to be moved further. Signed-off-by: Carlos Maiolino <[email protected]>
2025-10-30Implement mouse tracking.Carlos Maiolino
Make the object follow the mouse position Signed-off-by: Carlos Maiolino <[email protected]>
2025-10-30Implement movementCarlos Maiolino
Add simple movement according to Allegro manual. Signed-off-by: Carlos Maiolino <[email protected]>
2025-10-28Initial dropCarlos Maiolino
Add basic Allegro initialization, draw the display and add sample object Signed-off-by: Carlos Maiolino <[email protected]>