User Tools

Site Tools


notes:spring2025:projects:mtb0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:spring2025:projects:mtb0 [2025/02/12 22:33] – [Design your sprites / custom texture] cgrant9notes:spring2025:projects:mtb0 [2025/02/12 22:38] (current) – [translating read joystick value into X and Y] cgrant9
Line 16: Line 16:
 There are many tools you can use to create custom sprites\\ There are many tools you can use to create custom sprites\\
 If you are willing to buy it or build it from source Aesprite is a great option\\ If you are willing to buy it or build it from source Aesprite is a great option\\
-Another great option for those with Steam is Pixel Studio, which is free, although it does have some quirks to work around. (This is what i personally use)+Another great option for those with Steam is Pixel Studio, which is free, although it does have some quirks to work around. (This is what i personally use and it works great)\\
  
 ====Specifying Texture in XML==== ====Specifying Texture in XML====
Line 82: Line 82:
 </code> </code>
 ====translating read joystick value into X and Y==== ====translating read joystick value into X and Y====
 +You can also check explicitly for certain button presses instead of using gamepad_direction() with the gamepad functions, most pertinent to this project would be gamepad_left(), gamepad_right(), gamepad_up(), and gamepad_down().\\ 
 +These functions return a value based on how long the button is being pressed/how long it has been unpressed, decreasing starting from -1 every frame it is unpressed, and increasing starting from 1 every frame it is pressed; The value returned is never zero
 =====Playfield bounds checking===== =====Playfield bounds checking=====
  
notes/spring2025/projects/mtb0.1739399622.txt.gz · Last modified: 2025/02/12 22:33 by cgrant9