Skip to content

Instantly share code, notes, and snippets.

🎈
🎈😍

BALLOON a.k.a. Fu-sen. fu-sen

🎈
🎈😍
Block or report user

Report or block fu-sen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fu-sen
fu-sen / text.c
Last active Dec 4, 2019
text sample | z88dk
View text.c
#include <stdio.h>
void main() {
for (int y=1; y<=6; y++) {
for (int x=1; x<=24; x++) {
printf("%c[%u;%uH ", 27, y, x);
}
}
printf("%c[%u;%uH",27,2,2); // locate
View MIT-License-2012-2019.txt
The MIT License (MIT)
Copyright (c) 2012-2019 Keiichi SHIGA (BALLOON a.k.a. Fu-sen.)
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:
@fu-sen
fu-sen / test.c
Last active Dec 4, 2019
z88dk PC-E200/G text test
View test.c
#include <graphics.h>
#include <conio.h>
#include <stdio.h>
main(){
clg();
gotoxy(1,1);
printf("test\n");
@fu-sen
fu-sen / sprite.c
Last active Jul 1, 2019
z88dk sprite sample
View sprite.c
#include <graphics.h>
#include <games.h>
#include <stdio.h>
char balloon[] = { 8, 8,
0x0e, 0x1d, 0x1f, 0x1f, 0x0e, 0x08, 0x10, 0xe0
};
void main(){
clg();
@fu-sen
fu-sen / 5x5.c
Created Jul 1, 2019
z88dk sprite sample 5x5
View 5x5.c
char sprite[] = { 5, 5,
0x70 /* .###.... */,
0xe8 /* ###.#... */,
0xf8 /* #####... */,
0xf8 /* #####... */,
0x70 /* .###.... */
};
@fu-sen
fu-sen / balloon.c
Created Jul 1, 2019
z88dk sprite sample 8x8
View balloon.c
char sprite[] = { 8, 8,
0x0e /* ....###. */,
0x1d /* ...###.# */,
0x1f /* ...##### */,
0x1f /* ...##### */,
0x0e /* ....###. */,
0x08 /* ....#... */,
0x10 /* ...#.... */,
0xe0 /* ###..... */
};
View balldemo.c
/*
Balloons Demo | MSX-BASIC / z88dk
Copyright (c) 2019 Keiichi SHIGA (BALLOON a.k.a. Fu-sen.)
The MIT License (MIT) - https://gist.github.com/fu-sen/7e55ee56a67e07d804db9379178e3cb5
zcc +msx -lndos -create-app -subtype=disk -bn balldemo balldemo.c
--> BLOAD"BALLDEMO.MSX",R
or
zcc +msx -lndos -create-app -bn balldemo balldemo.c
--> BLOAD"CAS:",R (BALLDEMO.CAS)
View balloons-dos.c
/*
Balloons version 2 MSX-DOS .com version | MSX-DOS / MSX2 / z88dk
Copyright (c) 2019 Keiichi SHIGA (BALLOON a.k.a. Fu-sen.)
The MIT License (MIT) - https://gist.github.com/fu-sen/7e55ee56a67e07d804db9379178e3cb5
zcc +msx -subtype=msxdos -bn balloons.com balloons-dos.c
(MSX-DOS 2.30+ set the following: SET EXPERT ON )
--> BALLOONS
*/
@fu-sen
fu-sen / balloons.c
Last active Dec 17, 2019
風船 Balloons version 2 | MSX-BASIC 2.0+ (MSX2/MSX2+/turbo R) / z88dk https://msxjpn.jimdofree.com/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0/%E9%A2%A8%E8%88%B9/
View balloons.c
/*
Balloons version 2 | MSX-BASIC 2.0+ / z88dk
Copyright (c) 2019 Keiichi SHIGA (BALLOON a.k.a. Fu-sen.)
The MIT License (MIT) - https://gist.github.com/fu-sen/7e55ee56a67e07d804db9379178e3cb5
zcc +msx -lndos -create-app -subtype=disk -bn balloons balloons.c
--> BLOAD"BALLOONS.MSX",R
*/
void wrtvdp(char reg, char data)
View yjkcolor.c
/*
MSX2+ YJK colors | MSX-BASIC 3.0+ / z88dk
Copyright (c) 2019 Keiichi SHIGA (BALLOON a.k.a. Fu-sen.)
The MIT License (MIT) - https://gist.github.com/fu-sen/7e55ee56a67e07d804db9379178e3cb5
zcc +msx -lndos -create-app -subtype=disk -bn yjkcolor yjkcolor.c
--> BLOAD"YJKCOLOR.MSX",R
*/
void chgclr(char forclr, char bakclr, char bdrclr)
You can’t perform that action at this time.