User interface toolkit for Go with support for SDL2 and HTML Canvas render targets.
 
 
 
 
 
Go to file
Noah 6af64edf68 Play Mode: Fix Level Collision w/ Scrolling
Fixes:
* Move the call to CollidesWithGrid() inside the Canvas instead of
  outside in the PlayScene.movePlayer() so it can apply to all Actors
  in motion.
* PlayScene.movePlayer() in turn just sets the player's Velocity so the
  Canvas.Loop() can move the actor itself.
* When keeping the player inside the level boundaries: previously it was
  assuming the player Position was relative to the window, and was
  checking the WorldIndexAt and getting wrong results.
* Canvas scrolling (loopFollowActor): check that the actor is getting
  close to the screen edge using the Viewport into the world, NOT the
  screen-relative coordinates of the Canvas bounding boxes.
2019-04-14 15:25:03 -07:00
theme Port over code from old collision dev PR 2019-04-09 19:17:56 -07:00
button.go Code Layout Refactor 2019-04-09 17:35:44 -07:00
check_button.go Code Layout Refactor 2019-04-09 17:35:44 -07:00
checkbox.go Code Layout Refactor 2019-04-09 17:35:44 -07:00
debug.go Code Layout Refactor 2019-04-09 17:35:44 -07:00
dragdrop.go Code Layout Refactor 2019-04-09 17:35:44 -07:00
frame.go Code Layout Refactor 2019-04-09 17:35:44 -07:00
frame_pack.go Code Layout Refactor 2019-04-09 17:35:44 -07:00
functions.go Code Layout Refactor 2019-04-09 17:35:44 -07:00
image.go Code Layout Refactor 2019-04-09 17:35:44 -07:00
label.go Play Mode: Fix Level Collision w/ Scrolling 2019-04-14 15:25:03 -07:00
supervisor.go Code Layout Refactor 2019-04-09 17:35:44 -07:00
widget.go Code Layout Refactor 2019-04-09 17:35:44 -07:00
window.go Code Layout Refactor 2019-04-09 17:35:44 -07:00