Author Topic: What's the best way to start programming?  (Read 1703 times)

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: What's the best way to start programming?
« Reply #30 on: February 20, 2012, 01:36:08 AM »
Most of the comments in my code are vulgar/politically incorrect
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

nodtveidt

  • Guest
Re: What's the best way to start programming?
« Reply #31 on: February 20, 2012, 01:44:22 AM »
I usually use goofy variable names... "int ponyass, buttpower, xposofdoom;"

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: What's the best way to start programming?
« Reply #32 on: February 20, 2012, 01:49:49 AM »
oh, i keep the variable names pretty standard, but sometimes use things like "enemyBeDead" or "rives" instead of lives, and shit.

my comments though, lol.

/* stupid wrapping bullshit */

/* this makes it so the f*ckin dickhead sprite stops being a retard and flying off screen */

my favorite comment recently has gotta be

/* this means the human has been gangraped by aliens and is a mutant bastard now. */
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

nodtveidt

  • Guest
Re: What's the best way to start programming?
« Reply #33 on: February 20, 2012, 03:59:53 AM »
I've completed four tutorials as of now.

Tutorial 1 introduces the basic structure of a HuC program (introduces #include and main()) and shows how to use put_string(), some color bits, and loading a font.
Tutorial 2 introduces variables, put_number(), and basic C-style calculations.
Tutorial 3 introduces sprites, const arrays, nested for() loops, and random().
Tutorial 4 introduces joypad manipulation, basic background stuff, custom functions, basic logic, and pseudoinstructions.

I'm going to work on this more over the next few days. It's high time we had some good HuC tutorials, so I'll do what I can.

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: What's the best way to start programming?
« Reply #34 on: February 20, 2012, 04:11:49 AM »
You should add in some explanation of the "how much data to load" for sprites.

[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

nodtveidt

  • Guest
Re: What's the best way to start programming?
« Reply #35 on: February 20, 2012, 04:24:19 AM »
I'm going to do that in tutorial 5.

nodtveidt

  • Guest
Re: What's the best way to start programming?
« Reply #36 on: February 20, 2012, 05:48:16 AM »
Tutorial 5 is up and has that important detail. :)

Vecanti

  • Hero Member
  • *****
  • Posts: 629
Re: What's the best way to start programming?
« Reply #37 on: February 21, 2012, 07:28:28 PM »
Great tutorials.  This is just what I was looking for.  I even got Bonk sped up and jumping around.  Can't wait for the next one.

http://www.2shared.com/file/SNnZ26tT/bonktest.html

spenoza

  • Hero Member
  • *****
  • Posts: 2751
Re: What's the best way to start programming?
« Reply #38 on: February 22, 2012, 05:43:56 AM »
Gonna have to look at these tutorials and play with HuC once I have some down time from applying for jobs.
<a href="http://www.pcedaisakusen.net/2/34/103/show-collection.htm" class="bbc_link" target="_blank">My meager PC Engine Collection so far.</a><br><a href="https://www.pcenginefx.com/forums/" class="bbc_link" target="_blank">PC Engine Software Bible</a><br><a href="http://www.racketboy.com/forum/" c

spenoza

  • Hero Member
  • *****
  • Posts: 2751
Re: What's the best way to start programming?
« Reply #39 on: February 22, 2012, 06:38:18 AM »
Great tutorials.  This is just what I was looking for.  I even got Bonk sped up and jumping around.  Can't wait for the next one.

http://www.2shared.com/file/SNnZ26tT/bonktest.html


And since you've mentioned Bonk, now I suddenly have new gameplay ideas for a new Bonk game. Crap...
<a href="http://www.pcedaisakusen.net/2/34/103/show-collection.htm" class="bbc_link" target="_blank">My meager PC Engine Collection so far.</a><br><a href="https://www.pcenginefx.com/forums/" class="bbc_link" target="_blank">PC Engine Software Bible</a><br><a href="http://www.racketboy.com/forum/" c

esteban

  • Hero Member
  • *****
  • Posts: 24063
Re: What's the best way to start programming?
« Reply #40 on: February 22, 2012, 07:01:25 AM »
I've converted the two original tutorials I did for the hucdoc project, and just added a third. The tutorials cover both C coding as well as HuC specific stuff. So far, I'm covering the basics... variables and loops mainly on the C side, and basic sprite handling, colors, and text display stuff on the HuC side. And I do it with a lot of corny, stupid attempts at humor to make it less boring. :)


This is why we love you .

  |    | 

nodtveidt

  • Guest
Re: What's the best way to start programming?
« Reply #41 on: February 22, 2012, 03:50:32 PM »
Heh, glad they're decent tutorials so far. I'm going to try to get the next one up within a couple of days... there's a lot of material to cover so it will take some time.

Vecanti

  • Hero Member
  • *****
  • Posts: 629
Re: What's the best way to start programming?
« Reply #42 on: February 23, 2012, 06:36:41 PM »
I see the new one is up and pretty in depth.  Looks like I'll have to spend some time on it.

I was working on playing around.

Made a 3d rendered demo that is an animated background using NO sprites.

http://vecanti.net/demos/cube.pce

Don't think it is very useful but kind of fun to mess around with.  Could have been way more colors, but just threw it together real fast.  Maybe cool for a Demo Scene kind of effect.

Was trying an idea to do parallax with no sprites.
http://vecanti.net/demos/parallax.pce

Again, messy colors, but kind of funny.  


Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: What's the best way to start programming?
« Reply #43 on: February 24, 2012, 12:33:18 AM »
That shits prty neet right thurrrr

:)

throw in some music with Squirrel!  Make a demo!

has to have boom tzzz boom tzzzz drums.
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

incrediblehark

  • Hero Member
  • *****
  • Posts: 638
Re: What's the best way to start programming?
« Reply #44 on: February 25, 2012, 01:27:31 AM »
thanks for all of the info! I have been reading up and studying about doing some pce homebrew, wanting to learn 6502 assembly and HuC, but haven't mentioned it until now because I didn't want to be another one of those guys who starts a project and doesn't finish it.

Now that you have, I'll preemptively go ahead and add your name to the list.

NOOOOO! Should've kept my mouth shut.