C
C#ā€¢15mo ago
Jack Badassson

ā” Making game aplication

I have project for college where I would have application, website and database all connected into one project. I came up with idea to make a game as application, website for registering, seeing game info and scores and database to just connect all data. It has to be somewhat sizeable project because it will span trough whole term and will work for few subjects. I am just not sure on what game to pick. I think it has to be singleplayer game so maybe something like maze solving game where you solve maze with keyboard. Maybe someone has other ideas or suggestions for this?
46 Replies
Jack Badassson
Jack BadasssonOPā€¢15mo ago
also because it involves mutliple courses so it must be interconnected but also one course requires to see 3 separate systems, I think making database and website wont be hard so it seems most work will involve about making the game
SinFluxx
SinFluxxā€¢15mo ago
$projects
MODiX
MODiXā€¢15mo ago
Collections of application ideas that anyone can solve in any programming language to improve coding skills: https://github.com/dotnet/dotnet-console-games https://github.com/karan/Projects https://github.com/florinpop17/app-ideas
SinFluxx
SinFluxxā€¢15mo ago
there may be some in there that provide some inspiration? but also don't cross post if you're already asking in chat šŸ™‚
Jack Badassson
Jack BadasssonOPā€¢15mo ago
I see these are console games I also made one last year but I wonder how hard would it be to make something similar in like window form
SinFluxx
SinFluxxā€¢15mo ago
yeah they are console games, but you were just asking for an idea for a game, there's no reason you can't take the general idea for one of those and adapt it
Jack Badassson
Jack BadasssonOPā€¢15mo ago
so it wouldnt be that hard to make them in more visual form Slide puzzle looks interesting and if I make it in forms I can make it as picture instead of just number I think I am gonna try that one
Iron
Ironā€¢15mo ago
You can 2d games in forms using ex pictureBox and sprites etc and some game engine libraries , not sure which one atm but i did it long time ago
Buddy
Buddyā€¢15mo ago
Note that Windows Forms has limited support for transparency and is slow as dirt compared to for example WPF
Jack Badassson
Jack BadasssonOPā€¢15mo ago
What is WPF? I havent done much graphical looking things and window forms looked simple
Iron
Ironā€¢15mo ago
Maybe start with some images and pictures. Then move over to 2d games using a 2d engine
Buddy
Buddyā€¢15mo ago
It stands for Windows Presentation Foundation - Which is a GUI Framework using C# and XAML.
Jack Badassson
Jack BadasssonOPā€¢15mo ago
Well yeah for starters I will test it out but I need to know with which one I should begin. So WPF is just better overall?
Buddy
Buddyā€¢15mo ago
For Windows, yes. It is a framework exclusive to Windows, it is not cross-platform. But so is Windows Forms. WPF does have a learning curve if it's your first time with a XAML based GUI Framework $rulesofwpf
MODiX
MODiXā€¢15mo ago
Rules of WPF:

āŒ Avoid the WPF Designer to eliminate a category of confusing bugs
āŒ Don't rely on Margin as the primary tool for layouts
āŒ Avoid writing UserControls or subclassing to extend a default control -- use Behaviors instead (Microsoft.Xaml.Behaviors.Wpf)

āœ… Write XAML by hand and autoformat with "Ctrl K,D" or XAML Styler
āœ… Rely upon XAML Hot Reload to design your app's UI at runtime
āœ… Use layout controls (Grid, DockPanel, etc) to support proper resizing
āœ… Use data binding to eliminate glue code and state synchronization issues
āœ… Use collection controls and DataTemplate to dynamically create lists of controls
āœ… Learn MVVM to create maintainable apps
āœ… Use the Dispatcher to update controls from non-UI threads
āœ… WPF's default controls can be easily modernized via $wpfuilibs
āœ… Include relevant XAML, code-behind, and ViewModel code for questions when possible
Rules of WPF:

āŒ Avoid the WPF Designer to eliminate a category of confusing bugs
āŒ Don't rely on Margin as the primary tool for layouts
āŒ Avoid writing UserControls or subclassing to extend a default control -- use Behaviors instead (Microsoft.Xaml.Behaviors.Wpf)

