This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Node2D | |
signal started | |
#signal finished | |
signal change_room(direction) | |
enum Cell { PERIMETER, BORDER, WALKABLE, SLOWABLE, OBSTACLE, FALLABLE, BREAKABLE } | |
enum RoomType { FIRST_ROOM, LAST_ROOM } | |
export var walkable_probability := 0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Node2D | |
signal move_to_new_room(pos_to_move_to) | |
var Room = preload("res://src/Room.tscn") | |
var player = preload("res://src/Player.tscn").instance() | |
var room_neighbours = preload('res://src/RoomNeighbours.gd').new() | |
const ROOM_SIZE = Vector2(1280, 720) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Node2D | |
var Room = preload("res://src/Room.tscn") | |
enum DIRECTIONS { | |
UP, | |
RIGHT, | |
LEFT, | |
DOWN | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func play_dialogue_speech(): | |
emit_signal('started_speech') | |
disable_button() | |
var speech_length = speech.text.length() | |
var speech_duration = TIME_PER_LETTER * speech_length | |
speech.percent_visible = 0 | |
tween.interpolate_property( | |
speech, | |
'percent_visible', | |
0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends KinematicBody2D | |
export var ACCELERATION = 500 | |
export var MAX_SPEED = 600 | |
export var FRICTION = 200 | |
onready var threat_detection_zone = $ThreatDetectionZone | |
onready var animation_tree = $AnimationTree | |
onready var animation_state = animation_tree.get("parameters/playback") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SISA Edit Pot | |
Start journey -> Dig Deeper OR Dashboard | |
Dig Deeper OR Dashboard | |
Edit -> Edit Pot | |
Edit Pot | |
Pot summary | |
EDIT_POT_NAME -> Pot Name | |
EDIT_POT_TARGET -> Pot target | |
EDIT_GOAL_TYPE -> Goal type | |
EDIT_MONTHLY_CONTRIBUTIONS -> Monthly contributions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SISA Create Pot | |
Start -> Dig Deeper OR Dashboard | |
Dig Deeper OR Dashboard | |
Create -> Create Pot | |
Create Pot | |
Pot Name | |
potName | |
POT_NAME_BACK -> Dig Deeper OR Dashboard | |
POT_NAME_CONTINUE -> Pot target | |
Pot target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios'; | |
const GET_PEOPLE_ENDPOINT = `https://jsonplaceholder.typicode.com/users`; | |
class API { | |
constructor(api) { | |
this.api = api; | |
} | |
getPeople = () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { call, put, takeEvery } from 'redux-saga/effects'; | |
import API from '../services/api'; | |
import { getPeople } from '../actions'; | |
export function* callPeopleService() { | |
return yield call(API.getPeople); | |
} | |
export function* getPeopleRequest() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { handleActions } from 'redux-actions'; | |
import { getPeople } from '../actions'; | |
const INITIAL_STATE = { | |
hasLoadedPeople: false, | |
errorGettingPeople: false, | |
list: [], | |
}; |
NewerOlder