Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Beginning game programming course  (Read 63453 times)

0 Members and 1 Guest are viewing this topic.

Vigo

  • the Scourage of Carpathia
  • Global Moderator
  • Trade Count: (+24)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6417
  • Last login:June 05, 2025, 05:38:45 pm
Re: Beginning game programming course
« Reply #200 on: March 03, 2015, 10:51:49 am »
It's pretty empowering. They should teach kids this stuff in school and not worry so much about date memorization and map colouring.

Heck, I think this should qualify as a math course in school.

Elbaid

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 42
  • Last login:February 28, 2017, 12:46:00 pm
Re: Beginning game programming course
« Reply #201 on: March 03, 2015, 12:16:02 pm »
They teach python language at some senior schools in UK these days. Don't know much about it though

JDFan

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3448
  • Last login:March 03, 2025, 10:29:54 am
  • I want to build my own arcade controls!
Re: Beginning game programming course
« Reply #202 on: March 03, 2015, 12:25:29 pm »
Was a bit bored today so redid the video with a background added.


Generic Eric

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4520
  • Last login:July 15, 2024, 09:18:25 pm
  • Restore! Don't maim for MAME, build from scratch!
    • forum.arcadecontrols.com/index.php/topic,143226.0.html
Re: Beginning game programming course
« Reply #203 on: March 03, 2015, 12:29:13 pm »
Was a bit bored today so redid the video with a background added.



Neat.

How do you think you would approach adding twinkling stars to background?  Or giving a planet a slow rotate?  Too soon?

JDFan

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3448
  • Last login:March 03, 2025, 10:29:54 am
  • I want to build my own arcade controls!
Re: Beginning game programming course
« Reply #204 on: March 03, 2015, 03:30:36 pm »
Neat.

How do you think you would approach adding twinkling stars to background?  Or giving a planet a slow rotate?  Too soon?

Shouldn't be too difficult figure just make one or 2 more background pics with the stars a different brightness and rotate through them as the game updates just like the movement of the sprites and it should look like twinkling for planet rotation placing the planet as a separate sprite image and rotating it a few degrees each update

Since you mentioned it had to try rotating the planet so here you go :



« Last Edit: March 03, 2015, 05:02:56 pm by JDFan »

Generic Eric

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4520
  • Last login:July 15, 2024, 09:18:25 pm
  • Restore! Don't maim for MAME, build from scratch!
    • forum.arcadecontrols.com/index.php/topic,143226.0.html
Re: Beginning game programming course
« Reply #205 on: March 03, 2015, 07:11:51 pm »
Cool.

JDFan

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3448
  • Last login:March 03, 2025, 10:29:54 am
  • I want to build my own arcade controls!
Re: Beginning game programming course
« Reply #206 on: March 03, 2015, 10:06:01 pm »
OK since Eric made me do it here is another update of assignment 2 with rotating planet background.




Generic Eric

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4520
  • Last login:July 15, 2024, 09:18:25 pm
  • Restore! Don't maim for MAME, build from scratch!
    • forum.arcadecontrols.com/index.php/topic,143226.0.html
Re: Beginning game programming course
« Reply #207 on: March 03, 2015, 10:11:17 pm »
OK since Eric made me do it here is another update of assignment 2 with rotating planet background.





Made you ;)

That looks great.  I need to  get cracking.  I was just thinking about the twinkling stars and I was reminded of a minute physics or vsauce vid about being at the center of the universe no matter which direction you looked.

arquillos

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:June 18, 2025, 07:03:59 am
Re: Beginning game programming course
« Reply #208 on: March 04, 2015, 02:31:24 am »
Is it just me or anybody else would like to read the "Teddy Bear" class from Week 2?

JDFan

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3448
  • Last login:March 03, 2025, 10:29:54 am
  • I want to build my own arcade controls!
Re: Beginning game programming course
« Reply #209 on: March 04, 2015, 07:18:52 am »
Is it just me or anybody else would like to read the "Teddy Bear" class from Week 2?

You can download his code - there are icons for the code and other things he uses like the slides and the videos themselves in the section where the videos are - just click on the code icons and the code he uses will download (most have both the initial code and final code for that lesson) - First download the relevent lecture final code - unzip the package to you VS projects folder - Launch VS - go to open project and navigate to the sln file of that project (you'll get a prompt warning to only open projects from reliable sources - click OK ( might get warning a second time if you do click ok again) that will open the project and you can then click on the TeddyBear.cs in solution Explorer and view the TeddyBear class. ie here is a pic of the code from lecture 5.4  opened on my system :
« Last Edit: March 04, 2015, 07:20:53 am by JDFan »

arquillos

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:June 18, 2025, 07:03:59 am
Re: Beginning game programming course
« Reply #210 on: March 04, 2015, 11:35:56 pm »
Thanks JDFan!
I really didnīt bother about that set of icons in the video lectures download page ;)

