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
using UnityEngine; | |
using UnityEngine.UI; | |
public class ProgressBar : MonoBehaviour | |
{ | |
public Slider progressBar; // The UI slider component | |
public int currentLevel = 1; | |
public int maxLevel = 100; | |
private int progressInCurrentLevel = 0; // Progress within the current level | |
private int maxProgressInLevel = 10; // Maximum progress within a level before it resets |
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
using UnityEngine; | |
using Firebase.Extensions; | |
using Firebase; | |
public interface IAnalyticsEvents | |
{ | |
public abstract void CurrentGameType(string gameType); | |
public abstract void OnLevelComplete(); | |
public abstract void OnSessionStart(string gameType); | |
public abstract void OnSessionEnd(string gameType); |
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
using System; | |
using UnityEngine; | |
using GoogleMobileAds.Api; | |
namespace GlobalScripts | |
{ | |
public class SholoGutiAdsManager : MonoBehaviour | |
{ | |
private BannerView bannerView; | |
private InterstitialAd interstitialAd; |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using System.IO; | |
using System.Runtime.Serialization.Formatters.Binary; | |
namespace Ludo | |
{ | |
public static class PixelLabDataManager | |
{ |
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
/* eslint-disable @typescript-eslint/indent */ | |
import { scene } from 'components/controllers/SceneController'; | |
import Phaser from 'phaser'; | |
import { PieIndicatorConfig } from 'types'; | |
export default class PieIndicator extends Phaser.GameObjects.Graphics { | |
x: number; | |
y: number; | |
radius: number; | |
alpha: number; |
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
import Parcels from 'components/phaser/Parcels'; | |
import { Damage, Parcel, SelectedPlayer, Vector2 } from 'types'; | |
import _ from 'lodash'; | |
import { scene } from 'components/controllers/SceneController'; | |
import { TILE_SIZE } from 'shared_code/constants/const.game'; | |
import Players from 'components/phaser/Players'; | |
import GlobalState from 'contexts/GlobalState'; | |
import GameController from 'components/controllers/GameController'; | |
import Router from 'next/router'; | |
import InputController from 'components/controllers/inputController'; |
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
/* eslint-disable @typescript-eslint/indent */ | |
import { scene } from 'components/controllers/SceneController'; | |
import Phaser from 'phaser'; | |
export interface PieIndicatorConfig extends Phaser.GameObjects.Graphics { | |
x: number; | |
y: number; | |
radius: number; | |
alpha: number; | |
borderThickness: number; |
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
const x = this.cameras.main.centerX; | |
const y = 500; | |
const radius = 200; | |
const borderThickness = 8; | |
const bgColor = 0x3c3d3c; | |
const borderColor = 0xf2501c; | |
const indicatorColor = 0xe91646; | |
const data = { x, y, radius, borderThickness, bgColor, borderColor, indicatorColor }; | |
const ttlContainer = this.addTtlIndicator(this, data); |
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
import { scene } from 'components/controllers/SceneController'; | |
import Phaser from 'phaser'; | |
export interface HealthBarType extends Phaser.GameObjects.Graphics { | |
bar: Phaser.GameObjects.Graphics; | |
x: number; | |
y: number; | |
value: number; | |
percentage: number; | |
getDamage: (amount: number) => void; | |
getCurrentHealth: () => number; |
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
import Parcels from 'components/phaser/Parcels'; | |
import { Vector2 } from 'types'; | |
import _ from 'lodash'; | |
import { scene } from 'components/controllers/SceneController'; | |
import { GAME_CONFIG, TILE_SIZE } from 'shared_code/constants/const.game'; | |
import Players from 'components/phaser/Players'; | |
import GlobalState from 'contexts/GlobalState'; | |
import GameController from 'components/controllers/GameController'; | |
const DEFAULT_ZOOM = 1; |
NewerOlder