User Tools

Site Tools


notes:unix:fall2023:projects:fwg1

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:unix:fall2023:projects:fwg1 [2023/11/01 22:58] – [game controller input] jbernatanotes:unix:fall2023:projects:fwg1 [2023/11/02 02:41] (current) – [declaring] xcroft
Line 18: Line 18:
 Stanely.height = 74; Stanely.height = 74;
 ====declaring==== ====declaring====
 +int SpaceshipX = screen_width / 2 ;  
 +can replace 2 with any number depending on where you want the starting point. Replace x with y for y axis
 ====accessing==== ====accessing====
  
 =====displaying sprites on screen===== =====displaying sprites on screen=====
 +To display sprites on screen, you must first make sure you define their textures. This should be done outside of "main". Next, (assuming that: 1) the sprite appears in the same image as the background. 2) The background has also been defined outside of main and that texture / region has been selected / defined via functions) you can use "define_region_matrix()." This function will create a matrix, grab the sprite textures based on coordinates, and assign them to the aforementioned texure definitions.
 =====game controller input===== =====game controller input=====
  
notes/unix/fall2023/projects/fwg1.1698879518.txt.gz · Last modified: 2023/11/01 22:58 by jbernata