Each character starts with the following health
- Isaac: 3
- Maggy: 4
- Cain: 2
- Judas: 1
| --[[ | |
| ProFi v1.3, by Luke Perkin 2012. MIT Licence http://www.opensource.org/licenses/mit-license.php. | |
| Example: | |
| ProFi = require 'ProFi' | |
| ProFi:start() | |
| some_function() | |
| another_function() | |
| coroutine.resume( some_coroutine ) | |
| ProFi:stop() |
| #!/usr/bin/env lua | |
| local http=require("socket.http"); | |
| local request_body = [[login=user&password=123]] | |
| local response_body = {} | |
| local res, code, response_headers = http.request{ | |
| url = "http://httpbin.org/post", | |
| method = "POST", | |
| headers = |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
| #define STB_IMAGE_IMPLEMENTATION | |
| #define STB_IMAGE_WRITE_IMPLEMENTATION | |
| #define STBI_ONLY_PNG | |
| #define STBI_ONLY_JPEG | |
| #define STBI_ONLY_BMP | |
| #define STBI_ONLY_GIF | |
| #include "stb_image.h" | |
| #include "stb_image_write.h" |
| .app a { | |
| color: #5294E2 | |
| } | |
| .titlebar { | |
| height: 5px | |
| } | |
| .guilds-wrapper { | |
| background: #2a2f38 | |
| } | |
| .guilds-wrapper .guilds .guild+.guild { |
| # Copyright 2017 Josef N Patoprsty | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: | |
| # | |
| # The above copyright notice and this permission notice shall be included in all |
| --[[ | |
| Original Author: https://github.com/Leandros | |
| Updated Author: https://github.com/jakebesworth | |
| MIT License | |
| Copyright (c) 2018 Jake Besworth | |
| Original Gist: https://gist.github.com/Leandros/98624b9b9d9d26df18c4 | |
| Love.run 11.X: https://love2d.org/wiki/love.run | |
| Original Article, 4th algorithm: https://gafferongames.com/post/fix_your_timestep/ | |
| Forum Discussion: https://love2d.org/forums/viewtopic.php?f=3&t=85166&start=10 |
| <?php | |
| // ref: https://partner.steamgames.com/doc/webapi/ISteamLeaderboards | |
| $cache_filename = "leaderboard_cache"; | |
| $default_leaderboard = "Normal"; | |
| if (!file_exists($cache_filename) || time() - filemtime($cache_filename) > 3600) | |
| { | |
| $max = 10; // how many displayed scores | |
| $key = ""; // steam webapi key, to get it: https://partner.steamgames.com/doc/webapi_overview/auth#create_publisher_key | |
| $appid = ""; // your game's app id | |
| // the names and corresponding leaderboard IDs |