āœ… Write XAML by hand and autoformat with "Ctrl K,D" or XAML Styler
āœ… Rely upon XAML Hot Reload to design your app's UI at runtime
āœ… Use layout controls (Grid, DockPanel, etc) to support proper resizing
āœ… Use data binding to eliminate glue code and state synchronization issues
āœ… Use collection controls and DataTemplate to dynamically create lists of controls
āœ… Learn MVVM to create maintainable apps
āœ… Use the Dispatcher to update controls from non-UI threads
āœ… WPF's default controls can be easily modernized via $wpfuilibs
āœ… Include relevant XAML, code-behind, and ViewModel code for questions when possible
Jack Badassson
Jack BadasssonOPā€¢15mo ago
What I am doing shouldnt be too complex visually Just moving picture from place to place
Buddy
Buddyā€¢15mo ago
Go for single player as multiplayer is very complicated unless you have experience in that field previously. As my name suggests
Jack Badassson
Jack BadasssonOPā€¢15mo ago
Yeah I never planned to make multiplayer I mean this game cant really be played multiplayer
Buddy
Buddyā€¢15mo ago
As for the game itself, just make something you enjoy to play. If you like roguelites, go for roguelite. As long as you don't overcomplicate the game, it should go great.
Jack Badassson
Jack BadasssonOPā€¢15mo ago
I decided to make slide puzzle Thats why I want to use something more visual than console I could make roguelike on console I made worms on console last year
Buddy
Buddyā€¢15mo ago
WPF is way more modern and allows much greater customization, but as mentioned it comes with a learning curve. You should not use the designer in WPF as it's terrible and can easily break your layout. while Windows Forms lets you quickly prototype it. It's slower, less customization, and has limited transparency support. It is however easy to understand.
Jack Badassson
Jack BadasssonOPā€¢15mo ago
I am not gonna make anything too big But I will need extra window to login for user Then it is just game, username and timer probably Maybe another pop out window once player wins
Buddy
Buddyā€¢15mo ago
Right. Do you have a deadline for it?
Jack Badassson
Jack BadasssonOPā€¢15mo ago
It is whole semester project
Buddy
Buddyā€¢15mo ago
I see, then you'll be fine šŸ™‚
Jack Badassson
Jack BadasssonOPā€¢15mo ago
It is gonna be in 3 subjects
Buddy
Buddyā€¢15mo ago
Good luck! šŸŽ‰
Jack Badassson
Jack BadasssonOPā€¢15mo ago
Thanks
Buddy
Buddyā€¢15mo ago
Any other question you may have or has been unanswered?
Jack Badassson
Jack BadasssonOPā€¢15mo ago
There will always be things to ask once I begin doing it I cant even start it yet only need to send theme and description to be approved but also need to say what I might use to make project
Iron
Ironā€¢15mo ago
Use https://www.draw.io to plan your project šŸ™‚
Accord
Accordā€¢15mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Jack Badassson
Jack BadasssonOPā€¢15mo ago
I have been thinking about image Lets say I get squire image does C# even have capabilies to cut image? I would get squire image but then I would need to cut it into 9, 16 or 25 squires
Iron
Ironā€¢15mo ago
C# can do most things. You would take a bitmap and then cut it into set amount of pieces using a sort of algorithm and then use the output for something , why do you want to cut one square image ? And what do you want to do with the pieces ?
Jack Badassson
Jack BadasssonOPā€¢15mo ago
It is for sliding puzzle game I will have website where users upload image, i will have to force it into squire somehow and they choose 9, 16 or 25 mode. It all gets send to DB, then user logs into game app and it gets loaded So my app should cut given image into given piece option
Kouhai
Kouhaiā€¢15mo ago
You might wanna take a look at https://github.com/SixLabors/ImageSharp
GitHub
GitHub - SixLabors/ImageSharp: :camera: A modern, cross-platform, 2...
:camera: A modern, cross-platform, 2D Graphics library for .NET - GitHub - SixLabors/ImageSharp: :camera: A modern, cross-platform, 2D Graphics library for .NET
Jack Badassson
Jack BadasssonOPā€¢15mo ago
But do I really need it to just cut squires out of squires? Maybe bitmap is enough
Kouhai
Kouhaiā€¢15mo ago
Well... Imagesharp would it very easy to segment an image Also if the user uploads a PNG/JPG image you can't just read the bytes from it as a bitmap directly You have to decode them to get the actual pixel data
Jack Badassson
Jack BadasssonOPā€¢15mo ago
but if image is in database it is going to be in code form already right
Iron
Ironā€¢15mo ago
Try with Imagesharp, nothing wrong with using useful libraries to achieve what you want to do. And you dont have to save the images to a database, you could save the separate parts of the image as files and then load them
Kouhai
Kouhaiā€¢15mo ago
I'm not sure I understand what you meant by "code form" But Imagesharp can directly operate on bytes arrays and streams
Jack Badassson
Jack BadasssonOPā€¢15mo ago
well I must use database I am just not sure if I should try to save images directly in database or just save images links there I dont know which option would be better to later use them in C#
Iron
Ironā€¢15mo ago
Save the image path in the Database as saving pictures to dB is not recommended
Jack Badassson
Jack BadasssonOPā€¢15mo ago
I talked with someone they suggested something similar in website to upload file just to my HDD and give it some special name then in database I would save that name so in game app I can search the folder for that picture normally I would need some cloud or upload service but this is all going to be on one PC anyway
Kouhai
Kouhaiā€¢15mo ago
Yes, it's better to save the image path to the DB and save the actual image data in a file
Accord
Accordā€¢15mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server