This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright © 2024 MGDS Studio. All rights reserved. | |
/** Used to create a visual effect when the player in my game is dead. | |
* Values must be passed: | |
shaderProgram.setUniformf( "time", deltaTime ); | |
shaderProgram.setUniformf( "u_imageSize", new Vector2(textureRegion.getWidth(), textureRegion.getHeight()) ); | |
*/ | |
#ifdef GL_FRAGMENT_PRECISION_HIGH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright © 2024 MGDS Studio. All rights reserved. | |
#ifdef GL_ES | |
#define LOWP lowp | |
precision mediump float; | |
#else | |
#define LOWP | |
#endif | |
const float VISIBLE_LINES_COUNT = 7.0; // Visible areas pieces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <chrono> | |
#include <thread> | |
void switchOnLeds(int firstLed, int lastLed); | |
void digitalWrite(int pin, bool statement); | |
int main() | |
{ | |
switchOnLeds(0, 4); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LedChainManager extends Manager{ | |
private LinuxRaspberryPiGpioManager linuxRaspberryPiGpioManager; | |
private int parameter1, parameter2; | |
private static LedStrip ledStrip; | |
private final int leds = 10; | |
public LedChainManager(LinuxRaspberryPiGpioManager linuxRaspberryPiGpioManager) { | |
this.linuxRaspberryPiGpioManager = linuxRaspberryPiGpioManager; | |
init(); |