💾 Archived View for squid.flounder.online › cheatsheet › spawn_points.gmi captured on 2024-06-16 at 12:32:30. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-07-16)

-=-=-=-=-=-=-

Return to Squid's World

Return to Cheat Sheets

This is a cheat sheet I'm using to help me visualize what I'm trying to do in Godot right now.

I'm trying to understand the coordinates of spawn points in 16 different directions relative to the position of the player.

Northwest
    x: 0 - width / 2
    y: 0 - height / 2
North-Northwest
    x: 0 - width / 6
    y: 0 - height / 2
North:
    x: 0
    y: 0 - height / 2
North-Northeast:
    x: width / 6
    y: 0 - height / 2
Northeast:
    x: width / 2
    y: 0 - height / 2
East-Northeast:
    x: width / 2
    y: height / 6
East:
    x: width / 2
    y: 0
East-Southeast:
    x: width / 2
    y: height / 6
Southeast:
    x: width / 2
    y: height / 2
South-Southeast
    x: width / 6
    y: height / 2
South:
    x: 0
    y: height / 2
South-Southwest:
    x: 0 - width / 6
    y: height / 2
Southwest:
    x: 0 - width / 2
    y: height / 2
West-Southwest:
    x: 0 - width / 2
    y: height / 2
West:
    x: 0 - width / 2
    y: 0
West-Northwest:
    x: 0 - width / 2
    y: 0 - height / 6
Northwest:
    x: 0 - width / 2
    y: 0 - height / 2
North-Northwest:
    x: 0 - width / 6
    y: 0 - height / 2

WINDOW SIZE: 1024 x 600
hw = width / 2
hh = height / 2
sw = width / 6
sh = height / 6
sp = same as player (always 0)
                                              =======================
 =============================================| V I S U A L I Z E D |================================================
|                                             =======================                                                |
|                                                                                                                    |
|                                                                                                                    |
|          NW                     NNW                       N                      NNE                      NE       |
|           *                      *                        *                       *                       *        |
|      [-512,-300]            [-170,-300]                [0,-300]               [170,-300]              [512,-300]   |
|       [-hw,-hh]              [-sw,-hh]                 [sp,-hh]                [sw,-hh]                [hw,-hh]    |
|                                                                                                                    |
|                                                                                                                    |
|                                                                                                                    |
|       WNW *                                                                                               * ENE    |
|      [-512,-100]                                                                                      [512,-100]   |
|       [-hw,-sh]                                                                                        [hw,-sh]    |
|                                                                                                                    |
|                                                                                                                    |
|                                                                                                                    |
|         W *                                        PLAYER *                                              * E       |
|       [-512,0]                                          [0,0]                                           [512,0]    |
|       [-hw,sp]                                                                                          [hw,sp]    |
|                                                                                                                    |
|                                                                                                                    |
|                                                                                                                    |
|                                                                                                                    |
|                                                                                                                    |
|        WSW *                                                                                             * ESE     |
|       [-512,100]                                                                                      [512,100]    |
|        [-hw,sh]                                                                                        [hw,sh]     |
|                                                                                                                    |
|                                                                                                                    |
|                                                                                                                    |
|                                                                                                                    |
|           *                      *                        *                       *                       *        |
|          SW                     SSW                       S                      SSE                      SE       |
|      [-512,300]             [-170,300]                 [0,300]                [170,300]               [512,300]    |
|       [-hw,hh]               [-sw,hh]                  [sp,hh]                 [sw,hh]                 [hw,hh]     |
|                                                                                                                    |
|                                                                                                                    |
|                                             =======================                                                |
 =============================================| E N D   V I S U A L |================================================
                                              =======================