Skip to content

Instantly share code, notes, and snippets.

View ericoporto's full-sized avatar
🎮
making

Érico Porto ericoporto

🎮
making
View GitHub Profile
@ericoporto
ericoporto / extract-subtitles.sh
Last active July 27, 2020 00:26
bash script to extract all subtitles from mp4 files and remove html tags
#!/bin/bash
for file in *.mp4;
do
filename=$(basename -s .mp4 "$file")
ffmpeg -i "${filename}.mp4" "${filename}.srt"
done
sed -i 's/<[^>]*>//g' *.srt
@ericoporto
ericoporto / README.md
Last active July 3, 2020 20:04
Building an AGS game

Building an AGS game

Ideally, while the project files holds the game information in the form that is the most convenient by the Editor used by the game developer, the game data represents this information in the most convenient form for the Engine.

Building a game is to transform information that describes the game to the form convenient for the Engine. This document describes how a platform agnostic AGS game is built.

@ericoporto
ericoporto / 3.5.0.24.yaml
Last active July 1, 2020 14:47
Adventure Game Studio WinGet Template, more information here: https://docs.microsoft.com/en-us/windows/package-manager/
Id: ags.ags
Publisher: Adventure Game Studio
Name: Adventure Game Studio
Version: 3.5.0.24
AppMoniker: ags
MinOSVersion: 10.0.0.0
Description: The Adventure Game Studio IDE
Homepage: https://www.adventuregamestudio.co.uk
License: Copyright (c) Chris Jones et al. Artistic License 2.0.
LicenseUrl: https://raw.githubusercontent.com/adventuregamestudio/ags/master/License.txt
@ericoporto
ericoporto / making_language_grammar.md
Created June 26, 2020 10:39 — forked from Aerijo/making_language_grammar.md
Guide to writing an Atom language grammar

A guide to writing a language grammar (TextMate) in Atom

Tree sitter

  • Atom is transitioning to an entirely new way of defining grammars using tree-sitter. This will be enabled by default quite soon now. It is theoretically faster and more powerful than regex based grammars (the one described in this guide), but requires a steeper learning curve. My understanding is that regex based grammars will still be supported however (at least until version 2), so this guide can still be useful. To enable it yourself, go to Settings -> Core and check Use Tree Sitter Parsers

Links for tree-sitter help:

@ericoporto
ericoporto / README.BBCode
Last active February 6, 2022 20:10
☕eri0o's Adventure Game Studio Repositories (BBCode Edition)!
[size=16pt][b] eri0o's Adventure Game Studio Repositories! [/b][/size]
Using AGS for some time now, here's a list of things I made!
[size=12pt][b] Script Modules [/b][/size]
[list][li][b][url=https://github.com/ericoporto/ImGi]ImGi[/url][/b] | [u][url=https://github.com/ericoporto/ImGi/releases][tt]Downloads ⇩[/tt][/url][/u][/li][list]
[li]Immediate GuI script module using Overlays for AGS.[/li]
[/list][/list]
[list][li][b][url=https://github.com/ericoporto/math3d]math3d[/url][/b] | [u][url=https://github.com/ericoporto/math3d/releases][tt]Downloads ⇩[/tt][/url][/u][/li][list]
@ericoporto
ericoporto / FetchAllegro.cmake
Created June 22, 2020 21:39
rewritten FetchAllegro.cmake for testing, place in CMake/FetchAllegro.cmake
FetchContent_Declare(
allegro_content
GIT_REPOSITORY https://github.com/ericoporto/lib-allegro.git
GIT_TAG bce34ee5222e14e8ab199f693163195ed9800c71
GIT_SHALLOW yes
)
FetchContent_GetProperties(allegro_content)
if(NOT allegro_content_POPULATED)
FetchContent_Populate(allegro_content)
@ericoporto
ericoporto / CMakeLists.txt
Created June 22, 2020 21:29
place this file in `ags/Common/libsrc/CMakeLists.txt` (part of liballegro 4.4 fixes for linux)
#-----------------------------------------------------------------------------#
#
# CMake setup
#
cmake_minimum_required(VERSION 3.13..3.14)
#-----------------------------------------------------------------------------#
#
# Build options
available extensions:
VK_KHR_device_group_creation
VK_KHR_display
VK_KHR_external_fence_capabilities
VK_KHR_external_memory_capabilities
VK_KHR_external_semaphore_capabilities
VK_KHR_get_display_properties2
VK_KHR_get_physical_device_properties2
VK_KHR_get_surface_capabilities2
VK_KHR_surface
@ericoporto
ericoporto / CMakeLists.txt
Created June 20, 2020 22:00
CMake for Vulkan tutorial
cmake_minimum_required(VERSION 3.16)
project(vulkanLearning)
set(CMAKE_CXX_STANDARD 17)
find_package(Vulkan REQUIRED)
add_subdirectory(lib/glfw-3.3.2)
SET(GLM_TEST_ENABLE OFF CACHE BOOL "GLM Build unit tests")
add_subdirectory(lib/glm-0.9.9.6 EXCLUDE_FROM_ALL)
@ericoporto
ericoporto / error.txt
Created May 31, 2020 01:46
Error running make install following OSX/README.md
$ make install
cd /Users/user/git/dploeger/ags/OSX/buildlibs/../../libsrc && ./download.sh
allegro-4.4.2.tar.gz: https://s3-ap-southeast-2.amazonaws.com/ags-shared/allegro-4.4.2.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4565k 100 4565k 0 0 848k 0 0:00:05 0:00:05 --:--:-- 1134k
dumb-0.9.3.tar.gz: https://s3-ap-southeast-2.amazonaws.com/ags-shared/dumb-0.9.3.tar.gz