Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Game Library Sneak Peek
#7
(08-19-2024, 05:34 PM)SpriggsySpriggs Wrote: Almost makes me wish I could make games. My head just ain't built for such things.
For years that's I what I thought too. I was the king of utility software and command line enhancements. It wasn't until I discovered QB64 and the excellent statement additions dealing with images and sounds and the speed it offered that I seriously took a crack at game programming. This is the typical formula I use:

- Create the game assets (images, sounds, object arrays to hold them)
- Set the initial values of the object arrays
- Begin loop
-    Check for player input
-    Update positions of objects in array
-    Check for object interaction
-    Update bullet and explosion arrays
-    Update display with new object , bullet, and explosion array positions
- Loop until player has no more objects

That's basically what this game library is doing in the background. It handles all the mundane array tasks, positioning, and interactions (collisions). I was tired of reinventing the wheel over and over again when I wrote a game. This library will help me crank out a game quickly and easily (at least I hope so).

There's a lot to do yet. I want to add vector drawing, line collision, game controller interaction, and very simple sprite physics as well. I'm simply taking all the personal little individual libraries I've created over the years and incorporating them into this project.
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply


Messages In This Thread
Game Library Sneak Peek - by TerryRitchie - 08-10-2024, 06:42 PM
RE: Game Library Sneak Peek - by Pete - 08-10-2024, 06:56 PM
RE: Game Library Sneak Peek - by TerryRitchie - 08-10-2024, 07:01 PM
RE: Game Library Sneak Peek - by Pete - 08-10-2024, 07:25 PM
RE: Game Library Sneak Peek - by TerryRitchie - 08-19-2024, 04:07 PM
RE: Game Library Sneak Peek - by SpriggsySpriggs - 08-19-2024, 05:34 PM
RE: Game Library Sneak Peek - by TerryRitchie - 08-19-2024, 06:49 PM
RE: Game Library Sneak Peek - by NakedApe - 08-19-2024, 07:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QB UI Library aadityap0901 6 1,206 08-02-2025, 05:13 PM
Last Post: aadityap0901
  new approach to base conversion system and math library Dragoncat 2 592 07-16-2025, 10:19 PM
Last Post: Dragoncat
  Everything Date Library in progress SMcNeill 2 729 05-14-2025, 08:36 PM
Last Post: SMcNeill
  Peek-a-boo Hardware Form Concept Pete 14 2,079 04-10-2025, 09:49 PM
Last Post: Pete
  Screw Peek-a-boo. Write on a hardware image form. Pete 0 457 04-08-2025, 11:28 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)