Skip to content

Instantly share code, notes, and snippets.

Avatar
🎮
making

Érico Vieira Porto ericoporto

🎮
making
View GitHub Profile
@ericoporto
ericoporto / README.md
Last active Jun 24, 2020
eri0o's Adventure Game Studio Repositories!
View README.md

eri0o's Adventure Game Studio Repositories!

Using AGS for some time now, here's a list of things I made!

Script Modules

@ericoporto
ericoporto / FetchAllegro.cmake
Created Jun 22, 2020
rewritten FetchAllegro.cmake for testing, place in CMake/FetchAllegro.cmake
View 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 Jun 22, 2020
place this file in `ags/Common/libsrc/CMakeLists.txt` (part of liballegro 4.4 fixes for linux)
View CMakeLists.txt
#-----------------------------------------------------------------------------#
#
# CMake setup
#
cmake_minimum_required(VERSION 3.13..3.14)
#-----------------------------------------------------------------------------#
#
# Build options
View vulkanError_Output.txt
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 Jun 20, 2020
CMake for Vulkan tutorial
View CMakeLists.txt
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
Error running make install following OSX/README.md
View error.txt
$ 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
View gist:8cacc3c7c8b118f7fd6db4f8d3d810b4
Line numbers Dialog Editor
https://www.adventuregamestudio.co.uk/forums/index.php?topic=57355.0
Import/Export Views
https://www.adventuregamestudio.co.uk/forums/index.php?topic=56882.0
Debug variables
https://www.adventuregamestudio.co.uk/forums/index.php?topic=54347.0
Named loops
View notworking.cs
private void RoomSettingsEditor_MouseWheel(object sender, MouseEventArgs e)
{
int movement = e.Delta;
int previousZoomLevel = sldZoomLevel.Value;
if (movement > 0)
{
if (sldZoomLevel.Value < sldZoomLevel.Maximum)
{
sldZoomLevel.Value++;
}
@ericoporto
ericoporto / keepingForkUpToDate.md
Last active Feb 7, 2020 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date
View keepingForkUpToDate.md

Note: I use ssh keys with git instead of https.

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git@github.com:ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
View gist:7a98652f086efa7e6ae5705674c5483c
AgsGet may create the following files in your game directory.
```
├── ags_packages_cache/
│ ├── package_index
│ ├── pkg1/
│ │ └── pkg1.scm
│ └── pkg2/
│ └── pkg2.scm
│ ...
You can’t perform that action at this time.