eds1275

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2165
  • Last login:June 13, 2025, 11:04:26 am
  • Rock and Roll!
Re: Beginning game programming course
« Reply #211 on: March 05, 2015, 11:55:55 am »
What are everyone's opinions on using a game engine like Unity, Unreal, or even Gamemaker? Do you consider it cheating?

lordnacho

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 509
  • Last login:January 21, 2023, 07:38:14 pm
Re: Beginning game programming course
« Reply #212 on: March 05, 2015, 12:03:58 pm »
Not cheating at all.  Why recreate the wheel when others have invested so much time.  Then you can focus on content.
Bigger companies use these, so why shouldn't independents.

Granted, I haven't looked at these engines, but maybe should.  How are they for 2d?

JDFan

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3448
  • Last login:March 03, 2025, 10:29:54 am
  • I want to build my own arcade controls!
Re: Beginning game programming course
« Reply #213 on: March 05, 2015, 12:04:14 pm »
What are everyone's opinions on using a game engine like Unity, Unreal, or even Gamemaker? Do you consider it cheating?

Nope -- all major games do it either using one of those or one that has been built over the years in house or a hybrid of the 2 -- why reinvent the wheel every time you want to do something  :dunno


eds1275

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2165
  • Last login:June 13, 2025, 11:04:26 am
  • Rock and Roll!
Re: Beginning game programming course
« Reply #214 on: March 05, 2015, 12:15:23 pm »
Well, Unity just changed it's name from Unity 3d to Unity. When you begin a project it lets you select 3d or 2d, and you can change the selection at any time. I have only run through the example project but it seems pretty good.

Space shooter:
http://unity3d.com/learn/tutorials/projects/space-shooter
Roguelike:
http://unity3d.com/learn/tutorials/projects/2d-roguelike
Tower Defense
http://unity3d.com/learn/tutorials/modules/beginner/2d/2d-overview

The reason I asked was because in the lectures Seņor T discussed writing that game from the ground up including custom tools that I think are found in any game engine.

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19959
  • Last login:June 16, 2025, 05:43:24 pm
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Re: Beginning game programming course
« Reply #215 on: March 05, 2015, 12:21:44 pm »
Good question, eds1275!

I don't think it's cheating. Sure, it's awesome to be able to build it from scratch, and I'm sure learning the fundamentals of coding will assist in development, but in the end, if these tools allow you to create the game you've always wanted to create... go for it!
***Build what you dig, bro. Build what you dig.***

melvinbates

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 106
  • Last login:April 26, 2023, 11:39:02 am
  • Another day in paradise
Re: Beginning game programming course
« Reply #216 on: March 05, 2015, 12:22:20 pm »
What are everyone's opinions on using a game engine like Unity, Unreal, or even Gamemaker? Do you consider it cheating?

It's easier to reach higher when you stand on the shoulders of giants :).  I've always considered the real art of game making (and programming in general) in using tools at hand to tell your unique story, solve a problem or create a new world.  If the reward is in the challenge then we should be using assembler or machine code to create them.   

I don't begrudge construction workers using front loaders instead of shovels...

eds1275

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2165
  • Last login:June 13, 2025, 11:04:26 am
  • Rock and Roll!
Re: Beginning game programming course
« Reply #217 on: March 05, 2015, 12:28:46 pm »
I don't begrudge construction workers using front loaders instead of shovels...

...slackers lol

I have been busy all week and have 2 bands in the studio tomorrow but I just read the assignment 2 notes and it looks like it will be a piece of cake compared to the first one. I want to get to all the labs if I can though!

lordnacho

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 509
  • Last login:January 21, 2023, 07:38:14 pm
Re: Beginning game programming course
« Reply #218 on: March 05, 2015, 12:43:53 pm »
This got me thinking, I'm going to check out Unity for my 2d game.  My kid was pretty into it and was drawing pics and planning stuff but lost interest pretty fast.  He's too young to look at programming so doesn't get why it's taking me so long to get a jump or fireball working. 

shponglefan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1600
  • Last login:December 15, 2022, 07:22:35 am
  • Correct horse battery staple
Re: Beginning game programming course
« Reply #219 on: March 05, 2015, 04:02:05 pm »
What are everyone's opinions on using a game engine like Unity, Unreal, or even Gamemaker? Do you consider it cheating?

Not at all.  Game design and asset creation is usually going to be somewhat engine independent.  So whether one builds their own or uses a pre-made one, the majority of the work doesn't change.

