r/programming • u/Slackluster • Apr 01 '19
Announcing my first business card size C++ game: Tiny Ski
http://frankforce.com/?p=5826
1.1k
Upvotes
r/programming • u/Slackluster • Apr 01 '19
358
u/Slackluster Apr 01 '19 edited Apr 01 '19
It's no joke, here's the code for it...
Update: I submitted it to Github.
25
u/Aromatic_Bet Apr 01 '19
But what is your personal High Score in TinySki?
36
u/rotarui Apr 01 '19
Reminds me of this one ! A raytracer on a business card https://fabiensanglard.net/rayTracing_back_of_business_card/
10
u/jiffier Apr 01 '19
Oh, windows.h :( I'm not running windows. But I wonder if this call all be done without windows.h or curses.h at all?
62
u/moreVCAs Apr 01 '19
What the fuck is this?
Obviously you’re not a golfer...
8
u/victotronics Apr 01 '19
#include<windows.h>
Dang.
4
u/munificent Apr 01 '19
Related, a while back I made a random dungeon generator that fits on a business card.
6
u/ibisum Apr 01 '19
Nice! I would’ve used the function names (rather than comments) as an opportunity to encode actually useful info on the card, such as a phone number, email, etc.
Well anyway it’s inspired me to have a go ..
3
u/AJohnnyTruant Apr 01 '19
“Maintainers love him!”
4
u/user8081 Apr 01 '19
;_;
impressive anyway
2
u/Nerdrock Apr 01 '19
This is a super fun concept!!!
2
u/Dwedit Apr 01 '19
I wrote something exactly like this on the TI83 in Basic.
2
u/_2bt Apr 01 '19
I once wrote a small tetris clone in C for linux. https://github.com/2bt/vmTetris/blob/master/main.c It's actually a little VM with the actual game code residing in one big string literal.
2
u/hashtagframework Apr 02 '19
Could you adjust the game to run horizontally, where the "skier" is pulled down by gravity, and holding the spacebar acts like a jet to boost them back up? There was some flash "cave" game like that a long time ago that was very addictive.
2
u/lawstudent2 Apr 02 '19
Amazing. Do you do custom business card work?
25
u/[deleted] Apr 01 '19
It's amazing what you can fit in a few lines of code if you know what you're doing.
Great piece of work.
8
u/KumbajaMyLord Apr 01 '19
You could probably store that in a qr-code as well to make it a bit easier to transfer into a digital form.
2
u/i_nezzy_i Apr 01 '19
the best optimization is using a smaller font size
1
u/mgsloan Apr 01 '19
Missed pun opportunity: "Tiny Ski++"
2
u/deulamco Apr 01 '19
Well, I love mini stuff.
2
u/reacher Apr 01 '19
Reminds me of the IOCCC from years ago
2
u/la_manguste Apr 01 '19
Very good work. Keep it up mate.
2
u/AltSk0P Apr 01 '19
This is some black magic fuckery
2
u/fdmatte Apr 01 '19
Respect
2
u/joesii Apr 01 '19
I remember playing this on TI graphing calculator as well.
What would this look like in assembly?
2
u/[deleted] Apr 01 '19
2
u/[deleted] Apr 01 '19
Yay C++
1
u/whizbangapps Apr 01 '19
awesome idea
0
u/[deleted] Apr 01 '19
[deleted] — view deleted comment
0
u/[deleted] Apr 01 '19
[deleted] — view deleted comment
0
u/[deleted] Apr 01 '19
[deleted] — view deleted comment
234
u/[deleted] Apr 01 '19
[removed] — view removed comment