Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[project] Drive

Drive

Although I obviously can't win this contest, I'm still working on a project for it.

My project is a car driving engine. It's very basic so far - I'm still getting to grips with gosu, having never used it before. So I am starting by editing the star collecting minigame that came with the gosu rubygem.

First steps:

- Get rid of the star class, not needed for now
- Change the acceleration a lot lower, and the handling
- Change handling based on how fast the car is accelerating
- Use the acceleration value to work out a "MPH"
- Draw a working speedometer, with needle, for the MPH value
- Disable turning when the car is not moving
- Brakes, that slow the car down to a stop rather than just stopping
- Handbrake turns - when turning and braking do a little spin

Once I work out how gosu actually works I'll be using this to make my own "engine" (rather than just editing the existing game).

I'll upload a demo or something soon.

Current issues:

- No speed limit, and can't work out a way of setting a speed limit
- Handling is :crazy:
- Handbrake turns: you carry on spinning until you let go of left or right arrow :crazy:

Anyway.

In terms of graphics at the moment I'm using a basic ms paint road, with a GTA2 car sprite.
 
Major setback: collisions.

Gosu has an object = solid thing, anyone know how to use it? (Or just how to handle collisions in general?)
 
nice infinite acceleration xD

the gosu example have limited speed, check the code :3

Edit: forget the input thing, is a different method non valid for that :3
 
I think chipmunk (sudo gem chipmunk) might help you with collisions and gravity, but if I see any other gem out there, I'll let you know.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top