Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by nunziofiore

Hi all,
is possible in your opinion make a game where a user can live a complete adventure with this schema:

- video intro
- start a game
- video for winning first game
- i save the reached level
- start a new game (the same adventure ma perhaps a puzzle or something different)
- video
- I save
- new game

and so on?

If it's possible to make something like that and changing completely game using simple levels .. it's good enough.. but I haven't found anything with that schema...

thanks
nunzio fiore

1 decade ago by noGrip

Hi,

Using impact levels, you can have intro screens, menu screens, the game itself, etc. Loading and saving is also possible in many ways. You can use node.js together with impact and connect to a database for instance. Depends on the kind of data you want to save and load. If it is as simple as getting to the start of the level when your hero dies, you don't need a database.

About the video, I am not sure if it can be done through impact alone. I would have to investigate a bit.

Check the documentation and the game examples, they are great to get you started!

Cheers

1 decade ago by paulh

sorry this was ejecta"

Video
scalingMode supports 'aspect-fill', 'aspect-fit', 'fill' and 'none'
paused
ended
src
currentTime
controls
loop
volume (currently does nothing)
duration
canPlayType(type) supports 'video/mp4'
load()
play()
pause()
loadedmeta, canplaythrough, ended and click events
Page 1 of 1
« first « previous next › last »