-
-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Torque2D Roll in #784
Open
marauder2k7
wants to merge
15
commits into
TorqueGameEngines:Preview4_0
Choose a base branch
from
marauder2k9-torque:T2DRollIn
base: Preview4_0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Torque2D Roll in #784
marauder2k7
wants to merge
15
commits into
TorqueGameEngines:Preview4_0
from
marauder2k9-torque:T2DRollIn
Conversation
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
-Added: Box2D -Added: Base t2d assets
-Setup: Initial render logic for deciding if a scene is 2d or not -Setup: Renderstyle for torque2d
-Changed: Torque2D rendering now driven from scene rather than renderStyle This allows the level to control what the sceneManager renders everything as an then the TSctrls reflect that choice.
-Added: Sprite object (just renders a quad for now) -Added: Torque2D Object Type
:Sprite test
...... yeah it was easier than i thought.
-Added: T2D Specific render bin -Added: SpriteShader with lighting and normal -Added: Normal maps to the sprite asset TODO: fix light attenuation
-ADDED: 2D per pixel lighting for shader objects. -ADDED: 2d Normal mapping. -ADDED: Ambient lighting to sprite objects.
Cleanup of unused shader params. Final commit before this becomes base for all t2d objects.
Fix: Box2D Couldn't find box2d config Fix: SDL Could not compile bug
marauder2k7
commented
May 21, 2022
Engine/lib/sdl/cmake/sdlchecks.cmake
Outdated
@@ -733,7 +733,6 @@ macro(CheckCOCOA) | |||
endif() | |||
if(HAVE_COCOA) | |||
file(GLOB COCOA_SOURCES ${SDL2_SOURCE_DIR}/src/video/cocoa/*.m) | |||
set_source_files_properties(${COCOA_SOURCES} PROPERTIES LANGUAGE C) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the fix found by Az to get sdl to compile on macos
marauder2k7
commented
May 21, 2022
@@ -249,7 +249,8 @@ class GFXDevice | |||
{ | |||
RS_Standard = 0, | |||
RS_StereoSideBySide = (1<<0), // Render into current Render Target side-by-side | |||
RS_StereoSeparate = (1<<1) // Render in two separate passes (then combined by vr compositor) | |||
RS_StereoSeparate = (1<<1), // Render in two separate passes (then combined by vr compositor) | |||
RS_Torque2D = (1<<2) // Render in layers for torque2d. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change is no longer needed, may become useful though later on.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Nowhere near ready for release or commit:
TODO:
Update spriteObject to be a base object for all t2d objects.
ImageFrameProvider class for providing the frames for sprite assets and animation assets.
Add box2d physics.
improve the editor (atm there is no zooming in a t2d scene, editor needs to be set to topview so weird movement doesn't happen etc.)
physics editor.
joints editor.
add player class.
add support for animations (kinda already there).
add imageFrameProvider (a single class to reference for a frames texel info).
add scroller and parralax object.
add behaviors.