mirror of
https://github.com/TheRavenwoodArts/LunaLightXMG.git
synced 2026-07-30 21:05:02 -07:00
Ultra minor updates. Added an notes folder.
This commit is contained in:
+4
-1
@@ -360,4 +360,7 @@ MigrationBackup/
|
||||
.ionide/
|
||||
|
||||
# Fody - auto-generated XML schema
|
||||
FodyWeavers.xsd
|
||||
FodyWeavers.xsd
|
||||
|
||||
# vscode history
|
||||
.history/
|
||||
|
||||
@@ -8,7 +8,7 @@ using System.Collections.Generic;
|
||||
|
||||
namespace LunaLightXMG
|
||||
{
|
||||
public class Game1 : Game
|
||||
public class LunaLightGame : Game
|
||||
{
|
||||
// Class Objects
|
||||
private Player player;
|
||||
@@ -21,7 +21,9 @@ namespace LunaLightXMG
|
||||
// Native retro scale
|
||||
private int retroWidth = 320;
|
||||
private int retroHeight = 180;
|
||||
|
||||
// private int retroWidth = 480;
|
||||
// private int retroHeight = 270;
|
||||
|
||||
// Test Render Target
|
||||
private RenderTarget2D renderTarget;
|
||||
private Rectangle renderDestination;
|
||||
@@ -46,7 +48,7 @@ namespace LunaLightXMG
|
||||
// Utility
|
||||
private static Random random;
|
||||
|
||||
public Game1()
|
||||
public LunaLightGame()
|
||||
{
|
||||
graphics = new GraphicsDeviceManager(this);
|
||||
Content.RootDirectory = "Content";
|
||||
@@ -173,7 +175,7 @@ namespace LunaLightXMG
|
||||
base.Draw(gameTime);
|
||||
}
|
||||
|
||||
// Method Implementation -------------------------------------------------------------------------------
|
||||
#region Methods
|
||||
private List<Enemy> SpawnEnemies(int numberOfEnemies) {
|
||||
List<Enemy> enemies = new List<Enemy>();
|
||||
for (int i = 0; i < numberOfEnemies; i++)
|
||||
@@ -214,7 +216,7 @@ namespace LunaLightXMG
|
||||
private void CalculateRenderDestination()
|
||||
{
|
||||
Point size = GraphicsDevice.Viewport.Bounds.Size;
|
||||
|
||||
|
||||
// Calculate the integer scale factor
|
||||
int scaleX = size.X / renderTarget.Width;
|
||||
int scaleY = size.Y / renderTarget.Height;
|
||||
@@ -260,5 +262,7 @@ namespace LunaLightXMG
|
||||
// Regenerate platforms
|
||||
platforms = PlatformGenerator.CreatePlatforms(numOfPlatforms);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -52,7 +52,7 @@ namespace LunaLightXMG
|
||||
new Platform(new Vector2(288, 164), 16, 16),
|
||||
new Platform(new Vector2(304, 164), 16, 16)
|
||||
};
|
||||
|
||||
|
||||
// Left side wall (static)
|
||||
List<Platform> leftSidePlatforms = new List<Platform>
|
||||
{
|
||||
@@ -69,7 +69,7 @@ namespace LunaLightXMG
|
||||
new Platform(new Vector2(0, 132), 16, 16),
|
||||
new Platform(new Vector2(0, 148), 16, 16)
|
||||
};
|
||||
|
||||
|
||||
// Right side wall (static)
|
||||
List<Platform> rightSidePlatforms = new List<Platform>
|
||||
{
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
|
||||
using var game = new LunaLightXMG.Game1();
|
||||
using var game = new LunaLightXMG.LunaLightGame();
|
||||
game.Run();
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
## March 15th, 2025 - JME
|
||||
|
||||
Currentlly the camera is static, or non-existtent really.. we need to create a camera class that handles creating and managing a viewport that follows the player wihin the level.
|
||||
|
||||
- If the level is the same size as te viewport then the camera is static.
|
||||
|
||||
- We also want to have a zoom capability that zooms between 320x180 and 480x270. The current view is 320x180.
|
||||
|
||||
- We should be able to use a lot of the code from LunaLightGML however we will need to create the class objects and restructure to work with MonoGame.
|
||||
|
||||
Reference in New Issue
Block a user