Skip to content

Instantly share code, notes, and snippets.

View gnysek's full-sized avatar
💭
Kuwabara! Kuwabara!

gnysek gnysek

💭
Kuwabara! Kuwabara!
View GitHub Profile
@gnysek
gnysek / d3d_model_cylinder.gml
Created April 11, 2022 16:37
d3d_model_cylinder.gml
/// @description Draws a simple 3D cylinder.
/// @param x1 The initial x coordinate of the cylinder.
/// @param y1 The initial y coordinate of the cylinder.
/// @param z1 The initial z coordinate of the cylinder.
/// @param x2 The opposite x coordinate of the cylinder.
/// @param y2 The opposite y coordinate of the cylinder.
/// @param z2 The opposite z coordinate of the cylinder.
/// @param tex The id of the texture to use (-1 for no texture)
/// @param hrepeat Amount of horizontal repetitions for the texture.
/// @param vrepeat Amount of vertical repetitions for the texture.
@gnysek
gnysek / GMLive_2022.2.patch
Created February 24, 2022 23:15
GMLive 2022.2 quick fix
Index: scripts/GMLiveAPI/GMLiveAPI.gml
<+>UTF-8
===================================================================
diff --git a/scripts/GMLiveAPI/GMLiveAPI.gml b/scripts/GMLiveAPI/GMLiveAPI.gml
--- a/scripts/GMLiveAPI/GMLiveAPI.gml (revision 0593234536ade7fcf1f6797498f38bbb2aef4196)
+++ b/scripts/GMLiveAPI/GMLiveAPI.gml (date 1645744329255)
@@ -20,7 +20,7 @@
}
var l_jsFuncs=(l_isJS?live_preinit_js_funcs():undefined);
var l_jsIndex=0;
@gnysek
gnysek / gms-wanna.md
Created August 20, 2021 09:27
GMS wanna have
  • sprites: as flash is dead, instead of SWF support we should get SVG import instead (even if that still means vertex models); mesh morhping (among with Spine support for it); sprite attach points
  • tilesets: 47 tiles generator of big tilesets from 9-tiles/5-tiles images
  • paths: bezier splines
  • new resource: polygon shapes definition for room editor to detect if we're inside/outside of it on runtime (for AI, defining areas, collisions maybe)
  • new resource: particles + editor
  • fonts: singed distances fonts, so we can scale them up with nearly no pixels visible on edges
  • rooms: ability to add text on layers; universal layer (so every type of resource can be placed there - that's possible at runtime already); ability to put "markers" on room, to mark/name places which x/y we want to access later at runtime so something might happen on them (teleports, npc waypoints, ai etc.); polygonal areas mentioned earlier
  • new resource: data sources, for csv, json, text files, which can be accessed at runntime, but are
@gnysek
gnysek / gms_consideration.txt
Created January 28, 2021 13:30
GMS2 Future Feature Considerations
Planned Features
This page is now outdated and does not accurately represent the planned future for GameMaker - please see our Official Road Map for up to date details.
The list below represents some features that have been considered for GameMaker, this is not necessarily the order they will be developed or released in and inclusion on this list does not guarantee they will be added. Other items may well be released directly without ever appearing on this list.
While we will try and keep this list updated, items listed are also subject to change or removal without notice.
9-Slices
Adaptive Icons (Android)
Additional IDE Translations
@gnysek
gnysek / async_const.gml
Created July 2, 2020 14:58
Async constants
#macro async_audio_playback_queue_id "queue_id"
#macro async_audio_playback_buffer_id "buffer_id"
#macro async_audio_playback_queque "queue_shutdown"
#macro async_audio_recording_buffer_id "buffer_id"
#macro async_audio_recording_channel_index "channel_index"
#macro async_audio_recording_data_len "data_len"
#macro async_cloud_status "status"
#macro async_cloud_id "id"
///draw_text_colour_outline(x, y, string, textColor1, textColor2, textAlpha, outlineColor1, outlineColor2, outlineAlpha, outlineThickness, outlineQuality, xscale, yscale, angle);
//By Blokatt - @blokatt, blokatt.net
var i;
for (i = 0; i < 360; i += 360 / argument10){
draw_text_transformed_color(argument0 + lengthdir_x(argument9, i), argument1 + lengthdir_y(argument9, i), string(argument2), argument11, argument12, argument13, argument6, argument6, argument7, argument7, argument8);
}
draw_text_transformed_color(argument0, argument1, string(argument2), argument11, argument12, argument13, argument3, argument3, argument4, argument4, argument5);
@gnysek
gnysek / adblock hidden.css
Created January 11, 2018 12:10
adblock hidden
::content #ad-slot2, ::content #block-views-advertisement-block_1, ::content .dfp-ad-hideempty, ::content .ad-zone-ajax, ::content .layout__top-ad, ::content #stickyAd, ::content .ad-ex-wide-container, ::content #desktop-atf_sidebar_sticky, ::content #sdbr_ad_cnt, ::content .artnet-ads-ad, ::content .widgetSponsors, ::content .c-advert-app, ::content a[href^="http://steel.starflavor.bid/"], ::content .ad-element, ::content #divSponsoredLinks, ::content .sidebar-adverts-header, ::content .anchoringTopAdDefault, ::content .sidebar-adverts, ::content .c-control--adchoice, ::content .admania_themead, ::content .in-content-ad--container, ::content #ra-taboola-bottom, ::content [id^="bunyad_ads_widget"], ::content [id*="ScriptRoot"], ::content [id*="MGWrap"], ::content [id*="MarketGid"], ::content .cg2-ad, ::content #preloaded-ad-frame, ::content #header-box-ads, ::content a[href*="://converti.se/click/"], ::content #advertisments, ::content [class$="-ads"], ::content #LinkArea\:gry, ::content #widget-shop, ::conte
@gnysek
gnysek / fix.diff
Created November 16, 2017 08:37
Magento disabled Flash fix
js/lib/flex.js:425
----
return Flex.checkFlashPlayerVersion(major, minor, revision);
+++
try {
return Flex.checkFlashPlayerVersion(major, minor, revision);
} catch (e) {
console.log('This browser doesn\'t support Flash, or disables it by default.');
@gnysek
gnysek / gms_tutorial.md
Created August 7, 2017 07:50
GMS wstęp

Read our installation guide

Wiedza którą powinno się posiadać przed rozpoczęciem pracy z programowaniem w GM Studio (subiektywnie):

  • dodawanie, odejmowanie, mnożenie, dzielenie (względnie potęgowanie i pierwiastkowanie)
  • ułamki dziesiętne (zaokrąglanie w dół, w górę)
  • czym są osie x i y
  • dodawanie i mnożenie binarne (OR i AND), negacja binarna (NOT) - świadomość, że liczby i wyniki funkcji dające > 0.5 uznawane są za prawdę (true), a pozostałe za fałsz (false)

Czym są zasoby (resources)

@gnysek
gnysek / gms2-roadmap.txt
Last active August 8, 2022 12:55
Game Maker Studio 2 Roadmap
The tables below show the Roadmap for GameMaker Studio 2. This is a rough guide to what features and progresses we hope to make over the coming year, but the dates and contents may change as we advance.
2019
The roadmap for 2019 is still in the works. Once it is more established we will share it with you here.
2018
Q1 Q2 Q3 Q4