shponglefan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1600
  • Last login:December 15, 2022, 07:22:35 am
  • Correct horse battery staple
Re: Beginning game programming course
« Reply #220 on: March 05, 2015, 07:59:56 pm »
Well, Unity just changed it's name from Unity 3d to Unity. When you begin a project it lets you select 3d or 2d, and you can change the selection at any time. I have only run through the example project but it seems pretty good.

Space shooter:
http://unity3d.com/learn/tutorials/projects/space-shooter
Roguelike:
http://unity3d.com/learn/tutorials/projects/2d-roguelike
Tower Defense
http://unity3d.com/learn/tutorials/modules/beginner/2d/2d-overview

The reason I asked was because in the lectures Seņor T discussed writing that game from the ground up including custom tools that I think are found in any game engine.

Just took a look at those and I'm very impressed at the engine's flexibility.  I may have to give Unity a spin and see what it's like.

Generic Eric

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4520
  • Last login:July 15, 2024, 09:18:25 pm
  • Restore! Don't maim for MAME, build from scratch!
    • forum.arcadecontrols.com/index.php/topic,143226.0.html
Re: Beginning game programming course
« Reply #221 on: March 05, 2015, 08:28:49 pm »
What are everyone's opinions on using a game engine like Unity, Unreal, or even Gamemaker? Do you consider it cheating?
I assume you mean after coursea.  If so, absolutely not.  Something  like unity allows cross platform distribution right?

eds1275

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2165
  • Last login:June 13, 2025, 11:04:26 am
  • Rock and Roll!
Re: Beginning game programming course
« Reply #222 on: March 06, 2015, 12:23:53 am »
Yeah, spits out to 21 different platforms. It's not quite as easy as clicking go, but not too difficult. Setting and configuring touch inputs is the worst part of it. Then for each asset you can specify different parameters, for example when you build to android use this type of file compression etc etc and this style of efficient lighting.

lordnacho

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 509
  • Last login:January 21, 2023, 07:38:14 pm
Re: Beginning game programming course
« Reply #223 on: March 06, 2015, 12:08:03 pm »
I started a 2d project in Unity.  Yeah it's awesome. 
And definitely not cheating, I'm still writing code in C# but in a more structured way. 

In less time than I spent in XNA, i've got my wizard jumping around platforms.  I'll stick with the coursera course, since it's still relevant to learn but definitely going to keep running with Unity.

eds1275

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2165
  • Last login:June 13, 2025, 11:04:26 am
  • Rock and Roll!
Re: Beginning game programming course
« Reply #224 on: March 06, 2015, 12:38:31 pm »
careful, it's addicting... also (not sure if this will apply to you in a 2d game) the new lightmapper is crazy buggy. It looks good when it finally works though.

shponglefan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1600
  • Last login:December 15, 2022, 07:22:35 am
  • Correct horse battery staple
Re: Beginning game programming course
« Reply #225 on: March 07, 2015, 09:14:17 am »
Week three is up!

JDFan

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3448
  • Last login:March 03, 2025, 10:29:54 am
  • I want to build my own arcade controls!
Re: Beginning game programming course
« Reply #226 on: March 07, 2015, 09:27:30 am »
Week three is up!

Thanks for the heads up !

Also for those outside the US that don't follow Daylight Saving Time  - remember week 2 needs to be turned in by 11:00 tomorrow evening and we lose an hour tonight (Since Pacific time follows Daylight Saving Time ) so don't wait till the last minute to submit your work !

Vigo

  • the Scourage of Carpathia
  • Global Moderator
  • Trade Count: (+24)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6417
  • Last login:June 05, 2025, 05:38:45 pm
Re: Beginning game programming course
« Reply #227 on: March 07, 2015, 01:29:19 pm »
I'm not sure if I used the most effective programming, but I think I did assignment 2 just fine.


DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Beginning game programming course
« Reply #228 on: March 07, 2015, 04:54:36 pm »
Ive finished assignment 2, but haven't made a video yet.
I downloaded fraps (?) (per Dr T's suggestion), but haven't tried it yet.
Im working today but hopefully will get a chance to test it later tonight.
Ive watched all the lecture videos for week 3 (Thanks to a slow day at work.)

EDIT: That looks real good Vigo! I think I may have done mine correctly now, after watching yours.

EDIT AGAIN: My submitted project:

 
« Last Edit: March 08, 2015, 08:42:24 am by DaOld Man »

JDFan

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3448
  • Last login:March 03, 2025, 10:29:54 am
  • I want to build my own arcade controls!
Re: Beginning game programming course
« Reply #229 on: March 08, 2015, 01:05:20 am »
Ive finished assignment 2, but haven't made a video yet.
I downloaded fraps (?) (per Dr T's suggestion), but haven't tried it yet.
Im working today but hopefully will get a chance to test it later tonight.
Ive watched all the lecture videos for week 3 (Thanks to a slow day at work.)

EDIT: That looks real good Vigo! I think I may have done mine correctly now, after watching yours.

EDIT AGAIN: My submitted project:


Looks Good - If you want and have time to reupload here is a zip of your images with the white background removed so they'll look a bit better moving around the screen.

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Beginning game programming course
« Reply #230 on: March 08, 2015, 08:34:36 am »
Looks Good - If you want and have time to reupload here is a zip of your images with the white background removed so they'll look a bit better moving around the screen.

Thanks! Video above is now fixed. How did you remove the backgrounds?

shponglefan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1600
  • Last login:December 15, 2022, 07:22:35 am
  • Correct horse battery staple
Re: Beginning game programming course
« Reply #231 on: March 08, 2015, 08:54:04 am »
@DaOld Man: Can't see the video, it says it's set to private.

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Beginning game programming course
« Reply #232 on: March 08, 2015, 09:24:26 am »
@DaOld Man: Can't see the video, it says it's set to private.

DOH!! Forgot to publish it. See if it works now.

shponglefan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1600
  • Last login:December 15, 2022, 07:22:35 am
  • Correct horse battery staple
Re: Beginning game programming course
« Reply #233 on: March 08, 2015, 09:25:24 am »
^ All good now!  :)

JDFan

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3448
  • Last login:March 03, 2025, 10:29:54 am
  • I want to build my own arcade controls!
Re: Beginning game programming course
« Reply #234 on: March 08, 2015, 10:24:49 am »
Looks Good - If you want and have time to reupload here is a zip of your images with the white background removed so they'll look a bit better moving around the screen.

Thanks! Video above is now fixed. How did you remove the backgrounds?

In photoshop just opened a screenshot from your full window movie in a new window with Transparent background - outlined the image including background to get the size - cropped the image so just the sprite and white background where there - then used the Magic Wand tool set to contiguous (so it selects only the contiguous area not the entire window pixels in the selected color) to select the white background (yours were easy as the sprites had a black outline so did not have any white on the edges so the magic wand could be set with a decent tolerance and just select the whole background (sometimes you have to manually adjust the selection or tolerance to get just the background) then once it selects properly just press delete to get rid of the white leaving the sprite on a transparent background ( Sounds harder than it was as the entire process takes less than a minute or 2).

Then just had to send as a zip because posting to the forum adds back in the white background when you download!!
« Last Edit: March 08, 2015, 10:32:09 am by JDFan »

shponglefan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1600
  • Last login:December 15, 2022, 07:22:35 am
  • Correct horse battery staple
Re: Beginning game programming course
« Reply #235 on: March 08, 2015, 07:13:56 pm »
Crack at Assignment #3.  Admittedly I cheated and used an array for the rock variables instead of individual variables.  But using an array is just cleaner.



And here is a keener version of the same assignment.  ;D I was inspired by JDFan's rotating planets, so I added some random rotation as well as more random direction of movement.



« Last Edit: March 08, 2015, 07:55:26 pm by shponglefan »

lordnacho

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 509
  • Last login:January 21, 2023, 07:38:14 pm
Re: Beginning game programming course
« Reply #236 on: March 08, 2015, 09:01:46 pm »
Right off, I'm not feeling this assignment.  Too similar to the last one and forcing bad design on us

shponglefan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1600
  • Last login:December 15, 2022, 07:22:35 am
  • Correct horse battery staple
Re: Beginning game programming course
« Reply #237 on: March 08, 2015, 09:30:51 pm »
Right off, I'm not feeling this assignment.  Too similar to the last one and forcing bad design on us

Agreed, although I think it's largely a consequence of trying to introduce things in the order the course is structured.

eds1275

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2165
  • Last login:June 13, 2025, 11:04:26 am
  • Rock and Roll!
Re: Beginning game programming course
« Reply #238 on: March 08, 2015, 09:40:03 pm »
Just finished the assignment 2. I thought it was tough, I just had a few syntax errors but what I was doing was right. Just couldn't spot the problems...I drew my own crappy sprites. I also didnt have any screen cap software on this computer so I just set up a DSLR and took a short video that way.

Generic Eric

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4520
  • Last login:July 15, 2024, 09:18:25 pm
  • Restore! Don't maim for MAME, build from scratch!
    • forum.arcadecontrols.com/index.php/topic,143226.0.html
Re: Beginning game programming course
« Reply #239 on: March 08, 2015, 10:54:03 pm »
Well, I'm behind.

Not sure I'm gonna figure it out in time.  I wonder how big of hit I'm gonna take on this.