What is MoonQuest?
MoonQuest is a console-based game I'm currently developing. It is made in MoonScipt and Lua.
As this is my first professional game please don't be too critical when judging it. After all I'm
only 13.
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
math.randomseed os.time! | |
export yes = false | |
export x_counter = 0 | |
export x = if yes == true then 0 else 1 | |
while true |
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
foo = | |
str: [[String]] | |
classa: class | |
init:=> | |
print "adad" | |
foo.classa\init! | |
class klassa | |
begin: |
panabee.com
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 fifo | |
MAX = 256*256 | |
new: (@maxSize = MAX) => | |
@stack = {} | |
@top = 0 | |
kill: => | |
@stack = nil | |
@top = nil | |
isEmpty: => | |
return @top < 1 |
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
#!/usr/local/bin/moon |
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
box = {} | |
box.init = -> | |
f = io.open(".rules.moon", "wb") | |
f\write([[ | |
file["main.moon"] = "main.moon" | |
action["main.moon"] = "echo #{file} changed" | |
{:file, :action} | |
]]) | |
f:close! |
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
/* Copyright (c) 2016 Emeka N. All Rights Reserved. */ | |
#ifndef log_h_ | |
#define log_h_ | |
#include <stdio.h> | |
#include <stdarg.h> | |
#include <time.h> | |
#define COLOR_RED "\x1b[31m" | |
#define COLOR_GREEN "\x1b[32m" |
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
M = {} |
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 sjj | |
@scream: (...) => | |
k = {...} | |
print "hello" .. table.concat k | |
new: => | |
@@scream " world" | |
d = sjj! | |
d.__class\scream " and" |
OlderNewer