Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbid committed Jan 11, 2024
1 parent 547f9e7 commit d5f0171
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
# TuxPusher & Friends
An improved and extended version over [the original.](https://github.com/mrbid/TuxPusher)

Featuring 514 assets generated by various members of the [LUMA GENIE](https://lumalabs.ai/genie) Discord server.
Featuring 515 assets generated by various members of the [LUMA GENIE](https://lumalabs.ai/genie) Discord server.

[![Screenshot of the Tux Pusher game](https://dashboard.snapcraft.io/site_media/appmedia/2024/01/Screenshot_2024-01-11_05-38-10.png)](https://www.youtube.com/watch?v=39AIfMu2cYA "Tux Pusher Game Video")

### Improvements
- Coins now rotate
- Holding left mouse will auto-place silver coins
- 515 new "interim" prizes until you get all 6 Tux!

### Mechanics / Rules
- Getting a gold coin in a silver slot rewards you 2x silver coins.
- Getting a gold coin in a gold slot rewards you 2x gold coins.
- Getting a tux in a slot when you already have the tux gives you 6x gold coins and 6x silver coins.

### Controls
_Just move around your mouse and click to release a coin._
- Left Click = Release coin.
- Left Click = Release coin. (hold to auto-place silver coins)
- Right Click = Show/Hide cursor.
- C = Orthographic/Perspective.
- F = FPS to console.
Expand Down
2 changes: 1 addition & 1 deletion flat/tuxpusheraf.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</ul>
<p>Controls: Just move around your mouse and click to release a coin.</p>
<ul>
<li>Left Click = Release coin.</li>
<li>Left Click = Release coin. (hold to auto-place silver coins)</li>
<li>Right Click = Show/Hide cursor.</li>
<li>C = Orthographic/Perspective.</li>
<li>F = FPS to console.</li>
Expand Down
9 changes: 6 additions & 3 deletions ptf.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ int main(int argc, char** argv)
char* p = strstr(name, ".");
if(p != NULL){*p = 0x00;}

// check if its been generated
char outfile[256];
sprintf(outfile, "../../high/%s.h", name);
if(access(outfile, F_OK) == 0){return 0;}

// generate the read file path (reads .ply files from a local `ply/` directory)
char readfile[32] = {0};
strcat(readfile, "../ply/");
Expand Down Expand Up @@ -103,7 +108,7 @@ int main(int argc, char** argv)
strcat(vertex_array, add);
numvert++;

if(vz < 0.05f) // extract object base radius
if(vz < 0.1f) // extract object base radius
{
float tmp = fabsf(vx);
if(tmp > radius){radius = tmp;}
Expand Down Expand Up @@ -150,8 +155,6 @@ int main(int argc, char** argv)
color_array[strlen(color_array)-1] = 0x00;

// output the resultant file
char outfile[256];
sprintf(outfile, "../../high/%s.h", name);
f = fopen(outfile, "w");
while(f == NULL)
{
Expand Down

0 comments on commit d5f0171

Please sign in to comment.