GithubHelp home page GithubHelp logo

wdw-game2d's People

Contributors

wiebow avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

mozsakalli

wdw-game2d's Issues

Ability to set TextureFilteringEnabled for canvas

Can we get access to the TextureFilteringEnabled property for the canvas please. It could be provided with from your Game2d (Window) object.

We can currently override Render to set it but a general option would be great!

Enchance camera control

More control over the camera position:

  • force x or y position (done)
  • set bounds for axis, using a vec2i
  • set bounds for both axis, using a recti (force camera position inside rect, or camera viewport?)

bug in joystick code

Hi,

Found a little bug in the joystick code: if the _joystickDevice isn't recognized, _joystickDeviceMapping gets set to null.

But code such as JoystickHatValue doesn't check for this - it checks _joystickDevice, just not _joystickDeviceMapping - and you get a null object crash.

Bye!
Mark

Ability to set handle of image

The ability to set the image handle would be handy. It could be done either (or both) during load or via an additional function:
Examples
Method AddImage:Void(name:String, path:String, handle:Vec2f) Local image:= Image.Load(path) image.Handle=handle _images.Add( name, image ) End Method

Method SetImageHandle(name:String,handle:Vec2f) Local image:=GetImage(name) If (image<>Null) image.Handle=handle End Method

High-score table

A game should be able to have a high score table:

  • loaded and saved with the game configuration file.
  • configurable amount of entries
  • configurable name entry length
  • entry by keyboard (not sure about gamepad)

I don't care about encrypting the config file. If people want to cheat on themselves, then fine.

Add more interpolated value patterns

There is now a single ping-pong effect for interpolated float values. We should be able to use more variations and repetitions (once, forever, numbered)

Error changing device to Joystick

When you chose to change the device to Joystick an Array index out of range error is shown.

Steps to reduce

  • Plug in your joystick (mine is an Xbox 360 controller)
  • Compile and run your Asteroids demo
  • On the Title screen, press Esc
  • On the Game menu press F12
  • On the Key Controls menu press D

The error appears to relate to returning the ButtonLabel (index is 1)

Note: I can play the game with the Joystick regardless of this selection so it is found/available.

Make Entity.CheckCollision overridable

When creating your own custom 'entity' types if the CheckCollision method could be overridable so you could provide your own custom collision checks.

Note: The other aspect of the collision stuff is it's spread across both the entity and imageentiy objects. That could be tidied up a little??

Add camera entity

We should be able to track an entity, or look at a location in world coordinates. A camera entity that can be attached to another entity, and can perform tasks, like pan, shake, rotate, etc.

Add rectangular collision check to entities

In addition to radius based collision, a rect based collision would also be good to have.

  • enable/disable
  • set width/height
  • set centered yes/no
  • rect/rect collision
  • rect/radius collision

Gameplay 'freezes'

Wiebo,
Not sure if you have seen this (it happens only occasionally) when playing a game (I've seen this on both my Asteroids and your Choplifter) the game will all of a sudden 'freeze'. If you hit ESC to display your menu and ESC to return to the game it continues to play fine.

Now not sure whether this is related to game2d or Monkey2? Also not sure how this could be debugged or even re-producible in a specific way without just playing and hoping?

Add unit testing to module development

This can be started once Mark has added reflection to Monkey2. I will then port the unit test module from M1 to M2 and start adding tests to this project. There is no timeline for reflection in Monkey2.

Method Enter not called on initial (base) State

The first initial provided 'State' (base/default ie. TITLESTATE in Asteroids) does not have it's Enter method called in the first initial start of your game. Once you return to this state page it will be called as expected.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.