Skip to content

Instantly share code, notes, and snippets.

@neslinesli93
Last active January 2, 2020 21:29
Show Gist options
  • Save neslinesli93/1d63f266d0d010fa74bca5747236eb7e to your computer and use it in GitHub Desktop.
Save neslinesli93/1d63f266d0d010fa74bca5747236eb7e to your computer and use it in GitHub Desktop.
Add paddle to the template
<div class="game-container">
<div class="block paddle"
style="transform: translate3d(<%= @paddle.left %>px, <%= @paddle.top %>px, 0px);
width: <%= @paddle.width %>px;
height: <%= @paddle.height %>px; ">
</div>
<!-- ... other code below -->
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment