Code Monkey home page Code Monkey logo

snowling's Introduction

⚠️ This has been superceeded by the latest version here.

Snowling

A simple bowling game with a festive twist.

A screenshot of the game Snowling

How to play

The premise is simple; you must launch the snowball at the pins and knock them down, seems easy right? Well, your snowball won't knock any pins down unless you roll over some ice first to harden it up. There are three obstacles in the game:

  • Ice (color: Aqua) - Hardens your snowball to pack a heavier punch on the pins.
  • Boost (color: Purple) - Increases the speed of your snowball to blow a heavier punch on the pins.
  • Lava (color: Red) - Melts your snowball; instant penalty.

It's best to play with your keyboard but Joystick is also supported.

Mouse Bindings:

  • LEFT MOUSE - Random bowl.

Key Bindings:

  • TAB/SPACE + 0-9 - Select launch speed.
  • 0-9 - Launch ball at one of 10 different angles, 5-1 for left-hand launches and 6-0 for right-hand launches.
  • R/LSHIFT - Launch ball at a random angle and speed.
  • Left, Right, Up, Down - Launch ball at four quick selection angles and speeds.

Joypad Bindings:

  • Stick 1 - Left to Right - Launch Angle
  • Stick 1 - Up and Down - Launch Speed
  • Button 1 - Launch
  • Button 2 - Random Launch

I tend to just use UP, DOWN, LEFT, RIGHT, and R when I play, but if you are competitive you will want to get accustomed to using SPACE + 0-9 & 0-9.


Video

https://www.youtube.com/watch?v=RN6lRq4bKWk


Simplified WebGL / Mobile version (one click/tap random bowl only)

https://mrbid.github.io/snowling


Snapcraft / Software Center

https://snapcraft.io/snowling


AppImage

https://github.com/mrbid/Snowling/raw/main/Snowling-x86_64.AppImage


[x86_64] Linux Binary (Ubuntu 21.10)

https://github.com/mrbid/Snowling/raw/main/snowling


[ARM64] Linux Binary (Raspbian 10)

https://github.com/mrbid/Snowling/raw/main/snowling_arm


Windows Binary

https://github.com/mrbid/Snowling/raw/main/snowling.exe
https://github.com/mrbid/Snowling/raw/main/glfw3.dll


Prerequisites

sudo apt install libglfw3 libglfw3-dev upx-ucl gcc-mingw-w64-i686-win32


Compile & Install

gcc main.c glad_gl.c -Ofast -lglfw -lm -o snowling
sudo cp snowling /usr/bin/snowling

Make & Install

make
sudo make install /usr/bin

Debug

clang -fno-omit-frame-pointer -fsanitize=address -g main.c glad_gl.c -Ofast -lglfw -lm -o snowling

clang -fno-omit-frame-pointer -fsanitize=undefined -g main.c glad_gl.c -Ofast -lglfw -lm -o snowling

valgrind snowling

strace snowling

#define LEAK_CHECK
#define LEAK_CHECK_BRUTE
#define AUTOMATE

Footnotes

Attributions

https://unsplash.com/photos/N_MXyBUV5hU
http://www.forrestwalter.com/icons/

snowling's People

Contributors

mrbid avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.