Git Product home page Git Product logo

triangleyay's Introduction

TriangleYAY - YouTube
Simple game written in LÖVE 2D game engine.


Screenshot_1

About - process of creating TriangleYAY

I've never programmed in Lua. This is my first project that I created in under 24H and this is how I made it:

  1. Learning basics of Lua and how it works in few minutes.
  2. Learning how LÖVE. works - printing some random text on screen (examples from LÖVE homepage). It's similar to python so I've spent about 10-30 minutes.
  3. Learning commands/functions of LÖVE (similar to AutoIt). This part was most time-drainful - few hours. I picked some commands that I will use.
  4. Trying to display something different than text - worked at first try.
  5. Understanding how to receive keyboard input - few minutes.
  6. Added some window collisions - pretty easy, just used WINDOW_WIDTH and WINDOW_HEIGHT variables - 10 minutes of coding.
  7. Now it's part for more than 1 object - I added a "triangle" (it's a circle with 3 segments lol). Took me few minutes.
  8. Understanding how collisions works on different objects - about 30-60 minutes.
  9. I wanted to rotate "triangles" (circles) but it's probably impossible (yeah, I realised I can do it with love.graphics.triangle) - wasted 15 minutes.
  10. Now the hardest part - creating multiple triangles and detecting collisions from them. I've spent about 4 hours to do it.
  11. Adding some effects/shaders. GLSL syntax is more akin to C/C++ so... next few hours. Screen shaking was really easy to apply.
  12. Time for music - sound effects are made with bfxr. Music is from random copy-right free websites.
  13. Final.

Why "TriangleYAY"

Because all you do is collecting triangles that are not triangles and at the end you can hear "yaaay" sound.

Instruction

  • Use arrow keys or WASD to move.
  • Collect as many triangles as you can to get higher score.

Donate

If you support my work or like my projects, you can donate me some money. Thank you 💙

triangleyay's People

Contributors

hxr16f avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

5l1v3r1

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.