Skip to content

Instantly share code, notes, and snippets.

@aliustaoglu
aliustaoglu / BabylonGD
Last active May 7, 2023 11:36
BabylonGD Documentation
<p>This extension is intended to transform classic top-down 2D games created in GDevelop into 3D games, using Babylon.js to achieve this. However, it is not compatible with side-view platform games.
</p>
<p>Thinking in 2D is typically easier than thinking in 3D, but 3D games are often considered cooler (although this is debatable!). This extension is designed to enable the creation of cool games with ease.
</p>
<p>It's worth noting that this extension is highly opinionated and aims to minimise the use of events or actions unless absolutely necessary. It seeks to achieve everything using behaviours wherever possible. As it is still in its early stages, I cannot recommend using it for anything other than fun or game jams. Furthermore, I cannot guarantee backward compatibility, and anything may break in the next version, so use it at your own risk.
</p>
<p>Please note that I do not own any of the assets used in the demo project. As I distribute the project, I always use CC0 assets. However, if you notice any mis
@aliustaoglu
aliustaoglu / DragDrop.pb
Last active May 4, 2023 03:52
PureBasic macOS Template
Procedure OnFilesDropped()
Protected files.s, count, i
files = EventDropFiles()
count = CountString(files, Chr(10))
For i = 0 To count
Debug StringField(files, i + 1, Chr(10))
Next
EndProcedure
If OpenWindow(0, 0, 0, 350, 250, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
@aliustaoglu
aliustaoglu / 001-Game-Creator.png
Last active April 24, 2023 09:34
indiegamedev-images
001-Game-Creator.png
@aliustaoglu
aliustaoglu / main.agc
Last active August 8, 2021 09:54
FPS Control in AppGameKit
Global SyncRate = 30
SetSyncRate(SyncRate, 1)
SetClearColor(0, 0, 0)
CreateText(1, "Loading...")
SetTextAlignment(1, 1)
SetTextPosition(1, 50, 45)
SetTextSize(1, 10)
@aliustaoglu
aliustaoglu / APKResigner.MD
Created February 4, 2021 07:17
How to resign an already signed apk
  1. Find build.apk file and rename it to build.zip and open it.
  2. Remove META-INF folder and close the zip file.
  3. Change the name back to build.apk
  4. jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore cert.keystore build.apk keyalias
  5. zipalign -v -p 4 "build.apk" "build-aligned.apk"
@aliustaoglu
aliustaoglu / hello_world.c
Created November 9, 2020 00:04 — forked from kripken/hello_world.c
Standalone WebAssembly Example
int doubler(int x) {
return 2 * x;
}
@aliustaoglu
aliustaoglu / usStates
Created July 7, 2020 23:21
US States and Puerto Rico
var states = {"type":"Topology","arcs":[[[4378,49930],[116,-118],[47,-102],[216,-122],[118,-34],[102,-54],[-11,-46],[-116,20],[-154,24],[-190,135],[-121,61],[-37,182],[30,54]],[[2779,39838],[194,42],[104,43],[123,-2],[115,39],[66,61],[5,118],[91,70],[103,51],[84,-32],[60,-85],[-44,-94],[17,-120],[88,7],[176,7],[90,16],[111,-60],[144,21],[163,-22],[-24,-50],[-136,-24],[-161,-18],[-85,-4],[-131,35],[-90,-14],[-58,8],[-142,26],[-128,20],[-75,-9],[-19,-80],[-106,28],[-129,-35],[-112,15],[-88,-15],[-101,5],[-120,-4],[15,56]],[[1596,39407],[24,129],[97,41],[14,42],[-35,69],[27,45],[54,-2],[85,46],[22,-56],[-4,-53],[-16,-79],[104,22],[86,13],[99,12],[4,76],[-10,60],[-20,76],[44,62],[67,-9],[35,-51],[86,-83],[57,-6],[103,5],[153,22],[19,-47],[-154,-46],[-108,-16],[-124,-86],[-26,-52],[-114,-38],[-95,-32],[-127,-17],[-55,-33],[-81,-47],[-42,-44],[-68,-5],[-93,-29],[-35,18],[27,93]],[[1079,39473],[128,32],[129,9],[61,30],[20,124],[13,39],[59,-9],[39,-43],[-38,-81],[-5,-129],[-61,-25],[-61,-20],[-52,19],[-98,-17],[-120,
#!/bin/bash
# Generate the script that converts all wav files inside the folder to ogg
for f in *.wav
do
echo "ffmpeg -i '$f' -c:a libvorbis -qscale:a 3 '$f.ogg'"
done
@aliustaoglu
aliustaoglu / appify
Created May 7, 2020 08:13 — forked from mathiasbynens/appify
appify — create the simplest possible Mac app from a shell script
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh
@aliustaoglu
aliustaoglu / vue.config.js
Created April 5, 2020 06:10
Vue Webpack Sourcemap
module.exports = {
lintOnSave: false,
configureWebpack: config => {
if (process.env.NODE_ENV === 'development') {
config.devtool = 'eval-source-map';
config.output.devtoolModuleFilenameTemplate = info =>
info.resourcePath.match(/\.vue$/) && !info.identifier.match(/type=script/) // this is change ✨
? `webpack-generated:///${info.resourcePath}?${info.hash}`
: `webpack-yourCode:///${info.resourcePath}`;