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
+----------------------------------------------------+ | |
| FreeSEED 委員會 | | |
+----------------------------------------------------+ | |
| | |
v | |
(委員長) | |
+--------------------+ | |
| 薛良斌(布丁) | | |
+--------------------+ | |
| |
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
pico-8 cartridge // http://www.pico-8.com | |
version 16 | |
__lua__ | |
-- count down clock for faust game jam 2018 https://itch.io/jam/faust-game-jam modified by arch.jslin | |
-- original from 1stclock! by ultrabrite: https://www.lexaloffle.com/bbs/?tid=30199 | |
-- yyyy mm dd hh mm ss | |
endt={2018, 8,25,14, 0, 0} | |
stitle1="faust game jam" | |
stitle2="2018 timer" |
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
[snipped] | |
In fact we are also running into this problem in our own game, | |
about the "partially embedded" font. And as I dug deeper into this, | |
I only see more and more restrictions. | |
For now, I can only say that all freely-available Chinese fonts | |
I have researched are at least restricted by GPL, and actually | |
there are only 2 of them available (though they have different | |
font faces and weights in their font family): |
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
local counter = 0 | |
local function proc1() | |
while counter < 100000000 do | |
counter = counter + 1 | |
coroutine.yield() | |
end | |
end | |
local function proc2() |
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
local input = arg[1] | |
math.randomseed(os.time()) | |
local function random(n) return math.floor(math.random()*n) end | |
local function chararray(w) | |
local t = {}; | |
for i = 1, #w do t[i] = w:sub(i,i) end | |
return t | |
end |
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
#include <cstdio> | |
#include <cstdlib> | |
extern "C" { | |
#include "lua.h" | |
#include "lauxlib.h" | |
#include "lualib.h" | |
#include "luajit.h" | |
} |
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
local ffi = require 'ffi' | |
local C = ffi.C | |
ffi.cdef[[ | |
typedef struct Simple Simple; | |
Simple *Simple_Simple(int); | |
void Simple__gc(Simple *); | |
int Simple_id(Simple *); |
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
#include <cstdio> | |
#include <cstdlib> | |
extern "C" { | |
#include "lua.h" | |
#include "lauxlib.h" | |
#include "lualib.h" | |
#include "luajit.h" | |
} |
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
function Game:process_dropping(now_t, last_t) | |
self.cubes:for2d(function(c) | |
if c:is_waiting() then | |
if self:is_below_empty(c) then | |
drop_cube_logical(c, self.cubes) | |
drop_cube(c, now_t, last_t) | |
end | |
elseif c:is_dropping() then | |
drop_cube(c, now_t, last_t) | |
if c:arrived_at_logical_position() then |
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
//igdshare 110220: code provided by hsufong | |
class MainPlan extends SurfaceView implements SurfaceHolder.Callback { | |
private DrawPlanThread drawplanThread; | |
public MainPlan(Context context) { | |
super(context); | |
getHolder().addCallback(this); | |
drawplanThread = new DrawPlanThread(getHolder(), this); | |
} | |
private boolean XYInRect(int fX,int fY,Rect fRect){ | |
boolean tInside = false; |
NewerOlder