Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Guest  
#1 Posted : Sunday, February 24, 2013 10:46:59 AM(UTC)
Guest

Joined: 8/20/2011(UTC)
Posts: 13

Hi DeltaEngine Team,

I am new to your platform and just downloaded your most recent version of the engine and now play around with the Blocks demo.

While doing so, I found that there is a small issue with the Breakout source code.

The paddle.cs has the following code:

var yPosition = renderer.Screen.GetInnerPoint(0.5f, 0.9f).Y;

I think it needs to be changed to

Code:
var yPosition = renderer.Screen.GetInnerPoint(new Point(0.5f, 0.9f)).Y;


At least this works for me where as the firstone gives me a compiler error.

As I want to learn more about the DE and how it works, do you also share the code of the Blocks game?

Thanks a lot,
Oliver

Wanna join the discussion?! Login to your forum accountregister a new account. Or Connect via Facebook Twitter Google

Offline Benjamin  
#2 Posted : Sunday, February 24, 2013 11:47:22 AM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
The GetInnerPoint overload with x/y was removed, but the Paddle.cs code was changed as well:
https://github.com/Delta...mples/Breakout/Paddle.cs

Where did you get your Breakout source code? Is it maybe outdated?

Otherwise good fix, it is exactly the change required to make the old code work again.
Offline Benjamin  
#3 Posted : Sunday, February 24, 2013 11:49:17 AM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
Btw: The Breakout game has not been updated to RelativeScreenSpace yet (a new class available in DeltaEngine.Rendering), which simplifies a lot of the drawing code of the sample game. This and some other code cleanup is coming in v0.9.7.3 in a few days.
Guest  
#4 Posted : Sunday, February 24, 2013 12:01:04 PM(UTC)
Guest

Joined: 8/20/2011(UTC)
Posts: 13

Originally Posted by: Benjamin Nitschke Go to Quoted Post
Where did you get your Breakout source code? Is it maybe outdated?



I got it from the .zip download (version 0.9.7.2; folder DeltaEngine_0.9.7.2\VisualStudioTemplates\Delta Engine)


Now, I downloaded it from github and there I also found the Blocks code!

Edited by user Sunday, February 24, 2013 12:12:13 PM(UTC)  | Reason: Not specified

Offline Benjamin  
#5 Posted : Sunday, February 24, 2013 12:10:55 PM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
I see, the Visual Studio Template is outdated. Good catch, will be fixed asap.
Guest  
#6 Posted : Sunday, February 24, 2013 12:25:59 PM(UTC)
Guest

Joined: 8/20/2011(UTC)
Posts: 13

Hi Benjamin,

I downloaded now the entire code from the github site. (Version 0.9.7.2)

When I tried to compile the Blocks sample I found out that the folder Content does not include any files (pictures) for the Blocks game. For the other samples, the content is included.

Can you check this as well?

Thanks for your support,
Oliver
Offline Benjamin  
#7 Posted : Sunday, February 24, 2013 8:56:10 PM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
Subfolders for content are not really supported and we had to build the installer and zip file again because the build server did not include them as well. Please just download the zip or installer and copy the missing content from there.

In the next release the subfolder will be gone (or we support subfolders, but that is highly unlikely as a flat structure seemed to be a good solution in v0.9.5 and simplified lots of things).
Rss Feed  Atom Feed
Users browsing this topic
OceanSpiders 2.0
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2018, Yet Another Forum.NET
This page was generated in 0.105 seconds.