makuke1234 / pongd2d Goto Github PK
View Code? Open in Web Editor NEWA sophisticated C pong fork. D2D wrappers written in C++.
License: MIT License
A sophisticated C pong fork. D2D wrappers written in C++.
License: MIT License
Make scoring more fun, give points on whole game instead of the number of bounces
Since keyboard operations concerning paddle movement are done in the game loop itself (which speed depends on the frame rate), the paddle movement speed also depends on the frame rate. The higher the frame rate the higher the paddle speed.
At first, the ball should move in a random direction, moving paddle while colliding with ball, should affect balls direction.
Start a game, so that the ball is actually moving, and press alt F4.
You might execute d2dwrapper.cpp dxFactoryCreateRectangleGeometry, called from a thread in logic.c,
at the time logic->pong->dx.factory is already cleared.
On WM_CLOSE, you don't first shut down the thread.
Hello,
can you tell me which SDK version are you using, where did you get it...
I'm using Visual Studio Community 2022 and can't compile dwrite.h in C mode.
An example line from dwrite.h
interface DWRITE_DECLARE_INTERFACE("739d886a-cef5-47dc-8769-1a8b41bebbb0") IDWriteFontFile : public IUnknown
preprocessed to C++
struct __declspec(uuid("739d886a-cef5-47dc-8769-1a8b41bebbb0")) __declspec(novtable) IDWriteFontFile : public IUnknown
preprocessed to C
struct IDWriteFontFile : public IUnknown
and the part " : public IUnknown" gets in the way.
I have zero experience with C++, but it looks to me as this is a Microsoft bug, they simply forgot about C.
But then, how do you compile it?
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.