Skip to content

Commit

Permalink
Version 0.4 Alpha
Browse files Browse the repository at this point in the history
- SolPlay now lives over multiple scenes
- Fixed NFT minting by adding freeze authority
- Updated Frictionless framework
- Many bug fixes and improvements
  • Loading branch information
Woody4618 committed Oct 27, 2022
1 parent 8032721 commit 1c3eff0
Show file tree
Hide file tree
Showing 666 changed files with 31,850 additions and 3,322 deletions.
File renamed without changes.
File renamed without changes.
25 changes: 0 additions & 25 deletions Assets/SolPlay/DeeplinksNftExample/Scripts/IapService.cs

This file was deleted.

65 changes: 0 additions & 65 deletions Assets/SolPlay/DeeplinksNftExample/Scripts/LoginScreen.cs

This file was deleted.

20 changes: 0 additions & 20 deletions Assets/SolPlay/DeeplinksNftExample/Scripts/MainInstaller.cs

This file was deleted.

This file was deleted.

24 changes: 0 additions & 24 deletions Assets/SolPlay/DeeplinksNftExample/Scripts/TabBarComponent.cs

This file was deleted.

32 changes: 0 additions & 32 deletions Assets/SolPlay/DeeplinksNftExample/Scripts/TokenScreen.cs

This file was deleted.

91 changes: 0 additions & 91 deletions Assets/SolPlay/DeeplinksNftExample/Scripts/XpWidget.cs

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
18 changes: 10 additions & 8 deletions Assets/SolPlay/FlappyGame/Runtime/Scripts/Core/GameMode.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using System.Collections;
using Frictionless;
using SolPlay.Deeplinks;
using SolPlay.Scripts.Services;
using SolPlay.Scripts.Ui;
using UnityEngine;
using UnityEditor;

Expand Down Expand Up @@ -40,8 +42,8 @@ private void Awake()

private void Start()
{
ServiceFactory.Instance.Resolve<MessageRouter>().AddHandler<NftSelectedMessage>(OnNftSelectedMessage);
var selectedNft = ServiceFactory.Instance.Resolve<NftService>().SelectedNft;
MessageRouter.AddHandler<NftSelectedMessage>(OnNftSelectedMessage);
var selectedNft = ServiceFactory.Resolve<NftService>().SelectedNft;
if (selectedNft != null)
{
_playerController.SetSpriteFromNft(selectedNft);
Expand Down Expand Up @@ -80,7 +82,7 @@ public void StartGame()
_playerController.Flap();
_pipeGenerator.StartSpawn();
_screenController.ShowInGameHud();
ServiceFactory.Instance.Resolve<MessageRouter>().RaiseMessage(new ScoreChangedMessage()
MessageRouter.RaiseMessage(new ScoreChangedMessage()
{
NewScore = Score
});
Expand Down Expand Up @@ -110,7 +112,7 @@ private IEnumerator RestartGameCoroutine()
_screenController.ShowStartHud();
Score = 0;
Boost = 0;
ServiceFactory.Instance.Resolve<MessageRouter>().RaiseMessage(new ScoreChangedMessage()
MessageRouter.RaiseMessage(new ScoreChangedMessage()
{
NewScore = Score
});
Expand Down Expand Up @@ -142,7 +144,7 @@ public void ResumeGame()

public void IncrementScore()
{
var nftService = ServiceFactory.Instance.Resolve<NftService>();
var nftService = ServiceFactory.Resolve<NftService>();
int totalScoreIncrease = 0;
if (nftService.SelectedNft != null && nftService.IsBeaverNft(nftService.SelectedNft))
{
Expand All @@ -155,7 +157,7 @@ public void IncrementScore()

Score += totalScoreIncrease;

ServiceFactory.Instance.Resolve<MessageRouter>().RaiseMessage(new ScoreChangedMessage()
MessageRouter.RaiseMessage(new ScoreChangedMessage()
{
NewScore = Score
});
Expand All @@ -165,13 +167,13 @@ public void IncrementBoost()
{
Boost++;
Score += Boost;
ServiceFactory.Instance.Resolve<MessageRouter>().RaiseMessage(new BlimpSystem.ShowBlimpMessage($"+{Boost}", BlimpSystem.BlimpType.Boost));
MessageRouter.RaiseMessage(new BlimpSystem.ShowBlimpMessage($"+{Boost}", BlimpSystem.BlimpType.Boost));
}

public void StopBoost()
{
Boost = 0;
ServiceFactory.Instance.Resolve<MessageRouter>().RaiseMessage(new BlimpSystem.ShowBlimpMessage($"missed", BlimpSystem.BlimpType.Boost));
MessageRouter.RaiseMessage(new BlimpSystem.ShowBlimpMessage($"missed", BlimpSystem.BlimpType.Boost));
}

public void QuitGame()
Expand Down
Loading

0 comments on commit 1c3eff0

Please sign in to comment.