compsci-godot-arpg/notes 01.org
2024-09-09 21:29:39 +03:00

78 lines
2.3 KiB
Org Mode

* Screen
** middle
- 2D view
- 3D view (default)
- Script
- AssetLib / Asset Library
** left
- inspector menu
- node menu
** right
- scene
- filesystem (below scene menu)
* how to start
** define root node of player
1. go to scene menu
2. click 'other node'
3. in create new node dialo,g select CharacterBody2D
- characterbody2d is what we use when we want to script
4. note the yellow warning triangle to the right of the node name
5. rename by clicking on the name and rename Player
6. save the scene
- will appear in filesystem dialog on lower left corner
** create a sprite node
1. select the player node
2. right click and select 'add child node'
3. in the dialog search for Sprite2D node
4. click on the Sprite2D node, look at inspector menu
** add art to project
1. go to filesystem
2. right click and add new folder 'art'
3. from a finder window, select whatever media files you want and add them to the art folder
** add art to the sprite
1. select the Sprite2D node
2. click and drag the media to the 'texture' property in the inspector menu
3. move the camera over to the center of the window
4. zoom in by clicking the + button at the upper left portion of the view screen
** fix pixel art
1. under 'canvasitem-texture-filter' in the inspector
2. select 'inherit' (unless the changes are only to this sprite)
3. go to player node
4. go to 'canvasitem-texture-filter'
5. change to 'nearest'
** change sprite into frames
1. go to sprite2D-animation
2. modify HFrames and Vframes so they have the correct number of rows and columns
3. you can change which frame you want to use, by going to the sprite2d-animation-frame and incrementing or changing the number to refer to which frame you want to use
** set size of viewport
1. go to project settings
2. scroll down to display settings
3. next select 'window' under display submenu
4. set viewport width and height
5. note that viewport doesn't mean window
** set stretch settings for game window so it doesn't affect items when the window is changed
1. project settings
2. go to display-window-stretch
3. set mode to 'canvas_items'
4. set aspect to 'keep'
** set window size
1. project settings
2. go to display-window
3. click 'advanced settings' in upper right corner of dialog box to the right of the search tool
4. go to 'window width override' and 'window heigh override' (1920, 1080)