This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def tick args | |
duration = 120 | |
args.state.after_image_queue ||= [] | |
args.state.start_at = if Kernel.tick_count == 0 | |
0 | |
elsif Kernel.tick_count.zmod?(duration.idiv(2)) | |
args.state.start_at + duration.idiv(2) | |
else | |
args.state.start_at | |
end |
riona-720p.mp4
Repo: https://github.com/pvande/nidhogg
nidhog.mp4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Person | |
{ | |
private string _firstName; | |
private string _lastName; | |
public Person(string lastName) | |
{ | |
_firstName = "None"; | |
_lastName = _lastName; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Game | |
attr :args | |
def tick | |
defaults | |
current_scene = state.scene | |
calc | |
render | |
state.clock += 1 | |
if current_scene != state.scene |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def boot args | |
# initialize args.state to an empty hash on boot | |
args.state = {} | |
end | |
def tick args | |
defaults args | |
calc args | |
render args | |
end |
The following is a list of Jason’s essence abilities as of gold rank. The list is written for brevity (believe it or not) rather than accuracy or comprehensiveness.
Iron: Teleport through a shadow to another visible shadow.
Bronze: Create portals across regional distances.
Silver: Create portals across continental distances.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Person : Gemini | |
{ | |
//define a method called MethodMissing taking in one parameter | |
dynamic MethodMissing(dynamic callInfo) | |
{ | |
//check to see if the method being called ends in Html | |
if(callInfo.Name.EndsWith("Html")) | |
{ | |
//if it does, add a method on the fly that returns | |
//the html encoded version of the parsed property |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def boot args | |
args.state = {} | |
end | |
def tick args | |
args.state.center_screen ||= { x: 640, y: 360 } | |
args.state.particles ||= [ | |
{ x: 300, | |
y: 300, | |
w: 16, |
NewerOlder