simplerr / simply2d Goto Github PK
View Code? Open in Web Editor NEWA basic 2D platform game developed in C++ with DirectX
Home Page: simplers.org
A basic 2D platform game developed in C++ with DirectX
Home Page: simplers.org
When the mouse moves at the startup for the game then the coordinates fails hard.
The level gets saved when one presses the "test" button. Shouldn't be like that since it's just a test >_>
When the camera gets moved fast and the cursor get's "outside" the window then the coordinates get wrong.
This is because dx can be > the value left to the margin.
The camera fixes this by the addMovement() function, the mouse doesn't.
Shouldn't pass .6 ms/frame.
Now exceeds 1ms/frame sometimes, find out why.
Fix some if statements. The editors code is really getting big, is there some solution to handle certain things outside the editor? Like drawing effects, moving, scaling ...
If you move a platform rapidly over a snapping point then the (x,y) of the mouse and active object will differ. It gets like that if you move the object diagonally through another object.
It's minimal and maybe not noticeable, but it's a bug!
Stuff needs to be added here. For example the mouse position gets screwed up when the window is lost, more things as well..
Should be some kind of interface that adds the desired effects to the object when they get drawed in the editor.
if(side == 0) // the first point must get connected to the last
{
axis.x = -(polygonA->pointList[polygonA->sides-1].y - polygonA->pointList[0].y);
axis.y = polygonA->pointList[polygonA->sides-1].x - polygonA->pointList[0].x;
}
else
{
axis.x = -(polygonA->pointList[side].y - polygonA->pointList[side-1].y);
axis.y = polygonA->pointList[side-1].x - polygonA->pointList[side].x;
// this makes the normal of the bottom horizontal line < 0
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.