Posts

How To Set Up SDL 2 In CodeBlocks On Windows

Image
Setting up SDL 2 with CodeBlocks might be a real pain unless you know the right way to do it. When I first started working with SDL 2 I had to suffer a lot. Many an hour was spent on researching how to fix the errors shown by the CodeBlocks IDE (Integrated Development Environment). I HAD NO CLUE! But, I've learned it the hard way and I'm writing this blog so that you may set up Simple DirectMedia Layer conveniently and begin creating cool applications with it. What is SDL? The full form of SDL  is Simple DirectMedia Layer .  "Simple DirectMedia Layer is a cross-platform software development library created to provide hardware abstraction layer for computer multimedia hardware components..."   Courtesy:  Wikipedia: SDL Simply put, SDL was created in order to control things like graphics, sound, keyboards, joysticks etc. It's an API (Application Program Interface) that facilitates the process of interacting with the mentioned hardware features usin

Simple Tic Tac Toe (two players) game development with Java programming language.

Image
Introduction The game which I've built using Java  programming language is played between two players and it's fairly simple. It has two classes - Main.java and GameBoard.java. The class,  GameBoard.java contains the necessary constructor and methods and in the Main.java  class, a new instance of the GameBoard.java class is created to start the game. There is a video at the end of this blog where you can see how the game would look like in the end. Code This is how in the end the game would look like... It's not much. But, I believe building such small projects may help those who are getting started with object-oriented programming to grasp the major concepts of it. HAPPY CODING!